Open jaywink opened 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
allowed_domains
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
matrix-authentication-service
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