How to Create Google Developers Console Project

Before integrating Google Sign-in into the website or access enabled Google APIs, you must have a Google Developers Console project. In the project, you can create credentials, like API Key, OAuth client ID, Service Account Key etc. This tutorial provides the step-by-step guides on how to create Google Developers Console Project and client ID.

Creating Google Developers Console Project

To create Google Developers Console Project and client ID, follow the below steps.

  1. Go to the Google Developers Console.
  2. From the All Projects dropdown select an existing project, or create a new project by selecting Create a project.
  3. On selecting Create a project, a pop-up would appear. Here the project details would be entered.
  4. Enter your Project name and click on Create button.
  5. The project would be created and you would be redirected to the project dashboard.
  6. Go to the API Manager page by clicking on the Enable and manage APIs link.
  7. Under the API Manager, select Credentials.
  8. Select the OAuth consent screen, choose an Email address, specify the Product name and press the Save button.
  9. In Credentials tab, select Create credentials and choose OAuth client ID.
  10. Under the Application type select Web application. Enter Name, Authorized JavaScript origins (http://localhost), and Authorized redirect URIs (http://localhost/auth_with/google_url/). Authorized redirect URIs is not required for JavaScript API. Press the Create button.
  11. OAuth client pop-up would appear with client ID and client secret. Copy the Client ID and Client secret that will need to use to access the APIs.

Copy the Client ID and Client Secret for later use in the script.
Google config file location : application\config\google.php