You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the same account multiple times on the Desktop client (allowed by design; they currently use the same keychain entry: Different accounts may use same keychain entry client#5830 which will store the refresh token of the one included the last)
Sometimes, more than one request is successful, each carrying on the reply a new, valid token pair (access/refresh).
Expected Behavior
Granting the token should be an atomic operation in the server - i.e. after having used a refresh_token already, additional requests must be replied with 401: Unauthorized.
Take what happens when the requests don't reach the server that simultaneously, the first POST succeeds, replied with a new set of tokens; second is replied:
{
"error": "invalid_grant"
}
Assigning "lowest" priority available in the repo as pretty edge-case and currently happening only some of the times while sharing the refresh_token between requests (not that normal)
The text was updated successfully, but these errors were encountered:
@ogoffart@ckamm Do you see a solution there on the server side or shall we change the desktop's way of storing keychain entries? (which has its disavtanges too of course)
Migrating from #65 (comment) and #65 (comment) as consequence from #65
Steps to Reproduce:
Add the same account multiple times on the Desktop client (allowed by design; they currently use the same keychain entry: Different accounts may use same keychain entry client#5830 which will store the refresh token of the one included the last)Close the client and relaunch while monitoring the requests on startup.(Edit: The client no longer re-use the same token for different account on the same server since Credentials: Use per-account keychain entries #5830 client#6027)
Send twice the same request in parallel sharing the same
shared_refresh_token
:Actual Behavior
Sometimes, more than one request is successful, each carrying on the reply a new, valid token pair (access/refresh).
Expected Behavior
Granting the token should be an atomic operation in the server - i.e. after having used a
refresh_token
already, additional requests must be replied with 401: Unauthorized.Take what happens when the requests don't reach the server that simultaneously, the first POST succeeds, replied with a new set of tokens; second is replied:
Assigning "lowest" priority available in the repo as pretty edge-case and currently happening only some of the times while sharing the
refresh_token
between requests (not that normal)The text was updated successfully, but these errors were encountered: