Google SSO setup (miniOrange OAuth Client)

Last updated on
24 February 2026

This document will assist you to configure Google as an OAuth / OpenID provider, making Drupal an OAuth Client. Following these steps will allow you to configure OAuth/OpenID SSO between Google and your Drupal site such that your users will be able to log in to your Drupal site using their Google credentials.

We provide the Drupal OAuth Login - OAuth OIDC SSO module which is compatible with Drupal 7, Drupal 8, Drupal 9, and Drupal 10.

Download  Know more

You can check our modules feedback and ratings here.

Prerequisite:

Setup Video:

drupal oauth login  - Google sso integration video

 Step 1: Setting up Google as OAuth Provider in Drupal:

  • Navigate to the Configure Application tab and search for Google using the search box.

    Drupal OAuth Client Login module - Search Google

  •  Now, click on the Copy button to copy the Callback/Redirect URL and keep it handy. After that, click on the Step 2/3 button.

    Drupal OAuth Client Login module - Copy Callback/Redirect url

Configure OAuth Single Sign-On Application in Google:

  • Go to the Google admin dashboard and sign up/log in to your account.

  • Click on Select a project and then select NEW PROJECT

    Drupal OAuth Client Login module - Select a project

  • Enter Project name as your choice then click on CREATE button.

    Drupal OAuth Client Login module - Ceate New Project

  • Click on ENABLE APIS AND SERVICES

    Drupal OAuth Client Login module - Eanble APIs and Services

  • Search for Google PLUS API in the search bar and click on Google+ API from the search results.

    Drupal OAuth Client Login module - Search for Google Plus APIs

  • Click on ENABLE button to enable Google+ API.

    Drupal OAuth Client Login module - Click on Enable button

  • From left navigation bar, click on Credentials.

    Drupal OAuth Client Login module - Select Credentials

  • Click on CREATE CREDENTIALS button. Then, select OAuth Client ID from the options provided.

    Drupal OAuth Client Login module - Click on Create Credentials

  • In case you are facing some warning saying that To create an OAuth Client ID, you must first set a product name on the consent screen (as shown in below gif). Click on the CONFIGURE CONSENT SCREEN button.

    Drupal OAuth Client Login module - Click on Configure Consent Screen

  • Choose how you want to configure and register your app and click on CREATE button.

    Drupal OAuth Client Login module - OAuth Consent Screen and Select External

  • Enter the required details such as App Name, User Support Email and click on SAVE AND CONTINUE button.

    Drupal OAuth Client Login module - Enter Information App Name and Domain Name

  • Click on the ADD OR REMOVE SCOPES button, then select the scopes that will allow your project to access specific types of private user data from their Google Account, and then click the UPDATE button.

    Drupal OAuth Client Login module - Add or Remove Scope

  • Navigate to the Credentials tab, click the CREATE CREDENTIALS button, and then select OAuth client ID.

    Drupal OAuth Client Login module - click on credentials

  • Select Web Application from the options below Application Type. Enter the name you want for your Client under the Name field and enter Callback/Redirect URL (Which we copied in the first step) in the Authorized redirect URIs text-field.

    Drupal OAuth Client Login module - authorised redirect uris

Step 2: Client ID and Client Secret setup in Drupal:

  • Copy Your Client ID from the Google application and paste it into Drupal OAuth Login's Client ID text field.

    Drupal OAuth Client Login module - Copy Client ID

    Drupal OAuth Client Login module - Paste Client ID

  • Then, copy Your Client Secret and paste it into the Drupal OAuth Login's Client Secret text-field. 

    Drupal OAuth Client Login module - Copy Your Client Secret

    Drupal OAuth Client Login module - Paste Client Secret

  • Once done, click on the Step 3/3 button.

Step 3: Scope and Endpoints setup in Drupal:

There are two ways using which you can set up the scope and endpoints:

  • Manual Configuration:
    • Check the Endpoints and Scope. Click on the All Done! button.

      Drupal OAuth Client Login module - Check Scope and Endpoints

Google Endpoints and scope:

Scope email
Authorize Endpoint https://accounts.google.com/o/oauth2/auth
Access Token Endpoint https://www.googleapis.com/oauth2/v4/token
Get User Info Endpoint https://www.googleapis.com/oauth2/v1/userinfo

Verify SSO Connection and Mapping:

  • In Summary, You will be able to review the configuration which you have done so far.
  • Once verified, you can click on the Test Configuration button to check the connection between Drupal and Google.
  • After a successful connection, select the Email Attribute from the dropdown and click on the Done button.

    Drupal OAuth Client Login module - Test Configuration

  • Congratulations! You have successfully configured Google as OAuth Provider and Drupal as OAuth login.
  • Now, open a new browser/private window and go to your Drupal site login page.
  • Click on the Login using Google link to initiate the SSO from Drupal.

Support:

Need assistance? Contact our 24*7 support team

If you require any help with installing or configuring this module, please feel free to reach out to us at our 24*7 Support by clicking on the Support Icon from the bottom right corner and send us a query. You can also join us on Drupal Slack in the #miniorange channel.

 Get In Touch With Us Join Our Slack Channel

back to top Back to top