Im trying to get the access token from OAuth 2.0 Playground through POSTMAN. Theses are the configurations. When the Request the token it says Could not complete Oauth2 login
. Any reason why i cannot get the token?. How to resolve this?
3 Answers
I also encounter the same problem yesterday. After debugging the request I figure out that postman sends the request to this domain: https://app.getpostman.com , which is blocked in our internal network. When it is unblocked authorization request working successfully.
-
1
To add to Joshi's answer, the missing part that the Google API needs to know how to call back to Postman.
In the first screen is where Postman shows you the callback URL to use, which as of March 2018 is https://www.getpostman.com/oauth2/callback I imagine this can change.
In the second screen is in the Google API settings where you set that callback URL. Your "Client ID for Web Application" needs to call back to Postman to complete the authorization.
In my case (ubuntu) I had to turn off SSL verification
File > Settings > General Tab > REQUEST Section > SSL certificate verification = OFF:
oauth
playground, the oauth flow works great. However, I dont know where to get theclientId
,client secret
. where did you get those two?