pub struct RefreshTokenEntry {
pub client_id: String,
pub username: String,
pub scopes: Vec<String>,
pub resource: Option<String>,
pub expires_at_unix: i64,
pub verifying_key_bytes: Option<[u8; 32]>,
pub dpop_jkt: Option<String>,
pub client_assertion_jkt: Option<String>,
pub ucan_grant: Option<UcanGrantRefresh>,
pub session_id: Option<String>,
}Expand description
A stored refresh token entry (OAuth 2.1 rotation).
Fields§
§client_id: String§username: StringJWT subject (username) of the token owner.
scopes: Vec<String>§resource: Option<String>§expires_at_unix: i64Unix timestamp (seconds) at which this token expires.
verifying_key_bytes: Option<[u8; 32]>Ed25519 verifying key bytes bound to this token (cnf key continuity on refresh).
dpop_jkt: Option<String>RFC 9449 JWK thumbprint. When set, refresh requires a DPoP proof from this exact key; it is carried forward during refresh-token rotation.
client_assertion_jkt: Option<String>RFC 7638 thumbprint of the client-assertion key this session was
issued under (#1146 T3.3). When set, refresh requires a
client_assertion verified by the same key — refresh cannot switch
to another registered key, and removing the key from the client’s
JWKS revokes the session. Carried forward during rotation.
ucan_grant: Option<UcanGrantRefresh>Present only for UCAN-grant refresh tokens (client_id ucan-grant:{sub}).
MAC #547 / B1 (#673): refresh of a UCAN grant is NOT a free re-mint — the
refresh path must re-run the S6 gate chain (evaluate_refresh) against the
grant, because the ceiling may have been amended or revoked since the
access token was minted (ZSP: access is re-evaluated on refresh). That
requires persisting the grant + the requested access so the refresh path
can re-present them. None for every non-UCAN-grant refresh token, which
keeps the generic OAuth 2.1 rotation path unchanged.
session_id: Option<String>OIDC session ID (sid) of the interactive session this refresh token
belongs to. The same session spans every rotation (distinct credential
IDs, one stable sid — v16 §3.3); the refresh path checks it against
the session authority before consuming the single-use token, so a
revoked session cannot refresh. None only on pre-session records.
Implementations§
Source§impl RefreshTokenEntry
impl RefreshTokenEntry
pub fn is_expired(&self) -> bool
Trait Implementations§
Source§impl Clone for RefreshTokenEntry
impl Clone for RefreshTokenEntry
Source§fn clone(&self) -> RefreshTokenEntry
fn clone(&self) -> RefreshTokenEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RefreshTokenEntry
impl Debug for RefreshTokenEntry
Source§impl<'de> Deserialize<'de> for RefreshTokenEntry
impl<'de> Deserialize<'de> for RefreshTokenEntry
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>,
Auto Trait Implementations§
impl Freeze for RefreshTokenEntry
impl RefUnwindSafe for RefreshTokenEntry
impl Send for RefreshTokenEntry
impl Sync for RefreshTokenEntry
impl Unpin for RefreshTokenEntry
impl UnsafeUnpin for RefreshTokenEntry
impl UnwindSafe for RefreshTokenEntry
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request