vanvalenlab / deepcell-datasets

React App for hosting curated datasets.
Other
0 stars 0 forks source link

Use DOMAIN_WHITELIST environment variable to change the allowed email domains. #61

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

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.