Skip to content

Commit d3464e6

Browse files
committed
Explicitly remove issuer from the OIDC discovery
1 parent 02d8b4c commit d3464e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

msal/authority.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def __init__(
9393
.format(authority_url)
9494
) + " Also please double check your tenant name or GUID is correct."
9595
raise ValueError(error_message)
96+
openid_config.pop("issuer", None) # Not used in MSAL.py, so remove it therefore no need to validate it
9697
logger.debug(
9798
'openid_config("%s") = %s', tenant_discovery_endpoint, openid_config)
9899
self.authorization_endpoint = openid_config['authorization_endpoint']

0 commit comments

Comments
 (0)