Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not complete Oauth2 login

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?

enter image description here

like image 966
TRomesh Avatar asked Jun 23 '17 19:06

TRomesh


People also ask

How do I fix OAuth error?

When a user tries to login after the session id is expired, the system throws the OAuth error. Solution: Typically, clearing the browser or device cache fixes the problem.

What does OAuth error mean?

Errors can occur during OAuth authorization. For example, a user denies access to the connected app or request parameters are incorrect. When errors occur, the authorizing server sends an error code to the callback URL with an error code.


2 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.

like image 56
Ghanshyam Joshi Avatar answered Oct 20 '22 17:10

Ghanshyam Joshi


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.

enter image description here

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.

enter image description here

like image 22
Daniel Williams Avatar answered Oct 20 '22 18:10

Daniel Williams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!