Expand description
§Product OS Authentication
Authentication and user management framework for Product OS applications.
§Features
core_authentication(default): User models, password auth, store, configoidc_providers: OpenID Connect federation flowssaml_providers: SAML 2.0 service provider flowscapabilities_integration: HTTP Feature registry with product-os-routerplatform: Full stack for product-os-serverauthenticationfeatureauthentication_layer: Middleware for request authentication (opt-in)issue_token: JWT token issuance via OIDC server integration
Re-exports§
pub use ephemeral_code::ActivationCodeSettings;pub use ephemeral_code::EphemeralCodeFlowSettings;pub use ephemeral_code::EphemeralCodeInitResult;
Modules§
- ephemeral_
code - Shared ephemeral code generation, storage, and verification.
Structs§
- Authentication
- Authentication configuration
- Authentication
Federation - Federation (OIDC + SAML) configuration
- Federation
Provider Base - Shared fields for all federation providers
- Oidc
Provider Config - OIDC provider-specific configuration
- ProductOS
Authentication - ProductOS
User - User account model with authentication and profile data.
- ProductOS
User Status - User account status wrapper.
- Saml
Provider Config - SAML provider-specific configuration
Enums§
- Federation
Provider - Federation provider tagged by protocol
- ProductOS
Auth Error - Authentication-related errors.
- ProductOS
Locked Reason - Reason why a user account is locked.
- ProductOS
User Status Type - Represents the lifecycle status of a user account.
Constants§
- PROVIDER_
EMAIL - Built-in identity provider id for email-token authentication.
- PROVIDER_
ONE_ TIME_ CODE - Built-in identity provider id for one-time code authentication.
- PROVIDER_
PASSWORD - Built-in identity provider id for password authentication.
Functions§
- setup_
auth_ store - Sets up the authentication store database schema.
Type Aliases§
- Email
Code Settings - Settings for email code (magic link / long token) login.
- OneTime
Code Settings - Settings for one-time code (OTP/PIN) login.