Google One Tap

Component ID

2923194

Component name

Google One Tap

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

16

Component created

Component changed

Component body

Google One Tap module provides seamless authentication flows to your users with Google's one tap sign-up and automatic sign-in APIs.

With one tap sign-up, users are prompted to create an account with a dialog that's inline with your page's content, so they're never taken out of context by a sign-up page. With just one tap, they get a secure, token-based, passwordless account with your service, protected by their Google Account. And, of course, since there's such little sign-up friction, users are much more likely to register.

Read more on https://developers.google.com/identity/one-tap/web/

Prerequisites

This module requires google/apiclient composer package, therefore must be installed with composer.

How to start?

  1. Create new oAuth api key on https://console.developers.google.com/apis/credentials (choose Web Site, add Authorized JS Source, and Save)
  2. Add obtained client ID to setting.php (or settings.local.php), eg. $config['google_one_tap.configuration']['client_id'] = 'test-test.apps.googleusercontent.com';
  3. Remember you only see sign-in/sign-up screen if you're logged in to at least one of your google accounts, browsing Drupal as anonymous user and you are on front, user login or register page.

Disclaimer

Google One Tap is proof-of-concept, experimental module and stability and security issues may occur. Please, do not hesitate to report them.