From ef38adaefae2740d7d0bd1df6f085408f8e0323e Mon Sep 17 00:00:00 2001 From: Nilesh Choudhary Date: Mon, 23 Feb 2026 15:28:29 +0000 Subject: [PATCH 1/2] removed some log that were alerted --- msal/authority.py | 8 -------- msal/sku.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/msal/authority.py b/msal/authority.py index b114831f..aaa7d22a 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -3,10 +3,6 @@ from urllib.parse import urlparse except ImportError: # Fall back to Python 2 from urlparse import urlparse -import logging - - -logger = logging.getLogger(__name__) # Endpoints were copied from here # https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-national-cloud#azure-ad-authentication-endpoints @@ -92,11 +88,9 @@ def __init__( self._http_client = http_client self._oidc_authority_url = oidc_authority_url if oidc_authority_url: - logger.debug("Initializing with OIDC authority: %s", oidc_authority_url) tenant_discovery_endpoint = self._initialize_oidc_authority( oidc_authority_url) else: - logger.debug("Initializing with Entra authority: %s", authority_url) tenant_discovery_endpoint = self._initialize_entra_authority( authority_url, validate_authority, instance_discovery) try: @@ -117,8 +111,6 @@ def __init__( .format(authority_url) ) + " Also please double check your tenant name or GUID is correct." raise ValueError(error_message) - logger.debug( - 'openid_config("%s") = %s', tenant_discovery_endpoint, openid_config) self._issuer = openid_config.get('issuer') self.authorization_endpoint = openid_config['authorization_endpoint'] self.token_endpoint = openid_config['token_endpoint'] diff --git a/msal/sku.py b/msal/sku.py index 3069da43..01751048 100644 --- a/msal/sku.py +++ b/msal/sku.py @@ -2,5 +2,5 @@ """ # The __init__.py will import this. Not the other way around. -__version__ = "1.34.0" +__version__ = "1.35.0" SKU = "MSAL.Python" From e249c3ffd27e19992c460e0e35cc5ef67f73b50f Mon Sep 17 00:00:00 2001 From: Nilesh Choudhary Date: Tue, 24 Feb 2026 10:19:56 +0000 Subject: [PATCH 2/2] Added back logging of the oidc url --- msal/authority.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msal/authority.py b/msal/authority.py index aaa7d22a..9467793a 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -3,7 +3,9 @@ from urllib.parse import urlparse except ImportError: # Fall back to Python 2 from urlparse import urlparse +import logging +logger = logging.getLogger(__name__) # Endpoints were copied from here # https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-national-cloud#azure-ad-authentication-endpoints AZURE_US_GOVERNMENT = "login.microsoftonline.us" @@ -88,6 +90,7 @@ def __init__( self._http_client = http_client self._oidc_authority_url = oidc_authority_url if oidc_authority_url: + logger.debug("Initializing with OIDC authority: %s", oidc_authority_url) tenant_discovery_endpoint = self._initialize_oidc_authority( oidc_authority_url) else: