debuggers:
Create Google OAuth Credential
- goto: https://console.developers.google.com/apis/credentials
- click CREATE CREDENTIALS
- choose OAuth Client ID
- choose Web Application
- add the following Authorized Redirect URI
- click CREATE
take note of:
- client id
- client secret
Test the Created Google OAuth
- goto: https://oauthdebugger.com/
- fill out form as followed
- we are going to access the
profilescope of a Google Account
/oauth---google-api-example/oauthdebugger-1.png)
Click SEND REQUEST
This redirects to google account login page
/oauth---google-api-example/google-redirect.png)
on successful login, it redirects back to https://oauthdebugger/debug
/oauth---google-api-example/oauthdebugger-2.png)
Next use the returned Authorization Code to get the Access/Bearer Token from https://oauth2.googleapis.com/token
/oauth---google-api-example/postman-get-access-token.png)
Use the returned Access Token to access the Resource Owner’s data via making a API call to a Resource Server
/oauth---google-api-example/postman-use-access-token.png)
now we have received the Google Account’s profile information