AuthErrorChallenge

class gafaelfawr.models.auth.AuthErrorChallenge(auth_type, realm, error, error_description, scope=None)

Bases: AuthChallenge

Represents a WWW-Authenticate header for an error challenge.

Parameters:

Attributes Summary

scope

Scope required to access this URL.

Methods Summary

to_header()

Construct the WWW-Authenticate header for this challenge.

Attributes Documentation

scope: str | None = None

Scope required to access this URL.

Methods Documentation

to_header()

Construct the WWW-Authenticate header for this challenge.

Returns:

Contents of the WWW-Authenticate header.

Return type:

str