affinityworks/main

login with google OAuth [5]

Closed this issue · 2 comments

research done. Estimate this as a 3pt "medium"

As a user who already has an account on the Affinity system
when I visit https://production-swingleft.herokuapp.com/admin/login
I see a button for "Login with Google" (use the standard button and language)
When I click the button
I see a standard Google Oauth flow,
and the system auths me with Google
And the system retrieves my email address from Google
and the system checks that I have an account with that email address.

IF I do have an account using that email address
then I am logged in as that user in the standard way

IF there is not an account in Affinity with email retrieved from Google
THEN I see the standard "no such email" error.

i have verified that the happy path works on a heroku review app.

re-opening for @Matt-Holland to QA on https://dev.affinity.works

(note: probably worth testing the sad path -- in which you are logged in as a google user that does not have an affinity account -- while you're QA-ing.)

closing as resolved by #647, #648, #650