gds-sso 3.0.5 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/app/controllers/api/user_controller.rb +1 -1
- data/config/routes.rb +5 -5
- data/lib/gds-sso/user.rb +1 -1
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +3 -3
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +354 -27554
- data/spec/requests/end_to_end_spec.rb +1 -1
- data/spec/tasks/signonotron_tasks.rake +1 -1
- data/test/session_serialisation_test.rb +3 -3
- metadata +5 -5
|
@@ -89,7 +89,7 @@ describe "Integration of client using GDS-SSO with signonotron" do
|
|
|
89
89
|
|
|
90
90
|
# Simulate a POST to /auth/gds/api/users/:uid/reauth by SOOT
|
|
91
91
|
# This is already tested in api_user_controller_spec.rb
|
|
92
|
-
user = User.
|
|
92
|
+
user = User.where(:uid => "integration-uid").first
|
|
93
93
|
user.set_remotely_signed_out!
|
|
94
94
|
|
|
95
95
|
page.driver.header 'accept', 'text/html'
|
|
@@ -21,7 +21,7 @@ namespace :signonotron do
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
Dir.chdir gem_root + 'tmp' + @app_to_launch do
|
|
24
|
-
env_to_clear = %w(BUNDLE_GEMFILE BUNDLE_BIN_PATH RUBYOPT GEM_HOME GEM_PATH)
|
|
24
|
+
env_to_clear = %w(BUNDLE_GEMFILE BUNDLE_BIN_PATH RUBYOPT GEM_HOME GEM_PATH RBENV_VERSION)
|
|
25
25
|
|
|
26
26
|
env_stuff = case `uname`.strip
|
|
27
27
|
when "Darwin"
|
|
@@ -32,7 +32,7 @@ class SessionSerialisationTest < Test::Unit::TestCase
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def test_deserializing_a_user_and_in_date_timestamp_returns_the_user
|
|
35
|
-
User.expects(:
|
|
35
|
+
User.expects(:where).with(:uid => 1234).returns(stub(:first => :a_user))
|
|
36
36
|
|
|
37
37
|
result = @serializer.deserialize [1234, Time.now.utc - GDS::SSO::Config.auth_valid_for + 3600]
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ class SessionSerialisationTest < Test::Unit::TestCase
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def test_deserializing_a_user_and_out_of_date_timestamp_returns_nil
|
|
43
|
-
User.expects(:
|
|
43
|
+
User.expects(:where).never
|
|
44
44
|
|
|
45
45
|
result = @serializer.deserialize [1234, Time.now.utc - GDS::SSO::Config.auth_valid_for - 3600]
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ class SessionSerialisationTest < Test::Unit::TestCase
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def test_deserializing_a_user_without_a_timestamp_returns_nil
|
|
51
|
-
User.expects(:
|
|
51
|
+
User.expects(:where).never
|
|
52
52
|
|
|
53
53
|
result = @serializer.deserialize 1234
|
|
54
54
|
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: gds-sso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 3.0
|
|
5
|
+
version: 3.1.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Matt Patterson
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2013-
|
|
14
|
+
date: 2013-09-06 00:00:00 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -97,7 +97,7 @@ dependencies:
|
|
|
97
97
|
requirements:
|
|
98
98
|
- - "="
|
|
99
99
|
- !ruby/object:Gem::Version
|
|
100
|
-
version: 2.
|
|
100
|
+
version: 2.35.1
|
|
101
101
|
type: :development
|
|
102
102
|
prerelease: false
|
|
103
103
|
version_requirements: *id008
|
|
@@ -243,7 +243,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
243
243
|
requirements:
|
|
244
244
|
- - ">="
|
|
245
245
|
- !ruby/object:Gem::Version
|
|
246
|
-
hash:
|
|
246
|
+
hash: 2271075562235336890
|
|
247
247
|
segments:
|
|
248
248
|
- 0
|
|
249
249
|
version: "0"
|
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
252
252
|
requirements:
|
|
253
253
|
- - ">="
|
|
254
254
|
- !ruby/object:Gem::Version
|
|
255
|
-
hash:
|
|
255
|
+
hash: 2271075562235336890
|
|
256
256
|
segments:
|
|
257
257
|
- 0
|
|
258
258
|
version: "0"
|