Expand description
secure_identity — Identity resolution and session management for SunLit Security Libraries.
Provides JWT-based authentication, session management, and MFA support.
Re-exports§
pub use authenticator::AuthenticationRequest;pub use authenticator::Authenticator;pub use authenticator::TokenKind;pub use boot::assert_no_dev_identity_in_production;pub use boot::ProductionModeViolation;pub use error::IdentityError;pub use passwordless::BoundUserSession;pub use passwordless::DeviceSessionBinding;pub use passwordless::PasskeySupport;pub use passwordless::PasswordlessChallenge;pub use passwordless::PasswordlessChallengeRequest;pub use passwordless::PasswordlessChallengeService;pub use passwordless::PasswordlessError;pub use passwordless::PasswordlessMethod;pub use passwordless::PasswordlessProof;pub use passwordless::PasswordlessProofVerifier;pub use session::InMemorySessionManager;pub use session::Session;pub use session::SessionManager;pub use token::AlgorithmConfig;pub use token::AsymmetricTokenValidator;pub use token::AsymmetricTokenValidatorConfig;pub use token::TokenValidator;pub use token::TokenValidatorConfig;
Modules§
- api_key
- API key authentication with constant-time comparison.
- auth_
events - Authentication success/failure event helpers.
- authenticator
- Authenticator trait and request/result types.
- boot
- Boot-time security invariants.
- dev
- Development-only authenticator — NOT FOR PRODUCTION.
- error
- Identity error types.
- jwks
- JWKS (JSON Web Key Set) key store with TTL-based caching.
- mfa
- MFA challenge and provider types (stub).
- passwordless
- Passwordless login APIs bound to native device trust.
- session
- Session management trait and types.
- token
- JWT token validation.
- totp
- RFC 6238 time-based one-time password (TOTP) support.