-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token ID #202
Comments
jirenius
added a commit
that referenced
this issue
Aug 25, 2021
jirenius
added a commit
that referenced
this issue
Aug 25, 2021
Fixed bug in codec.go found through tests.
Resolved in PR #205 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
When revoking or updating a token previously set using a token event, it requires the service to keep track of all the connection IDs (cid) for which a specific token has been granted.
It should be possible to more easily update tokens belonging to one or more users, without the need to keep track of connection ID's.
Solution
In the token event, an optional parameter for a token ID (tid) string should be added. This value identifies the token, and is stored by Resgate on the connection together with the token. In practice, the token ID would often be the string representation of the user's identifier, such as user ID or username.
The updated token event with the optional tid parameter would look like this:
In addition, a new event should be added, that allows services to tell Resgate which token IDs should be updated:
Implications
The text was updated successfully, but these errors were encountered: