Struct kanidm_proto::v1::UserAuthToken
source · [−]pub struct UserAuthToken {
pub session_id: Uuid,
pub auth_type: AuthType,
pub expiry: OffsetDateTime,
pub uuid: Uuid,
pub displayname: String,
pub spn: String,
pub mail_primary: Option<String>,
pub lim_uidx: bool,
pub lim_rmax: usize,
pub lim_pmax: usize,
pub lim_fmax: usize,
}
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. Currently we only use this internally, but we should consider making it “parseable” by the client so they can have per-session group/authorisation data.
This structure and how it works will very much change over time from this point onward!
It’s likely that this must have a relationship to the server’s user structure and to the Entry so that filters or access controls can be applied.
Fields
session_id: Uuid
auth_type: AuthType
expiry: OffsetDateTime
uuid: Uuid
displayname: String
spn: String
mail_primary: Option<String>
lim_uidx: bool
lim_rmax: usize
lim_pmax: usize
lim_fmax: usize
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 Serialize for UserAuthToken
impl Serialize 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more