GraceCovenantChurch / gcc_website

Main website for Grace Covenant Church
1 stars 3 forks source link

Google Directory for Login Authentication #1

Open austinEng opened 6 years ago

austinEng commented 6 years ago

Currently, valid emails for authentication are whitelisted in an environment variable ADMIN_EMAILS. Check in /src/admin_server/auth.js for the code which currently handles logins.

We should use the Google Directory API to fetch the list of approved users to authenticate logins.

Resources:

joeyzia commented 6 years ago

@heallen I'm going to change the account that we use for Google Maps API to our service account that we created. I think this way we can keep things consistent across the board in the services that we use.