Create and google oauth. (Ror3)

Is it possible to use devpose and google oauth together? I have successfully set up facebook in development, but the following google configuration does not work. Should I use oauth2 directly?

   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/"
+3
source share
1 answer

Ok, my mistake. Google uses oauth, while devise only supports oauth2, and they, as I understand it, do not support backward compatibility. So I have to use my own implementation.

+2
source

Source: https://habr.com/ru/post/1767680/


All Articles