woob.browser.mfa
¶
- class TwoFactorBrowser(*args, **kwargs)[source]¶
Bases:
LoginBrowser
,StatesMixin
- TWOFA_DURATION = None¶
- INTERACTIVE_NAME = 'request_information'¶
- AUTHENTICATION_METHODS = {}¶
- COOKIES_TO_CLEAR = ()¶
- HAS_CREDENTIALS_ONLY = False¶
- SKIP_LOCATE_BROWSER_ON_CONFIG_VALUES = ()¶
- init_login()[source]¶
Abstract method to implement initiation of login on website.
This method should raise an exception.
SCA exceptions : - AppValidation for polling method - BrowserQuestion for SMS method, token method etc.
Any other exceptions, default to BrowserIncorrectPassword.
- do_double_authentication()[source]¶
This method will check AUTHENTICATION_METHODS to dispatch to the right handle_* method.
If no backend configuration could be found, it will then call init_login method.
- do_login()¶
This method will check AUTHENTICATION_METHODS to dispatch to the right handle_* method.
If no backend configuration could be found, it will then call init_login method.