pub enum OAuthStateStoreStrategy {
Cookie,
Database,
}Expand description
Where the OAuth state (and the PKCE verifier / OIDC nonce it carries) is
persisted between the authorization redirect and the callback.
Both strategies enforce single-use semantics: the state is consumed on the
first successful callback, so a captured value cannot be replayed within its
TTL. Cookie keeps the payload in an encrypted, client-held value and binds
it to a short server-side single-use marker; Database stores the full
payload server-side and deletes it on first use.
Variants§
Trait Implementations§
Source§impl Clone for OAuthStateStoreStrategy
impl Clone for OAuthStateStoreStrategy
Source§fn clone(&self) -> OAuthStateStoreStrategy
fn clone(&self) -> OAuthStateStoreStrategy
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 moreimpl Copy for OAuthStateStoreStrategy
Source§impl Debug for OAuthStateStoreStrategy
impl Debug for OAuthStateStoreStrategy
Source§impl Default for OAuthStateStoreStrategy
impl Default for OAuthStateStoreStrategy
Source§fn default() -> OAuthStateStoreStrategy
fn default() -> OAuthStateStoreStrategy
Returns the “default value” for a type. Read more
impl Eq for OAuthStateStoreStrategy
Source§impl PartialEq for OAuthStateStoreStrategy
impl PartialEq for OAuthStateStoreStrategy
Source§fn eq(&self, other: &OAuthStateStoreStrategy) -> bool
fn eq(&self, other: &OAuthStateStoreStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OAuthStateStoreStrategy
Auto Trait Implementations§
impl Freeze for OAuthStateStoreStrategy
impl RefUnwindSafe for OAuthStateStoreStrategy
impl Send for OAuthStateStoreStrategy
impl Sync for OAuthStateStoreStrategy
impl Unpin for OAuthStateStoreStrategy
impl UnsafeUnpin for OAuthStateStoreStrategy
impl UnwindSafe for OAuthStateStoreStrategy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.