Posted by virantha on Thu 08 May 2014

Setting up Google Oauth2 API

This documents the steps necessary to enable Google Oauth in your web application for authentication.

Go to https://console.developers.google.com/project and following the steps below:

  1. Create your project
    Something
  2. Enter project name/id
    Something
  3. Go to APIs & auth
    Something
  4. Click on credentials
    Something
  5. Create a new client id in the Oauth section
    Something
  6. As a web application, fill in where the request will be coming in from to Google, as well as the callback URL so Google can send you the auth token.
    Something
  7. Now, use the Client ID for your application (if you're doing this server side, you may need the Client Secret as well). Finally, don't forget to go to the Consent Screen.
    Something
  8. And make sure there is something in the project name field (otherwise the google authentication window will give your user a very cryptic error message):
    Something

© Virantha Ekanayake. Built using Pelican. Modified svbhack theme, based on theme by Carey Metcalfe