Struct kanidm_proto::v1::UserAuthToken [−][src]
pub struct UserAuthToken {
pub session_id: Uuid,
pub auth_type: AuthType,
pub expiry: OffsetDateTime,
pub uuid: Uuid,
pub displayname: String,
pub spn: 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
lim_uidx: bool
lim_rmax: usize
lim_pmax: usize
lim_fmax: usize
Trait Implementations
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
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more