设计和谷歌oauth。 (ror3)
问题描述:
可以将devise和google oauth一起使用吗? 我已成功设置facebook的设计,但以下 谷歌配置不起作用。我必须直接使用oauth2吗?设计和谷歌oauth。 (ror3)
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/"
答
好的,我的错。 Google使用oauth,而devise仅支持oauth2,而且据我所知,它们不是向后兼容的。所以我必须使用我自己的实现。
你可以发布你的实施? 我有完全相同的问题 – Rubinsh 2011-03-17 17:58:16