pub struct MiddlewareBasicAuth {
pub header_field: Option<String>,
pub realm: Option<String>,
pub remove_header: Option<bool>,
pub secret: Option<String>,
}Expand description
BasicAuth holds the basic auth middleware configuration. This middleware restricts access to your services to known users. More info: https://doc.traefik.io/traefik/v3.6/reference/routing-configuration/http/middlewares/basicauth/
Fields§
§header_field: Option<String>HeaderField defines a header field to store the authenticated user. More info: https://doc.traefik.io/traefik/v3.6/reference/routing-configuration/http/middlewares/basicauth/#headerfield
realm: Option<String>Realm allows the protected resources on a server to be partitioned into a set of protection spaces, each with its own authentication scheme. Default: traefik.
remove_header: Option<bool>RemoveHeader sets the removeHeader option to true to remove the authorization header before forwarding the request to your service. Default: false.
secret: Option<String>Secret is the name of the referenced Kubernetes Secret containing user credentials.
Trait Implementations§
Source§impl Clone for MiddlewareBasicAuth
impl Clone for MiddlewareBasicAuth
Source§fn clone(&self) -> MiddlewareBasicAuth
fn clone(&self) -> MiddlewareBasicAuth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more