thunderbird_accounts.authentication.tests.test_mfa

Classes

GetUserAccessTokenTestCase([methodName])

get_user_access_token forwards a live token, refreshing on demand when the stored one has expired so short-lived tokens don't get rejected by the mfa-rest provider.

KeycloakClientMfaTestCase([methodName])

The MFA client methods are thin wrappers over the keycloak-mfa-rest provider, reached on the realm path (KEYCLOAK_MFA_API_ENDPOINT) rather than the admin API.

MfaApiTestCase([methodName])

MfaReauthenticationRequestViewTestCase([...])

class thunderbird_accounts.authentication.tests.test_mfa.MfaApiTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

class thunderbird_accounts.authentication.tests.test_mfa.KeycloakClientMfaTestCase(methodName='runTest')[source]

Bases: TestCase

The MFA client methods are thin wrappers over the keycloak-mfa-rest provider, reached on the realm path (KEYCLOAK_MFA_API_ENDPOINT) rather than the admin API.

class thunderbird_accounts.authentication.tests.test_mfa.MfaReauthenticationRequestViewTestCase(methodName='runTest')[source]

Bases: TestCase

class thunderbird_accounts.authentication.tests.test_mfa.GetUserAccessTokenTestCase(methodName='runTest')[source]

Bases: TestCase

get_user_access_token forwards a live token, refreshing on demand when the stored one has expired so short-lived tokens don’t get rejected by the mfa-rest provider.