cri_auth.kerberos.spnego.drf module

class cri_auth.kerberos.spnego.drf.SPNEGOAuthentication[source]

Bases: rest_framework.authentication.BaseAuthentication

authenticate(request)[source]

Authenticate the request and return a two-tuple of (user, token).

authenticate_header(request)[source]

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.