pub struct AccountLinkingConfig {
pub enabled: bool,
pub trusted_providers: Vec<String>,
pub allow_different_emails: bool,
pub allow_unlinking_all: bool,
pub update_user_info_on_link: bool,
}Expand description
Settings that control how OAuth accounts are linked to existing users.
Fields§
§enabled: boolEnable account linking (default: true)
trusted_providers: Vec<String>Trusted providers that can auto-link (default: empty = all trusted)
allow_different_emails: boolAllow linking accounts with different emails (default: false) - SECURITY WARNING
allow_unlinking_all: boolAllow unlinking all accounts (default: false)
update_user_info_on_link: boolUpdate user info when a new account is linked (default: false)
Trait Implementations§
Source§impl Clone for AccountLinkingConfig
impl Clone for AccountLinkingConfig
Source§fn clone(&self) -> AccountLinkingConfig
fn clone(&self) -> AccountLinkingConfig
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 AccountLinkingConfig
impl Debug for AccountLinkingConfig
Auto Trait Implementations§
impl Freeze for AccountLinkingConfig
impl RefUnwindSafe for AccountLinkingConfig
impl Send for AccountLinkingConfig
impl Sync for AccountLinkingConfig
impl Unpin for AccountLinkingConfig
impl UnsafeUnpin for AccountLinkingConfig
impl UnwindSafe for AccountLinkingConfig
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