It turns out the .edu emails are not universal - the UK uses .ac.uk instead.
This PR enables changing the whitelisted domains using the DOMAIN_WHITELIST environment variable, which is a comma-separated list of domains. For example, to resolve the above issue with .edu emails, we can just set
DOMAIN_WHITELIST=.edu,.ac.uk
and both the domains are valid!
Because of the change of definition, the edu-email-domain service has been updated to validate-email-domain. Additionally, the name of the service in serverless.yml has also been updated.
It turns out the
.edu
emails are not universal - the UK uses.ac.uk
instead.This PR enables changing the whitelisted domains using the
DOMAIN_WHITELIST
environment variable, which is a comma-separated list of domains. For example, to resolve the above issue with.edu
emails, we can just setand both the domains are valid!
Because of the change of definition, the
edu-email-domain
service has been updated tovalidate-email-domain
. Additionally, the name of the service inserverless.yml
has also been updated.