nat.authentication.http_basic_auth.register#

Classes#

HTTPBasicAuthProviderConfig

Base configuration for authentication providers.

Functions#

http_basic_auth_provider(config, builder)

Module Contents#

class HTTPBasicAuthProviderConfig(/, **data: Any)#

Bases: nat.data_models.authentication.AuthProviderBaseConfig

Base configuration for authentication providers.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

async http_basic_auth_provider(
config: HTTPBasicAuthProviderConfig,
builder: nat.builder.builder.Builder,
)#