Closed Jarzamendia closed 4 years ago
@all-contributors please add @Jarzamendia for code
@juliemar
I've put up a pull request to add @Jarzamendia! :tada:
I tried to be as brief and direct as possible. If you find it necessary I can try to improve!
Description
Considering the use case where a deploy can only be accessed by members of a project, however the use of a secure domain is not possible. This PR adds an authorization method where only a list of users can login. Still maintaining authentication with Google Auth.
How to test?
Add the WHITELIST_USERS Env variable with an array of e-mails (WHITELIST_USERS=["teste@gmail.com", "teste2@gmail.com"]). Try to login with a google account.
Expected behavior
If the user have their email listed, login. If not, log that him is not authorized.