pub struct ExchangeParams<'a> {
pub subject: &'a NhiClaims,
pub subject_chain: &'a [RevocationIdentity],
pub subject_delegation_depth: usize,
pub target_audience: &'a str,
pub requested_scopes: Option<&'a str>,
pub azp: &'a str,
pub now_s: u64,
pub ttl_s: u64,
pub issuer: &'a str,
pub max_depth: usize,
pub allowed_audiences: &'a [String],
}Expand description
Parameters for building exchanged claims.
Fields§
§subject: &'a NhiClaimsClaims from the validated inbound subject token.
subject_chain: &'a [RevocationIdentity]Verified identities returned by IdentityValidator, leaf first.
subject_delegation_depth: usizeCombined parent-token and actor depth returned by the validator.
target_audience: &'a strTarget backend audience for the exchanged token.
requested_scopes: Option<&'a str>Space-separated requested scopes (None inherits the subject’s scopes).
azp: &'a strAuthorized party identifier (the client requesting the exchange).
now_s: u64Current time in seconds since epoch.
ttl_s: u64TTL in seconds for the exchanged token.
issuer: &'a strIssuer URI for the gateway itself (not the upstream IdP).
max_depth: usizeMaximum allowed delegation depth. The resulting act chain must
not exceed this depth.
allowed_audiences: &'a [String]Backend names that are valid exchange targets. When non-empty, the target audience must appear in this list.
Auto Trait Implementations§
impl<'a> Freeze for ExchangeParams<'a>
impl<'a> RefUnwindSafe for ExchangeParams<'a>
impl<'a> Send for ExchangeParams<'a>
impl<'a> Sync for ExchangeParams<'a>
impl<'a> Unpin for ExchangeParams<'a>
impl<'a> UnsafeUnpin for ExchangeParams<'a>
impl<'a> UnwindSafe for ExchangeParams<'a>
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