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.

RFC 8725 · § 3.12EXAMPLE
3 / 3
03
Profile mismatch

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

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.

Key idea: Use explicit typing for new JWT applications when appropriate.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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.

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

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 8725

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 ↗