plataformatec/devise — Issue #1585: Email confirmation causes redirect to Omniauth auth callback url
Author: mehayden
Created: 2012-01-20 04:22:43+00:00
State: open

Not sure if this is a Devise, OmniAuth or doc issue.

On successful confirmation, after_sign_in_path_for is returning the /auth/:provider/callback... url stored in the session and the user is redirected there. Fixed by redefining the after_sign_in_path_for method in the application controller. It checks the url being returned from the session by stored_location_for and returns signed_in_root_path(resource) instead, if it recognizes the auth callback url.

I couldn't determine where the auth callback was being set into the session.

Seems same as issue 818 closed.