pub struct HttpAuthConfig {
pub supported_methods: Vec<HttpAuthMethod>,
pub require_https: bool,
pub allow_query_auth: bool,
pub custom_auth_headers: Vec<String>,
pub enable_cors_auth: bool,
pub trusted_proxies: Vec<String>,
}
Expand description
Configuration for HTTP authentication
Fields§
§supported_methods: Vec<HttpAuthMethod>
Supported authentication methods
require_https: bool
Require HTTPS for authentication
allow_query_auth: bool
Allow authentication in query parameters
custom_auth_headers: Vec<String>
Custom header names for authentication
enable_cors_auth: bool
Enable CORS preflight authentication
trusted_proxies: Vec<String>
Trusted proxy IPs for X-Forwarded-For
Trait Implementations§
Source§impl Clone for HttpAuthConfig
impl Clone for HttpAuthConfig
Source§fn clone(&self) -> HttpAuthConfig
fn clone(&self) -> HttpAuthConfig
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 HttpAuthConfig
impl Debug for HttpAuthConfig
Auto Trait Implementations§
impl Freeze for HttpAuthConfig
impl RefUnwindSafe for HttpAuthConfig
impl Send for HttpAuthConfig
impl Sync for HttpAuthConfig
impl Unpin for HttpAuthConfig
impl UnwindSafe for HttpAuthConfig
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