pub struct AuthContext {
pub auth_token: JwtToken,
pub actor: Actor,
pub user_type: UserType,
pub act_chain: Vec<Actor>,
pub jti: String,
pub token_exp: i64,
}Fields§
§auth_token: JwtToken§actor: Actor§user_type: UserType§act_chain: Vec<Actor>RFC 8693 actor (act) chain in outermost-first order: index 0 is
the most recent delegate that requested the current token, and the
last entry is the original delegating principal. Empty for direct
(non-delegated) tokens.
jti: StringJWT jti. Empty for anonymous / system contexts. Carried forward so
the JTI-revocation tower layer can consult the revocation list without
re-decoding the bearer.
token_exp: i64JWT exp (unix seconds). Zero for anonymous / system contexts.
Required by POST /oauth/logout to write the revocation row with the
token’s natural lifetime.
Trait Implementations§
Source§impl Clone for AuthContext
impl Clone for AuthContext
Source§fn clone(&self) -> AuthContext
fn clone(&self) -> AuthContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthContext
impl Debug for AuthContext
Source§impl<'de> Deserialize<'de> for AuthContext
impl<'de> Deserialize<'de> for AuthContext
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
Auto Trait Implementations§
impl Freeze for AuthContext
impl RefUnwindSafe for AuthContext
impl Send for AuthContext
impl Sync for AuthContext
impl Unpin for AuthContext
impl UnsafeUnpin for AuthContext
impl UnwindSafe for AuthContext
Blanket Implementations§
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