Linters don't code

This commit is contained in:
0x3d
2024-02-07 01:17:44 +01:00
parent 82a3df1feb
commit 9bcf2aeaf5
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -41,10 +41,11 @@ class OpenIdCredentialManager(CredentialManager):
url = self.generate_authorize_url(redir_uri, secrets.token_urlsafe(16),
code_challenge=code_challenge, code_challenge_method="S256")
logger.info("Now login to this URL in a browser: %s", url)
ret = ""
while len(ret) != 36:
logger.info("Now login to this URL in a browser: %s", url)
ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network" \
ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network, " \
"when you hit the final OK button, 36 chars, UUID format): ")
self._token_request({ "grant_type": 'authorization_code', "code": ret,
@@ -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.realm)
self.manager.init_with_user_credentials_realm(country_code)
# pylint: disable=too-many-arguments
def __init__(self, refresh_token, client_id, client_secret, remote_refresh_token, customer_id, realm, country_code,