intridea/omniauth — Issue #532: Passing random url params
Author: snitko
Created: 2011-11-03 17:04:10+00:00
State: open

I'm using omniauth with devise and I'm wondering how to pass url params and access them.

Here's a link example: `/accounts/auth/facebook?do_something_after_return=1`
Now I want to be able to retrieve this `do_something_after_return` in the callback. I don't care if it's saved in session or elsewhere. Problem is, I don't know where can I intercept this param.

What is the controller and the action that link `/accounts/auth/facebook` points to?
Routes tell me nothing, it's simply not there. All I have in the routes is this `/accounts/auth/:provider(.:format {:controller=>"accounts/omniauth_callbacks", :action=>"passthru"}` which is a callback.