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>
purpose: UatPurpose
uuid: Uuid
displayname: String
spn: String
mail_primary: Option<String>
ui_hints: BTreeSet<UiHint>
Implementations
sourceimpl UserAuthToken
impl UserAuthToken
Trait Implementations
sourceimpl Clone for UserAuthToken
impl Clone for UserAuthToken
sourcefn clone(&self) -> UserAuthToken
fn clone(&self) -> UserAuthToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UserAuthToken
impl Debug for UserAuthToken
sourceimpl<'de> Deserialize<'de> for UserAuthToken
impl<'de> Deserialize<'de> for UserAuthToken
sourcefn 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
sourceimpl Display for UserAuthToken
impl Display for UserAuthToken
sourceimpl PartialEq<UserAuthToken> for UserAuthToken
impl PartialEq<UserAuthToken> for UserAuthToken
sourceimpl Serialize for UserAuthToken
impl Serialize for UserAuthToken
impl Eq for UserAuthToken
Auto Trait Implementations
impl RefUnwindSafe for UserAuthToken
impl Send for UserAuthToken
impl Sync for UserAuthToken
impl Unpin for UserAuthToken
impl UnwindSafe for UserAuthToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more