I’ve looked through the documentation and I can’t figure out the specific line I’m meant to use to get devise + omniauth + google working together nicely.
This strategy file suggests there’s an easy way of doing it but I can’t find an example.
https://github.com/intridea/omniauth/blob/master/oa-oauth/lib/omniauth/strategies/google.rb
At the moment I’m using the line below in the devise.rb initializer file.
config.omniauth :google, GOOGLE_APP_ID, GOOGLE_SECRET_KEY
but I’m pretty sure it’s incomplete.
Also, I’m struggling to find where I should sign up for the google app id and secret key.
Thanks in advance.
Graeme
The line I used in the end was …
Turns out I was missing the scope I needed to access Picasa, which was what was causing me problems.