Skip to content

factory

Authentication provider factory.

Functions:

  • build_provider

    Instantiate the appropriate provider based on the configuration.

build_provider

build_provider(cfg: AuthConfig) -> AuthProvider

Instantiate the appropriate provider based on the configuration.

Returns:

Raises:

  • ValueError

    If the provider name is not recognized.