thunderbird_accounts.authentication.rest_authentication
Django REST Framework authentication classes.
Classes
|
Bearer-token authentication that also refuses deactivated users. |
- class thunderbird_accounts.authentication.rest_authentication.ActiveUserOIDCAuthentication(backend=None)[source]
Bases:
OIDCAuthenticationBearer-token authentication that also refuses deactivated users.
The upstream class resolves the token to a local user without checking
is_active; the session backend’sget_userdoes check it, so this keeps the two entry points consistent.