Usage
Developer documentation
Bases: rest_framework.authentication.BaseAuthentication
rest_framework.authentication.BaseAuthentication
Authenticate the request and return a two-tuple of (user, token).
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.