lib/omniauth/strategies/cas3/logout_request.rb in omniauth-cas3-1.1.1 vs lib/omniauth/strategies/cas3/logout_request.rb in omniauth-cas3-1.1.2
- old
+ new
@@ -57,14 +57,12 @@
# In order to add namespaces properly we need to re-parse the document
Nokogiri.parse(logout_request_doc.to_s)
end
def inject_params(new_params)
- rack_input = @request.env['rack.input'].read
- params = Rack::Utils.parse_query(rack_input).merge new_params
- @request.env['rack.input'] = StringIO.new(Rack::Utils.build_query(params))
- ensure
- @request.env['rack.input'].rewind
+ new_params.each do |key, val|
+ @request.update_param(key, val)
+ end
end
def single_sign_out_callback
@options[:on_single_sign_out]
end