ParticipioLabs / plato-core

Shared code between Plato Project apps
https://www.platoproject.org/eng
1 stars 0 forks source link

Let people log in using facebook and google #7

Closed Powersource closed 3 years ago

Powersource commented 3 years ago

For my reference:

Facebook settings https://developers.facebook.com/apps/411826776774574/settings/basic/
Google settings https://console.cloud.google.com/apis/credentials/consent?project=plato-project

Powersource commented 3 years ago

image

nice

skoteskote commented 3 years ago

Brilliant! Is it possible to add google too if it's easy?

Powersource commented 3 years ago

Ah sure I'll look into it

Powersource commented 3 years ago

As mentioned in chat: got google to work for me, but if we want users to be able to sign up then they require us to have a privacy policy

Powersource commented 3 years ago

Switched facebook from dev to live mode. Can someone other than me try logging in using fb?

skoteskote commented 3 years ago
Screenshot 2021-06-01 at 13 32 11

Tried now but got this

Powersource commented 3 years ago

Applied to be verified by google and got this back

The Trust and Safety team has received your form. They will reach out to you via your contact email if needed. The review process can take up to 4-6 weeks. Expect the first email from our Trust and Safety team within 3-5 days. Your last approved consent screen is still in use.

It's a bit unclear if this is just because I added an image. And if they'll let us log in in the meantime just without the image lol

Powersource commented 3 years ago

image

And this is lovely. They needed me to link to our privacy policy. So I put https://www.iubenda.com/privacy-policy/58637640 , but then google assumed that was our server and requires us to verify it's ours. I guess I'll have to add a page on dreams.wtf that just redirects you to the policy, just so I can give that link to google lol...

skoteskote commented 3 years ago

Omg, that's so annoying. Weird as iubenda is super common for these things.

Powersource commented 3 years ago

@skoteskote ok so I've checked a few more boxes on fb, could you try again now?

Powersource commented 3 years ago

Also fb says "Action Required: Complete Data Use Checkup for Plato Project by July 31, 2021." so that's fun

skoteskote commented 3 years ago

Yay it worked! Or, I got to the last screenshot, but I don't have access to my FB email so I can't check I actually got the mail.

Screenshot 2021-06-01 at 14 09 49 Screenshot 2021-06-01 at 14 10 22 Screenshot 2021-06-01 at 14 11 35
Powersource commented 3 years ago

Added the redirects https://github.com/Edgeryders-Participio/multi-dreams/pull/266

Powersource commented 3 years ago

I've now verified both platoproject.org and dreams.wtf, and replied to their email, so now I think we just need to wait. From this documentation it sounds like we might be able to let users log in with google for now anyway, but there would be a really bad warning screen, so I think it's best to just wait.

Powersource commented 3 years ago

Moved the policies into iframes on our page, since it seemed google were annoyed that they were on a page hosted by someone else. I've contacted them to start the approval process again

Powersource commented 3 years ago

Both google and fb seems to work now!