-
Notifications
You must be signed in to change notification settings - Fork 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
Support shorter tokens used with authentication #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks generally plausible, but I think there is probably some architectural work to be done between here and matrix-org/synapse#9884.
(Sorry, some of my comments here are more relevant to this plugin as a whole than this PR, but it was a handy place to put them.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry to be a pain in the ass, but how difficult would it be to split this up into separate PRs for (1) update to the new module api and (2) add new functionality?
You're right, it'd probably be a bit better, this PR has gone a bit out of control size and scope wise. |
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise!
…l-account-validity into babolivier/token
This adds a new
send_links
configuration option which defines whether to send links for the user to click in renewal emails, and defaults totrue
. If set tofalse
, only the renewal token is sent, which is expected to be copied by the user into a compatible client, which would then send it to the homeserver in an authenticated request (which means we don't need to ensure these shorter tokens are unique across all of the users).Based off #4