Struct kanidm_proto::internal::UserAuthToken
source · pub struct UserAuthToken {
pub session_id: Uuid,
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>,
pub limit_search_max_results: Option<u64>,
pub limit_search_max_filter_test: Option<u64>,
}
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
§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>
§limit_search_max_results: Option<u64>
§limit_search_max_filter_test: Option<u64>
Implementations§
source§impl UserAuthToken
impl UserAuthToken
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
source§impl Display for UserAuthToken
impl Display for UserAuthToken
source§impl PartialEq for UserAuthToken
impl PartialEq for UserAuthToken
source§impl Serialize for UserAuthToken
impl Serialize for UserAuthToken
source§impl<'__s> ToSchema<'__s> for UserAuthToken
impl<'__s> ToSchema<'__s> for UserAuthToken
impl Eq for UserAuthToken
Auto Trait Implementations§
impl Freeze for UserAuthToken
impl RefUnwindSafe for UserAuthToken
impl Send for UserAuthToken
impl Sync for UserAuthToken
impl Unpin for UserAuthToken
impl UnwindSafe for UserAuthToken
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.