Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module adds Google One Tap login functionality to your site, allowing users to sign in or sign up with a single click without leaving the current page. It works alongside the existing "Sign in with Google" feature, providing a seamless experience and reusing your existing Google authentication configuration.

This module enhances the Social Auth Google module by integrating Google One Tap login. It provides a seamless, low-friction sign-in experience for users, allowing them to log in or sign up with a single click without leaving the current page.
This module is designed to work alongside the standard Google OAuth2 login flow provided by social_auth_google. Users logging in via One Tap will have the same Drupal session and user account as if they had used the traditional "Sign in with Google" button.

Features

  • Seamless Login: Displays the Google One Tap prompt for anonymous users.
  • Unified User Experience: Leverages the core social_auth framework to ensure users are correctly identified, created, and logged in, regardless of the authentication method (One Tap vs. standard OAuth).
  • Shared Configuration: Reuses the Google Client ID from the social_auth_google module settings, requiring no duplicate configuration.
  • Logout Auto-Login Prevention: Prevents immediate automatic One Tap login after a user explicitly logs out, improving user experience by respecting their logout intention. Verifies the Google ID Token on the server-side to ensure authenticity.

How It Works

  1. Frontend (Google GSI Library): For anonymous users, the module loads Google's Identity Services (GSI) JavaScript library. This library displays the One Tap prompt.
  2. ID Token Callback: When a user successfully signs in with One Tap, Google returns a JSON Web Token (JWT) called an ID Token to the browser.
  3. Backend Verification: The module's JavaScript sends this ID Token to a custom Drupal backend endpoint (/user/login/google/one-tap-callback).
  4. User Authentication: The backend controller:
    • a. Receives the ID Token.
    • b. Uses the google/apiclient library to securely verify the token against the configured Google Client ID.
    • c. On successful verification, it extracts the user's profile information (Google ID, email, name, etc.).
    • d. It then passes this information to the core social_auth User Authenticator service, using the social_auth_google plugin ID.
  5. Session Management: The social_auth service handles the rest: finding an existing user with the same Google ID, creating a new user if one doesn't exist, and establishing a Drupal session.

Requirements

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

This module requires the google/apiclient PHP library. You can install it by running the following command from your project root:

composer require google/apiclient:"^2.15"

Then, enable the "Social Auth Google One Tap" module in the Drupal admin UI or by running:

drush en social_auth_google_one_tap

Configuration

This module primarily relies on the configuration of the Social Auth Google module. Ensure that social_auth_google is installed and configured correctly, especially with a valid Google Client ID saved in its settings at /admin/config/social-api/social-auth/google.
Additionally, you must configure your Google Cloud Project:

  1. In your Google Cloud Console, navigate to APIs & Services > Credentials.
  2. Edit your OAuth 2.0 Client ID.
  3. Under Authorized JavaScript origins, make sure your site's domain (e.g., https://example.com, http://localhost:8000) is listed. This is crucial for the Google One Tap UI to be displayed and function correctly.

For further information on how to set things up and the result for the site user, see the documentation for Google One Tap.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Jul 2025
Latest release
7 months ago
Releases (12 mo)
5
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
2.0.0 Stable 10–11 Jan 15, 2026
1.0.0-rc6 Pre-release 9–11 Jan 5, 2026
2.0.0-rc1 Pre-release 10–11 Jan 5, 2026
1.0.0-rc5 Pre-release 10–11 Jan 5, 2026
2.x-dev Dev 10–11 Dec 15, 2025
1.0.0-rc4 Pre-release 9–11 Aug 18, 2025
1.0.0-rc3 Pre-release 9–11 Aug 18, 2025
1.0.0-rc2 Pre-release 9–11 Jul 8, 2025
1.0.x-dev Dev 9–11 Jul 8, 2025
1.0.0-rc1 Pre-release 9–11 Jul 2, 2025