-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expire authentication tokens #7140
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
Merged
Merged
+118
−24
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
701dafe
to
30a434b
Compare
e8ff198
to
071b35a
Compare
b6d01bd
to
0b8c3ca
Compare
54eb0b1
to
18c5fb0
Compare
904e5a3
to
d8c237b
Compare
18c5fb0
to
3e6c621
Compare
d8c237b
to
6d9ce24
Compare
0310a22
to
1e9c0e9
Compare
6d9ce24
to
b91322a
Compare
1e9c0e9
to
9af5cbe
Compare
49f6b8d
to
83a9265
Compare
9af5cbe
to
2c3004d
Compare
2c3004d
to
5d35ac2
Compare
45c2c57
to
8886ac4
Compare
6f67e0e
to
cb19c82
Compare
8886ac4
to
c64ea59
Compare
cb19c82
to
297d6aa
Compare
c64ea59
to
9086f0f
Compare
297d6aa
to
d69155e
Compare
9086f0f
to
1871031
Compare
d69155e
to
273c547
Compare
1871031
to
f5d3f7f
Compare
0f1c10f
to
10b2b85
Compare
10b2b85
to
b09bf6c
Compare
4b85764
to
f035394
Compare
23b03d3
to
1c52a19
Compare
f035394
to
9225ad2
Compare
1c52a19
to
025d9f1
Compare
This is merged into parent PR, not main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #7116.
Depends on #7176
Closes #7111
Currently we have tokens table which stores invite tokens and auth tokens. Tokens are indexed by
foreign_key
(group ID or empty string in case of contact setup QR codes) and normally there is only one token unless token has been synced from another device.With this change we generate a new auth codes each time QR code is shown. Each auth token has a timestamp, and 10 minutes later it is considered expired. Expired auth token still works for joining groups, but does not result in verification on Alice's side.
To clean up auth tokens eventually we have a PR #7176 that changes how we reset QR codes. Once one QR code is reset, all related tokens are removed.