api.authentication

class api.authentication.AnonymousAuthentication[source]
authenticate(request)[source]

Authenticate the request for anyone!

class api.authentication.AnonymousOrAuthenticatedAuthentication[source]
authenticate(request)[source]

Authenticate the request for anyone or if a valid token is provided, a user.