Meaning
Authentication cycles generate a unique replacement credential each time a long term session is renewed. Through refresh token rotation, the security server invalidates the old refresh token whenever it issues a new one. This ensures that a single token can never be used more than once to obtain a new access token.
If a malicious actor steals a token and uses it, the legitimate user is subsequently blocked when they try to use the same token, alerting the system to the breach.
Credential Replacement
Security protocols for web applications rely on this method to prevent unauthorized access in the event of a credential leak. When a client requests a new access token, the authorization server checks the refresh token against its database. If the token is valid, the server returns a new pair consisting of one access token and one refresh token.
The previous refresh token is immediately marked as spent.
Theft Detection
Breach detection occurs when the server receives a spent token. This signal indicates that a token was likely cloned and used by two different parties. The system can then revoke all tokens associated with that user to protect the account.
Expiration Logic
Policy settings determine the maximum age of a rotation chain.