pub struct PendingAuthCode {Show 13 fields
pub code: String,
pub client_id: String,
pub redirect_uri: String,
pub code_challenge: String,
pub scopes: Vec<String>,
pub resource: Option<String>,
pub oidc_nonce: Option<String>,
pub created_at: Instant,
pub expires_at: Instant,
pub username: String,
pub verifying_key: Option<VerifyingKey>,
pub dpop_jkt: Option<String>,
pub client_assertion_jkt: Option<String>,
}Expand description
A pending authorization code awaiting token exchange.
Fields§
§code: String§client_id: String§redirect_uri: String§code_challenge: String§scopes: Vec<String>§resource: Option<String>RFC 8707 resource indicator (the audience for the token)
oidc_nonce: Option<String>OIDC nonce — echoed into the id_token when scope includes “openid”.
created_at: Instant§expires_at: Instant§username: StringAuthenticated username from Ed25519 challenge-response on the consent page.
Used as the JWT sub claim for the issued token.
verifying_key: Option<VerifyingKey>Ed25519 verifying key verified during challenge-response.
Included in the JWT pub_key claim to bind the user’s key identity.
dpop_jkt: Option<String>DPoP key thumbprint bound at PAR (#1113 rev2 finding 3). When the atproto profile is active, the token endpoint must receive a DPoP proof from the same key.
client_assertion_jkt: Option<String>RFC 7638 thumbprint of the client-assertion key verified at PAR
(#1146 T3.3). When set, the token endpoint must receive a
client_assertion signed by the same key, and the binding is
carried into the issued refresh token.
Implementations§
Source§impl PendingAuthCode
impl PendingAuthCode
pub fn is_expired(&self) -> bool
Trait Implementations§
Source§impl Clone for PendingAuthCode
impl Clone for PendingAuthCode
Source§fn clone(&self) -> PendingAuthCode
fn clone(&self) -> PendingAuthCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PendingAuthCode
impl RefUnwindSafe for PendingAuthCode
impl Send for PendingAuthCode
impl Sync for PendingAuthCode
impl Unpin for PendingAuthCode
impl UnsafeUnpin for PendingAuthCode
impl UnwindSafe for PendingAuthCode
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