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:
-
AuthProvider–The configured
AuthProviderinstance.
Raises:
-
ValueError–If the provider name is not recognized.