簡體   English   中英

Ruby和Rails與Omniauth-Google和OpenID錯誤

[英]Ruby and rails with Omniauth - google and openid error

我將omniauth 0.1.5與rails 2.3.8結合使用,並成功實現了Twitter和Facebook身份驗證。 但是,Openid給我一些問題,即以下問題:

警告:在不驗證服務器證書的情況下向https://www.google.com/accounts/o8/.well-known/host-meta?hd=www.google.com發出https請求; 未指定CA路徑。 SQL(0.1毫秒)SET NAMES'utf8'SQL(0.1毫秒)SET SQL_AUTO_IS_NULL = 0對https://www.google.com/accounts/o8/id執行發現發現用戶身份https://www.google.com/網域www.google.com緩存的accounts / o8 / id讀取:__GAPPS_OPENID__www.google.com意外的異常,它對ID https://www.google.com/accounts/o8/id進行發現:提取https:// www時出錯。 google.com/accounts/o8/.well-known/host-meta?hd=www.google.com :連接被拒絕-connect(2)

這是在environment.rb中的調用:使用OmniAuth :: Strategies :: OpenID,OpenID :: Store :: Filesystem.new('/ tmp')、: name =>'google',:identifier =>'https: //www.google.com/accounts/o8/id'

我在代理服務器后面,所以我認為這可能會起作用,但是錯誤消息有點模糊。 另外,我在其他地方設置了代理。

有任何想法嗎?

和往常一樣,歡呼。

Slothistype

這是一個代理問題,可以通過正確設置http代理環境解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM