gds-sso 9.2.3 → 9.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.2.3"
3
+ VERSION = "9.2.4"
4
4
  end
5
5
  end
@@ -172,10 +172,13 @@ Warden::Strategies.add(:mock_gds_sso_api_access) do
172
172
  dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.where(email: "dummyapiuser@domain.com").first
173
173
  if dummy_api_user.nil?
174
174
  dummy_api_user = GDS::SSO::Config.user_klass.new(
175
+ {
175
176
  email: "dummyapiuser@domain.com",
176
177
  uid: "#{rand(10000)}",
177
- name: "Dummy API user created by gds-sso",
178
- as: :oauth)
178
+ name: "Dummy API user created by gds-sso"
179
+ },
180
+ {as: :oauth}
181
+ )
179
182
  dummy_api_user.permissions = ["signin"]
180
183
  dummy_api_user.save!
181
184
  end
@@ -1,375 +1,375 @@
1
1
  Connecting to database specified by database.yml
2
2
   (1.8ms) select sqlite_version(*)
3
-  (16.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
4
-  (9.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
-  (11.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:35 +0000
7
- Processing by ExampleController#this_requires_signin_permission as JSON
8
- Authenticating with gds_bearer_token strategy
9
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10
-  (0.1ms) begin transaction
11
- SQL (27.5ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
12
-  (15.8ms) commit transaction
13
-  (0.1ms) begin transaction
14
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
15
- - signin
16
- ' WHERE "users"."id" = 1
17
-  (16.0ms) commit transaction
18
- Rendered text template (0.0ms)
19
- Completed 200 OK in 636.7ms (Views: 35.3ms | ActiveRecord: 60.1ms)
20
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:36 +0000
21
- Processing by ExampleController#restricted as JSON
22
- Authenticating with gds_bearer_token strategy
23
- Completed in 10.0ms
24
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:36 +0000
25
- Processing by ExampleController#restricted as JSON
26
- Authenticating with gds_bearer_token strategy
27
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
28
-  (0.1ms) begin transaction
29
-  (0.2ms) UPDATE "users" SET "permissions" = '---
30
- - signin
31
- ' WHERE "users"."id" = 1
32
-  (9.6ms) commit transaction
33
-  (0.0ms) begin transaction
34
-  (0.1ms) UPDATE "users" SET "permissions" = '---
35
- - signin
36
- ' WHERE "users"."id" = 1
37
-  (6.7ms) commit transaction
38
- Completed 200 OK in 55.3ms (Views: 0.5ms | ActiveRecord: 16.9ms)
39
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
3
+  (43.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
4
+  (11.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (10.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:18 +0000
40
7
  Processing by ExampleController#restricted as HTML
41
8
  Authenticating with gds_sso strategy
42
- Completed in 0.3ms
43
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
44
- Started GET "/auth/gds/callback?code=9feff442bc8339449747a479149ae50fef26d0bd8930faa3e6eb8e271beed70e&state=e572ef7b148b5abf87c3ec19d2204c8a34cea09625646fbd" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
9
+ Completed in 5.5ms
10
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:18 +0000
11
+ Started GET "/auth/gds/callback?code=c17253b2a19713c3b9dbe7915b5d984ec3e7a7cd9c0aa47dc0637d6040b09638&state=2b9b700aa5caa73ff5bf19cd369cb7122700f421e404c0e1" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
45
12
  Processing by AuthenticationsController#callback as HTML
46
- Parameters: {"code"=>"9feff442bc8339449747a479149ae50fef26d0bd8930faa3e6eb8e271beed70e", "state"=>"e572ef7b148b5abf87c3ec19d2204c8a34cea09625646fbd"}
13
+ Parameters: {"code"=>"c17253b2a19713c3b9dbe7915b5d984ec3e7a7cd9c0aa47dc0637d6040b09638", "state"=>"2b9b700aa5caa73ff5bf19cd369cb7122700f421e404c0e1"}
47
14
  Authenticating with gds_sso strategy
48
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
49
16
   (0.1ms) begin transaction
50
-  (0.1ms) UPDATE "users" SET "permissions" = '---
51
- - signin
52
- ' WHERE "users"."id" = 1
53
-  (10.4ms) commit transaction
54
-  (0.0ms) begin transaction
55
-  (0.1ms) UPDATE "users" SET "permissions" = '---
17
+ SQL (28.4ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
18
+  (15.5ms) commit transaction
19
+  (0.1ms) begin transaction
20
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
56
21
  - signin
57
22
  ' WHERE "users"."id" = 1
58
-  (8.0ms) commit transaction
23
+  (8.4ms) commit transaction
59
24
  Redirected to http://www.example-client.com/restricted
60
- Completed 302 Found in 23.6ms (ActiveRecord: 19.0ms)
61
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
25
+ Completed 302 Found in 72.9ms (ActiveRecord: 53.0ms)
26
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
62
27
  Processing by ExampleController#restricted as HTML
63
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
64
- Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
65
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
28
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
29
+ Rendered text template (0.0ms)
30
+ Completed 200 OK in 36.7ms (Views: 35.4ms | ActiveRecord: 0.2ms)
31
+ Started GET "/" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
32
+ Processing by ExampleController#index as HTML
33
+ Completed 200 OK in 0.9ms (Views: 0.4ms | ActiveRecord: 0.0ms)
34
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
66
35
  Processing by ExampleController#restricted as HTML
67
36
  Authenticating with gds_sso strategy
68
- Completed in 0.1ms
69
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
70
- Started GET "/auth/gds/callback?code=99d4c3b0203b7793235ba45c61245c05528c23307317089e583185810815203b&state=f917756edf3b78a2270d8a3c763a893084d5e8cc36659d68" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
37
+ Completed in 0.3ms
38
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
39
+ Started GET "/auth/gds/callback?code=e7362ce65211ea2b6741694584b57ca545473167d0483975d01314389cb015b2&state=7c50ca72261e2fd14b44e7e2c339c2db7685f04aec2feb5e" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
71
40
  Processing by AuthenticationsController#callback as HTML
72
- Parameters: {"code"=>"99d4c3b0203b7793235ba45c61245c05528c23307317089e583185810815203b", "state"=>"f917756edf3b78a2270d8a3c763a893084d5e8cc36659d68"}
41
+ Parameters: {"code"=>"e7362ce65211ea2b6741694584b57ca545473167d0483975d01314389cb015b2", "state"=>"7c50ca72261e2fd14b44e7e2c339c2db7685f04aec2feb5e"}
73
42
  Authenticating with gds_sso strategy
74
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
43
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
75
44
   (0.0ms) begin transaction
76
-  (0.1ms) UPDATE "users" SET "permissions" = '---
45
+  (0.2ms) UPDATE "users" SET "permissions" = '---
77
46
  - signin
78
47
  ' WHERE "users"."id" = 1
79
-  (10.7ms) commit transaction
48
+  (19.9ms) commit transaction
80
49
   (0.1ms) begin transaction
81
-  (0.1ms) UPDATE "users" SET "permissions" = '---
50
+  (0.2ms) UPDATE "users" SET "permissions" = '---
82
51
  - signin
83
52
  ' WHERE "users"."id" = 1
84
-  (9.4ms) commit transaction
53
+  (17.7ms) commit transaction
85
54
  Redirected to http://www.example-client.com/restricted
86
- Completed 302 Found in 24.7ms (ActiveRecord: 20.7ms)
87
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
55
+ Completed 302 Found in 43.2ms (ActiveRecord: 38.2ms)
56
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
88
57
  Processing by ExampleController#restricted as HTML
89
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
90
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
91
- Started GET "/" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
92
- Processing by ExampleController#index as HTML
93
- Completed 200 OK in 0.8ms (Views: 0.4ms | ActiveRecord: 0.0ms)
94
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
58
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
59
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
60
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
95
61
  Processing by ExampleController#restricted as HTML
96
62
  Authenticating with gds_sso strategy
97
- Completed in 0.3ms
98
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
99
- Started GET "/auth/gds/callback?code=8c875aa43472843d2a509b4a2ab9d76ee9a5c48b643739d5cadc07788123564a&state=13756809d8569bc610932a90076f465bc9dce1f98b5fa32a" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
63
+ Completed in 0.2ms
64
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
65
+ Started GET "/auth/gds/callback?code=e6f087298a5ff4f79a6693db2dc77e75592c933ae3d64a693ea04df5f63724e0&state=253ac4815d8c008b0481db3fab51b911dc19313193887d9c" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
100
66
  Processing by AuthenticationsController#callback as HTML
101
- Parameters: {"code"=>"8c875aa43472843d2a509b4a2ab9d76ee9a5c48b643739d5cadc07788123564a", "state"=>"13756809d8569bc610932a90076f465bc9dce1f98b5fa32a"}
67
+ Parameters: {"code"=>"e6f087298a5ff4f79a6693db2dc77e75592c933ae3d64a693ea04df5f63724e0", "state"=>"253ac4815d8c008b0481db3fab51b911dc19313193887d9c"}
102
68
  Authenticating with gds_sso strategy
103
69
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
104
-  (0.1ms) begin transaction
105
-  (0.1ms) UPDATE "users" SET "permissions" = '---
70
+  (0.0ms) begin transaction
71
+  (0.2ms) UPDATE "users" SET "permissions" = '---
106
72
  - signin
107
73
  ' WHERE "users"."id" = 1
108
-  (25.0ms) commit transaction
109
-  (0.1ms) begin transaction
74
+  (17.2ms) commit transaction
75
+  (0.0ms) begin transaction
110
76
   (0.2ms) UPDATE "users" SET "permissions" = '---
111
77
  - signin
112
78
  ' WHERE "users"."id" = 1
113
-  (11.4ms) commit transaction
79
+  (24.3ms) commit transaction
114
80
  Redirected to http://www.example-client.com/restricted
115
- Completed 302 Found in 42.0ms (ActiveRecord: 37.0ms)
116
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
81
+ Completed 302 Found in 47.0ms (ActiveRecord: 42.1ms)
82
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
117
83
  Processing by ExampleController#restricted as HTML
118
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
119
- Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
120
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
84
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
85
+ Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
86
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
121
87
  Processing by ExampleController#this_requires_signin_permission as HTML
122
88
  Authenticating with gds_sso strategy
123
- Completed in 0.5ms
124
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
125
- Started GET "/auth/gds/callback?code=725eefce866775f0781951ed5ed2a397284098719e55edad778017078eb99ecb&state=59ecf92e3d80fc4e88211dcd1a3b75d7f9dc29b6888ffa9b" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
89
+ Completed in 0.6ms
90
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
91
+ Started GET "/auth/gds/callback?code=793ad87df95f55d54c27b9653ab3c2ac69abb0d3d73264b5ba4dfe4745e639d6&state=03de4cd002c3a90d7fbe999be3e16a041442da29111673fe" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
126
92
  Processing by AuthenticationsController#callback as HTML
127
- Parameters: {"code"=>"725eefce866775f0781951ed5ed2a397284098719e55edad778017078eb99ecb", "state"=>"59ecf92e3d80fc4e88211dcd1a3b75d7f9dc29b6888ffa9b"}
93
+ Parameters: {"code"=>"793ad87df95f55d54c27b9653ab3c2ac69abb0d3d73264b5ba4dfe4745e639d6", "state"=>"03de4cd002c3a90d7fbe999be3e16a041442da29111673fe"}
128
94
  Authenticating with gds_sso strategy
129
95
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
130
-  (0.0ms) begin transaction
131
-  (0.1ms) UPDATE "users" SET "permissions" = '---
96
+  (0.1ms) begin transaction
97
+  (0.2ms) UPDATE "users" SET "permissions" = '---
132
98
  - signin
133
99
  ' WHERE "users"."id" = 1
134
-  (10.6ms) commit transaction
135
-  (0.0ms) begin transaction
136
-  (0.1ms) UPDATE "users" SET "permissions" = '---
100
+  (17.9ms) commit transaction
101
+  (0.1ms) begin transaction
102
+  (0.2ms) UPDATE "users" SET "permissions" = '---
137
103
  - signin
138
104
  ' WHERE "users"."id" = 1
139
-  (13.1ms) commit transaction
105
+  (10.6ms) commit transaction
140
106
  Redirected to http://www.example-client.com/this_requires_signin_permission
141
- Completed 302 Found in 28.8ms (ActiveRecord: 24.3ms)
142
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
107
+ Completed 302 Found in 34.4ms (ActiveRecord: 29.2ms)
108
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
143
109
  Processing by ExampleController#this_requires_signin_permission as HTML
144
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
145
- Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
146
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
110
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
111
+ Completed 200 OK in 2.5ms (Views: 0.5ms | ActiveRecord: 0.3ms)
112
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
147
113
  Processing by ExampleController#this_requires_signin_permission as HTML
148
114
  Authenticating with gds_sso strategy
149
- Completed in 0.1ms
150
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
151
- Started GET "/auth/gds/callback?code=a035fc66195904f4ad6c03beea2aaf4299b6ec7bd4760cb01cd9beb9f2e51c7b&state=95c02c25e5bee4e8c6bbf72fa65fa1e56d9be0e341433328" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
115
+ Completed in 0.2ms
116
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
117
+ Started GET "/auth/gds/callback?code=cd12c3757903f070081a6f8cfe35f6c33c36b026cdc889e6f2f541630fc2c896&state=55f3e34742ca0ff11ee732b228406243c5e12a416f7c473e" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
152
118
  Processing by AuthenticationsController#callback as HTML
153
- Parameters: {"code"=>"a035fc66195904f4ad6c03beea2aaf4299b6ec7bd4760cb01cd9beb9f2e51c7b", "state"=>"95c02c25e5bee4e8c6bbf72fa65fa1e56d9be0e341433328"}
119
+ Parameters: {"code"=>"cd12c3757903f070081a6f8cfe35f6c33c36b026cdc889e6f2f541630fc2c896", "state"=>"55f3e34742ca0ff11ee732b228406243c5e12a416f7c473e"}
154
120
  Authenticating with gds_sso strategy
155
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
121
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
156
122
   (0.0ms) begin transaction
157
-  (0.1ms) UPDATE "users" SET "permissions" = '---
123
+  (0.2ms) UPDATE "users" SET "permissions" = '---
158
124
  - signin
159
125
  ' WHERE "users"."id" = 1
160
-  (9.6ms) commit transaction
161
-  (0.0ms) begin transaction
162
-  (0.1ms) UPDATE "users" SET "permissions" = '---
126
+  (16.4ms) commit transaction
127
+  (0.1ms) begin transaction
128
+  (0.2ms) UPDATE "users" SET "permissions" = '---
163
129
  - signin
164
130
  ' WHERE "users"."id" = 1
165
-  (14.9ms) commit transaction
131
+  (11.3ms) commit transaction
166
132
  Redirected to http://www.example-client.com/this_requires_signin_permission
167
- Completed 302 Found in 28.9ms (ActiveRecord: 25.0ms)
168
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
133
+ Completed 302 Found in 33.5ms (ActiveRecord: 28.4ms)
134
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
169
135
  Processing by ExampleController#this_requires_signin_permission as HTML
170
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
171
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
172
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
136
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
137
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
138
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
173
139
  Processing by ExampleController#restricted as HTML
174
140
  Authenticating with gds_sso strategy
175
141
  Completed in 0.3ms
176
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
177
- Started GET "/auth/gds/callback?code=001916d13c09db21d52d91dc091304beaba9b6b03c713c52f9c2e8f0c60741a5&state=f856042ec4acb4564e6412022ec9f3afb36cf97e50583e80" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
142
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
143
+ Started GET "/auth/gds/callback?code=7d1a96a2d2ed253fbfe84757cd175c5f7d176fb0e29d2d06c702354d9182fbd9&state=02180ea025a721333327bedcde048668a3a83b58f1114536" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
178
144
  Processing by AuthenticationsController#callback as HTML
179
- Parameters: {"code"=>"001916d13c09db21d52d91dc091304beaba9b6b03c713c52f9c2e8f0c60741a5", "state"=>"f856042ec4acb4564e6412022ec9f3afb36cf97e50583e80"}
145
+ Parameters: {"code"=>"7d1a96a2d2ed253fbfe84757cd175c5f7d176fb0e29d2d06c702354d9182fbd9", "state"=>"02180ea025a721333327bedcde048668a3a83b58f1114536"}
180
146
  Authenticating with gds_sso strategy
181
147
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
182
-  (0.0ms) begin transaction
148
+  (0.1ms) begin transaction
183
149
   (0.2ms) UPDATE "users" SET "permissions" = '---
184
150
  - signin
185
151
  ' WHERE "users"."id" = 1
186
-  (13.0ms) commit transaction
187
-  (0.0ms) begin transaction
188
-  (0.1ms) UPDATE "users" SET "permissions" = '---
152
+  (12.2ms) commit transaction
153
+  (0.1ms) begin transaction
154
+  (0.2ms) UPDATE "users" SET "permissions" = '---
189
155
  - signin
190
156
  ' WHERE "users"."id" = 1
191
-  (10.2ms) commit transaction
157
+  (9.3ms) commit transaction
192
158
  Redirected to http://www.example-client.com/restricted
193
- Completed 302 Found in 28.5ms (ActiveRecord: 23.7ms)
194
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
159
+ Completed 302 Found in 27.3ms (ActiveRecord: 22.2ms)
160
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
195
161
  Processing by ExampleController#restricted as HTML
196
162
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
197
- Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
198
- Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:04:40 +0000
163
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
164
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
165
+  (0.1ms) begin transaction
166
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
167
+ - signin
168
+ ' WHERE "users"."id" = 1
169
+  (7.9ms) commit transaction
170
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
199
171
  Processing by ExampleController#restricted as HTML
200
172
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
201
- Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
202
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
203
- Processing by ExampleController#restricted as HTML
204
173
  Authenticating with gds_sso strategy
205
- Completed in 0.3ms
206
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
207
- Started GET "/auth/gds/callback?code=8998e825443ae71de2031c0eb03e78ce19abda59c706030fd7fc9f046b0e2bba&state=f0c25a873be39731f2e96cdc4a1b74b89118f92d5c5608f8" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
174
+ Completed in 0.8ms
175
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
176
+ Started GET "/auth/gds/callback?code=56eb3dffd12a8953bf2f6d1049faff0d5ddfc1600e806396e2ffdd6fbc71dcf0&state=12c077925373e4fa6b6a3b99be6b9ace4493c4e4390757c4" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
208
177
  Processing by AuthenticationsController#callback as HTML
209
- Parameters: {"code"=>"8998e825443ae71de2031c0eb03e78ce19abda59c706030fd7fc9f046b0e2bba", "state"=>"f0c25a873be39731f2e96cdc4a1b74b89118f92d5c5608f8"}
178
+ Parameters: {"code"=>"56eb3dffd12a8953bf2f6d1049faff0d5ddfc1600e806396e2ffdd6fbc71dcf0", "state"=>"12c077925373e4fa6b6a3b99be6b9ace4493c4e4390757c4"}
210
179
  Authenticating with gds_sso strategy
211
180
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
212
181
   (0.1ms) begin transaction
213
182
   (0.2ms) UPDATE "users" SET "permissions" = '---
214
183
  - signin
215
184
  ' WHERE "users"."id" = 1
216
-  (13.7ms) commit transaction
217
-  (0.0ms) begin transaction
218
-  (0.1ms) UPDATE "users" SET "permissions" = '---
185
+  (15.2ms) commit transaction
186
+  (0.1ms) begin transaction
187
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
219
188
  - signin
220
189
  ' WHERE "users"."id" = 1
221
-  (11.3ms) commit transaction
190
+  (8.0ms) commit transaction
222
191
  Redirected to http://www.example-client.com/restricted
223
- Completed 302 Found in 30.4ms (ActiveRecord: 25.6ms)
224
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
192
+ Completed 302 Found in 28.7ms (ActiveRecord: 23.8ms)
193
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
225
194
  Processing by ExampleController#restricted as HTML
226
195
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
227
- Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
228
- Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
196
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
197
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
229
198
  Processing by ExampleController#restricted as HTML
230
199
  Authenticating with gds_sso strategy
231
- Completed in 0.2ms
232
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
233
- Started GET "/auth/gds/callback?code=4c08332b1e307bf282ec9e75a1d9133a547002b29c73419c696026ab58e92f9d&state=30b541b0b7920cdc7e3c6950abf534c0b1271a94e323e40b" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
200
+ Completed in 0.4ms
201
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
202
+ Started GET "/auth/gds/callback?code=b7b7baed9214541780349ad2c4d833887bc0785aca8973fc08bc8406540b40bb&state=c1d01e61d2642ae5272c2b858fd6d5ec706063f21f9d8f5f" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
234
203
  Processing by AuthenticationsController#callback as HTML
235
- Parameters: {"code"=>"4c08332b1e307bf282ec9e75a1d9133a547002b29c73419c696026ab58e92f9d", "state"=>"30b541b0b7920cdc7e3c6950abf534c0b1271a94e323e40b"}
204
+ Parameters: {"code"=>"b7b7baed9214541780349ad2c4d833887bc0785aca8973fc08bc8406540b40bb", "state"=>"c1d01e61d2642ae5272c2b858fd6d5ec706063f21f9d8f5f"}
236
205
  Authenticating with gds_sso strategy
237
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
238
-  (0.0ms) begin transaction
206
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
207
+  (0.1ms) begin transaction
239
208
   (0.2ms) UPDATE "users" SET "permissions" = '---
240
209
  - signin
241
210
  ' WHERE "users"."id" = 1
242
-  (13.3ms) commit transaction
243
-  (0.0ms) begin transaction
244
-  (0.1ms) UPDATE "users" SET "permissions" = '---
211
+  (14.7ms) commit transaction
212
+  (0.1ms) begin transaction
213
+  (0.2ms) UPDATE "users" SET "permissions" = '---
245
214
  - signin
246
215
  ' WHERE "users"."id" = 1
247
-  (10.4ms) commit transaction
216
+  (5.2ms) commit transaction
248
217
  Redirected to http://www.example-client.com/restricted
249
- Completed 302 Found in 28.1ms (ActiveRecord: 24.3ms)
250
- Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
218
+ Completed 302 Found in 25.8ms (ActiveRecord: 20.6ms)
219
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
251
220
  Processing by ExampleController#restricted as HTML
252
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
253
- Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
254
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
221
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
222
+ Completed 200 OK in 1.5ms (Views: 0.5ms | ActiveRecord: 0.2ms)
223
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
255
224
  Processing by ExampleController#restricted as HTML
256
225
  Authenticating with gds_sso strategy
257
226
  Completed in 0.3ms
258
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
259
- Started GET "/auth/gds/callback?code=709f04e0ec90bab9958bd22031a13e0b9c2ee3d8a2989ccee470614455aa5376&state=cd3f29e4483af0e7ef52b7292e3ef238a55aee5068dbd13d" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
227
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
228
+ Started GET "/auth/gds/callback?code=e5115b56e9f871616d0ce6b91c4e3a6ed98697c11369d054e78b53e743428fab&state=e2f93b3e92f7013c689093967ee87702c94161316cc15871" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
260
229
  Processing by AuthenticationsController#callback as HTML
261
- Parameters: {"code"=>"709f04e0ec90bab9958bd22031a13e0b9c2ee3d8a2989ccee470614455aa5376", "state"=>"cd3f29e4483af0e7ef52b7292e3ef238a55aee5068dbd13d"}
230
+ Parameters: {"code"=>"e5115b56e9f871616d0ce6b91c4e3a6ed98697c11369d054e78b53e743428fab", "state"=>"e2f93b3e92f7013c689093967ee87702c94161316cc15871"}
262
231
  Authenticating with gds_sso strategy
263
232
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
264
233
   (0.1ms) begin transaction
265
234
   (0.2ms) UPDATE "users" SET "permissions" = '---
266
235
  - signin
267
236
  ' WHERE "users"."id" = 1
268
-  (23.5ms) commit transaction
237
+  (11.6ms) commit transaction
269
238
   (0.1ms) begin transaction
270
239
   (0.2ms) UPDATE "users" SET "permissions" = '---
271
240
  - signin
272
241
  ' WHERE "users"."id" = 1
273
-  (16.5ms) commit transaction
242
+  (16.1ms) commit transaction
274
243
  Redirected to http://www.example-client.com/restricted
275
- Completed 302 Found in 46.0ms (ActiveRecord: 40.6ms)
276
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
244
+ Completed 302 Found in 33.4ms (ActiveRecord: 28.5ms)
245
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
277
246
  Processing by ExampleController#restricted as HTML
278
247
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
279
- Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
280
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
281
-  (0.0ms) begin transaction
282
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
283
- - signin
284
- ' WHERE "users"."id" = 1
285
-  (10.1ms) commit transaction
286
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
248
+ Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
249
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
287
250
  Processing by ExampleController#restricted as HTML
288
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
289
251
  Authenticating with gds_sso strategy
290
- Completed in 1.0ms
291
- Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
292
- Started GET "/auth/gds/callback?code=af1396d0df84f86c9b3a28c1f64e551149c0f62c98203edc5bb2fbed6c929941&state=38955c90d62164e087362f8c7ba0abc2fae2e7c375950ee5" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
252
+ Completed in 0.3ms
253
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
254
+ Started GET "/auth/gds/callback?code=df680332c2702583c55bba06c5b1d8d6f459dfeb046fcca238beab8e4cb14c76&state=81f3dcac69b60beea60b10bcdc713495805f16089cae99ce" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
293
255
  Processing by AuthenticationsController#callback as HTML
294
- Parameters: {"code"=>"af1396d0df84f86c9b3a28c1f64e551149c0f62c98203edc5bb2fbed6c929941", "state"=>"38955c90d62164e087362f8c7ba0abc2fae2e7c375950ee5"}
256
+ Parameters: {"code"=>"df680332c2702583c55bba06c5b1d8d6f459dfeb046fcca238beab8e4cb14c76", "state"=>"81f3dcac69b60beea60b10bcdc713495805f16089cae99ce"}
295
257
  Authenticating with gds_sso strategy
258
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
259
+  (0.1ms) begin transaction
260
+  (0.2ms) UPDATE "users" SET "permissions" = '---
261
+ - signin
262
+ ' WHERE "users"."id" = 1
263
+  (15.0ms) commit transaction
264
+  (0.1ms) begin transaction
265
+  (0.2ms) UPDATE "users" SET "permissions" = '---
266
+ - signin
267
+ ' WHERE "users"."id" = 1
268
+  (8.4ms) commit transaction
269
+ Redirected to http://www.example-client.com/restricted
270
+ Completed 302 Found in 29.6ms (ActiveRecord: 24.1ms)
271
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
272
+ Processing by ExampleController#restricted as HTML
273
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
274
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
275
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:38:24 +0000
276
+ Processing by ExampleController#restricted as HTML
277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
278
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
279
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
280
+ Processing by ExampleController#restricted as JSON
281
+ Authenticating with gds_bearer_token strategy
296
282
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
297
-  (0.0ms) begin transaction
298
-  (0.1ms) UPDATE "users" SET "permissions" = '---
283
+  (0.1ms) begin transaction
284
+  (0.2ms) UPDATE "users" SET "permissions" = '---
299
285
  - signin
300
286
  ' WHERE "users"."id" = 1
301
-  (15.0ms) commit transaction
287
+  (17.8ms) commit transaction
302
288
   (0.0ms) begin transaction
303
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
289
+  (0.1ms) UPDATE "users" SET "permissions" = '---
304
290
  - signin
305
291
  ' WHERE "users"."id" = 1
306
-  (8.0ms) commit transaction
307
- Redirected to http://www.example-client.com/restricted
308
- Completed 302 Found in 27.6ms (ActiveRecord: 23.5ms)
309
- Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:42 +0000
310
- Processing by ExampleController#restricted as HTML
311
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
312
- Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
313
-  (0.0ms) begin transaction
314
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39752"]]
315
-  (9.4ms) commit transaction
316
-  (0.0ms) begin transaction
317
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36789"]]
318
-  (11.1ms) commit transaction
319
- Processing by Api::UserController#reauth as HTML
320
- Parameters: {"uid"=>"a1s2d39752"}
321
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39752' LIMIT 1
322
-  (0.0ms) begin transaction
323
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
292
+  (9.2ms) commit transaction
293
+ Completed 200 OK in 72.6ms (Views: 0.5ms | ActiveRecord: 27.6ms)
294
+ Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
295
+ Processing by ExampleController#restricted as JSON
296
+ Authenticating with gds_bearer_token strategy
297
+ Completed in 10.0ms
298
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
299
+ Processing by ExampleController#this_requires_signin_permission as JSON
300
+ Authenticating with gds_bearer_token strategy
301
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
302
+  (0.1ms) begin transaction
303
+  (0.2ms) UPDATE "users" SET "permissions" = '---
324
304
  - signin
325
- ' WHERE "users"."id" = 2
326
-  (10.4ms) commit transaction
327
- Completed 200 OK in 13.7ms (ActiveRecord: 10.7ms)
328
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
305
+ ' WHERE "users"."id" = 1
306
+  (8.6ms) commit transaction
329
307
   (0.0ms) begin transaction
330
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3627"]]
331
-  (11.1ms) commit transaction
308
+  (0.1ms) UPDATE "users" SET "permissions" = '---
309
+ - signin
310
+ ' WHERE "users"."id" = 1
311
+  (8.6ms) commit transaction
312
+ Completed 200 OK in 61.5ms (Views: 0.5ms | ActiveRecord: 17.8ms)
332
313
   (0.1ms) begin transaction
333
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33536"]]
334
-  (11.8ms) commit transaction
314
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37333"]]
315
+  (8.7ms) commit transaction
316
+  (0.0ms) begin transaction
317
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35998"]]
318
+  (9.9ms) commit transaction
335
319
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
336
- Processing by Api::UserController#reauth as HTML
337
- Parameters: {"uid"=>"a1s2d3627"}
338
- Completed 403 Forbidden in 3.4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
339
-  (0.1ms) begin transaction
340
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39112"]]
341
-  (12.0ms) commit transaction
342
-  (0.1ms) begin transaction
343
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33830"]]
344
-  (11.3ms) commit transaction
345
- Processing by Api::UserController#reauth as HTML
346
- Parameters: {"uid"=>"nonexistent-user"}
347
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
348
- Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
320
+ Processing by Api::UserController#update as HTML
321
+ Parameters: {"uid"=>"a1s2d37333"}
322
+ Completed 403 Forbidden in 3.9ms (Views: 3.0ms | ActiveRecord: 0.0ms)
349
323
   (0.1ms) begin transaction
350
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32093"]]
351
-  (12.4ms) commit transaction
352
-  (0.1ms) begin transaction
353
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38920"]]
354
-  (14.5ms) commit transaction
324
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38022"]]
325
+  (7.9ms) commit transaction
326
+  (0.0ms) begin transaction
327
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31553"]]
328
+  (6.7ms) commit transaction
355
329
  Processing by Api::UserController#update as HTML
356
- Parameters: {"uid"=>"a1s2d32093"}
357
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32093' LIMIT 1
330
+ Parameters: {"uid"=>"a1s2d38022"}
331
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38022' LIMIT 1
358
332
   (0.0ms) begin transaction
359
333
   (0.1ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
360
334
  - signin
361
335
  - new permission
362
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 8
363
-  (12.5ms) commit transaction
364
- Completed 200 OK in 16.0ms (ActiveRecord: 12.9ms)
365
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
366
-  (0.1ms) begin transaction
367
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34687"]]
368
-  (13.1ms) commit transaction
336
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 4
337
+  (7.4ms) commit transaction
338
+ Completed 200 OK in 10.8ms (ActiveRecord: 7.8ms)
339
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
340
+  (0.0ms) begin transaction
341
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35990"]]
342
+  (9.1ms) commit transaction
343
+  (0.0ms) begin transaction
344
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38499"]]
345
+  (8.4ms) commit transaction
346
+ Processing by Api::UserController#reauth as HTML
347
+ Parameters: {"uid"=>"nonexistent-user"}
348
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
349
+ Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
369
350
   (0.0ms) begin transaction
370
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37787"]]
371
-  (16.6ms) commit transaction
351
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3167"]]
352
+  (7.9ms) commit transaction
353
+  (0.0ms) begin transaction
354
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31758"]]
355
+  (7.8ms) commit transaction
372
356
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
373
- Processing by Api::UserController#update as HTML
374
- Parameters: {"uid"=>"a1s2d34687"}
375
- Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
357
+ Processing by Api::UserController#reauth as HTML
358
+ Parameters: {"uid"=>"a1s2d3167"}
359
+ Completed 403 Forbidden in 1.5ms (Views: 1.0ms | ActiveRecord: 0.0ms)
360
+  (0.1ms) begin transaction
361
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36336"]]
362
+  (9.3ms) commit transaction
363
+  (0.0ms) begin transaction
364
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34784"]]
365
+  (8.0ms) commit transaction
366
+ Processing by Api::UserController#reauth as HTML
367
+ Parameters: {"uid"=>"a1s2d36336"}
368
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36336' LIMIT 1
369
+  (0.0ms) begin transaction
370
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
371
+ - signin
372
+ ' WHERE "users"."id" = 10
373
+  (7.9ms) commit transaction
374
+ Completed 200 OK in 10.3ms (ActiveRecord: 8.2ms)
375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.3
4
+ version: 9.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-11 00:00:00.000000000 Z
13
+ date: 2014-03-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -315,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
315
315
  version: '0'
316
316
  segments:
317
317
  - 0
318
- hash: -3127725874143566220
318
+ hash: -2569083915925200801
319
319
  required_rubygems_version: !ruby/object:Gem::Requirement
320
320
  none: false
321
321
  requirements:
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  segments:
326
326
  - 0
327
- hash: -3127725874143566220
327
+ hash: -2569083915925200801
328
328
  requirements: []
329
329
  rubyforge_project: gds-sso
330
330
  rubygems_version: 1.8.23