Expand description
Feature-gated external authentication provider drivers for Aster services.
This crate contains the provider-neutral external authentication contract plus reusable
implementations for OpenID Connect, generic OAuth2, and selected fixed-endpoint providers. It
deliberately avoids application database models, account entities, and HTTP handler concerns:
product crates map their stored provider rows into ExternalAuthProviderConfig and map
ExternalAuthError into their own API error type. Built-in connectors are controlled by Cargo
features so each backend can compile only the providers it supports. The default feature set
enables oidc and generic oauth2; dedicated connectors such as github, google,
microsoft, and qq must be enabled explicitly.
Re-exports§
pub use driver::ExternalAuthAuthorizationStart;pub use driver::ExternalAuthCallback;pub use driver::ExternalAuthProfile;pub use driver::ExternalAuthProviderConfig;pub use driver::ExternalAuthProviderDescriptor;pub use driver::ExternalAuthProviderDriver;pub use driver::ExternalAuthProviderTestCheck;pub use driver::ExternalAuthProviderTestResult;pub use registry::ExternalAuthProviderRegistry;pub use registry::default_registry;pub use types::EXTERNAL_AUTH_TYPE_STORAGE_LEN;pub use types::ExternalAuthProtocol;pub use types::ExternalAuthProviderKind;pub use types::ExternalAuthProviderOptions;pub use types::MicrosoftExternalAuthProviderOptions;pub use types::parse_external_auth_provider_options;pub use types::serialize_external_auth_provider_options;
Modules§
- driver
- Provider driver trait and shared external-auth flow value objects.
- normalize
- Product-neutral normalization helpers for external authentication settings.
- providers
- Built-in provider drivers controlled by Cargo features.
- registry
- Runtime registry for feature-enabled external authentication provider drivers.
- types
- Product-neutral provider kinds, protocol tags, and connector options.
Enums§
- External
Auth Error - Error returned by shared external authentication providers.
Traits§
- MapExternal
Auth Err - Extension trait for mapping lower-level errors into external auth errors with context.
Type Aliases§
- Result
- Result type returned by external authentication helpers.