guide to configure Google as an OAuth Server



If you want to login to your WordPress site using your Google username and password, you can simply do it using our WP OAuth Client plugin. Once you configure the Google with WordPress plugin, you can login to your WordPress site using Google credentials. This plugin also allows you to map your WordPress account different roles based on your Google attributes/groups. To know more about other features we provide in WP OAuth Client plugin, you can click here.
Please follow the steps given below to configure your Google account with WordPress and setup the Single Sign On.

Guide to configure Google with WordPress :

  • Go to https://console.developers.google.com/ and sign up/login.
  • Google 1
  • Click on Select Project to create a new Google Apps Project(refer to image below).
  • Google 2
  • Click on NEW PROJECT to create a new project or else select one from the existing projects.
  • Google 3
  • Enter your Project name under the Project Name field.
  • Google 4
  • Now, again click on Select a Project (highlighted in the image below) and select the newly created Project by clicking on the project name that you entered in the previous step.
  • Google 5
  • Go to Navigation MenuAPIsServicesCredentials.
  • Google 6
  • Click on Create Credentials button and then select OAuth Client ID from the options provided.
  • Google 7
  • 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 8
  • Enter your product name under the Product Name Shown to Users field. Click on the SAVE button to save your settings.
  • Google 9
  • Select Web Applicationfrom the options below Application Type. 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.
  • Google 10
  • Click on the SAVE button to save your configurations.
  • Copy your Client ID and Client Secret and save it on your miniOrange OAuth Client plugin Configuration.
  • Google 11
  • You have successfully completed your Google App OAuth Server side configurations.
  • You can download OAuth Client plugin using the following link.
  • OAuth Single Sign On – SSO (OAuth client)
    Client ID :  from the step 15 above
    Client Secret :  from the step 15 above
    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

Free Trial

If you are facing any difficulty please mail us on info@miniorange.com.