Skip to main content

build_exchanged_claims_with_actor

Function build_exchanged_claims_with_actor 

Source
pub fn build_exchanged_claims_with_actor(
    params: &ExchangeParams<'_>,
    actor: Option<&ExchangeActor<'_>>,
) -> Result<ExchangedClaims, ExchangeError>
Expand description

build_exchanged_claims with an optional RFC 8693 actor token. The actor must be an undelegated token; its scopes further narrow the result, its agent becomes act.sub and azp, the subject’s agent becomes act.act.sub, and the delegation depth grows by two.