pub struct HTTPRouteRulesFiltersExternalAuthHttp {
pub allowed_headers: Option<Vec<String>>,
pub allowed_response_headers: Option<Vec<String>>,
pub path: Option<String>,
}Expand description
HTTPAuthConfig contains configuration for communication with HTTP-speaking backends.
If unset, implementations must assume the default behavior for each included field is intended.
Fields§
§allowed_headers: Option<Vec<String>>AllowedRequestHeaders specifies what additional headers from the client request will be sent to the authorization server.
The following headers must always be sent to the authorization server, regardless of this setting:
HostMethodPathContent-LengthAuthorization
If this list is empty, then only those headers must be sent.
Note that Content-Length has a special behavior, in that the length
sent must be correct for the actual request to the external authorization
server - that is, it must reflect the actual number of bytes sent in the
body of the request to the authorization server.
So if the forwardBody stanza is unset, or forwardBody.maxSize is set
to 0, then Content-Length must be 0. If forwardBody.maxSize is set
to anything other than 0, then the Content-Length of the authorization
request must be set to the actual number of bytes forwarded.
allowed_response_headers: Option<Vec<String>>AllowedResponseHeaders specifies what headers from the authorization response will be copied into the request to the backend.
If this list is empty, then all headers from the authorization server except Authority or Host must be copied.
path: Option<String>Path sets the prefix that paths from the client request will have added when forwarded to the authorization server.
When empty or unspecified, no prefix is added.
Valid values are the same as the “value” regex for path values in the match
stanza, and the validation regex will screen out invalid paths in the same way.
Even with the validation, implementations MUST sanitize this input before using it
directly.
Trait Implementations§
Source§impl Clone for HTTPRouteRulesFiltersExternalAuthHttp
impl Clone for HTTPRouteRulesFiltersExternalAuthHttp
Source§fn clone(&self) -> HTTPRouteRulesFiltersExternalAuthHttp
fn clone(&self) -> HTTPRouteRulesFiltersExternalAuthHttp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for HTTPRouteRulesFiltersExternalAuthHttp
impl Default for HTTPRouteRulesFiltersExternalAuthHttp
Source§fn default() -> HTTPRouteRulesFiltersExternalAuthHttp
fn default() -> HTTPRouteRulesFiltersExternalAuthHttp
Source§impl<'de> Deserialize<'de> for HTTPRouteRulesFiltersExternalAuthHttp
impl<'de> Deserialize<'de> for HTTPRouteRulesFiltersExternalAuthHttp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for HTTPRouteRulesFiltersExternalAuthHttp
impl JsonSchema for HTTPRouteRulesFiltersExternalAuthHttp
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for HTTPRouteRulesFiltersExternalAuthHttp
impl PartialEq for HTTPRouteRulesFiltersExternalAuthHttp
Source§fn eq(&self, other: &HTTPRouteRulesFiltersExternalAuthHttp) -> bool
fn eq(&self, other: &HTTPRouteRulesFiltersExternalAuthHttp) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HTTPRouteRulesFiltersExternalAuthHttp
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesFiltersExternalAuthHttp
impl RefUnwindSafe for HTTPRouteRulesFiltersExternalAuthHttp
impl Send for HTTPRouteRulesFiltersExternalAuthHttp
impl Sync for HTTPRouteRulesFiltersExternalAuthHttp
impl Unpin for HTTPRouteRulesFiltersExternalAuthHttp
impl UnwindSafe for HTTPRouteRulesFiltersExternalAuthHttp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more