pub struct StateEncryptionConfig {
pub enabled: bool,
pub algorithm: EncryptionAlgorithm,
pub key_source: KeySource,
pub key_env: Option<String>,
}Expand description
AEAD encryption for the OAuth state parameter and PKCE code challenges.
Fields§
§enabled: boolEnable state encryption.
algorithm: EncryptionAlgorithmAEAD algorithm to use.
key_source: KeySourceWhere to source the encryption key.
key_env: Option<String>Environment variable holding the 32-byte hex-encoded key.
Trait Implementations§
Source§impl Clone for StateEncryptionConfig
impl Clone for StateEncryptionConfig
Source§impl Debug for StateEncryptionConfig
impl Debug for StateEncryptionConfig
Source§impl Default for StateEncryptionConfig
impl Default for StateEncryptionConfig
Source§impl<'de> Deserialize<'de> for StateEncryptionConfigwhere
StateEncryptionConfig: Default,
impl<'de> Deserialize<'de> for StateEncryptionConfigwhere
StateEncryptionConfig: Default,
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
impl Eq for StateEncryptionConfig
Source§impl PartialEq for StateEncryptionConfig
impl PartialEq for StateEncryptionConfig
Source§impl Serialize for StateEncryptionConfig
impl Serialize for StateEncryptionConfig
impl StructuralPartialEq for StateEncryptionConfig
Auto Trait Implementations§
impl Freeze for StateEncryptionConfig
impl RefUnwindSafe for StateEncryptionConfig
impl Send for StateEncryptionConfig
impl Sync for StateEncryptionConfig
impl Unpin for StateEncryptionConfig
impl UnsafeUnpin for StateEncryptionConfig
impl UnwindSafe for StateEncryptionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.