2013-10-21 74 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