Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Run email, password and registration policies in more places #1656

Merged
merged 3 commits into from
Aug 30, 2023

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Aug 30, 2023

This makes it so that we have a separate email and password policy, which get called by the registration policy.
It also makes sure that they get called when:

  • the user changes their password
  • the user adds an email (via the API or the UI)
  • a new user gets registered through an upstream OAuth 2.0 login

It also now validates the username to ensure we're ending up with valid MXIDs

Fixes #1245
Fixes #171
Related #217
Needed for #1444

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 30, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 319de87
Status: ✅  Deploy successful!
Preview URL: https://70fd8474.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-better-policies.matrix-authentication-service-docs.pages.dev

View logs

Also refactors the way we get the policy engines in requests
@sandhose sandhose changed the title WIP: Better policies Run email, password and registration policies in more places Aug 30, 2023
@sandhose sandhose force-pushed the quenting/better-policies branch 3 times, most recently from cdd1176 to d8b9d78 Compare August 30, 2023 16:52
@sandhose sandhose marked this pull request as ready for review August 30, 2023 16:58
@sandhose sandhose force-pushed the quenting/better-policies branch from d8b9d78 to 8590073 Compare August 30, 2023 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant