Skip to content

Commit

Permalink
Merge pull request #34 from timovp/master
Browse files Browse the repository at this point in the history
bug fix for single and multi tenant authority_url
  • Loading branch information
dudil authored Mar 15, 2024
2 parents c04e803 + 953f25a commit f53d79d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastapi_msal/core/msal_client_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ def authority(self) -> str:
# set authority for single tenant authority
if MSALPolicies.AAD_SINGLE == self.policy:
authority_url = f"https://login.microsoftonline.com/{self.tenant}"
return authority_url

if MSALPolicies.AAD_MULTI == self.policy:
authority_url = "https://login.microsoftonline.com/common/"
return authority_url

# Assume B2C policy, specific policy need to be set by user (predefined added B2C_LOGIN, B2C_PROFILE, B2C_CUSTOM)
policy = self.b2c_policy or self.policy.value
Expand Down

0 comments on commit f53d79d

Please sign in to comment.