AuthChallenge#

class gafaelfawr.models.auth.AuthChallenge(auth_type, realm)#

Bases: object

Represents a WWW-Authenticate header for a simple challenge.

Parameters:

Attributes Summary

auth_type

The authentication type (the first part of the header).

realm

The value of the realm attribute.

Methods Summary

to_header()

Construct the WWW-Authenticate header for this challenge.

Attributes Documentation

auth_type: AuthType = <dataclasses._MISSING_TYPE object>#

The authentication type (the first part of the header).

realm: str = <dataclasses._MISSING_TYPE object>#

The value of the realm attribute.

Methods Documentation

to_header()#

Construct the WWW-Authenticate header for this challenge.

Returns:

Contents of the WWW-Authenticate header.

Return type:

str