jaredhanson / oauth2orize

OAuth 2.0 authorization server toolkit for Node.js.
https://www.oauth2orize.org?utm_source=github&utm_medium=referral&utm_campaign=oauth2orize
MIT License
3.46k stars 471 forks source link

Failed to obtain access token #129

Open CozmaSerban opened 9 years ago

CozmaSerban commented 9 years ago

Hello, I have a problem and i cant get the access token.In other words i checked and i cant 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)

Mague commented 8 years ago

verifica que estas incluyendo la libreria de body-parser