google account log in code example

Example: sign in with google

1. Open the Google API Console Credentials page.
https://console.developers.google.com/apis/credentials

2. Click Select a project, then NEW PROJECT, and enter a name for the project, 
and optionally, edit the provided project ID. Click Create.

3. On the Credentials page, select Create credentials, then OAuth client ID.

4. You may be prompted to set a product name on the Consent screen; if so, 
click Configure consent screen, supply the requested information, and click 
Save to return to the Credentials screen.

5. Select Desktop app for the Application type, and enter any additional 
information required.

Click Create.

6. On the page that appears, copy the client ID and client secret to your 
clipboard, as you will need them when you configure your client library.

reference:
https://developers.google.com/adwords/api/docs/guides/authentication#installed

Tags:

Html Example