Enum kanidmd_lib::credential::CredentialType
source · pub enum CredentialType {
Password(Password),
GeneratedPassword(Password),
PasswordMfa(Password, Map<String, Totp>, Map<String, SecurityKey>, Option<BackupCodes>),
Webauthn(Map<String, Passkey>),
}
Expand description
The type of credential that is stored. Each of these represents a full set of ‘what is required’ to complete an authentication session. The reason to have these typed like this is so we can apply policy later to what classes or levels of credentials can be used. We use these types to also know what type of auth session handler to initiate.
Variants§
Password(Password)
GeneratedPassword(Password)
PasswordMfa(Password, Map<String, Totp>, Map<String, SecurityKey>, Option<BackupCodes>)
Webauthn(Map<String, Passkey>)
Trait Implementations§
source§impl Clone for CredentialType
impl Clone for CredentialType
source§fn clone(&self) -> CredentialType
fn clone(&self) -> CredentialType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CredentialType
impl Debug for CredentialType
source§impl PartialEq<CredentialType> for CredentialType
impl PartialEq<CredentialType> for CredentialType
source§fn eq(&self, other: &CredentialType) -> bool
fn eq(&self, other: &CredentialType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.