gatekeeper 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gatekeeper}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chris Dinn"]
12
- s.date = %q{2010-01-16}
12
+ s.date = %q{2010-01-25}
13
13
  s.description = %q{Connects any Rack-compatible app to a Hot Ink single sign on server.}
14
14
  s.email = %q{chrisgdinn@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,7 +19,9 @@ module Gatekeeper
19
19
 
20
20
  if session['sso_return_to']
21
21
  begin
22
- return_url = URI.parse(session['sso_return_to'])
22
+ session_url = session['sso_return_to']
23
+ session['sso_return_to'] = nil
24
+ return_url = URI.parse(session_url)
23
25
 
24
26
  unless return_url.host==request.host
25
27
  user_token = UserToken.create!(:user_id => sso_user_id, :email => sso_user_email)
@@ -29,12 +31,9 @@ module Gatekeeper
29
31
  return_url.query = "user_token=#{user_token.token}&#{return_url.query}"
30
32
  end
31
33
  end
32
-
33
34
  redirect return_url.to_s
34
35
  rescue
35
36
  redirect '/'
36
- ensure
37
- session['sso_return_to'] = nil
38
37
  end
39
38
  else
40
39
  redirect '/'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gatekeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dinn
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-16 00:00:00 -07:00
12
+ date: 2010-01-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency