Google is the most useful network in web world. Today I have created a apps for login with google oauth in php. Application demo link is here.


For this you need  api client key and developer key of google. You should know about google oauth 2.0.  Let’s see how we can obtain keys for your project below.




Client key creation:
1. Sign-in to Google and go to Google API console,  click API Access on the left sidebar, click big blue button “Create an OAuth 2.0 Cliend ID“.


2. A box should pop-up, enter your Project name and Product logo (optional), click next.


3.  Next choose your application type, usually it is Web application for websites.



4. You should now be presented with Google Client ID and Client Secret on next page. You can use this information in your Google applications.




Developer key creation:
 I am not sure why Google Developer key is required when you have obtained Client ID and Secret, but my assumption is that the Client ID and Secret is required to access Google user data, and to identify the project and to keep track of its requests Developer Key is required. Let’s see how we can obtain Developer key for your project below.

1. Click on Services link on left sidebar. Click on any status button to turn it on.



2. Google Terms of Services page should appear on the next page, click accept button to proceed.



3.  Now go back to API access list by clicking API Access on the left sidebar. You should find another key listed below called Simple API Access. The API listed under it is your Developer key.



That's all. Now you need to develop your application with any programming language. I have created my login app with php.