Expand description
The client an ID token was issued to, from its aud and azp claims: the one rule that
the server, the owner’s client and the CLI apply (OpenID Connect Core 1.0, section
3.1.3.7, items 3 to 5). It lives here because this is the only crate both sides link.
audis a string or an array of strings; anything else is refused.- The client id must be a member of
audand be accepted. - When
audhas more than one member,azpmust be present. - When
azpis present, whateveraudholds, it is the client id: it must be a member ofaudand be accepted. When several members ofaudare accepted,azpdecides.
The other members of aud are not checked. With azp equal to the client id, the issuer
issued the token to that client; an issuer such as Zitadel lists every application of a
project in aud. Without the azp rule, a token minted for another application of the
same project, which also holds this client id in aud, would pass.
Enums§
- Claim
- An
audorazpclaim as the caller read it from the token’s JSON.
Functions§
- issued_
to - The client id the token was issued to, when
acceptedtakes it;Nonerefuses the token.