Search Results :

×

Configure Google Single Sign-On (SSO) with WordPress OAuth – WordPress Google SSO

Set up Single Sign-On (SSO) on your WordPress website via Google Apps with the WordPress OAuth & OpenID Connect Single Sign-On plugin via WordPress SSO. Implementing G Suite SSO allows users to log into your websites and applications with a single set of credentials using the G Suite login credentials. The Google Single Sign-On via OAuth WordPress plugin also provides advanced SSO features like user profile attribute mapping, role mapping, and role-based access for user profiles. You can also protect your complete WordPress site behind Google SSO. Google login via WordPress OAuth SSO secures the user’s login process and improves user authentication authority. Using the OAuth SSO plugin, you can allow or restrict your organization users as well as guest users based on their email domains such as organization/comapny domain or personal domain such as gmail.com Follow the steps in the guide below to set up your WordPress SSO via installing this plugin.


  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress OAuth Single Sign-On (SSO) plugin and click on Install Now.
  • Once installed click on Activate.

  • Go to https://console.developers.google.com/ and sign up/login.
  • Click on Select Project to create a new Google Apps Project, you will see a popup with the list of all your projects.

  • Google Single Sign-On (SSO) - Login to google
  • You can click on the New project button to create new project.

  • Google Single Sign-On (SSO) - create new project
  • Enter your Project name under the Project Name field and click on Create.

  • Google Single Sign-On (SSO) - enter project name
  • Go to Navigation MenuAPIsServicesCredentials.

  • Google Single Sign-On (SSO) - go to credentials
  • Click on Create Credentials button and then select OAuth Client ID from the options provided.

  • Google Single Sign-On (SSO) - click on create credentials
  • In case you are facing some warning saying that in order to create an OAuth Client ID, you must set a product name on consent screen (as shown in below image). Click on the Configure consent screen button.

  • Google Single Sign-On (SSO) - consent screen
  • Enter the App name and User support email. Click on Next.
  • Google Single Sign-On (SSO) - add appname
  • Choose how you want to configure and register your app and click on Next button.
  • Google Single Sign-On (SSO) - register your app
  • Under the Contact Information enter a Email Address and click on Next.
  • Google Single Sign-On (SSO) - add Email
  • Agree the policies by checking the check box and click on Continue. Then click on Next.
  • Go to the Client tab and click on Create OAuth Client button.
  • Google Single Sign-On (SSO) - check policies
  • Select Web Application from dropdown list to create new application. Enter the name you want for your Client ID under the name field and enter the Redirect/Callback URI from miniOrange OAuth Client plugin/module under the Authorized redirect URIs field and click on Create button.
  • Google Single Sign-On (SSO) - add redirect url
  • You will see a popup with the Client ID and Client Secret Copy the Client ID and Client Secret and save it on your miniOrange OAuth Client plugin Configuration.
  • Google Single Sign-On (SSO) - get client credentials

    In conclusion, by successfully configuring Google as OAuth Provider, you have enabled seamless Google Single Sign-On (SSO) and authorization for your end users into WordPress.


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
  • Google Single Sign-On (SSO) OAuth - Add new application
  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Google.
  • Google Single Sign-On (SSO) OAuth - Select Application
  • After selecting the provider copy the Callback URL which needs to be configured in OAuth Provider's SSO application Configuration.
  • Enter the Client Credentials like Client ID & Client Secret which you will get from the Google SSO application.
  • Configure the Endpoints for the Google SSO application. Please refer the below table for configuring the scope & endpoints for Google in the plugin
  • 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
    Custom redirect URL after logout: [optional] https://www.google.com/accounts/Logout
  • Click on Next.
  • Google Single Sign-On (SSO) OAuth - Client ID & Client Secret
  • After verifying all the details on the summary page, click on Finish to save the configuration as well as test the SSO connection.
  • Google Single Sign-On (SSO) OAuth - Finish configuration

    In conclusion, by successfully configuring WordPress as OAuth Client, you have enabled seamless Google Single Sign-On (SSO) and authorization for your end users into WordPress.

  • Go to Configure OAuth tab and search your application name to add a new client application into your website, Here Custom OpenID Connect App.
  • Google Single Sign-On (SSO) OAuth - Add new application
  • Please refer the below table for configuring the scope & endpoints for Google in the plugin.

    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
    Get User Info Endpoint: https://www.googleapis.com/oauth2/v1/userinfo
  • Google Single Sign-On (SSO) OAuth - Add App name, TenantID
  • Choose your Grant Type from the list of options & Click on Save Settings to save the configuration.
  • Google Single Sign-On (SSO) OAuth - Add Grant Type

    You have successfully configured WordPress as OAuth Client for achieving user authentication with Google Single Sign-On (SSO) login into your WordPress Site.

  • User Attribute Mapping is mandatory for enabling users to successfully Single Sign-On into WordPress using Google SSO. We will be setting up user profile attributes for WordPress using the below settings.
  • Finding user attributes

    • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, map an attribute with a username that is unique for every user. You also map other attributes like firstname, lastname, etc. Click on Save.
    • Google Single Sign-On (SSO) - attribute/role mapping


  • The settings in Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a Google login widget on your WordPress page, you need to follow the below steps.
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
  • Google Single Sign-on (SSO) - WordPress create-newclient login button setting
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
  • Google Single Sign-on (SSO) - WordPress create-newclient login button setting
  • Open your WordPress page and you can see the Azure AD SSO login button there. You can test the Azure AD Single Sign-On (SSO) - Azure AD OAuth now.
  • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
  • Google Single Sign-on (SSO) - WordPress create-newclient login button setting
  • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will see an Google SSO login button there. Once you click the login button, you will be able to test the Google Single Sign-On (SSO).
  • Google Single Sign-on (SSO) - WordPress create-newclient login button setting

In conclusion, after successfully configuring Google as an OAuth Provider and WordPress as an OAuth Client, you've achieved a smooth and secure authentication process for your users. Through Google Single Sign-On (SSO), you can ensure a robust user experience within the WordPress environment. This allows users the ease of accessing multiple applications with a single set of login credentials. Through the integration of Google OAuth as the primary authentication solution, users can securely log into their WordPress accounts with their existing Google credentials.




ADFS_sso ×
Hello there!

Need Help? We are right here!

support