Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

after_authenticate is screwing things up

  • Loading branch information...
commit 38daa589f0ded0c79da7749700fca78991a48c51 1 parent 4d8b200
@atmos atmos authored
View
10 lib/warden-github/strategy.rb
@@ -55,13 +55,3 @@ def absolute_url(request, suffix = nil)
"#{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
View
2  lib/warden-github/version.rb
@@ -1,5 +1,5 @@
module Warden
module Github
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
end
end
View
4 warden-github.gemspec
@@ -1,9 +1,11 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
+require 'warden-github/version'
+
Gem::Specification.new do |s|
s.name = "warden-github"
- s.version = "0.1.0"
+ s.version = Warden::Github::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Corey Donohoe"]
s.email = ["atmos@atmos.org"]

0 comments on commit 38daa58

Please sign in to comment.
Something went wrong with that request. Please try again.