current_user is nil:NilClass after Google open_id callback

16 views
Skip to first unread message

Pedr

unread,
Jan 25, 2012, 6:29:47 AM1/25/12
to Devise
Hello,

I am handling callbacks in my omniauth_callbacks_controller and I'm
successfully handling callbacks from Facebook and Twitter and can
access current_user in their respective callbacks. However when I
receive a callback from Google/open_id, current_user is nil:NilClass.
I am getting Omniauth data passed to the callback OK, but with a Nil
current_user I can't handle it.

My open_id setup looks like this:

require 'openid/store/filesystem'
config.omniauth :open_id, :store => OpenID::Store::Filesystem.new('/
tmp'), :name => 'google', :identifier => 'https://www.google.com/
accounts/o8/id', :require => 'omniauth-openid'

What could be casuing this?

Thanks

Guilherme Simões

unread,
Feb 10, 2012, 2:55:54 PM2/10/12
to Devise
I had this working before but I am now facing exactly the same problem
as you are. I'm using Devise and Omniauth gems and Facebook and
Twitter authentications are working but now Google authentication
isn't. Have you found the solution to this problem?
Reply all
Reply to author
Forward
0 new messages