nat.authentication.oauth2.oauth2_auth_code_flow_provider_config#

Classes#

OAuth2AuthCodeFlowProviderConfig

Base configuration for authentication providers.

Module Contents#

class OAuth2AuthCodeFlowProviderConfig(/, **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.

client_id: str = None#
client_secret: str = None#
authorization_url: str = None#
token_url: str = None#
token_endpoint_auth_method: str | None = None#
redirect_uri: str = None#
scopes: list[str] = None#
use_pkce: bool = None#
authorization_kwargs: dict[str, str] | None = None#