Devise + Omniauth – How to pass extra parameters along?

You have to use the :params options, as in

omniauth_authorize_path(:user, :facebook, var: 'value', var2: 'value2' )

and later in the callback you can access request.env['omniauth.params'] to get the hash! 🙂

Leave a Comment