simple_openid_connect.integrations.djangorestframework.authentication¶
DRF Authentication classes
See the DRF documentation on Setting the authentication scheme about how to use the classes contained here.
Classes
An authentication scheme that interprets |
|
|
A marker that is attached as |
- class simple_openid_connect.integrations.djangorestframework.authentication.AccessTokenAuthentication[source]¶
An authentication scheme that interprets
Authorization: Bearer ...
http headers as access tokens.
- class simple_openid_connect.integrations.djangorestframework.authentication.AuthenticatedViaToken(token: str, user_data: IdToken | UserinfoSuccessResponse | TokenIntrospectionSuccessResponse | JwtAccessToken)[source]¶
A marker that is attached as
request.auth
on successful authentication and which holds well formatted information about that authentication.- __init__(token: str, user_data: IdToken | UserinfoSuccessResponse | TokenIntrospectionSuccessResponse | JwtAccessToken)[source]¶