class documentation
class BaseAuthentication: (source)
Known subclasses: rest_framework.authentication.BasicAuthentication
, rest_framework.authentication.RemoteUserAuthentication
, rest_framework.authentication.SessionAuthentication
, rest_framework.authentication.TokenAuthentication
All authentication classes should extend BaseAuthentication.
Method | authenticate |
Authenticate the request and return a two-tuple of (user, token). |
Method | authenticate |
Return a string to be used as the value of the `WWW-Authenticate` header in a `401 Unauthenticated` response, or `None` if the authentication scheme should return `403 Permission Denied` responses. |
overridden in
rest_framework.authentication.BasicAuthentication
, rest_framework.authentication.RemoteUserAuthentication
, rest_framework.authentication.SessionAuthentication
, rest_framework.authentication.TokenAuthentication
Authenticate the request and return a two-tuple of (user, token).
overridden in
rest_framework.authentication.BasicAuthentication
, rest_framework.authentication.TokenAuthentication
Return a string to be used as the value of the `WWW-Authenticate` header in a `401 Unauthenticated` response, or `None` if the authentication scheme should return `403 Permission Denied` responses.