mohd7469 / oauth2orize-examples

Some oauth examples and implementation.
MIT License
230 stars 95 forks source link

Unable to EXchange Access token for auth code #24

Open Viraz04 opened 4 years ago

Viraz04 commented 4 years ago

Hi, I was able to get the auth code but when i call the token api, i get Unauthorised 401 Error, I am passing these values in the url http://localhost:3000/oauth/token?grant_type=authorization_code&code=tncHiOrBZRcvjJQ1&redirect_uri=http://localhost:3000/account&client_id=abc123&client_secret=ssh-secret Please help with his, I am stuck.

Jason-test-automation commented 4 years ago

Hi, I'm also stuck here, do you have any soluation now?

rognstad commented 3 years ago

I commented on this over on the main repo: https://github.com/jaredhanson/oauth2orize/issues/238

Basically, POST that data as url-encoded form instead of using query params