NodeJS BookShelf应用程序OAuth 2.0(认证用户部分)不工作 [英] NodeJS BookShelf App OAuth 2.0 (Authenticating Users section) not working
问题描述
如标题所示,我将在google云平台上通过NodeJS BookShelf应用程序教程(在认证用户部分)。我已生成OAuth客户端ID Web应用程序密钥,并在本地输入重定向URI的完全在应用程序以及在config.json文件。每当我尝试登录的应用程序,它大约一分钟,然后重定向到一个页面,说东西打破!。在浏览器控制台中,它报告内部服务器错误500.
以前有人有此问题吗?
它不工作?
感谢
阶段的教程以及。在config.js中定义的MEMCACHE_URL环境变量默认为127.0.0.1:11211 - 用memcache替换127.0.0.1(即memcache:11211)解决了我的问题。 p>
这个github问题提供必要的提示。
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
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.
这篇关于NodeJS BookShelf应用程序OAuth 2.0(认证用户部分)不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!