From d3464e6cb13f29bd730f49fc2ddf1c7a25b7c398 Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Fri, 20 Jun 2025 12:34:56 -0700 Subject: [PATCH] Explicitly remove issuer from the OIDC discovery --- msal/authority.py | 1 + 1 file changed, 1 insertion(+) diff --git a/msal/authority.py b/msal/authority.py index bfb73e15..96204966 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -93,6 +93,7 @@ def __init__( .format(authority_url) ) + " Also please double check your tenant name or GUID is correct." raise ValueError(error_message) + openid_config.pop("issuer", None) # Not used in MSAL.py, so remove it therefore no need to validate it logger.debug( 'openid_config("%s") = %s', tenant_discovery_endpoint, openid_config) self.authorization_endpoint = openid_config['authorization_endpoint']