matrix-org / matrix-authentication-service

OAuth2.0 + OpenID Provider for Matrix Homeservers
https://matrix-org.github.io/matrix-authentication-service/
Apache License 2.0
112 stars 32 forks source link

Expand `allowed_domains` policy to support email regexes #1870

Open jaywink opened 1 year ago

jaywink commented 1 year ago

In EMS we allow customers to define a list of email regexes for who can register to a homeserver. Often these are full domains but also often individual emails. Supporting regexes would be the easiest way to cover both use cases.

Code ref for current allowed_domains check: https://github.com/matrix-org/matrix-authentication-service/blob/a62aa87b0c323907cc4c564be2c76782a56b8589/policies/email.rego#L20

matrixbot commented 1 month ago

For your information, this issue has been copied over to the Element fork of matrix-authentication-service: https://github.com/element-hq/matrix-authentication-service/issues/1870