pub struct OAuthConfig {
pub providers: HashMap<String, OAuthProvider>,
pub skip_state_cookie_check: bool,
pub store_state_strategy: OAuthStateStrategy,
}Expand description
Configuration for the OAuth plugin, containing all registered providers.
Fields§
§providers: HashMap<String, OAuthProvider>Skip state cookie verification (default: false) - SECURITY WARNING
store_state_strategy: OAuthStateStrategyWhere to store OAuth state: Cookie (stateless) or Database (default: Cookie)
Trait Implementations§
Source§impl Clone for OAuthConfig
impl Clone for OAuthConfig
Source§fn clone(&self) -> OAuthConfig
fn clone(&self) -> OAuthConfig
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 OAuthConfig
impl Debug for OAuthConfig
Source§impl Default for OAuthConfig
impl Default for OAuthConfig
Source§fn default() -> OAuthConfig
fn default() -> OAuthConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuthConfig
impl RefUnwindSafe for OAuthConfig
impl Send for OAuthConfig
impl Sync for OAuthConfig
impl Unpin for OAuthConfig
impl UnsafeUnpin for OAuthConfig
impl UnwindSafe for OAuthConfig
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