Skip to content

Setting up Google People OAUTH2 service

eduard valera i zorita edited this page Sep 19, 2018 · 6 revisions

1. Register app in Google API Console

Log in to Google and access this link: Google dev console - Register APP to People API

  1. If no project has been created previously, select "Create new Project".
  2. Click continue, this will create a project with a random name and redirect to the API console.

2. Create Credentials

  1. Log in to Google APIs & Services.
  2. Select the project registered in step 1.
  3. Open the "Credentials" section.
  4. Set the following config:
API: People API
Calling from: Web server (node.js, ...)
Data: User data
  1. Define Javascript origin and redirect (for development):
origin: http://nucleotid-dev.com:3000/login/google
redirect: http://nucleotid-dev.com:3000/login/google/return
  1. Enable Google+ API in Google API library.
  2. Get Client ID and Client secret keys, copy them in info/node-env.