Authenticators#

Contains authentication classes for the Django FMA connectors.

class fma_django.authenticators.ClientAuthentication#

Bases: BaseAuthentication

Handles client authentication for the Django FMA connectors.

authenticate(request)#

Ensures that the client’s request is coming from a valid UUID.

Parameters:

request (Any) – Message from the client containing the HTTP_CLIENT_UUID.

Raises:

Authentication Failed – the UUID is either invalid or does not exist.

Returns:

A new ClientUser object with the authenticated UUID.

Return type:

Optional[fma_django.models.ClientUser]

authenticate_header(request)#

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.