pub struct OpenAuthOptions {Show 18 fields
pub base_url: Option<String>,
pub base_path: Option<String>,
pub secret: Option<String>,
pub secrets: Vec<SecretEntry>,
pub trusted_origins: TrustedOriginOptions,
pub disabled_paths: Vec<String>,
pub session: SessionOptions,
pub user: UserOptions,
pub email_verification: EmailVerificationOptions,
pub password: PasswordOptions,
pub account: AccountOptions,
pub advanced: AdvancedOptions,
pub rate_limit: RateLimitOptions,
pub plugins: Vec<AuthPlugin>,
pub social_providers: Vec<Arc<dyn SocialOAuthProvider>>,
pub production: bool,
pub telemetry: TelemetryOptions,
pub experimental: ExperimentalOptions,
}Expand description
Top-level OpenAuth configuration.
Fields§
§base_url: Option<String>§base_path: Option<String>§secret: Option<String>§secrets: Vec<SecretEntry>§trusted_origins: TrustedOriginOptions§disabled_paths: Vec<String>§session: SessionOptions§user: UserOptions§email_verification: EmailVerificationOptions§password: PasswordOptions§account: AccountOptions§advanced: AdvancedOptions§rate_limit: RateLimitOptions§plugins: Vec<AuthPlugin>§production: bool§telemetry: TelemetryOptions§experimental: ExperimentalOptionsImplementations§
Source§impl OpenAuthOptions
impl OpenAuthOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn base_path(self, base_path: impl Into<String>) -> Self
pub fn secret(self, secret: impl Into<String>) -> Self
pub fn secrets(self, secrets: Vec<SecretEntry>) -> Self
pub fn trusted_origins(self, trusted_origins: TrustedOriginOptions) -> Self
pub fn disabled_path(self, path: impl Into<String>) -> Self
pub fn disabled_paths<I, S>(self, paths: I) -> Self
pub fn session(self, session: SessionOptions) -> Self
pub fn user(self, user: UserOptions) -> Self
pub fn email_verification( self, email_verification: EmailVerificationOptions, ) -> Self
pub fn password(self, password: PasswordOptions) -> Self
pub fn account(self, account: AccountOptions) -> Self
pub fn advanced(self, advanced: AdvancedOptions) -> Self
pub fn rate_limit(self, rate_limit: RateLimitOptions) -> Self
pub fn plugin(self, plugin: AuthPlugin) -> Self
pub fn plugins(self, plugins: Vec<AuthPlugin>) -> Self
pub fn production(self, production: bool) -> Self
pub fn telemetry(self, telemetry: TelemetryOptions) -> Self
pub fn experimental(self, experimental: ExperimentalOptions) -> Self
Trait Implementations§
Source§impl Clone for OpenAuthOptions
impl Clone for OpenAuthOptions
Source§fn clone(&self) -> OpenAuthOptions
fn clone(&self) -> OpenAuthOptions
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 Debug for OpenAuthOptions
impl Debug for OpenAuthOptions
Source§impl Default for OpenAuthOptions
impl Default for OpenAuthOptions
Source§fn default() -> OpenAuthOptions
fn default() -> OpenAuthOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenAuthOptions
impl !RefUnwindSafe for OpenAuthOptions
impl Send for OpenAuthOptions
impl Sync for OpenAuthOptions
impl Unpin for OpenAuthOptions
impl UnsafeUnpin for OpenAuthOptions
impl !UnwindSafe for OpenAuthOptions
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