-
Notifications
You must be signed in to change notification settings - Fork 3
Support shorter tokens used with authentication #3
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
Changes from 28 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
0d75d6a
Support renewing an authenticated token
babolivier 4b04f89
Generate and send shorter authenticated tokens if configured to do so
babolivier 28a8d4a
Document send_link and templates in the README.md
babolivier c1c0b48
Add test for authenticated tokens
babolivier 83852bf
Actually error when trying to reuse a unique renewal token
babolivier ff9433b
Merge branch 'master' into babolivier/token
babolivier a1b5743
call_args.kwargs was only introduced in Python 3.8
babolivier 04ed67b
Use the right assertion method
babolivier 083668c
Import from Synapse's module API
babolivier caa23ff
Look for templates in the module; globalise config
babolivier 56e4841
Fix test infra
babolivier c02b930
Incorporate review
babolivier 0efb472
Fix test
babolivier 5663b3f
Fix is_user_expired to match expected API
babolivier d42ee31
Fix tests
babolivier 6978508
Move to the new module system
babolivier 605337c
Use indexes to check unicity on tokens
babolivier 41eaf8f
Fix tests
babolivier 5377864
Update docs
babolivier ccc9a81
Migrate to new module interface
babolivier 29b5634
Merge branch 'main' into babolivier/new_api
babolivier de0470e
Merge branch 'main' into babolivier/token
babolivier f086863
Fix tests
babolivier 7b8624c
Merge branch 'babolivier/new_api' into babolivier/token
babolivier ddc2640
Update README too
babolivier a90ba0a
Update minimal required synapse version (for real this time)
babolivier 74bd1f5
Update minimal required synapse version (for real this time)
babolivier c28e129
Merge branch 'babolivier/new_api' into babolivier/token
babolivier d8da9eb
Merge branch 'main' into babolivier/token
babolivier ccb68a6
Incorporate review
babolivier f9e2c0f
Update README.md
babolivier ee8ee76
Validate short tokens
babolivier efd23fd
Merge branch 'babolivier/token' of github.com:matrix-org/synapse-emai…
babolivier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.