thunderbird_accounts.authentication.middleware
Classes
|
User authentication middleware for OIDC |
|
- class thunderbird_accounts.authentication.middleware.AccountsOIDCBackend(*args, **kwargs)[source]
Bases:
OIDCAuthenticationBackendUser authentication middleware for OIDC
This is our slightly customized mozilla-django-oidc middleware used to create/update/authenticate users against oidc flows.
- get_user(user_id)[source]
Retrieve the user from OIDC get_user and additionally check if they’re active. Fixes https://github.com/mozilla/mozilla-django-oidc/issues/520