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 = ()
get_expire()[source]
dump_state()[source]
should_skip_locate_browser()[source]
locate_browser(state)[source]
load_state(state)[source]
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.

clear_init_cookies()[source]
clear_not_2fa_cookies()[source]
check_interactive()[source]
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.