Enum kanidm_proto::v1::AuthState
source · pub enum AuthState {
Choose(Vec<AuthMech>),
Continue(Vec<AuthAllowed>),
Denied(String),
Success(String),
}
Expand description
The response to an AuthStep request.
Variants§
Choose(Vec<AuthMech>)
You need to select how you want to proceed.
Continue(Vec<AuthAllowed>)
Continue to auth, allowed mechanisms/challenges listed.
Denied(String)
Something was bad, your session is terminated and no cookie.
Success(String)
Everything is good, your bearer token has been issued and is within.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AuthState
impl<'de> Deserialize<'de> for AuthState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnwindSafe for AuthState
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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