Step by step guide to configure Google as an OAuth Server

Step by Step Guide to Configure Google Apps as an OAuth Server

  1. Go to https://console.developers.google.com/ and sign up/login.
  2.  

     

  3. Click on Select Project to create a new Google Apps Project(refer to image below).
  4.  

     

  5. Click on NEW PROJECT to create a new project or else select one from the existing projects.
  6.  

     

  7. Enter your Project name under the Project Name field.
  8.  

     

  9. 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.
  10.  

     

  11. Click on ENABLE APIS AND SERVICES to enable Google PLUS API.
  12.  

     

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

     

  15. Click on the ENABLE option to enable Google+ API.
  16.  

     

  17. Go to Navigation Menu->APIs & Services-> Credentials.
  18.  

     

  19. Click on Create Credentials button and then select OAuth Client ID from the options provided.
  20.  

     

  21. 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.
  22.  

     

  23. Enter your product name under the Product Name Shown to Users field. Click on the SAVE button to save your settings.
  24.  

     

  25. 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.
  26.  

     

  27. Click on the SAVE button to save your configurations.
  28.  

  29. Copy your Client ID and Client Secret and save it on your miniOrange OAuth Client plugin Configuration.
  30.  

    You have successfully completed your Google App OAuth Server side configurations.

  31. You can download OAuth Client plugin using the following link.
  32. WordPress OAuth Login ( OAuth Client )

     
     
    Google Endpoints and Scope:

    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/v3/token
    Get User Info Endpoint: https://www.googleapis.com/plus/v1/people/me

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