intridea/omniauth — Issue #498: google_apps with Devise  - Redirect after signing in fails - session is nil
Author: professor
Created: 2011-10-08 01:41:24+00:00
State: open

I originally posted this issue on the devise github, but it is beginning to look like an integration issue with the google_apps strategy: https://github.com/plataformatec/devise/issues/1357

Short version. I have a database of my own google apps users. When the user is authenticated, I pull their user record out of my database. Login / logout works fine. When the user tries to access a protected page, they are not redirected to the page they requested because the session is nil after omniauth is finished.

I have created a test application that illustrates this here: https://github.com/professor/Test-Omniauth-Devise/tree/devise -- note this is the devise branch of my test application. (My master branch shows it working without devise.)