Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shouldn't the old access token be invalidated by a refresh call?

When I refresh an OAuth access token A, I get an new access token B. But A is still valid, I can still use it.

Shouldn't the old access token be invalidated by the refresh operation? If not, if it's "by design", could someone give me details about why?

Note: using Symfony with the FOSOAuthServerBundle bundle.

like image 387
marcv Avatar asked Dec 04 '25 15:12

marcv


1 Answers

The RFC6749 section 1.5 indicates that:

Refresh tokens are issued to the client by the authorization server and are used to obtain [...] additional access tokens with identical or narrower scope

As far as I understand, the access token A may be still valid when an access token B is issued with the refreh token.

like image 83
Spomky-Labs Avatar answered Dec 06 '25 08:12

Spomky-Labs