pub struct OAuth2State {
pub state: String,
pub nonce: Option<String>,
pub code_verifier: Option<String>,
pub success_url: Option<String>,
pub provider_id: String,
pub expires_at: i64,
}Expand description
Intermediate state for OAuth2/OIDC flows, stored in an encrypted cookie.
Fields§
§state: StringCSRF protection state parameter
nonce: Option<String>OIDC nonce to prevent replay attacks
code_verifier: Option<String>PKCE code verifier
success_url: Option<String>Optional redirect URL to go back to after flow completion
provider_id: StringThe provider identifier
expires_at: i64Expiration timestamp (seconds since epoch)
Implementations§
Trait Implementations§
Source§impl Clone for OAuth2State
impl Clone for OAuth2State
Source§fn clone(&self) -> OAuth2State
fn clone(&self) -> OAuth2State
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 OAuth2State
impl Debug for OAuth2State
Source§impl<'de> Deserialize<'de> for OAuth2State
impl<'de> Deserialize<'de> for OAuth2State
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 OAuth2State
impl RefUnwindSafe for OAuth2State
impl Send for OAuth2State
impl Sync for OAuth2State
impl Unpin for OAuth2State
impl UnsafeUnpin for OAuth2State
impl UnwindSafe for OAuth2State
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