Skip to main content

AkWebAppEngine

Type Alias AkWebAppEngine 

Source
pub type AkWebAppEngine = Engine<Configured<Arc<dyn SessionStore>>, Missing>;
Expand description

Engine configured for stateful web app sessions.

Aliased Type§

pub struct AkWebAppEngine {
    pub providers: HashMap<String, Arc<dyn ErasedOAuthFlow>>,
    pub auth_methods: HashMap<String, Arc<dyn AuthMethod>>,
    pub mfa_methods: HashMap<String, Arc<dyn AuthMethod>>,
    pub mfa_jwt_secret: [u8; 32],
    pub session_store: Configured<Arc<dyn SessionStore>>,
    pub session_config: SessionConfig,
    pub token_manager: Missing,
}

Fields§

§providers: HashMap<String, Arc<dyn ErasedOAuthFlow>>

Map of registered OAuth providers.

§auth_methods: HashMap<String, Arc<dyn AuthMethod>>

Map of registered local authentication methods.

§mfa_methods: HashMap<String, Arc<dyn AuthMethod>>

Map of methods explicitly registered for step-up (MFA) use.

§mfa_jwt_secret: [u8; 32]

Internal secret for signing temporary MFA JWT tokens.

§session_store: Configured<Arc<dyn SessionStore>>

The session storage backend.

§session_config: SessionConfig

Configuration for session cookies.

§token_manager: Missing

Manager for JWT signing and verification.