NodeJS BookShelf App OAuth 2.0 (Authenticating Use

2019-09-10 12: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条回答
兄弟一词,经得起流年.
2楼-- · 2019-09-10 12:21

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.

查看更多
登录 后发表回答