AuthChallenge

class gafaelfawr.handlers.util.AuthChallenge(auth_type: AuthType, realm: str, error: Optional[AuthError] = None, error_description: Optional[str] = None, scope: Optional[str] = None)

Bases: object

Represents the components of a WWW-Authenticate header.

Attributes Summary

error The value of the error attribute if present.
error_description The value of the error description attribute if present.
scope The value of the scope attribute if present.

Methods Summary

as_header() Construct the WWW-Authenticate header for this challenge.

Attributes Documentation

error = None

The value of the error attribute if present.

error_description = None

The value of the error description attribute if present.

scope = None

The value of the scope attribute if present.

Methods Documentation

as_header() → str

Construct the WWW-Authenticate header for this challenge.

Returns:header – Contents of the WWW-Authenticate header.
Return type:str