2323API_TOKEN_SAFETY_BUFFER = 3
2424DEFAULT_API_TOKEN_DURATION = DEFAULT_TOKEN_EXPIRATION - API_TOKEN_SAFETY_BUFFER
2525
26+ logger = logging .getLogger (__name__ )
2627
2728class AuthnAuthenticationStrategy (AuthenticationStrategyInterface ):
2829 """
@@ -41,7 +42,7 @@ async def login(self, connection_info: ConjurConnectionInfo, ssl_verification_da
4142 Login uses a username and password to fetch a long-lived conjur_api token
4243 """
4344
44- logging .debug ("Logging in to %s..." , connection_info .conjur_url )
45+ logger .debug ("Logging in to %s..." , connection_info .conjur_url )
4546 creds = self ._retrieve_credential_data (connection_info .conjur_url )
4647
4748 if not creds .password :
@@ -55,7 +56,7 @@ async def authenticate(self, connection_info, ssl_verification_data) -> Tuple[st
5556 Authenticate uses the api_key (retrieved in `login()`) to fetch a short-lived conjur_api token that
5657 for a limited time will allow you to interact fully with the Conjur vault.
5758 """
58- logging .debug ("Authenticating to %s..." , connection_info .conjur_url )
59+ logger .debug ("Authenticating to %s..." , connection_info .conjur_url )
5960 creds = self ._retrieve_credential_data (connection_info .conjur_url )
6061
6162 # If the credential provider already has a valid API token, return it
@@ -69,7 +70,7 @@ async def authenticate(self, connection_info, ssl_verification_data) -> Tuple[st
6970
7071 def _retrieve_credential_data (self , url : str ) -> CredentialsData :
7172 credential_location = self ._credentials_provider .get_store_location ()
72- logging .debug ("Retrieving credentials from the '%s'..." , credential_location )
73+ logger .debug ("Retrieving credentials from the '%s'..." , credential_location )
7374
7475 return self ._credentials_provider .load (url )
7576
0 commit comments