Skip to main content

Crate product_os_authentication

Crate product_os_authentication 

Source
Expand description

§Product OS Authentication

Authentication and user management framework for Product OS applications.

§Features

  • core_authentication (default): User models, password auth, store, config
  • oidc_providers: OpenID Connect federation flows
  • saml_providers: SAML 2.0 service provider flows
  • capabilities_integration: HTTP Feature registry with product-os-router
  • platform: Full stack for product-os-server authentication feature
  • authentication_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
AuthenticationFederation
Federation (OIDC + SAML) configuration
FederationProviderBase
Shared fields for all federation providers
OidcProviderConfig
OIDC provider-specific configuration
ProductOSAuthentication
ProductOSUser
User account model with authentication and profile data.
ProductOSUserStatus
User account status wrapper.
SamlProviderConfig
SAML provider-specific configuration

Enums§

FederationProvider
Federation provider tagged by protocol
ProductOSAuthError
Authentication-related errors.
ProductOSLockedReason
Reason why a user account is locked.
ProductOSUserStatusType
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§

EmailCodeSettings
Settings for email code (magic link / long token) login.
OneTimeCodeSettings
Settings for one-time code (OTP/PIN) login.