33 from urllib .parse import urlparse
44except ImportError : # Fall back to Python 2
55 from urlparse import urlparse
6- import logging
7-
8-
9- logger = logging .getLogger (__name__ )
106
117# Endpoints were copied from here
128# https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-national-cloud#azure-ad-authentication-endpoints
@@ -92,11 +88,9 @@ def __init__(
9288 self ._http_client = http_client
9389 self ._oidc_authority_url = oidc_authority_url
9490 if oidc_authority_url :
95- logger .debug ("Initializing with OIDC authority: %s" , oidc_authority_url )
9691 tenant_discovery_endpoint = self ._initialize_oidc_authority (
9792 oidc_authority_url )
9893 else :
99- logger .debug ("Initializing with Entra authority: %s" , authority_url )
10094 tenant_discovery_endpoint = self ._initialize_entra_authority (
10195 authority_url , validate_authority , instance_discovery )
10296 try :
@@ -117,8 +111,6 @@ def __init__(
117111 .format (authority_url )
118112 ) + " Also please double check your tenant name or GUID is correct."
119113 raise ValueError (error_message )
120- logger .debug (
121- 'openid_config("%s") = %s' , tenant_discovery_endpoint , openid_config )
122114 self ._issuer = openid_config .get ('issuer' )
123115 self .authorization_endpoint = openid_config ['authorization_endpoint' ]
124116 self .token_endpoint = openid_config ['token_endpoint' ]
0 commit comments