Visual RFC.
ALL RFCs / RFC 8725
Read the RFC ↗
RFC 8725 / MECHANISMS

Different purposes need different rules

05

Token kinds sharing an ecosystem must not be interchangeable.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

RFC 8725 · § 3.12EXAMPLE
3 / 3
Different purposes need different rulesToken kinds sharing an ecosystem must not be interchangeable. Current state: Profile mismatch.Different purposes need different rulesexpected: access tokenrequired claims + audiencereceived: other kindvalid signaturewrong profilepurpose mismatchA valid signature is not permission to interchange token kinds.
03
Profile mismatch

Reject rather than treating any valid JWT as an authorization token.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Use explicit typing for new JWT applications when appropriate.

  • Use explicit typing for new JWT applications when appropriate.
  • Apply mutually exclusive validation rules to different JWT kinds.
  • Separate required claims, keys, issuers, audiences, or types as appropriate.
DETAILS

The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Do not let alg choose the policy
  2. A password is a weak MAC key
  3. Nested tokens need every check
  4. Bind issuer and audience
  5. Different purposes need different rules

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗