3

是否可以一起使用设计和谷歌oauth?我已经在 devise 中成功设置了 facebook,但是下面的 google 配置不起作用。我必须直接使用 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/"
4

1 回答 1

2

好吧我的错。Google 使用 oauth,而 devise 仅支持 oauth2,据我了解,它们不向后兼容。所以我必须使用我自己的实现。

于 2010-10-02T21:09:36.497 回答