From 7a8df0e017ef86632aa7928a485fe1e71766cf0b Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 10 Feb 2021 17:34:04 +0100 Subject: [PATCH] [banquepopulaire] Change continue_url params The precedent params still work for the majority of the users but for others these changes are mandatory. --- modules/banquepopulaire/browser.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/modules/banquepopulaire/browser.py b/modules/banquepopulaire/browser.py index 4412f05667..f744335e6e 100644 --- a/modules/banquepopulaire/browser.py +++ b/modules/banquepopulaire/browser.py @@ -481,21 +481,15 @@ def do_new_login(self): self.page.check_errors(feature='login') self.do_redirect(headers) - access_token = self.page.get_access_token() - expires_in = self.page.get_expires_in() + # continueURL not found in HAR + params = { + 'Segment': self.user_type, + 'NameId': user_code, + 'cdetab': cdetab, + 'continueURL': '/cyber/ibp/ate/portal/internet89C3Portal.jsp?taskId=aUniversAccueilRefonte', + } - self.location( - continue_url, - params={ - 'access_token': access_token, - 'token_type': 'Bearer', - 'grant_type': 'implicit flow', - 'NameId': self.username.upper(), - 'Segment': self.user_type, - 'scopes': '', - 'expires_in': expires_in, - }, - ) + self.location(continue_url, params=params) if self.response.status_code == 302: # No redirection to the next url # Let's do the job instead of the bank -- GitLab