mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
Proper labelling
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user