lib/warden-github/strategy.rb in warden-github-0.1.0 vs lib/warden-github/strategy.rb in warden-github-0.1.1
- old
+ new
@@ -53,15 +53,5 @@
request.port == 443 ? "" : ":#{request.port}"
end
"#{request.scheme}://#{request.host}#{port_part}#{suffix}"
end
end
-
-Warden::Manager.after_authentication do |user, proxy, opts|
- redirect_to = proxy.env['rack.session']['return_to']
- proxy.env['rack.session'].delete('return_to')
- if redirect_to
- response = Rack::Response.new
- response.redirect redirect_to
- throw :warden, response.finish
- end
-end