lib/omniauth/failure_endpoint.rb in omniauth-1.8.1 vs lib/omniauth/failure_endpoint.rb in omniauth-1.9.0
- old
+ new
@@ -31,14 +31,16 @@
Rack::Response.new(['302 Moved'], 302, 'Location' => new_path).finish
end
def strategy_name_query_param
return '' unless env['omniauth.error.strategy']
+
"&strategy=#{env['omniauth.error.strategy'].name}"
end
def origin_query_param
return '' unless env['omniauth.origin']
+
"&origin=#{Rack::Utils.escape(env['omniauth.origin'])}"
end
end
end