簡體   English   中英

設計和谷歌oauth。 (ror3)

[英]Devise and google oauth. (ror3)

有可能一起使用devise和google oauth嗎? 我已經成功設置了Facebook的設計,但以下谷歌配置不起作用。 我必須直接使用oauth2嗎?

   config.oauth :google, 'anonymous', 'anonymous',
 :site               => 'https://www.google.com',
 :request_token_path => "/accounts/OAuthGetRequestToken",
 :access_token_path  => "/accounts/OAuthGetAccessToken",
 :authorize_path     => "/accounts/OAuthGetAuthorizeToken",
 :signature_method   => "RSA-SHA1",
 :private_key_file   => '/rsakey.pem',
 :scope              => "https://www.google.com/m8/feeds/"

好吧,我的錯誤。 谷歌使用oauth,而設計只支持oauth2,據我所知,它們不是向后兼容的。 所以我必須使用自己的實現。

暫無
暫無

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

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