我正在嘗試在Ruby on Rails中使用Google Apps執行OmniAuth OpenID。我知道如果我指定「:identifier =>'https://www.google.com/accounts/o8/site-xrds?hd=example.com'」,那麼它應該可以直接使用,其中example.com是我的目標用戶來自的域名。如何禁用發現併爲omniauth-openid指定OpenID服務器
沒有問題,訪問/認證/谷歌時,用戶可以重定向到谷歌,這openid.identity可以從谷歌返回:
... &openid.identity=http://example.com/openid?id=xxxxxxxxxxxxxxxxxxxxxxx ...
不過,我一起工作的example.com呢沒有正確的「rel ='openid2.provider'」< link/>標籤設置在http://example.com/,因此當omniauth-openid試圖再次與Google進行檢查時,發現失敗。
是否有一種快速而乾淨的方法來解決默認的發現行爲,以便我可以直接將https://www.google.com/a/example.com/o8/ud?be=o8定義爲服務器而不執行自動發現?
謝謝!
謝謝!這正是我想要的。 – jiehanzheng 2012-08-20 07:05:39