Google OAuth Login

Component ID

2898570

Component name

Google OAuth Login

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

620

Component created

Component changed

Component body

Simple Google Login allows users to register and login to your Drupal site with their Google account.

Google OAuth API PHP library helps web developer to integrate google login system by the quick, easy and powerful way. Once logged via Google Application, we'll store the user information into the user table.

The Google OAuth PHP library will be used in our script that supports OAuth for Google JSON Response.

Google Project Creation

  1. Go to the Google Developers Console
  2. Select an existing project, or create a new project by clicking Create Project:
    • In the Project name field, type in a name for your new project.
    • In the Project ID field, the console has created project ID. Optionally you can type in a project ID for your project. But project ID must be unique worldwide.
    • Click on the Create button and the project to be created in some seconds. Once the project is created successfully, the project name would be appearing at the top of the left sidebar.
  3. In the left sidebar, select APIs under the APIs & Auth section. A list of Google APIs appears.
  4. Find the Google+ API service and set its status to Enable.
  5. In the sidebar, select Credentials under the APIs & Auth section.
  6. In the OAuth section of the page, select Create New Client ID.
    • Create Client ID dialog box would be appearing for choosing application type.
    • In the Application type section of the dialog, select Web application and click on the Configure consent screen button.
    • Choose Email address, enter the Product name and save the form.
    • In the Authorized JavaScript origins field, enter your app origin. If you want to allow your app to run on different protocols, domains, or subdomains, then you can enter multiple origins.
    • In the Authorized redirect URI field, enter the redirect URL.
    • Click on Create Client ID.