ForbiddenError:无法从会话加载OAuth 2.0事务

时间:2015-09-17 03:20:39

标签: javascript node.js oauth

我正在跟进来自there的教程系列,有点卡在implementing with oauth部分。目前,我可以从啤酒柜中生成code。但我无法检索令牌。到目前为止,错误消息是

ForbiddenError: Unable to load OAuth 2.0 transactions from session
    at transactionLoader (/home/admin/beerlocker/node_modules/oauth2orize/lib/middleware/transactionLoader.js:37:42)
    at Layer.handle [as handle_request] (/home/admin/beerlocker/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/admin/beerlocker/node_modules/express/lib/router/route.js:131:13)
    at complete (/home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:243:13)
    at /home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:250:15
    at pass (/home/admin/beerlocker/node_modules/passport/lib/authenticator.js:421:14)
    at Authenticator.transformAuthInfo (/home/admin/beerlocker/node_modules/passport/lib/authenticator.js:443:5)
    at /home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:247:22
    at IncomingMessage.req.login.req.logIn (/home/admin/beerlocker/node_modules/passport/lib/http/request.js:61:13)
    at BasicStrategy.strategy.success (/home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:228:13)
    at verified (/home/admin/beerlocker/node_modules/passport-http/lib/passport-http/strategies/basic.js:91:10)
    at /home/admin/beerlocker/controllers/auth.js:26:16
    at /home/admin/beerlocker/models/user.js:40:5
    at /home/admin/beerlocker/node_modules/bcrypt-nodejs/bCrypt.js:689:3
    at process._tickCallback (node.js:448:13)
ForbiddenError: Unable to load OAuth 2.0 transactions from session
    at transactionLoader (/home/admin/beerlocker/node_modules/oauth2orize/lib/middleware/transactionLoader.js:37:42)
    at Layer.handle [as handle_request] (/home/admin/beerlocker/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/admin/beerlocker/node_modules/express/lib/router/route.js:131:13)
    at complete (/home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:243:13)
    at /home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:250:15
    at pass (/home/admin/beerlocker/node_modules/passport/lib/authenticator.js:421:14)
    at Authenticator.transformAuthInfo (/home/admin/beerlocker/node_modules/passport/lib/authenticator.js:443:5)
    at /home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:247:22
    at IncomingMessage.req.login.req.logIn (/home/admin/beerlocker/node_modules/passport/lib/http/request.js:61:13)
    at BasicStrategy.strategy.success (/home/admin/beerlocker/node_modules/passport/lib/middleware/authenticate.js:228:13)
    at verified (/home/admin/beerlocker/node_modules/passport-http/lib/passport-http/strategies/basic.js:91:10)
    at /home/admin/beerlocker/controllers/auth.js:26:16
    at /home/admin/beerlocker/models/user.js:40:5
    at /home/admin/beerlocker/node_modules/bcrypt-nodejs/bCrypt.js:689:3
    at process._tickCallback (node.js:448:13)

任何帮助将不胜感激

0 个答案:

没有答案