Struct kanidm_proto::v1::UserAuthToken
source · pub struct UserAuthToken {
pub session_id: Uuid,
pub auth_type: AuthType,
pub issued_at: OffsetDateTime,
pub expiry: Option<OffsetDateTime>,
pub purpose: UatPurpose,
pub uuid: Uuid,
pub displayname: String,
pub spn: String,
pub mail_primary: Option<String>,
pub ui_hints: BTreeSet<UiHint>,
}
Expand description
The currently authenticated user, and any required metadata for them to properly authorise them. This is similar in nature to oauth and the krb PAC/PAD structures. This information is transparent to clients and CAN be parsed by them!
This structure and how it works will very much change over time from this point onward! This means on updates, that sessions will invalidate in many cases.
Fields§
§session_id: Uuid
§auth_type: AuthType
§issued_at: OffsetDateTime
§expiry: Option<OffsetDateTime>
If none, there is no expiry, and this is always valid. If there is an expiry, check that the current time < expiry.
purpose: UatPurpose
§uuid: Uuid
§displayname: String
§spn: String
§mail_primary: Option<String>
§ui_hints: BTreeSet<UiHint>
Implementations§
Trait Implementations§
source§impl Clone for UserAuthToken
impl Clone for UserAuthToken
source§fn clone(&self) -> UserAuthToken
fn clone(&self) -> UserAuthToken
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 UserAuthToken
impl Debug for UserAuthToken
source§impl<'de> Deserialize<'de> for UserAuthToken
impl<'de> Deserialize<'de> for UserAuthToken
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