pub struct PropagatedTokenValidationConfig {
pub required_issuers: Vec<String>,
pub allowed_audiences: Vec<String>,
pub required_scopes: Vec<String>,
pub allowed_azp: Vec<String>,
}Expand description
Additional token constraints evaluated before a bearer token may be forwarded.
Fields§
§required_issuers: Vec<String>Allowed issuers for the upstream token source.
allowed_audiences: Vec<String>At least one audience must match when this list is not empty.
required_scopes: Vec<String>Every listed scope must be present when this list is not empty.
allowed_azp: Vec<String>Allowed authorized-party values when this list is not empty.
Implementations§
Source§impl PropagatedTokenValidationConfig
impl PropagatedTokenValidationConfig
Sourcepub fn builder() -> PropagatedTokenValidationConfigBuilder<((), (), (), ())>
pub fn builder() -> PropagatedTokenValidationConfigBuilder<((), (), (), ())>
Create a builder for building PropagatedTokenValidationConfig.
On the builder, call .required_issuers(...)(optional), .allowed_audiences(...)(optional), .required_scopes(...)(optional), .allowed_azp(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PropagatedTokenValidationConfig.
Trait Implementations§
Source§impl Clone for PropagatedTokenValidationConfig
impl Clone for PropagatedTokenValidationConfig
Source§fn clone(&self) -> PropagatedTokenValidationConfig
fn clone(&self) -> PropagatedTokenValidationConfig
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 Default for PropagatedTokenValidationConfig
impl Default for PropagatedTokenValidationConfig
Source§fn default() -> PropagatedTokenValidationConfig
fn default() -> PropagatedTokenValidationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PropagatedTokenValidationConfig
impl<'de> Deserialize<'de> for PropagatedTokenValidationConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PropagatedTokenValidationConfig
impl PartialEq for PropagatedTokenValidationConfig
Source§fn eq(&self, other: &PropagatedTokenValidationConfig) -> bool
fn eq(&self, other: &PropagatedTokenValidationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PropagatedTokenValidationConfig
impl StructuralPartialEq for PropagatedTokenValidationConfig
Auto Trait Implementations§
impl Freeze for PropagatedTokenValidationConfig
impl RefUnwindSafe for PropagatedTokenValidationConfig
impl Send for PropagatedTokenValidationConfig
impl Sync for PropagatedTokenValidationConfig
impl Unpin for PropagatedTokenValidationConfig
impl UnsafeUnpin for PropagatedTokenValidationConfig
impl UnwindSafe for PropagatedTokenValidationConfig
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
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>
Converts
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>
Converts
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