pub struct AccountLinkingConfig {
pub enabled: bool,
pub trusted_providers: Vec<String>,
pub trusted_providers_resolver: Option<Arc<dyn TrustedProvidersResolver>>,
pub allow_different_emails: bool,
pub allow_unlinking_all: bool,
pub disable_implicit_linking: bool,
pub require_local_email_verified: 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>Providers trusted for linking even when their email is unverified. Empty does not bypass the provider email-verification requirement.
trusted_providers_resolver: Option<Arc<dyn TrustedProvidersResolver>>Optional async policy replacing the static list at init and per request.
allow_different_emails: boolAllow linking accounts with different emails (default: false) - SECURITY WARNING
allow_unlinking_all: boolAllow unlinking all accounts (default: false)
disable_implicit_linking: boolDisable implicit linking during sign-in; only explicit link-social may link.
require_local_email_verified: boolRequire the existing local account’s email to be verified before a social account may be linked to it implicitly (default: true).
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§impl Debug for AccountLinkingConfig
impl Debug for AccountLinkingConfig
Auto Trait Implementations§
impl !RefUnwindSafe for AccountLinkingConfig
impl !UnwindSafe for AccountLinkingConfig
impl Freeze for AccountLinkingConfig
impl Send for AccountLinkingConfig
impl Sync for AccountLinkingConfig
impl Unpin for AccountLinkingConfig
impl UnsafeUnpin 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