Permalink
Browse files

after_authenticate is screwing things up

  • Loading branch information...
1 parent 4d8b200 commit 38daa589f0ded0c79da7749700fca78991a48c51 @atmos atmos committed Jun 27, 2011
Showing with 4 additions and 12 deletions.
  1. +0 −10 lib/warden-github/strategy.rb
  2. +1 −1 lib/warden-github/version.rb
  3. +3 −1 warden-github.gemspec
@@ -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
@@ -1,5 +1,5 @@
module Warden
module Github
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
end
end
@@ -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.