Skip to content

Commit 05d2aa4

Browse files
abhidnya13rayluo
authored andcommitted
Changing tenant discovery endpoint for adfs tenants
1 parent 6490e18 commit 05d2aa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

msal/authority.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def __init__(self, authority_url, validate_authority=True,
4545
tenant_discovery_endpoint = instance_discovery(
4646
canonicalized + "/oauth2/v2.0/authorize",
4747
verify=verify, proxies=proxies, timeout=timeout)
48+
if tenant.lower() == "adfs":
49+
tenant_discovery_endpoint = ("https://{}/adfs/.well-known/openid-configuration"
50+
.format(self.instance))
4851
openid_config = tenant_discovery(
4952
tenant_discovery_endpoint,
5053
verify=verify, proxies=proxies, timeout=timeout)

0 commit comments

Comments
 (0)