You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on testing from @JoshLozensky with Id Web and a dSTS authority, we are getting:
ErrorCode: tenant_override_non_aad
Microsoft.Identity.Client.MsalClientException: WithTenantId can only be used when an AAD authority is specified at the application level.
at Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder`1.WithTenantId(String tenantId)
at Microsoft.Identity.Web.TokenAcquisition.GetAuthenticationResultForAppAsync(String scope, String authenticationScheme, String tenant, TokenAcquisitionOptions tokenAcquisitionOptions)
at Microsoft.Identity.Web.DefaultAuthorizationHeaderProvider.CreateAuthorizationHeaderForAppAsync(String scopes, AuthorizationHeaderProviderOptions downstreamApiOptions, CancellationToken cancellationToken)
at Microsoft.Identity.Web.DownstreamApi.CallApiInternalAsync(String serviceName, DownstreamApiOptions effectiveOptions, Boolean appToken, HttpContent content, ClaimsPrincipal user, CancellationToken cancellationToken)
at Microsoft.Identity.Web.DownstreamApi.GetForAppAsync[TOutput](String serviceName, Action`1 downstreamApiOptionsOverride, CancellationToken cancellationToken)
at Program.<Main>$(String[] args) in C:\workingDirectory\MicrosoftIdentityClientInternal\Samples\daemon-console\daemon-console\Program.cs:line 29
at Program.<Main>(String[] args)
Because MSAL is not including dSTS in the tenant override, only AadAuthority:
Based on testing from @JoshLozensky with Id Web and a dSTS authority, we are getting:
Because MSAL is not including dSTS in the tenant override, only AadAuthority:
internal bool IsTenantOverrideSupported => AuthorityType == AuthorityType.Aad;
The text was updated successfully, but these errors were encountered: