Skip to main content

SessionResolver

Trait SessionResolver 

Source
pub trait SessionResolver<D: Adapter>:
    Send
    + Sync
    + 'static {
    // Required method
    fn resolve(
        &self,
        ctx: &Ctx<D>,
        headers: &HeaderMap,
    ) -> impl Future<Output = Result<Option<Resolved>, AuthError>> + Send;
}
Expand description

Turns non-cookie credentials into a session. Tried in registration order.

Required Methods§

Source

fn resolve( &self, ctx: &Ctx<D>, headers: &HeaderMap, ) -> impl Future<Output = Result<Option<Resolved>, AuthError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§