Join our Newsletter — 33% off our NHI Course

Could refresh token rotation fail without reuse detection?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19717
Topic starter  

TL;DR: 2.0 token lifecycle management shows that weak refresh handling can leave stolen credentials usable far beyond the intended session, in Ory's case work on OAuth 2.0 token management. Server-side revocation and family invalidation have to do the real work when refresh tokens are compromised.

Editorial analysis by NHI Mgmt Group, based on content published by Ory: “OAuth 2.0 Token Lifecycle Management Explained”.

Key questions

Q: Why does logout fail if revocation is only done on the client?

A: Client-side deletion removes the local copy of the token, but it does not remove the token's authority at the authorization server.

Q: How should teams choose access-token lifetimes for production systems?

A: Teams should set access-token lifetimes as short as the client can safely tolerate, then make refresh and revocation controls compensate for the shorter session window.

Q: What breaks when refresh token rotation does not include reuse detection?

A: Rotation without reuse detection only shortens exposure on paper.

Practitioner guidance

  • Enforce short access-token lifetimes Set access tokens to the shortest lifetime your client experience can tolerate, then validate that no caching layer serves them beyond the exp claim.
  • Rotate refresh tokens on every use Make refresh tokens single-use and enable reuse detection so that replay triggers invalidation of the entire token family.
  • Implement RFC 7009 revocation Require server-side revocation for logout, password change, suspension, and anomaly response, and confirm the client clears local storage after revocation.

Bottom line: OAuth token security depends on governing the full lifecycle, not just issuing and validating credentials.

Glossary terms: Refresh token rotation, Token Family Invalidation, OAuth Revocation Endpoint, Exposed Access Token

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 day ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20207
 

OAuth token lifecycle is not a single control, it is a trust chain. The article correctly frames issuance, validation, refresh, expiration, and revocation as one security surface rather than separate developer tasks. That framing matters because the weakest stage defines the real lifetime of access. For practitioners, the governance question is whether the chain is enforced end to end or broken into implementation choices that drift by application.

A few things that frame the scale:

  • 91.6% of secrets remain valid five days after the targeted organisation is notified, showing a critical gap in remediation procedures, according to the Ultimate Guide to NHIs.
  • 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: What is the difference between opaque refresh tokens and JWT access tokens?

A: Opaque refresh tokens are designed for revocability because the server can invalidate them centrally, while JWT access tokens are designed for stateless validation at the resource server. Most production systems use both because access tokens need fast validation and refresh tokens need immediate server-side control.

👉 Read our full editorial: OAuth token lifecycle management and the hidden risk in refresh flows



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.