[bank][caissedepargne] issue with "secure'pass" authentication
Hi,
I'm using the caissedepargne module. I don't know if it's a bug, or if I'm doing something wrong.
A few months ago, my bank moved on a new 2fa authentication with something they call "secure'pass", which consists of a manual confirmation on a mobile app.
For a couple of years, the workaround in Woob was to enter the text code received on the phone every 3 months.
But with secure'pass nothing is asked at the prompt. login and password are stored in configuration, when I run woob bank list
I get the notification on the phone app and I am able to confirm, but woob has already terminated with the following error message:
2022-06-23 20:58:05,966:WARNING:woob.backend.caissedepargne.browser:3.1:browser.py:692:do_vk_authentication Security level "291" has a SCA with authentication method "CLOUDCARD"
Bug(caissedepargne): Unexpected response during login authentication
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/n/.local/lib/python3.10/site-packages/woob/core/bcall.py", line 105, in backend_process
for subresult in result:
File "/home/n/.local/lib/python3.10/site-packages/woob/tools/application/base.py", line 330, in _do_complete_iter
for i, sub in enumerate(res):
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/module.py", line 86, in iter_accounts
for account in self.browser.get_accounts_list():
File "/home/n/.local/lib/python3.10/site-packages/woob/browser/switch.py", line 100, in wrapper
return val(*args, **kwargs)
File "/home/n/.local/lib/python3.10/site-packages/woob/browser/retry.py", line 77, in wrapper
ret = cb()
File "/home/n/.local/lib/python3.10/site-packages/woob/browser/retry.py", line 73, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/home/n/.local/lib/python3.10/site-packages/woob/browser/browsers.py", line 994, in inner
browser.do_login()
File "/home/n/.local/lib/python3.10/site-packages/woob/browser/browsers.py", line 1494, in do_double_authentication
self.init_login()
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/browser.py", line 284, in init_login
return self.do_new_login()
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/browser.py", line 1046, in do_new_login
self.handle_steps_login()
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/browser.py", line 819, in handle_steps_login
self.handle_step(authentication_method, "login")
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/browser.py", line 828, in handle_step
return self.handle_step_validation(authentication_method, feature, **params)
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/browser.py", line 872, in handle_step_validation
self.page.check_errors(feature=feature)
File "/home/n/.local/share/woob/modules/3.1/woob_modules/caissedepargne/pages.py", line 318, in check_errors
raise AssertionError('Unexpected response during %s authentication' % feature)
AssertionError: Unexpected response during login authentication
I'm using Woob 3.0:
Woob config v3.0 Copyright(C) 2010-2022 Christophe Benz, Romain Bignon
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module caissedepargne |
+-----------------.------------------------------------------------------------'
| Version | 202205121601
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | Caisse d'Épargne
| Capabilities | CapBankTransfer, CapBankWealth, CapBankTransferAddRecipient, CapCollection, CapTransfer, CapProfile, CapContact, CapDocument, CapBank
| Installed | yes
| Location | https://updates.woob.tech/3.0/main/caissedepargne.tar.gz
| |
| Configuration | login: Identifiant client (default: )
| | password: Mot de passe (default: )
| | nuser: User ID (optional) (default: )
| | auth_type: Type de compte (default: )
| | otp_emv: None
| | otp_sms: None
| | resume: None
| | request_information: None
'-----------------'
How did you install woob?
cloned the git repository, switched to 3.0 tag and ran
./tools/local_install.sh ~/woob
This occurs on Arch Linux and Debian Bullseye.
Is there something I'm missing? This is driving me mad
Thanks in advance for your help,
-- Nicolas