Refresh token rotation: what if we commit while the revocation fails?
This does not happen, we first revoke the token:
if there is no issue, we commit and then it is done
else, the revocation process raises an exception, the commit is not done
What should happen if a user does the device_code flow multiple times in a row to get many pairs of tokens. Should we revoke the previous RT each time an interactive flow is triggered?
I would say that we should keep them all valid as they can be used for different purposes.
This PR aims at solving https://github.com/DIRACGrid/diracx/issues/24
/auth/token
/auth/token
PROXY_MANAGEMENT
property is able to get all the refresh tokens.PROXY_MANAGEMENT
property is able to revoke any refresh token.We also added a few tests:
Questions:
This does not happen, we first revoke the token:
I would say that we should keep them all valid as they can be used for different purposes.