pub struct BasicAuthContext<Creds>{
pub creds: Arc<BasicAuthCredsConfig<Creds>>,
pub zones: Vec<BasicAuthZone>,
pub realm: String,
pub post_auth_redirect: Arc<RedirectTargetConfig>,
pub real_ip_access: Option<Arc<RealIpAccessConfig>>,
/* private fields */
}Fields§
§creds: Arc<BasicAuthCredsConfig<Creds>>§zones: Vec<BasicAuthZone>§realm: String§post_auth_redirect: Arc<RedirectTargetConfig>§real_ip_access: Option<Arc<RealIpAccessConfig>>Implementations§
Source§impl<Creds> BasicAuthContext<Creds>
impl<Creds> BasicAuthContext<Creds>
pub fn from_config( config: BasicAuthContextConfig<Creds>, ) -> BasicAuthContextResult<Self>
pub fn ensure_real_ip_allowed( &self, resolved_client_ip: &ResolvedClientIp, ) -> BasicAuthContextResult<()>
pub fn resolve_post_auth_redirect_uri( &self, requested_post_auth_redirect_uri: Option<&str>, ) -> BasicAuthContextResult<WebRoute>
pub fn zone_for_request_path( &self, request_path: &str, ) -> Option<&BasicAuthZone>
Trait Implementations§
Source§impl<Creds> Clone for BasicAuthContext<Creds>
impl<Creds> Clone for BasicAuthContext<Creds>
Source§fn clone(&self) -> BasicAuthContext<Creds>
fn clone(&self) -> BasicAuthContext<Creds>
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<Creds> Debug for BasicAuthContext<Creds>
impl<Creds> Debug for BasicAuthContext<Creds>
Auto Trait Implementations§
impl<Creds> Freeze for BasicAuthContext<Creds>
impl<Creds> RefUnwindSafe for BasicAuthContext<Creds>where
Creds: RefUnwindSafe,
impl<Creds> Send for BasicAuthContext<Creds>
impl<Creds> Sync for BasicAuthContext<Creds>
impl<Creds> Unpin for BasicAuthContext<Creds>
impl<Creds> UnsafeUnpin for BasicAuthContext<Creds>
impl<Creds> UnwindSafe for BasicAuthContext<Creds>where
Creds: RefUnwindSafe,
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