错误:无法获取请求令牌(Oauth)

时间:2016-04-28 07:56:33

标签: node.js express oauth passport.js

无法验证

我正在为Oauth尝试npm passport-500px 我在请求Oauth路线后得到了这个。

无法使用passport-500px-oauth策略进行身份验证

InternalOAuthError: Failed to obtain request token
       at Strategy.OAuthStrategy._createOAuthError (C:\Users\Sumant Bagade\Desktop\Facebook OAuth\node_modules\passport-500px\node_modules\passport-oauth\node_modules\passport-oauth1\lib\strategy.js:396:17)
       at C:\Users\Sumant Bagade\Desktop\Facebook OAuth\node_modules\passport-500px\node_modules\passport-oauth\node_modules\passport-oauth1\lib\strategy.js:244:41
       at C:\Users\Sumant Bagade\Desktop\Facebook OAuth\node_modules\passport-500px\node_modules\passport-oauth\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:543:17
       at ClientRequest.<anonymous> (C:\Users\Sumant Bagade\Desktop\Facebook OAuth\node_modules\passport-500px\node_modules\passport-oauth\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:421:9)
       at emitOne (events.js:77:13)
       at ClientRequest.emit (events.js:169:7)
       at TLSSocket.socketErrorListener (_http_client.js:256:9)
       at emitOne (events.js:77:13)
       at TLSSocket.emit (events.js:169:7)
       at connectErrorNT (net.js:996:8)

我试过了 -

  1. localhost to 127.0.0.1

  2. 删除{secure:true in middleware}

  3. 在应用设置中设置回调网址

  4. 不知道这里有什么不对。

0 个答案:

没有答案