Enum kanidm_proto::v1::AuthStep
source · pub enum AuthStep {
Init(String),
Init2 {
username: String,
issue: AuthIssueSession,
privileged: bool,
},
Begin(AuthMech),
Cred(AuthCredential),
}
Expand description
Authentication to Kanidm is a stepped process.
The session is first initialised with the requested username.
In response the list of supported authentication mechanisms is provided.
The user chooses the authentication mechanism to proceed with.
The server responds with a challenge that the user provides a credential to satisfy. This challenge and response process continues until a credential fails to validate, an error occurs, or successful authentication is complete.
Variants§
Init(String)
Initialise a new authentication session
Init2
Initialise a new authentication session with extra flags for requesting different types of session tokens or immediate access to privileges.
Fields
§
issue: AuthIssueSession
Begin(AuthMech)
Request the named authentication mechanism to proceed
Cred(AuthCredential)
Provide a credential in response to a challenge
Trait Implementations§
source§impl<'de> Deserialize<'de> for AuthStep
impl<'de> Deserialize<'de> for AuthStep
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 AuthStep
impl RefUnwindSafe for AuthStep
impl Send for AuthStep
impl Sync for AuthStep
impl Unpin for AuthStep
impl UnwindSafe for AuthStep
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