Skip to content

This project enables developers to integrate a feature allowing users to log in to their applications using their Google account. With this implementation, you can easily add secure and user-friendly social login functionality to your website or web application.

License

Notifications You must be signed in to change notification settings

Emm-Anuel100/GOAUTH2-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login with google using Php

This repository contains the open source Google OAuth API that allows you to authenticate the Google Platform from your PHP app.

Steps to create google application

For access google OAuth api we need to login into google developers console.

  1. Create new project from Project Dropdown menu or select existing project
  2. From Dashboard click on “Enable Apis and services”. Search for Google+ Api and enable it for access.
  3. In the sidebar, select Credentials then select OAuth consent screen tab.
    • Choose Email address which shown with developer info.
    • Specify Product name
    • Other fields like Homepage Url, Product logo url, Policy and Terms of service url is optional so you can iggnore it.
    • At last click on save.
  4. Select Credentials tab, click the Create credentials drop-down list and select OAuth client ID.
  5. Choose Application type e.g Web, Mobile App e.t.c.
    • Specify name you like to add.
    • In the Authorized JavaScript origins field, enter your app origin URI.
    • Set redirect url in Authorised redirect URIs field.
    • Click on create button.
  6. OAuth client Dialogue box will prompt. There are client id and secret key available that need to be defined while calling Google Api.

About

This project enables developers to integrate a feature allowing users to log in to their applications using their Google account. With this implementation, you can easily add secure and user-friendly social login functionality to your website or web application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published