pub struct OAuthRequest {
pub oauth_state: String,
pub issuer: String,
pub did: String,
pub nonce: String,
pub pkce_verifier: String,
pub signing_public_key: String,
pub dpop_private_key: String,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}
Expand description
OAuth request tracking information for ongoing authorization flows.
This struct contains all the necessary information to track and complete an OAuth authorization request, including security parameters and timing.
Fields§
§oauth_state: String
The OAuth state parameter used to prevent CSRF attacks.
issuer: String
The authorization server issuer identifier.
did: String
The DID (Decentralized Identifier) of the user.
nonce: String
The nonce value for additional security.
pkce_verifier: String
The PKCE code verifier for this authorization request.
signing_public_key: String
The public key used for signing (serialized).
dpop_private_key: String
The DPoP private key (serialized).
created_at: DateTime<Utc>
When this OAuth request was created.
expires_at: DateTime<Utc>
When this OAuth request expires.
Trait Implementations§
Source§impl Clone for OAuthRequest
impl Clone for OAuthRequest
Source§fn clone(&self) -> OAuthRequest
fn clone(&self) -> OAuthRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 OAuthRequest
impl Debug for OAuthRequest
Source§impl PartialEq for OAuthRequest
impl PartialEq for OAuthRequest
impl StructuralPartialEq for OAuthRequest
Auto Trait Implementations§
impl Freeze for OAuthRequest
impl RefUnwindSafe for OAuthRequest
impl Send for OAuthRequest
impl Sync for OAuthRequest
impl Unpin for OAuthRequest
impl UnwindSafe for OAuthRequest
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