Skip to content

Commit e0dc68f

Browse files
committed
Changing tenant discovery endpoint for adfs tenants
1 parent 50da5f0 commit e0dc68f

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)