Skip to content
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

Merged
merged 33 commits into from
Aug 17, 2021
Merged

Conversation

babolivier
Copy link
Contributor

@babolivier babolivier commented May 5, 2021

This adds a new send_links configuration option which defines whether to send links for the user to click in renewal emails, and defaults to true. If set to false, 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

@babolivier babolivier marked this pull request as ready for review May 5, 2021 17:28
@babolivier babolivier requested a review from a team May 5, 2021 17:28
Copy link
Member

@richvdh richvdh left a 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.)

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
email_account_validity/_base.py Outdated Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/servlets.py Outdated Show resolved Hide resolved
email_account_validity/servlets.py Outdated Show resolved Hide resolved
email_account_validity/_utils.py Outdated Show resolved Hide resolved
@babolivier babolivier requested a review from richvdh May 20, 2021 15:41
@babolivier babolivier removed the request for review from richvdh May 25, 2021 17:34
@babolivier babolivier requested a review from richvdh July 2, 2021 14:27
Copy link
Member

@richvdh richvdh left a 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?

@babolivier
Copy link
Contributor Author

You're right, it'd probably be a bit better, this PR has gone a bit out of control size and scope wise.

@babolivier babolivier changed the base branch from main to babolivier/new_api July 19, 2021 15:33
@babolivier
Copy link
Contributor Author

I've split the work to make it use the new module interface into #4, and have changed the target branch of this PR to #4's branch so the diff is clearer (and lighter).

@babolivier babolivier requested a review from richvdh July 19, 2021 16:26
email_account_validity/_base.py Show resolved Hide resolved
email_account_validity/_base.py Outdated Show resolved Hide resolved
email_account_validity/_base.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
email_account_validity/_servlets.py Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/_store.py Outdated Show resolved Hide resolved
email_account_validity/_utils.py Outdated Show resolved Hide resolved
Base automatically changed from babolivier/new_api to main August 4, 2021 09:12
babolivier and others added 3 commits August 11, 2021 17:40
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise!

email_account_validity/_base.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants