From 05833d51bab355ac92f2f4c56e02a25763ba08a6 Mon Sep 17 00:00:00 2001 From: Dorian ROLY Date: Wed, 10 Jun 2020 16:13:56 +0200 Subject: [PATCH] [bnporc] Add actionneeded in case of SCA For now the SCA is crossbrowser, so the user can validate the sca through his browser. --- modules/bnporc/pp/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/bnporc/pp/pages.py b/modules/bnporc/pp/pages.py index 36ccb8150b..44bc89ed8f 100644 --- a/modules/bnporc/pp/pages.py +++ b/modules/bnporc/pp/pages.py @@ -272,6 +272,9 @@ def login(self, username, password): csrf = self.generate_token() response = self.browser.location(target, data={'AUTH': auth, 'CSRF': csrf}) + + if 'authentification-forte' in response.url: + raise ActionNeeded("Veuillez réaliser l'authentification forte depuis votre navigateur.") if response.url.startswith('https://pro.mabanque.bnpparibas'): self.browser.switch('pro.mabanque') if response.url.startswith('https://banqueprivee.mabanque.bnpparibas'): -- GitLab