[go: up one dir, main page]

[freemobile] - Error(freemobile): You have to run bill in interactive mode to perform a two-factor authentication

·> woob config add freemobile

Configuration of backend freemobile
-----------------------------------
[login] Account ID:
     c: Run an external tool during backend load
     p: Prompt value when needed (do not store it)
     s: Store value in config
*** How do you want to store it? (c/P/s): p
[password] Password:
     c: Run an external tool during backend load
     p: Prompt value when needed (do not store it)
     s: Store value in config
*** How do you want to store it? (c/P/s): p
[force_twofa_type_email] Force 2FA to be sent by email (y/N): n
-----------------------------------
Backend "freemobile" successfully added.

I try different option but I still get at the end

[freemobile] - Error(freemobile): You have to run bill in interactive mode to perform a two-factor authentication

What I did after having installed the backend:

woob bill
profile

Moreover, I tried to execute this module outside of the cli

w = Woob(workdir="share", datadir="share")
w.update()
# Add and load the backend
module_name = 'freemobile'
params = {'login': decrypted_username, 'password': decrypted_password}
backend: Module = w.load_backend(module_name=module_name, name=module_name,
               params=params)



print(backend.get_profile())

And obviously I get the following message

    raise NeedInteractiveFor2FA()
personal_connector.woob.exceptions.NeedInteractiveFor2FA

Any ideas how to do ?

Edited by Lirone