Commit 05833d51 authored by Dorian ROLY's avatar Dorian ROLY Committed by Vincent A

[bnporc] Add actionneeded in case of SCA

For now the SCA is crossbrowser, so the user can validate the sca through his browser.
parent 22b54f82
......@@ -272,6 +272,9 @@ class LoginPage(JsonPage):
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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment