pub enum Gate {
Allow,
Deny(AuthError),
Challenge(Value),
}Expand description
What a sign-in gate decides, after credentials check out and before a session exists.
Variants§
Allow
Deny(AuthError)
Challenge(Value)
Answer the sign-in with this JSON (e.g. {"twoFactorRedirect": true}), no session.
Gates registered after this one don’t run yet: the plugin that challenged finishes the
sign-in with Internal::complete_sign_in, which runs every gate but its own.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Gate
impl Freeze for Gate
impl Move for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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