Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS committed Jul 20, 2023
1 parent 0beee7b commit 2d754ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/client/Microsoft.Identity.Client/Instance/Authority.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ internal virtual string GetTenantedAuthority(string tenantId, bool forceSpecifie
MsalError.TenantOverrideNonAad,
MsalErrorMessage.TenantOverrideNonAad);
}


internal abstract Task<string> GetTokenEndpointAsync(RequestContext requestContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ internal CiamAuthority(AuthorityInfo authorityInfo) :

internal override string GetTenantedAuthority(string tenantId, bool forceSpecifiedTenant = false)
{
if (!string.IsNullOrEmpty(tenantId))
if (!string.IsNullOrEmpty(tenantId) &&
(forceSpecifiedTenant || IsCommonOrganizationsOrConsumersTenant()))
{
var authorityUri = AuthorityInfo.CanonicalAuthority;

Expand Down

0 comments on commit 2d754ac

Please sign in to comment.