2013-10-21 48 views
3

我最近部署了GAE应用程序(即http://www.stashboard.org/)以帮助管理我公司的应用程序池。Google App Engine上的域限制认证

为了不发布池的状态tout每个人(客户,其他公司...)我希望只允许访问那些用他们的公司帐户登录(即:[email protected])的人。

域名“mycompany.com”不由谷歌管理。

当我设置身份验证类型为“谷歌Apps域”我再也不能登录到应用程序,我得到一个错误500,而不是:登录

Error: Server Error

The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it.

以下错误:

2013-10-21 14:42:57.856 /admin 500 55ms 0kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36 194.206.149.66 - - [21/Oct/2013:05:42:57 -0700] "GET /admin HTTP/1.1" 500 0 - "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36" "xxxxxx.appspot.com" ms=56 cpu_ms=0 app_engine_release=1.8.6 W 2013-10-21 14:42:57.856

Authentication for the Google Apps domain mycompany.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

链接的文档对我的帮助不大,负责管理Google Apps的管理员在控制面板中找不到如何“批准”域(appspot.com,我猜)。

仅供参考:这是我第一次与GAE合作,这使我成为我公司中最有经验的GAE用户......所以我们在这里相当无能。

+0

您是说该域名不是由Google管理,然后您的Google Apps管理员找不到内容..所以我的问题是,mycompany.com是否由Google Apps管理? – Lipis

+0

你可以试试这个。 https://support.google.com/a/answer/45690?hl=zh-CN –

+0

@Lipis:域名不是由谷歌管理,但我的公司仍然使用Gapps。 – girardid

回答

2

为了实现这一目标并使其发挥作用,我认为您必须将此Google App Engine应用添加到您的Google Apps域控制面板中。为了实现这一目标,您必须首先使用Google Apps管理mycompany.com域。之后,如果您转至https://appengine.google.com>找到您的应用>应用设置>添加域并按照该步骤操作。

一旦你会看到你的GAE应用在谷歌Apps信息中心,你也可能会需要添加一些东西在app.yaml能够限制用户:

- url: .* 
    script: main.py 
    login: required 

重新部署应用程序的后访问权限应仅限于您所需的域名。

+0

谢谢你的回答。我将与管理员讨论。但是,我不太明白“用Google Apps管理域”的含义。是否只是为了让他们创建子域名?或者是否必须通过谷歌“注册”域名(而不是我正在寻找的词,对不起,我的英语正在生锈)? – girardid

+0

@girardid您必须仔细阅读以下内容:https://developers.google.com/appengine/docs/domain我希望它能为您清除一些内容 – Lipis

+0

谢谢,我会与管理员沟通并保留你发布了。 – girardid