nat.authentication.oauth2.oauth2_auth_code_flow_provider#
Attributes#
Classes#
Module Contents#
- logger#
- class OAuth2AuthCodeFlowProvider(
- config: nat.authentication.oauth2.oauth2_auth_code_flow_provider_config.OAuth2AuthCodeFlowProviderConfig,
- token_storage: nat.authentication.token_storage.TokenStorageBase | None = None,
Bases:
nat.authentication.interfaces.AuthProviderBase[nat.authentication.oauth2.oauth2_auth_code_flow_provider_config.OAuth2AuthCodeFlowProviderConfig]- _auth_callback = None#
- async _attempt_token_refresh(
- user_id: str,
- auth_result: nat.data_models.authentication.AuthResult,
- _set_custom_auth_callback(
- auth_callback: collections.abc.Callable[[nat.authentication.oauth2.oauth2_auth_code_flow_provider_config.OAuth2AuthCodeFlowProviderConfig, nat.data_models.authentication.AuthFlowType], collections.abc.Awaitable[nat.data_models.authentication.AuthenticatedContext]],
- async authenticate(
- user_id: str | None = None,
- \*\*kwargs,