Proper labelling

This commit is contained in:
0x3d
2024-02-07 11:05:01 +01:00
parent 2721ac6a85
commit 66c188f18c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class OpenIdCredentialManager(CredentialManager):
challenge = encoded.decode('ascii')[:-1]
return verifier, challenge
def init_with_user_credentials_realm(self, country_code: str):
def init_with_country_code(self, country_code: str):
redir_uri = "mymop://oauth2redirect/" + country_code.lower()
code_verifier, code_challenge = self.generate_sha256_pkce(64)
url = self.generate_authorize_url(redir_uri, secrets.token_urlsafe(16),
@@ -32,7 +32,7 @@ logger = CustomLogger.getLogger(__name__)
class PSAClient:
def connect(self, country_code):
self.manager.init_with_user_credentials_realm(country_code)
self.manager.init_with_country_code(country_code)
# pylint: disable=too-many-arguments
def __init__(self, refresh_token, client_id, client_secret, remote_refresh_token, customer_id, realm, country_code,