Skip to main content

BasicAuthContextConfigSource

Trait BasicAuthContextConfigSource 

Source
pub trait BasicAuthContextConfigSource<Creds>
where Creds: BasicAuthCred + Serialize + for<'a> Deserialize<'a>,
{ // Required methods fn creds_config(&self) -> &BasicAuthCredsConfig<Creds>; fn real_ip_access_config(&self) -> Option<&RealIpAccessConfig>; fn zones_config(&self) -> &[BasicAuthZoneConfig]; fn realm_config(&self) -> Option<&str>; fn post_auth_redirect_config(&self) -> &RedirectTargetConfig; // Provided methods fn resolve_creds_config(&self) -> BasicAuthCredsConfig<Creds> where Creds: Clone { ... } fn resolve_real_ip_access_config( &self, ) -> BasicAuthContextResult<Option<RealIpAccessConfig>> { ... } fn resolve_realm_config(&self) -> String { ... } fn resolve_post_auth_redirect_config( &self, ) -> BasicAuthContextResult<RedirectTargetConfig> { ... } fn resolve_zones_config( &self, default_realm: &str, default_post_auth_redirect: &RedirectTargetConfig, ) -> BasicAuthContextResult<Vec<ResolvedBasicAuthZoneConfig>> { ... } fn resolve_all( &self, ) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError> where Creds: Clone { ... } fn resolve_all_with_validator<V>( &self, validator: &V, ) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError> where Creds: Clone, V: BasicAuthContextConfigValidator<Creds> { ... } }

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Creds> BasicAuthContextConfigSource<Creds> for BasicAuthContextConfig<Creds>
where Creds: BasicAuthCred + Serialize + for<'a> Deserialize<'a>,