social-core icon indicating copy to clipboard operation
social-core copied to clipboard

Google One Tap backend

Open mcosti opened this issue 2 years ago • 4 comments

Expected behaviour

A user should be able to login using Google One tap

Actual behaviour

Only the code flow is supported

Has anyone managed to write a custom backend for this? Thank you

mcosti avatar Feb 05 '24 14:02 mcosti

I have the same problem and will try to create a custom backend tomorrow. If you already have it please share it with me. Thx @mcosti

aalbinati avatar Aug 21 '24 04:08 aalbinati

Done, @mcosti

Steps

  1. Add the fork as the requirement git+https://github.com/aalbinati/social-core@google-id-implementation#egg=social-auth-core
  2. Add these parameters to the SETTINGS.PY if using Django
AUTHENTICATION_BACKENDS = (
    ...
    'social_core.backends.google_id.GoogleIdAuth',
)
SOCIAL_AUTH_GOOGLE_ID_CLIENT = "Your Google Web Client ID"
  1. Use 'google-id' as your provider

Tell me if it works for you!

aalbinati avatar Aug 21 '24 17:08 aalbinati

@aalbinati Would you mind submitting it back? Tests and documentation will be needed for that.

nijel avatar Aug 23 '24 12:08 nijel

@nijel I'd be glad to do it in my spare time. I will let you know when I finish it.

aalbinati avatar Aug 23 '24 14:08 aalbinati

Landed in https://github.com/python-social-auth/social-core/pull/1015.

nijel avatar Feb 13 '25 13:02 nijel