pub struct PendingAuthRequest {
pub code_verifier: String,
pub nonce: String,
pub after_login: RelativePath,
pub created_at: OffsetDateTime,
}Expand description
Stored state for an in-flight OIDC authorization request.
Created by [super::RelyingParty::start] and persisted via
StateStore::put under the State key. Atomically consumed by
StateStore::take at callback. Holds the data the callback needs
to complete: the PKCE verifier (round-trip with PAS), the nonce
(matched against id_token), and the post-login redirect target.
code_verifier and nonce are stored as plain strings; the engine
Nonce wrapper is constructed only at verify time. created_at
timestamps the put side; substrate-enforced TTL is the actual
expiry (this field is for audit / observability).
Fields§
§code_verifier: String§nonce: String§after_login: RelativePath§created_at: OffsetDateTimeTrait Implementations§
Source§impl Clone for PendingAuthRequest
impl Clone for PendingAuthRequest
Source§fn clone(&self) -> PendingAuthRequest
fn clone(&self) -> PendingAuthRequest
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 PendingAuthRequest
impl Debug for PendingAuthRequest
Source§impl<'de> Deserialize<'de> for PendingAuthRequest
impl<'de> Deserialize<'de> for PendingAuthRequest
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 PendingAuthRequest
impl RefUnwindSafe for PendingAuthRequest
impl Send for PendingAuthRequest
impl Sync for PendingAuthRequest
impl Unpin for PendingAuthRequest
impl UnsafeUnpin for PendingAuthRequest
impl UnwindSafe for PendingAuthRequest
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