1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Store params in omniauth.params instead of request_params in the session.

This commit is contained in:
Michael Bleigh 2011-11-25 08:56:15 -05:00
parent 77e9ffb368
commit c98b6e0637

View file

@ -179,7 +179,7 @@ module OmniAuth
setup_phase
#store query params from the request url, extracted in the callback_phase
session['query_params'] = Rack::Request.new(env).params
session['omniauth.params'] = request.params
if options.form.respond_to?(:call)
options.form.call(env)
@ -200,7 +200,7 @@ module OmniAuth
setup_phase
@env['omniauth.origin'] = session.delete('omniauth.origin')
@env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
@env['omniauth.params'] = session.delete('query_params') || {}
@env['omniauth.params'] = session.delete('omniauth.params') || {}
callback_phase
end