[英]Can't login to Django on Google App Engine and Google Apps
My (empty) django project deploys just fine, but when I switch to login: required
and set the Authentication Type
to Google Apps domain
I get a 500. 我的(空)django项目可以很好地部署,但是当我切换到login: required
并将Authentication Type
设置为Google Apps domain
我得到了500。
Sadly there doesn't seem to be any debugging info on GAE. 遗憾的是,GAE上似乎没有任何调试信息。 Nor can I reproduce the error locally. 我也不能在本地重现该错误。 I checked the domain name I entered twice. 我检查了两次输入的域名。
Any lucky guesses? 有幸运的猜测吗?
Ok, found the problem. 好,找到问题了。
Looking into the AppEngine logs it discovered this: 查看AppEngine日志后发现:
Authentication for the Google Apps domain example.com can only be performed when requests are served from a subdomain of that domain or it has been approved through the Google Apps Control Panel. See https://developers.google.com/appengine/articles/auth
The solution is discribed here: https://developers.google.com/appengine/articles/auth#AppspotDomainAuth 该解决方案的描述如下: https : //developers.google.com/appengine/articles/auth#AppspotDomainAuth
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.