pub struct AuthPipeline { /* private fields */ }Expand description
Authentication pipeline — runs providers in priority order.
Implementations§
Source§impl AuthPipeline
impl AuthPipeline
Sourcepub fn register(&mut self, provider: Arc<dyn AuthProvider>)
pub fn register(&mut self, provider: Arc<dyn AuthProvider>)
Register an auth provider (sorted by priority — highest first).
Sourcepub fn register_ordered(&mut self, provider: Arc<dyn AuthProvider>)
pub fn register_ordered(&mut self, provider: Arc<dyn AuthProvider>)
Register an auth provider in caller-determined order (no sorting).
Sourcepub async fn authenticate(
&self,
req: &Request<Bytes>,
cookies: &CookieJar,
backend: Option<&BackendManager>,
app_id: &str,
) -> Option<AuthIdentity>
pub async fn authenticate( &self, req: &Request<Bytes>, cookies: &CookieJar, backend: Option<&BackendManager>, app_id: &str, ) -> Option<AuthIdentity>
Run authentication — returns identity if any provider succeeds.
Trait Implementations§
Source§impl Debug for AuthPipeline
impl Debug for AuthPipeline
Auto Trait Implementations§
impl !RefUnwindSafe for AuthPipeline
impl !UnwindSafe for AuthPipeline
impl Freeze for AuthPipeline
impl Send for AuthPipeline
impl Sync for AuthPipeline
impl Unpin for AuthPipeline
impl UnsafeUnpin for AuthPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more