pub struct AuthContext {
pub client_id: ClientId,
pub claims: Value,
pub mode: AuthMode,
pub hints: AuthHints,
}Expand description
Authenticated principal returned to the server after successful authentication.
Contains the caller’s identity, arbitrary claims from the identity provider, the authentication mode that was used, and optional authorization hints (region, device, risk score).
Fields§
§client_id: ClientIdUnique client identifier assigned by the authentication backend.
This is the primary key used to associate the authenticated
principal with a Session.
claims: ValueArbitrary claims returned by the identity provider. The structure is backend-specific; for JWT-based backends this would typically contain the decoded JWT payload.
mode: AuthModeThe authentication mode that was used to produce this context
(e.g., Bearer, Anonymous).
hints: AuthHintsFree-form authorization hints such as geographic region, device identifier, or risk score. These are defined in the protocol specification section 17.2 and may be used for access-control decisions downstream.
Trait Implementations§
Source§impl Clone for AuthContext
impl Clone for AuthContext
Source§fn clone(&self) -> AuthContext
fn clone(&self) -> AuthContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more