I'm developing an app that will need google's OAuth2.0. Initially, I was trying to test the webservice using postman. and below are the steps that I've followed.
- In https://console.developers.google.com/, I've created a project.
- Under Library I've enabled Google People API
- In credentials, I've created one with https://www.getpostman.com/oauth2/callback as redirect URL
- I got the lient secret and client ID.
With the above details I'm trying to test the same in postman.
In post man I did the below steps.
- Selected OAuth2.0 under Authorization and clicked on get new Access token. This opened a new window and I entered the below details.
- Auth URL : https://accounts.google.com/o/oauth2/auth
- Access Token URL : https://accounts.google.com/o/oauth2/token
- Client ID : the one that I got from google console
- Client Secret : the one that I got from google console
- Scope: https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/contacts.readonly https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/user.addresses.read https://www.googleapis.com/auth/user.birthday.read https://www.googleapis.com/auth/user.emails.read https://www.googleapis.com/auth/user.phonenumbers.read https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
- Grant Type: Authorization Code.
And when I click on request token, I'm redirected to accept the permission and to my surprise, the configuration details window (In postman), doesn't go off and display me a token. Below is a screenshot post I click on Request Token.
Please let me know where am I going wrong and how can I fix this.
Thanks