SECURITY ENGINEERING, IN PRACTICE.ANALYSIS / TECHNICAL NOTES / FIELD NOTES
Packet Notes.

Clear thinking on software,
infrastructure and security.

Technical note

An access token needs a destination

Token acceptance should answer where a credential is intended to work.

A signature is one check

A token can have a valid signature and still be inappropriate for the service receiving it. Issuer, audience, lifetime and the authorization represented by the token belong in the acceptance decision. Treating all tokens from a familiar issuer as interchangeable widens the boundary between services.

RFC 9700 discusses audience restriction and other OAuth security practices. The practical question for a platform team is which resource server is expected to accept a given token, and how that expectation is enforced.

Keep the inventory concrete

We suggest a table with one row per token-consuming service: accepted issuer, intended audience, permission interpretation and rejection owner. Avoid entries such as “internal token” that describe a deployment environment instead of an acceptance rule.

Include migration periods. If old and new audiences are both accepted temporarily, the exception needs an owner and an end condition. Temporary compatibility is otherwise difficult to distinguish from an undocumented permanent trust relationship.

Review actual consumers

The gateway may validate a token differently from a downstream service. Record which component establishes each property and how that decision is conveyed. A service reached through a second route should not accidentally lose the assumptions on which its authorization logic depends.

Source & further reading

IETF RFC 9700 · OAuth 2.0 Security BCP ↗