We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to cast object of type 'Microsoft.Identity.Client.Instance.DstsAuthority' to type 'Microsoft.Identity.Client.Instance.AadAuthority'.
On this line: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main/src/client/Microsoft.Identity.Client/ApiConfig/AbstractAcquireTokenParameterBuilder.cs#L277
If a dSTS authority is used, the code is casting for an AadAuthority, but AuthorityInfo is dSTS, so the cast fails:
AadAuthority aadAuthority = (AadAuthority)ServiceBundle.Config.Authority;
You have a test checking for dSTS authority types here, but it's using [WithTenantIdFromAuthority](
microsoft-authentication-library-for-dotnet/src/client/Microsoft.Identity.Client/ApiConfig/AbstractAcquireTokenParameterBuilder.cs
Line 301 in 18fc352
.WithTenantId()
The text was updated successfully, but these errors were encountered:
jennyf19
Successfully merging a pull request may close this issue.
Unable to cast object of type 'Microsoft.Identity.Client.Instance.DstsAuthority' to type 'Microsoft.Identity.Client.Instance.AadAuthority'.
On this line: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main/src/client/Microsoft.Identity.Client/ApiConfig/AbstractAcquireTokenParameterBuilder.cs#L277
If a dSTS authority is used, the code is casting for an AadAuthority, but AuthorityInfo is dSTS, so the cast fails:
AadAuthority aadAuthority = (AadAuthority)ServiceBundle.Config.Authority;
You have a test checking for dSTS authority types here, but it's using [WithTenantIdFromAuthority](
microsoft-authentication-library-for-dotnet/src/client/Microsoft.Identity.Client/ApiConfig/AbstractAcquireTokenParameterBuilder.cs
Line 301 in 18fc352
.WithTenantId()
.The text was updated successfully, but these errors were encountered: