pub struct TokenExchangePolicy {
pub allowed_subject_token_types: Vec<TokenType>,
pub allowed_actor_token_types: Vec<TokenType>,
pub allowed_scenarios: Vec<ExchangeScenario>,
pub max_token_lifetime: Duration,
pub require_actor_for_delegation: bool,
pub allowed_audiences: Vec<String>,
pub scope_mapping: HashMap<String, Vec<String>>,
}Expand description
Token exchange policy
Fields§
§allowed_subject_token_types: Vec<TokenType>Allowed subject token types
allowed_actor_token_types: Vec<TokenType>Allowed actor token types
allowed_scenarios: Vec<ExchangeScenario>Allowed token exchange scenarios
max_token_lifetime: DurationMaximum token lifetime for exchanged tokens
require_actor_for_delegation: boolWhether to require actor tokens for delegation
allowed_audiences: Vec<String>Allowed audience values
scope_mapping: HashMap<String, Vec<String>>Scope mapping rules
Trait Implementations§
Source§impl Clone for TokenExchangePolicy
impl Clone for TokenExchangePolicy
Source§fn clone(&self) -> TokenExchangePolicy
fn clone(&self) -> TokenExchangePolicy
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 Debug for TokenExchangePolicy
impl Debug for TokenExchangePolicy
Auto Trait Implementations§
impl Freeze for TokenExchangePolicy
impl RefUnwindSafe for TokenExchangePolicy
impl Send for TokenExchangePolicy
impl Sync for TokenExchangePolicy
impl Unpin for TokenExchangePolicy
impl UnwindSafe for TokenExchangePolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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