pub struct PersesConfigSecurityAuthentication {
pub access_token_ttl: Option<String>,
pub disable_sign_up: bool,
pub providers: PersesConfigSecurityAuthenticationProviders,
pub refresh_token_ttl: Option<String>,
}Expand description
Authentication contains configuration regarding management of access/refresh token
Fields§
§access_token_ttl: Option<String>AccessTokenTTL is the time to live of the access token. By default, it is 15 minutes.
disable_sign_up: boolDisableSignUp deactivates the Sign-up page in the UI. It also disables the endpoint that gives the possibility to create a user.
providers: PersesConfigSecurityAuthenticationProvidersProviders configure the different authentication providers
refresh_token_ttl: Option<String>RefreshTokenTTL is the time to live of the refresh token. The refresh token is used to get a new access token when it is expired. By default, it is 24 hours.
Trait Implementations§
Source§impl Clone for PersesConfigSecurityAuthentication
impl Clone for PersesConfigSecurityAuthentication
Source§fn clone(&self) -> PersesConfigSecurityAuthentication
fn clone(&self) -> PersesConfigSecurityAuthentication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PersesConfigSecurityAuthentication
impl Default for PersesConfigSecurityAuthentication
Source§fn default() -> PersesConfigSecurityAuthentication
fn default() -> PersesConfigSecurityAuthentication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersesConfigSecurityAuthentication
impl<'de> Deserialize<'de> for PersesConfigSecurityAuthentication
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
Source§impl PartialEq for PersesConfigSecurityAuthentication
impl PartialEq for PersesConfigSecurityAuthentication
Source§fn eq(&self, other: &PersesConfigSecurityAuthentication) -> bool
fn eq(&self, other: &PersesConfigSecurityAuthentication) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersesConfigSecurityAuthentication
Auto Trait Implementations§
impl Freeze for PersesConfigSecurityAuthentication
impl RefUnwindSafe for PersesConfigSecurityAuthentication
impl Send for PersesConfigSecurityAuthentication
impl Sync for PersesConfigSecurityAuthentication
impl Unpin for PersesConfigSecurityAuthentication
impl UnsafeUnpin for PersesConfigSecurityAuthentication
impl UnwindSafe for PersesConfigSecurityAuthentication
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