NodeJS BookShelf App OAuth 2.0 (Authenticating Users section) not working

不想你离开。 提交于 2020-01-25 19:01:04

问题


As the heading suggests, I am going through the NodeJS BookShelf App tutorial (in the Authenticating Users section) on google cloud platform. I have generated an OAuth Client ID Web Application Key and input the redirect URI's exactly in the app as well as in the config.json file locally. Whenever I try to login in the app, it holds for about a minute then redirects to a page that says "Something Broke!". In the browser console it reported internal server error 500.

Has anyone had this problem before?

Why is it not working?

Thanks


回答1:


I had trouble with this stage of the tutorial as well. The "MEMCACHE_URL" environment variable defined in 'config.js' defaulted to "127.0.0.1:11211" -- replacing "127.0.0.1" with "memcache" (ie "memcache:11211") resolved the issue for me.

This github issue provided the necessary hint.



来源:https://stackoverflow.com/questions/38127005/nodejs-bookshelf-app-oauth-2-0-authenticating-users-section-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!