pub struct AuthConfig {
pub password: PasswordConfig,
pub mfa: MfaConfig,
pub hmac_token: HmacTokenConfig,
pub signed_token: SignedTokenConfig,
pub refresh_token: RefreshTokenConfig,
pub access_token: AccessTokenConfig,
pub cookies_enabled: bool,
pub client_hash: ClientPasswordHash,
pub invite: Option<InviteConfig>,
}Expand description
Auth configuration.
Fields§
§password: PasswordConfigConfiguration for passwords.
mfa: MfaConfigMFA configuration for auth.
hmac_token: HmacTokenConfigConfigures all hmac tokens
signed_token: SignedTokenConfigConfigures all signed tokens
refresh_token: RefreshTokenConfigConfiguration for refresh tokens.
access_token: AccessTokenConfigConfiguration for access tokens.
Determines whether cookies should be used for browser based template navigation, and form submissions
Note: when set to false, protected templates, and actions triggered
by form submission will fail. Form based registration and login will
necessarily be disabled, also.
!! Important: when set to true, tokens retrieved for js and noscript flavors
!! do not support client signatures, because http-only cookies cannot be signed by
!! the client.
client_hash: ClientPasswordHashwhat algorithm is used to hash passwords and MFA codes
invite: Option<InviteConfig>invite config
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
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 AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§fn default() -> AuthConfig
fn default() -> AuthConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnwindSafe for AuthConfig
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