Who said it, and who is it for?
03Issuer, subject, and audience describe different roles in a claim.
The billing service cannot accept this token under the illustrated audience policy.
Key idea: A token for one service is not automatically valid at another.
Rules & examples
A token for one service is not automatically valid at another.
- When aud is present, a processor that is not an intended audience must reject the JWT.
- aud can be a single string or an array of strings.
- sub must be locally unique within its issuer or globally unique.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.