jaredhanson / jaredhanson/oauth2orize

Failed to obtain access token

Open
#129 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.5k
Forks
472
PR merge metrics
No merged PRs in 30d

Description

Hello,
I have a problem and i can`t get the access token.In other words i checked and i can`t make the exchange between the authorization code and the access token.I also checked the db and there are authcodes saved. This error appears on the callback redirect after the client authorised..

Failed to obtain access token

InternalOAuthError: Failed to obtain access token
at OAuth2Strategy._createOAuthError (C:\Users\Serban\Desktop\JDL-client-test\node_modules\passport-oauth2\lib\strategy.js:348:17)
at C:\Users\Serban\Desktop\JDL-client-test\node_modules\passport-oauth2\lib\strategy.js:171:43
at C:\Users\Serban\Desktop\JDL-client-test\node_modules\passport-oauth2\node_modules\oauth\lib\oauth2.js:176:18
at passBackControl (C:\Users\Serban\Desktop\JDL-client-test\node_modules\passport-oauth2\node_modules\oauth\lib\oauth2.js:123:9)
at IncomingMessage. (C:\Users\Serban\Desktop\JDL-client-test\node_modules\passport-oauth2\node_modules\oauth\lib\oauth2.js:142:7)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the OAuth callback redirect and trace the authorization-code exchange described in the report, using the passport-oauth2 stack trace as the initial lead. Compare the callback and token-request configuration with the saved authorization codes; done means the reported flow obtains an access token or the failing request is identified and reproducible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.