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:
- Create your project
- Enter project name/id
- Go to APIs & auth
- Click on credentials
- Create a new client id in the Oauth section
- 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.
- 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.
- 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):