Using Google OAuth in Ruby on Rails Sites

Update: The code given below is outdated. Take a look at this commit for code which worked on March 12, 2010. You do not need RSA keys and you need to add next_url as oauth_callback parameter in the initial call to get request token. Also oauth_verifier needs to be passed on when upgrading from request token to access token

OAuth allows the user to securely share data from provider sites (in this case google) to consumer sites (in this case your ruby on rails site). You can use OAuth to authenticate users or consume API's on their behalf. Here we will have a look at both.


blog comments powered by Disqus