gds-sso 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  class Api::UserController < ApplicationController
2
+ skip_before_filter :verify_authenticity_token
2
3
  before_filter :authenticate_user!
3
4
  before_filter :require_user_update_permission
4
5
 
@@ -23,13 +24,13 @@ class Api::UserController < ApplicationController
23
24
  # By doing this, we can reuse the code for creating/updating the user
24
25
  def build_gds_oauth_hash(user_json)
25
26
  OmniAuth::AuthHash.new(
26
- uid: user_json['uid'],
27
- provider: 'gds',
28
- info: {
29
- name: user_json['name'],
27
+ uid: user_json['uid'],
28
+ provider: 'gds',
29
+ info: {
30
+ name: user_json['name'],
30
31
  email: user_json['email']
31
- },
32
- extra: {
32
+ },
33
+ extra: {
33
34
  user: { permissions: user_json['permissions'] }
34
35
  })
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
5
5
  end
@@ -1,759 +1,3844 @@
1
1
  Connecting to database specified by database.yml
2
-  (3.4ms) select sqlite_version(*)
3
-  (16.4ms) 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)
4
-  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
-  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2
+  (0.7ms) select sqlite_version(*)
3
+  (7.4ms) 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)
4
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
6
   (0.1ms) begin transaction
7
- SQL (41.0ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35949"]]
7
+ SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31153"]]
8
+  (3.6ms) commit transaction
9
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10
+ Processing by Api::UserController#update as HTML
11
+ Parameters: {"uid"=>"a1s2d31153"}
12
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
13
+ Completed 403 Forbidden in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)
14
+  (0.1ms) begin transaction
15
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3755"]]
16
+  (3.1ms) commit transaction
17
+ Processing by Api::UserController#update as HTML
18
+ Parameters: {"uid"=>"a1s2d3755"}
19
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3755' LIMIT 1
20
+  (0.0ms) begin transaction
21
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
22
+ - signin
23
+ - new permission
24
+ ' WHERE "users"."id" = 2
25
+  (3.7ms) commit transaction
26
+ Completed 200 OK in 12ms (ActiveRecord: 4.1ms)
27
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
28
+  (0.1ms) begin transaction
29
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33273"]]
30
+  (2.8ms) commit transaction
31
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
32
+ Processing by Api::UserController#reauth as HTML
33
+ Parameters: {"uid"=>"a1s2d33273"}
34
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
35
+  (0.1ms) begin transaction
36
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37928"]]
37
+  (3.5ms) commit transaction
38
+ Processing by Api::UserController#reauth as HTML
39
+ Parameters: {"uid"=>"nonexistent-user"}
40
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
41
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
42
+  (0.0ms) begin transaction
43
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32662"]]
44
+  (2.8ms) commit transaction
45
+ Processing by Api::UserController#reauth as HTML
46
+ Parameters: {"uid"=>"a1s2d32662"}
47
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32662' LIMIT 1
48
+  (0.0ms) begin transaction
49
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
50
+ - signin
51
+ ' WHERE "users"."id" = 5
52
+  (2.8ms) commit transaction
53
+ Completed 200 OK in 7ms (ActiveRecord: 3.2ms)
54
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
55
+ Connecting to database specified by database.yml
56
+  (0.7ms) select sqlite_version(*)
57
+  (5.6ms) DROP TABLE "users"
58
+  (3.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) 
59
+  (0.1ms) begin transaction
60
+ SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31969"]]
61
+  (3.0ms) commit transaction
62
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
63
+ Processing by Api::UserController#update as HTML
64
+ Parameters: {"uid"=>"a1s2d31969"}
65
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
66
+ Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
67
+  (0.1ms) begin transaction
68
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36064"]]
69
+  (2.9ms) commit transaction
70
+ Processing by Api::UserController#update as HTML
71
+ Parameters: {"uid"=>"a1s2d36064"}
72
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36064' LIMIT 1
73
+  (0.1ms) begin transaction
74
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
75
+ - signin
76
+ - new permission
77
+ ' WHERE "users"."id" = 2
78
+  (3.0ms) commit transaction
79
+ Completed 200 OK in 12ms (ActiveRecord: 3.4ms)
80
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
81
+  (0.1ms) begin transaction
82
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34297"]]
83
+  (3.7ms) commit transaction
84
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
85
+ Processing by Api::UserController#reauth as HTML
86
+ Parameters: {"uid"=>"a1s2d34297"}
87
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
88
+  (0.1ms) begin transaction
89
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35885"]]
90
+  (4.4ms) commit transaction
91
+ Processing by Api::UserController#reauth as HTML
92
+ Parameters: {"uid"=>"nonexistent-user"}
93
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
94
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
95
+  (0.0ms) begin transaction
96
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39447"]]
97
+  (3.6ms) commit transaction
98
+ Processing by Api::UserController#reauth as HTML
99
+ Parameters: {"uid"=>"a1s2d39447"}
100
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39447' LIMIT 1
101
+  (0.1ms) begin transaction
102
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
103
+ - signin
104
+ ' WHERE "users"."id" = 5
105
+  (3.1ms) commit transaction
106
+ Completed 200 OK in 7ms (ActiveRecord: 3.4ms)
107
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
108
+ Started GET "/" for 127.0.0.1 at 2013-09-16 13:43:51 +0000
109
+ Processing by ExampleController#index as HTML
110
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
111
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:51 +0000
112
+ Processing by ExampleController#restricted as HTML
113
+ Authenticating with gds_sso strategy
114
+ Completed in 3ms
115
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:51 +0000
116
+ Started GET "/auth/gds/callback?code=4cd55425411f5f17191049bf5a5b0b88fb17587557e24b248875998935813c69&state=88e2aa542b830685b71793311d588c9fb868c49b063d6617" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
117
+ Processing by AuthenticationsController#callback as HTML
118
+ Parameters: {"code"=>"4cd55425411f5f17191049bf5a5b0b88fb17587557e24b248875998935813c69", "state"=>"88e2aa542b830685b71793311d588c9fb868c49b063d6617"}
119
+ Authenticating with gds_sso strategy
120
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
121
+  (0.1ms) begin transaction
122
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
123
+  (3.8ms) commit transaction
124
+  (0.0ms) begin transaction
125
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
126
+ - signin
127
+ ' WHERE "users"."id" = 6
128
+  (2.7ms) commit transaction
129
+ Redirected to http://www.example-client.com/restricted
130
+ Completed 302 Found in 13ms (ActiveRecord: 7.0ms)
131
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
132
+ Processing by ExampleController#restricted as HTML
133
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
134
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
135
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
136
+ Processing by ExampleController#restricted as HTML
137
+ Authenticating with gds_sso strategy
138
+ Completed in 0ms
139
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
140
+ Started GET "/auth/gds/callback?code=f540a8943ce23cc5af7291b757c22235707e603d5a5f561d6d837db04b99d7f8&state=4e1ed685832c88d85150aec0809fe136bc587590149ed46b" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
141
+ Processing by AuthenticationsController#callback as HTML
142
+ Parameters: {"code"=>"f540a8943ce23cc5af7291b757c22235707e603d5a5f561d6d837db04b99d7f8", "state"=>"4e1ed685832c88d85150aec0809fe136bc587590149ed46b"}
143
+ Authenticating with gds_sso strategy
144
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
145
+  (0.1ms) begin transaction
146
+  (0.2ms) UPDATE "users" SET "permissions" = '---
147
+ - signin
148
+ ' WHERE "users"."id" = 6
149
+  (4.3ms) commit transaction
150
+  (0.0ms) begin transaction
151
+  (0.1ms) UPDATE "users" SET "permissions" = '---
152
+ - signin
153
+ ' WHERE "users"."id" = 6
154
+  (2.9ms) commit transaction
155
+ Redirected to http://www.example-client.com/restricted
156
+ Completed 302 Found in 44ms (ActiveRecord: 7.8ms)
157
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
158
+ Processing by ExampleController#restricted as HTML
159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
160
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
161
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
162
+ Processing by ExampleController#restricted as HTML
163
+ Authenticating with gds_sso strategy
164
+ Completed in 0ms
165
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:52 +0000
166
+ Started GET "/auth/gds/callback?code=b796d9db1611e33c6f642258e238c1acbfcc20ca270a4d167fc3b8320859e562&state=108cbb9bcd9f995597cdf670f6c29304e2a023677c52f1c2" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
167
+ Processing by AuthenticationsController#callback as HTML
168
+ Parameters: {"code"=>"b796d9db1611e33c6f642258e238c1acbfcc20ca270a4d167fc3b8320859e562", "state"=>"108cbb9bcd9f995597cdf670f6c29304e2a023677c52f1c2"}
169
+ Authenticating with gds_sso strategy
170
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
171
+  (0.0ms) begin transaction
172
+  (0.1ms) UPDATE "users" SET "permissions" = '---
173
+ - signin
174
+ ' WHERE "users"."id" = 6
175
+  (4.4ms) commit transaction
176
+  (0.0ms) begin transaction
177
+  (0.1ms) UPDATE "users" SET "permissions" = '---
178
+ - signin
179
+ ' WHERE "users"."id" = 6
180
+  (3.1ms) commit transaction
181
+ Redirected to http://www.example-client.com/restricted
182
+ Completed 302 Found in 15ms (ActiveRecord: 8.0ms)
183
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
184
+ Processing by ExampleController#restricted as HTML
185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
186
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
187
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
188
+ Processing by ExampleController#this_requires_signin_permission as HTML
189
+ Authenticating with gds_sso strategy
190
+ Completed in 1ms
191
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
192
+ Started GET "/auth/gds/callback?code=d97d65756eb1e88462c295525367febf92e10b5d30cafa8ed486211fa6d83742&state=e6d8e85324bab268370a322643ac4145aecd15e2813b7e87" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
193
+ Processing by AuthenticationsController#callback as HTML
194
+ Parameters: {"code"=>"d97d65756eb1e88462c295525367febf92e10b5d30cafa8ed486211fa6d83742", "state"=>"e6d8e85324bab268370a322643ac4145aecd15e2813b7e87"}
195
+ Authenticating with gds_sso strategy
196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
197
+  (0.1ms) begin transaction
198
+  (0.1ms) UPDATE "users" SET "permissions" = '---
199
+ - signin
200
+ ' WHERE "users"."id" = 6
201
+  (4.0ms) commit transaction
202
+  (0.0ms) begin transaction
203
+  (0.1ms) UPDATE "users" SET "permissions" = '---
204
+ - signin
205
+ ' WHERE "users"."id" = 6
206
+  (2.9ms) commit transaction
207
+ Redirected to http://www.example-client.com/this_requires_signin_permission
208
+ Completed 302 Found in 15ms (ActiveRecord: 7.4ms)
209
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
210
+ Processing by ExampleController#this_requires_signin_permission as HTML
211
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
212
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
213
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
214
+ Processing by ExampleController#this_requires_signin_permission as HTML
215
+ Authenticating with gds_sso strategy
216
+ Completed in 0ms
217
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
218
+ Started GET "/auth/gds/callback?code=55bd5f47a39b8ec4e6258331208190d0c888ee1016c67f24ef5011b3f011b811&state=29b7c8f8436a98cf04140436d32a2a0dbac1fde0d1d631ec" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
219
+ Processing by AuthenticationsController#callback as HTML
220
+ Parameters: {"code"=>"55bd5f47a39b8ec4e6258331208190d0c888ee1016c67f24ef5011b3f011b811", "state"=>"29b7c8f8436a98cf04140436d32a2a0dbac1fde0d1d631ec"}
221
+ Authenticating with gds_sso strategy
222
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
223
+  (0.0ms) begin transaction
224
+  (0.1ms) UPDATE "users" SET "permissions" = '---
225
+ - signin
226
+ ' WHERE "users"."id" = 6
227
+  (3.7ms) commit transaction
228
+  (0.0ms) begin transaction
229
+  (0.1ms) UPDATE "users" SET "permissions" = '---
230
+ - signin
231
+ ' WHERE "users"."id" = 6
232
+  (3.6ms) commit transaction
233
+ Redirected to http://www.example-client.com/this_requires_signin_permission
234
+ Completed 302 Found in 14ms (ActiveRecord: 7.7ms)
235
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
236
+ Processing by ExampleController#this_requires_signin_permission as HTML
237
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
238
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
239
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
240
+ Processing by ExampleController#restricted as HTML
241
+ Authenticating with gds_sso strategy
242
+ Completed in 0ms
243
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:53 +0000
244
+ Started GET "/auth/gds/callback?code=ca935d837cf7b6d476023db86acbf743a187e97c4771d246a4a3b9c1e74ba772&state=0cd65d47b189d50037b1e0f44fa8098cf5de72f8234cb390" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
245
+ Processing by AuthenticationsController#callback as HTML
246
+ Parameters: {"code"=>"ca935d837cf7b6d476023db86acbf743a187e97c4771d246a4a3b9c1e74ba772", "state"=>"0cd65d47b189d50037b1e0f44fa8098cf5de72f8234cb390"}
247
+ Authenticating with gds_sso strategy
248
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
249
+  (0.1ms) begin transaction
250
+  (0.1ms) UPDATE "users" SET "permissions" = '---
251
+ - signin
252
+ ' WHERE "users"."id" = 6
253
+  (5.0ms) commit transaction
254
+  (0.0ms) begin transaction
255
+  (0.1ms) UPDATE "users" SET "permissions" = '---
256
+ - signin
257
+ ' WHERE "users"."id" = 6
258
+  (3.2ms) commit transaction
259
+ Redirected to http://www.example-client.com/restricted
260
+ Completed 302 Found in 16ms (ActiveRecord: 8.8ms)
261
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
262
+ Processing by ExampleController#restricted as HTML
263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
264
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
265
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
266
+  (0.0ms) begin transaction
267
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
268
+ - signin
269
+ ' WHERE "users"."id" = 6
270
+  (3.0ms) commit transaction
271
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
272
+ Processing by ExampleController#restricted as HTML
273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
274
+ Filter chain halted as :authenticate_user! rendered or redirected
275
+ Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
276
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
277
+ Processing by AuthenticationsController#sign_out as HTML
278
+ Redirected to http://localhost:4567/users/sign_out
279
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
280
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
281
+ Processing by ExampleController#restricted as HTML
282
+ Authenticating with gds_sso strategy
283
+ Completed in 0ms
284
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
285
+ Started GET "/auth/gds/callback?code=14b4757002e4edec2988e34d70e04c5a6668d8de1f707ed69715b8a7b0b277e0&state=f83f76a95d9d502514e8b18ef26e5c5633fa201735582379" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
286
+ Processing by AuthenticationsController#callback as HTML
287
+ Parameters: {"code"=>"14b4757002e4edec2988e34d70e04c5a6668d8de1f707ed69715b8a7b0b277e0", "state"=>"f83f76a95d9d502514e8b18ef26e5c5633fa201735582379"}
288
+ Authenticating with gds_sso strategy
289
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
290
+  (0.0ms) begin transaction
291
+  (0.1ms) UPDATE "users" SET "permissions" = '---
292
+ - signin
293
+ ' WHERE "users"."id" = 6
294
+  (5.4ms) commit transaction
295
+  (0.0ms) begin transaction
296
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
297
+ - signin
298
+ ' WHERE "users"."id" = 6
299
+  (2.9ms) commit transaction
300
+ Redirected to http://www.example-client.com/restricted
301
+ Completed 302 Found in 16ms (ActiveRecord: 8.8ms)
302
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
303
+ Processing by ExampleController#restricted as HTML
304
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
305
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
306
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
307
+ Processing by ExampleController#restricted as HTML
308
+ Authenticating with gds_sso strategy
309
+ Completed in 0ms
310
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
311
+ Started GET "/auth/gds/callback?code=de6654fc8171cdde1193e757faf0d123bf19da9f222f3a10a0bbf76c612bd2af&state=5fca6928f35151486626a2c964b69906658e222439a0448b" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
312
+ Processing by AuthenticationsController#callback as HTML
313
+ Parameters: {"code"=>"de6654fc8171cdde1193e757faf0d123bf19da9f222f3a10a0bbf76c612bd2af", "state"=>"5fca6928f35151486626a2c964b69906658e222439a0448b"}
314
+ Authenticating with gds_sso strategy
315
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
316
+  (0.1ms) begin transaction
317
+  (0.1ms) UPDATE "users" SET "permissions" = '---
318
+ - signin
319
+ ' WHERE "users"."id" = 6
320
+  (4.2ms) commit transaction
321
+  (0.0ms) begin transaction
322
+  (0.1ms) UPDATE "users" SET "permissions" = '---
323
+ - signin
324
+ ' WHERE "users"."id" = 6
325
+  (2.7ms) commit transaction
326
+ Redirected to http://www.example-client.com/restricted
327
+ Completed 302 Found in 15ms (ActiveRecord: 7.4ms)
328
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
329
+ Processing by ExampleController#restricted as HTML
330
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
331
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
332
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:48:54 +0000
333
+ Processing by ExampleController#restricted as HTML
334
+ Authenticating with gds_sso strategy
335
+ Completed in 0ms
336
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-17 09:48:54 +0000
337
+ Started GET "/auth/gds/callback?code=210fe92b3031924190d42cac8ae62872432a561c37db5b949c6c401151a640a1&state=9d88db5b8bc8173164ee381d06ba0a0014edf2b038277951" for 127.0.0.1 at 2013-09-17 09:48:54 +0000
338
+ Processing by AuthenticationsController#callback as HTML
339
+ Parameters: {"code"=>"210fe92b3031924190d42cac8ae62872432a561c37db5b949c6c401151a640a1", "state"=>"9d88db5b8bc8173164ee381d06ba0a0014edf2b038277951"}
340
+ Authenticating with gds_sso strategy
341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
342
+  (0.1ms) begin transaction
343
+  (0.4ms) UPDATE "users" SET "permissions" = '---
344
+ - signin
345
+ ' WHERE "users"."id" = 6
346
+  (3.6ms) commit transaction
347
+  (0.0ms) begin transaction
348
+  (0.2ms) UPDATE "users" SET "permissions" = '---
349
+ - signin
350
+ ' WHERE "users"."id" = 6
351
+  (3.5ms) commit transaction
352
+ Redirected to http://www.example-client.com/restricted
353
+ Completed 302 Found in 46ms (ActiveRecord: 7.9ms)
354
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:48:54 +0000
355
+ Processing by ExampleController#restricted as HTML
356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
357
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
358
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
359
+ Processing by ExampleController#restricted as HTML
360
+ Authenticating with gds_sso strategy
361
+ Completed in 0ms
362
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:54 +0000
363
+ Started GET "/auth/gds/callback?code=7435f598318f6156aef6f49a3890c45b1c3590461698af63d3403dcf5b4f0e2f&state=4563da7f010b0a616b1f2e63414581cc5d055df8a431f06d" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
364
+ Processing by AuthenticationsController#callback as HTML
365
+ Parameters: {"code"=>"7435f598318f6156aef6f49a3890c45b1c3590461698af63d3403dcf5b4f0e2f", "state"=>"4563da7f010b0a616b1f2e63414581cc5d055df8a431f06d"}
366
+ Authenticating with gds_sso strategy
367
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
368
+  (0.1ms) begin transaction
369
+  (0.1ms) UPDATE "users" SET "permissions" = '---
370
+ - signin
371
+ ' WHERE "users"."id" = 6
372
+  (4.0ms) commit transaction
373
+  (0.0ms) begin transaction
374
+  (0.1ms) UPDATE "users" SET "permissions" = '---
375
+ - signin
376
+ ' WHERE "users"."id" = 6
377
+  (2.9ms) commit transaction
378
+ Redirected to http://www.example-client.com/restricted
379
+ Completed 302 Found in 15ms (ActiveRecord: 7.4ms)
380
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
381
+ Processing by ExampleController#restricted as HTML
382
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
383
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
384
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:38:55 +0000
385
+ Processing by ExampleController#restricted as HTML
386
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
387
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
388
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
389
+ Processing by ExampleController#restricted as JSON
390
+ Authenticating with gds_sso_api_access strategy
391
+ Completed in 2ms
392
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
393
+ Processing by ExampleController#restricted as JSON
394
+ Authenticating with gds_sso_api_access strategy
395
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
396
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
397
+ Processing by ExampleController#this_requires_signin_permission as JSON
398
+ Authenticating with gds_sso_api_access strategy
399
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
400
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
401
+ Processing by ExampleController#restricted as JSON
402
+ Authenticating with gds_bearer_token strategy
403
+ Completed in 7ms
404
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
405
+ Processing by ExampleController#restricted as JSON
406
+ Authenticating with gds_bearer_token strategy
407
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
408
+  (0.1ms) begin transaction
409
+  (0.1ms) UPDATE "users" SET "permissions" = '---
410
+ - signin
411
+ ' WHERE "users"."id" = 6
412
+  (4.1ms) commit transaction
413
+  (0.0ms) begin transaction
414
+  (0.1ms) UPDATE "users" SET "permissions" = '---
415
+ - signin
416
+ ' WHERE "users"."id" = 6
417
+  (2.7ms) commit transaction
418
+ Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 7.3ms)
419
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:55 +0000
420
+ Processing by ExampleController#this_requires_signin_permission as JSON
421
+ Authenticating with gds_bearer_token strategy
422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
423
+  (0.0ms) begin transaction
424
+  (0.1ms) UPDATE "users" SET "permissions" = '---
425
+ - signin
426
+ ' WHERE "users"."id" = 6
427
+  (3.3ms) commit transaction
428
+  (0.0ms) begin transaction
429
+  (0.1ms) UPDATE "users" SET "permissions" = '---
430
+ - signin
431
+ ' WHERE "users"."id" = 6
432
+  (3.4ms) commit transaction
433
+ Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 7.2ms)
434
+ Connecting to database specified by database.yml
435
+  (0.7ms) select sqlite_version(*)
436
+  (14.3ms) DROP TABLE "users"
437
+  (11.7ms) 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) 
438
+  (0.1ms) begin transaction
439
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39228"]]
440
+  (10.7ms) commit transaction
441
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
442
+ Processing by Api::UserController#update as HTML
443
+ Parameters: {"uid"=>"a1s2d39228"}
444
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
445
+ Completed 403 Forbidden in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms)
446
+  (0.1ms) begin transaction
447
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34759"]]
448
+  (11.3ms) commit transaction
449
+ Processing by Api::UserController#update as HTML
450
+ Parameters: {"uid"=>"a1s2d34759"}
451
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34759' LIMIT 1
452
+  (0.1ms) begin transaction
453
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
454
+ - signin
455
+ - new permission
456
+ ' WHERE "users"."id" = 2
457
+  (11.9ms) commit transaction
458
+ Completed 200 OK in 20ms (ActiveRecord: 12.3ms)
459
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
460
+  (0.1ms) begin transaction
461
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36361"]]
462
+  (32.4ms) commit transaction
463
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
464
+ Processing by Api::UserController#reauth as HTML
465
+ Parameters: {"uid"=>"a1s2d36361"}
466
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
467
+  (0.1ms) begin transaction
468
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32615"]]
469
+  (11.5ms) commit transaction
470
+ Processing by Api::UserController#reauth as HTML
471
+ Parameters: {"uid"=>"nonexistent-user"}
472
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
473
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
474
+  (0.0ms) begin transaction
475
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39189"]]
476
+  (12.0ms) commit transaction
477
+ Processing by Api::UserController#reauth as HTML
478
+ Parameters: {"uid"=>"a1s2d39189"}
479
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39189' LIMIT 1
480
+  (0.0ms) begin transaction
481
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
482
+ - signin
483
+ ' WHERE "users"."id" = 5
484
+  (12.0ms) commit transaction
485
+ Completed 200 OK in 16ms (ActiveRecord: 12.4ms)
486
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
487
+ Started GET "/" for 127.0.0.1 at 2013-09-23 11:30:45 +0000
488
+ Processing by ExampleController#index as HTML
489
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
490
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:45 +0000
491
+ Processing by ExampleController#restricted as HTML
492
+ Authenticating with gds_sso strategy
493
+ Completed in 2ms
494
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:45 +0000
495
+ Started GET "/auth/gds/callback?code=bdee3e71c9f2f13d411966be940130266e796aab92a2b4e2b21252d868dda087&state=dfebadce4a162af9389ba8874be6579ce1b711176de75971" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
496
+ Processing by AuthenticationsController#callback as HTML
497
+ Parameters: {"code"=>"bdee3e71c9f2f13d411966be940130266e796aab92a2b4e2b21252d868dda087", "state"=>"dfebadce4a162af9389ba8874be6579ce1b711176de75971"}
498
+ Authenticating with gds_sso strategy
499
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
500
+  (0.1ms) begin transaction
501
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
502
+  (3.6ms) commit transaction
503
+  (0.1ms) begin transaction
504
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
505
+ - signin
506
+ ' WHERE "users"."id" = 6
507
+  (2.7ms) commit transaction
508
+ Redirected to http://www.example-client.com/restricted
509
+ Completed 302 Found in 14ms (ActiveRecord: 6.9ms)
510
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
511
+ Processing by ExampleController#restricted as HTML
512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
513
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
514
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
515
+ Processing by ExampleController#restricted as HTML
516
+ Authenticating with gds_sso strategy
517
+ Completed in 0ms
518
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
519
+ Started GET "/auth/gds/callback?code=ead45bb6be335fbd5c0e6189e912ddc74622c31dd13aa0fdbfd8d064cef55fad&state=3c4b825384b5576836abc0eb698312b41eb20ff0e291c7b4" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
520
+ Processing by AuthenticationsController#callback as HTML
521
+ Parameters: {"code"=>"ead45bb6be335fbd5c0e6189e912ddc74622c31dd13aa0fdbfd8d064cef55fad", "state"=>"3c4b825384b5576836abc0eb698312b41eb20ff0e291c7b4"}
522
+ Authenticating with gds_sso strategy
523
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
524
+  (0.1ms) begin transaction
525
+  (0.1ms) UPDATE "users" SET "permissions" = '---
526
+ - signin
527
+ ' WHERE "users"."id" = 6
528
+  (4.7ms) commit transaction
529
+  (0.0ms) begin transaction
530
+  (0.3ms) UPDATE "users" SET "permissions" = '---
531
+ - signin
532
+ ' WHERE "users"."id" = 6
533
+  (3.2ms) commit transaction
534
+ Redirected to http://www.example-client.com/restricted
535
+ Completed 302 Found in 45ms (ActiveRecord: 8.6ms)
536
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
537
+ Processing by ExampleController#restricted as HTML
538
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
539
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
540
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
541
+ Processing by ExampleController#restricted as HTML
542
+ Authenticating with gds_sso strategy
543
+ Completed in 0ms
544
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:46 +0000
545
+ Started GET "/auth/gds/callback?code=609fcdc1a2297ee45c2a60e54efc93b0f7de9f608c6c463b52cd01a4d8869525&state=cfc88f934b9f9b00d3dadeeda67c3db641988c63df97b47e" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
546
+ Processing by AuthenticationsController#callback as HTML
547
+ Parameters: {"code"=>"609fcdc1a2297ee45c2a60e54efc93b0f7de9f608c6c463b52cd01a4d8869525", "state"=>"cfc88f934b9f9b00d3dadeeda67c3db641988c63df97b47e"}
548
+ Authenticating with gds_sso strategy
549
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
550
+  (0.0ms) begin transaction
551
+  (0.1ms) UPDATE "users" SET "permissions" = '---
552
+ - signin
553
+ ' WHERE "users"."id" = 6
554
+  (5.2ms) commit transaction
555
+  (0.0ms) begin transaction
556
+  (0.1ms) UPDATE "users" SET "permissions" = '---
557
+ - signin
558
+ ' WHERE "users"."id" = 6
559
+  (3.3ms) commit transaction
560
+ Redirected to http://www.example-client.com/restricted
561
+ Completed 302 Found in 16ms (ActiveRecord: 9.0ms)
562
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
563
+ Processing by ExampleController#restricted as HTML
564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
565
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
566
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
567
+ Processing by ExampleController#this_requires_signin_permission as HTML
568
+ Authenticating with gds_sso strategy
569
+ Completed in 1ms
570
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
571
+ Started GET "/auth/gds/callback?code=6f2be0abb02c49562330b9cc643173e8f81daf92e985ca1482ea1054104a024f&state=0b7cae04d7db420a81f7a96c4018f7de7595bf43f6ad052a" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
572
+ Processing by AuthenticationsController#callback as HTML
573
+ Parameters: {"code"=>"6f2be0abb02c49562330b9cc643173e8f81daf92e985ca1482ea1054104a024f", "state"=>"0b7cae04d7db420a81f7a96c4018f7de7595bf43f6ad052a"}
574
+ Authenticating with gds_sso strategy
575
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
576
+  (0.1ms) begin transaction
577
+  (0.1ms) UPDATE "users" SET "permissions" = '---
578
+ - signin
579
+ ' WHERE "users"."id" = 6
580
+  (5.5ms) commit transaction
581
+  (0.0ms) begin transaction
582
+  (0.1ms) UPDATE "users" SET "permissions" = '---
583
+ - signin
584
+ ' WHERE "users"."id" = 6
585
+  (3.5ms) commit transaction
586
+ Redirected to http://www.example-client.com/this_requires_signin_permission
587
+ Completed 302 Found in 17ms (ActiveRecord: 9.6ms)
588
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
589
+ Processing by ExampleController#this_requires_signin_permission as HTML
590
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
591
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
592
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
593
+ Processing by ExampleController#this_requires_signin_permission as HTML
594
+ Authenticating with gds_sso strategy
595
+ Completed in 0ms
596
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
597
+ Started GET "/auth/gds/callback?code=ac955142e56830c27a94ef2a82563e46d2325cfee4bdfa95f4307d36767f436c&state=f77a1c0438590e2eeb8615ec7d5ffca3d19ab548b57ba9ed" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
598
+ Processing by AuthenticationsController#callback as HTML
599
+ Parameters: {"code"=>"ac955142e56830c27a94ef2a82563e46d2325cfee4bdfa95f4307d36767f436c", "state"=>"f77a1c0438590e2eeb8615ec7d5ffca3d19ab548b57ba9ed"}
600
+ Authenticating with gds_sso strategy
601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
602
+  (0.0ms) begin transaction
603
+  (0.1ms) UPDATE "users" SET "permissions" = '---
604
+ - signin
605
+ ' WHERE "users"."id" = 6
606
+  (5.0ms) commit transaction
607
+  (0.0ms) begin transaction
608
+  (0.1ms) UPDATE "users" SET "permissions" = '---
609
+ - signin
610
+ ' WHERE "users"."id" = 6
611
+  (3.6ms) commit transaction
612
+ Redirected to http://www.example-client.com/this_requires_signin_permission
613
+ Completed 302 Found in 16ms (ActiveRecord: 9.1ms)
614
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
615
+ Processing by ExampleController#this_requires_signin_permission as HTML
616
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
617
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
618
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
619
+ Processing by ExampleController#restricted as HTML
620
+ Authenticating with gds_sso strategy
621
+ Completed in 0ms
622
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:47 +0000
623
+ Started GET "/auth/gds/callback?code=05d3e5b0dd2b3dfe7171a66b8c5962549bee156c8a9976b74841641d8385d7b8&state=eb6e4ae8f6ef2c9dd607917e0fed0cfe5c7099508d8f573a" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
624
+ Processing by AuthenticationsController#callback as HTML
625
+ Parameters: {"code"=>"05d3e5b0dd2b3dfe7171a66b8c5962549bee156c8a9976b74841641d8385d7b8", "state"=>"eb6e4ae8f6ef2c9dd607917e0fed0cfe5c7099508d8f573a"}
626
+ Authenticating with gds_sso strategy
627
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
628
+  (0.1ms) begin transaction
629
+  (0.1ms) UPDATE "users" SET "permissions" = '---
630
+ - signin
631
+ ' WHERE "users"."id" = 6
632
+  (4.9ms) commit transaction
633
+  (0.0ms) begin transaction
634
+  (0.1ms) UPDATE "users" SET "permissions" = '---
635
+ - signin
636
+ ' WHERE "users"."id" = 6
637
+  (4.2ms) commit transaction
638
+ Redirected to http://www.example-client.com/restricted
639
+ Completed 302 Found in 17ms (ActiveRecord: 9.6ms)
640
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
641
+ Processing by ExampleController#restricted as HTML
642
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
643
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
645
+  (0.0ms) begin transaction
646
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
647
+ - signin
648
+ ' WHERE "users"."id" = 6
649
+  (3.7ms) commit transaction
650
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
651
+ Processing by ExampleController#restricted as HTML
652
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
653
+ Filter chain halted as :authenticate_user! rendered or redirected
654
+ Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
655
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
656
+ Processing by AuthenticationsController#sign_out as HTML
657
+ Redirected to http://localhost:4567/users/sign_out
658
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
659
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
660
+ Processing by ExampleController#restricted as HTML
661
+ Authenticating with gds_sso strategy
662
+ Completed in 0ms
663
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
664
+ Started GET "/auth/gds/callback?code=8448e7fe5f7a7953e45de6fc9acf910e47aa26eaf5358a30e3c161993129fb60&state=a8e8575a54e33efff78fda39f092646b1b8f8338e2b7f3a6" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
665
+ Processing by AuthenticationsController#callback as HTML
666
+ Parameters: {"code"=>"8448e7fe5f7a7953e45de6fc9acf910e47aa26eaf5358a30e3c161993129fb60", "state"=>"a8e8575a54e33efff78fda39f092646b1b8f8338e2b7f3a6"}
667
+ Authenticating with gds_sso strategy
668
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
669
+  (0.0ms) begin transaction
670
+  (0.1ms) UPDATE "users" SET "permissions" = '---
671
+ - signin
672
+ ' WHERE "users"."id" = 6
673
+  (5.2ms) commit transaction
674
+  (0.0ms) begin transaction
675
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
676
+ - signin
677
+ ' WHERE "users"."id" = 6
678
+  (4.2ms) commit transaction
679
+ Redirected to http://www.example-client.com/restricted
680
+ Completed 302 Found in 17ms (ActiveRecord: 10.0ms)
681
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
682
+ Processing by ExampleController#restricted as HTML
683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
684
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
685
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
686
+ Processing by ExampleController#restricted as HTML
687
+ Authenticating with gds_sso strategy
688
+ Completed in 0ms
689
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
690
+ Started GET "/auth/gds/callback?code=8d6a586ed25f31979a6882b59fbf1b16f3a5c867a55c5dcd3535c8c877ace626&state=b9c54448a1c07decba8f60ffe97bc07f523ead372e9b8045" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
691
+ Processing by AuthenticationsController#callback as HTML
692
+ Parameters: {"code"=>"8d6a586ed25f31979a6882b59fbf1b16f3a5c867a55c5dcd3535c8c877ace626", "state"=>"b9c54448a1c07decba8f60ffe97bc07f523ead372e9b8045"}
693
+ Authenticating with gds_sso strategy
694
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
695
+  (0.1ms) begin transaction
696
+  (0.1ms) UPDATE "users" SET "permissions" = '---
697
+ - signin
698
+ ' WHERE "users"."id" = 6
699
+  (4.8ms) commit transaction
700
+  (0.0ms) begin transaction
701
+  (0.1ms) UPDATE "users" SET "permissions" = '---
702
+ - signin
703
+ ' WHERE "users"."id" = 6
704
+  (4.3ms) commit transaction
705
+ Redirected to http://www.example-client.com/restricted
706
+ Completed 302 Found in 17ms (ActiveRecord: 9.6ms)
707
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
708
+ Processing by ExampleController#restricted as HTML
709
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
710
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
711
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:35:48 +0000
712
+ Processing by ExampleController#restricted as HTML
713
+ Authenticating with gds_sso strategy
714
+ Completed in 0ms
715
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-24 07:35:48 +0000
716
+ Started GET "/auth/gds/callback?code=fa39c2668673b8005193ff4b2dd82df3c95bfa71f25a5acab21a1c4446fe23f4&state=4c494cabb99675828db85230c1b041df8d9525354d4f969e" for 127.0.0.1 at 2013-09-24 07:35:48 +0000
717
+ Processing by AuthenticationsController#callback as HTML
718
+ Parameters: {"code"=>"fa39c2668673b8005193ff4b2dd82df3c95bfa71f25a5acab21a1c4446fe23f4", "state"=>"4c494cabb99675828db85230c1b041df8d9525354d4f969e"}
719
+ Authenticating with gds_sso strategy
720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
721
+  (0.0ms) begin transaction
722
+  (0.1ms) UPDATE "users" SET "permissions" = '---
723
+ - signin
724
+ ' WHERE "users"."id" = 6
725
+  (4.9ms) commit transaction
726
+  (0.1ms) begin transaction
727
+  (0.1ms) UPDATE "users" SET "permissions" = '---
728
+ - signin
729
+ ' WHERE "users"."id" = 6
730
+  (3.7ms) commit transaction
731
+ Redirected to http://www.example-client.com/restricted
732
+ Completed 302 Found in 15ms (ActiveRecord: 9.1ms)
733
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:35:48 +0000
734
+ Processing by ExampleController#restricted as HTML
735
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
736
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
737
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
738
+ Processing by ExampleController#restricted as HTML
739
+ Authenticating with gds_sso strategy
740
+ Completed in 0ms
741
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:48 +0000
742
+ Started GET "/auth/gds/callback?code=9da24ac5af0bc125433ecc9524db2068ff3549eeadf2a22a78177dfafadebbb3&state=2be262b2d2ed96e507a8908b23ba2c554e6e9b1dbec84be5" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
743
+ Processing by AuthenticationsController#callback as HTML
744
+ Parameters: {"code"=>"9da24ac5af0bc125433ecc9524db2068ff3549eeadf2a22a78177dfafadebbb3", "state"=>"2be262b2d2ed96e507a8908b23ba2c554e6e9b1dbec84be5"}
745
+ Authenticating with gds_sso strategy
746
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
747
+  (0.1ms) begin transaction
748
+  (0.2ms) UPDATE "users" SET "permissions" = '---
749
+ - signin
750
+ ' WHERE "users"."id" = 6
751
+  (4.3ms) commit transaction
752
+  (0.0ms) begin transaction
753
+  (0.1ms) UPDATE "users" SET "permissions" = '---
754
+ - signin
755
+ ' WHERE "users"."id" = 6
756
+  (4.2ms) commit transaction
757
+ Redirected to http://www.example-client.com/restricted
758
+ Completed 302 Found in 16ms (ActiveRecord: 9.0ms)
759
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
760
+ Processing by ExampleController#restricted as HTML
761
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
762
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
763
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:25:49 +0000
764
+ Processing by ExampleController#restricted as HTML
765
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
766
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
767
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
768
+ Processing by ExampleController#restricted as JSON
769
+ Authenticating with gds_sso_api_access strategy
770
+ Completed in 2ms
771
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
772
+ Processing by ExampleController#restricted as JSON
773
+ Authenticating with gds_sso_api_access strategy
774
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
775
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
776
+ Processing by ExampleController#this_requires_signin_permission as JSON
777
+ Authenticating with gds_sso_api_access strategy
778
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
779
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
780
+ Processing by ExampleController#restricted as JSON
781
+ Authenticating with gds_bearer_token strategy
782
+ Completed in 7ms
783
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
784
+ Processing by ExampleController#restricted as JSON
785
+ Authenticating with gds_bearer_token strategy
786
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
787
+  (0.1ms) begin transaction
788
+  (0.1ms) UPDATE "users" SET "permissions" = '---
789
+ - signin
790
+ ' WHERE "users"."id" = 6
791
+  (4.2ms) commit transaction
792
+  (0.0ms) begin transaction
793
+  (0.1ms) UPDATE "users" SET "permissions" = '---
794
+ - signin
795
+ ' WHERE "users"."id" = 6
796
+  (4.8ms) commit transaction
797
+ Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 9.5ms)
798
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:49 +0000
799
+ Processing by ExampleController#this_requires_signin_permission as JSON
800
+ Authenticating with gds_bearer_token strategy
801
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
802
+  (0.0ms) begin transaction
803
+  (0.1ms) UPDATE "users" SET "permissions" = '---
804
+ - signin
805
+ ' WHERE "users"."id" = 6
806
+  (5.0ms) commit transaction
807
+  (0.1ms) begin transaction
808
+  (0.1ms) UPDATE "users" SET "permissions" = '---
809
+ - signin
810
+ ' WHERE "users"."id" = 6
811
+  (2.9ms) commit transaction
812
+ Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 8.4ms)
813
+ Connecting to database specified by database.yml
814
+  (0.8ms) select sqlite_version(*)
815
+  (13.3ms) DROP TABLE "users"
816
+  (31.4ms) 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) 
817
+  (0.1ms) begin transaction
818
+ SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3884"]]
819
+  (10.3ms) commit transaction
820
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
821
+ Processing by Api::UserController#update as HTML
822
+ Parameters: {"uid"=>"a1s2d3884"}
823
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
824
+ Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
825
+  (0.1ms) begin transaction
826
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35734"]]
827
+  (37.5ms) commit transaction
828
+ Processing by Api::UserController#update as HTML
829
+ Parameters: {"uid"=>"a1s2d35734"}
830
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35734' LIMIT 1
831
+  (0.1ms) begin transaction
832
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
833
+ - signin
834
+ - new permission
835
+ ' WHERE "users"."id" = 2
836
+  (17.0ms) commit transaction
837
+ Completed 200 OK in 25ms (ActiveRecord: 17.4ms)
838
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
839
+  (0.1ms) begin transaction
840
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34199"]]
841
+  (18.8ms) commit transaction
842
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
843
+ Processing by Api::UserController#reauth as HTML
844
+ Parameters: {"uid"=>"a1s2d34199"}
845
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
846
+  (0.1ms) begin transaction
847
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31081"]]
848
+  (8.6ms) commit transaction
849
+ Processing by Api::UserController#reauth as HTML
850
+ Parameters: {"uid"=>"nonexistent-user"}
851
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
852
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
853
+  (0.0ms) begin transaction
854
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32250"]]
855
+  (3.6ms) commit transaction
856
+ Processing by Api::UserController#reauth as HTML
857
+ Parameters: {"uid"=>"a1s2d32250"}
858
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32250' LIMIT 1
859
+  (0.0ms) begin transaction
860
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
861
+ - signin
862
+ ' WHERE "users"."id" = 5
863
+  (2.7ms) commit transaction
864
+ Completed 200 OK in 6ms (ActiveRecord: 3.1ms)
865
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
866
+ Started GET "/" for 127.0.0.1 at 2013-09-23 12:37:30 +0000
867
+ Processing by ExampleController#index as HTML
868
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
869
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:30 +0000
870
+ Processing by ExampleController#restricted as HTML
871
+ Authenticating with gds_sso strategy
872
+ Completed in 2ms
873
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:30 +0000
874
+ Started GET "/auth/gds/callback?code=055c5e5115e535a3c909d62315c3a6db0a7e15ffcde8e329fc71ea9a170be736&state=d8a52901859ffbc4a2c48a2e109b6ff5cbc3a832b3c4bbf9" for 127.0.0.1 at 2013-09-23 12:37:31 +0000
875
+ Processing by AuthenticationsController#callback as HTML
876
+ Parameters: {"code"=>"055c5e5115e535a3c909d62315c3a6db0a7e15ffcde8e329fc71ea9a170be736", "state"=>"d8a52901859ffbc4a2c48a2e109b6ff5cbc3a832b3c4bbf9"}
877
+ Authenticating with gds_sso strategy
878
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
879
+  (0.1ms) begin transaction
880
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
881
+  (5.0ms) commit transaction
882
+  (0.0ms) begin transaction
883
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
884
+ - signin
885
+ ' WHERE "users"."id" = 6
886
+  (2.9ms) commit transaction
887
+ Redirected to http://www.example-client.com/restricted
888
+ Completed 302 Found in 14ms (ActiveRecord: 8.4ms)
889
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:31 +0000
890
+ Processing by ExampleController#restricted as HTML
891
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
892
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
893
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:31 +0000
894
+ Processing by ExampleController#restricted as HTML
895
+ Authenticating with gds_sso strategy
896
+ Completed in 0ms
897
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:31 +0000
898
+ Started GET "/auth/gds/callback?code=9884bd0f7c963f4c38422c50e6283674378e49a7c38d54e296b1433ebe99b03b&state=3181d316ff573488c20bda39399d6ea5063e89380d6f3143" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
899
+ Processing by AuthenticationsController#callback as HTML
900
+ Parameters: {"code"=>"9884bd0f7c963f4c38422c50e6283674378e49a7c38d54e296b1433ebe99b03b", "state"=>"3181d316ff573488c20bda39399d6ea5063e89380d6f3143"}
901
+ Authenticating with gds_sso strategy
902
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
903
+  (0.1ms) begin transaction
904
+  (0.1ms) UPDATE "users" SET "permissions" = '---
905
+ - signin
906
+ ' WHERE "users"."id" = 6
907
+  (4.1ms) commit transaction
908
+  (0.0ms) begin transaction
909
+  (0.2ms) UPDATE "users" SET "permissions" = '---
910
+ - signin
911
+ ' WHERE "users"."id" = 6
912
+  (3.6ms) commit transaction
913
+ Redirected to http://www.example-client.com/restricted
914
+ Completed 302 Found in 45ms (ActiveRecord: 8.4ms)
915
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
916
+ Processing by ExampleController#restricted as HTML
917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
918
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
919
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
920
+ Processing by ExampleController#restricted as HTML
921
+ Authenticating with gds_sso strategy
922
+ Completed in 0ms
923
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
924
+ Started GET "/auth/gds/callback?code=80d8dc624d65622878e4c3c1eb174e4d28c9b1d9e7319c83335f0eaf572e313d&state=e5a89af3fa88ea720177be4b7946de40693fb0096820a0ac" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
925
+ Processing by AuthenticationsController#callback as HTML
926
+ Parameters: {"code"=>"80d8dc624d65622878e4c3c1eb174e4d28c9b1d9e7319c83335f0eaf572e313d", "state"=>"e5a89af3fa88ea720177be4b7946de40693fb0096820a0ac"}
927
+ Authenticating with gds_sso strategy
928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
929
+  (0.0ms) begin transaction
930
+  (0.1ms) UPDATE "users" SET "permissions" = '---
931
+ - signin
932
+ ' WHERE "users"."id" = 6
933
+  (4.2ms) commit transaction
934
+  (0.0ms) begin transaction
935
+  (0.1ms) UPDATE "users" SET "permissions" = '---
936
+ - signin
937
+ ' WHERE "users"."id" = 6
938
+  (3.0ms) commit transaction
939
+ Redirected to http://www.example-client.com/restricted
940
+ Completed 302 Found in 14ms (ActiveRecord: 7.7ms)
941
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
942
+ Processing by ExampleController#restricted as HTML
943
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
944
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
945
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
946
+ Processing by ExampleController#this_requires_signin_permission as HTML
947
+ Authenticating with gds_sso strategy
948
+ Completed in 1ms
949
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
950
+ Started GET "/auth/gds/callback?code=da4935f3727a513cfcd258d36bd769a429bba53972f7c6ab59c68892616aa513&state=dcfc1695bf5b9a894de6b703a7f69b4ebe772a9b03a07a5d" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
951
+ Processing by AuthenticationsController#callback as HTML
952
+ Parameters: {"code"=>"da4935f3727a513cfcd258d36bd769a429bba53972f7c6ab59c68892616aa513", "state"=>"dcfc1695bf5b9a894de6b703a7f69b4ebe772a9b03a07a5d"}
953
+ Authenticating with gds_sso strategy
954
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
955
+  (0.1ms) begin transaction
956
+  (0.1ms) UPDATE "users" SET "permissions" = '---
957
+ - signin
958
+ ' WHERE "users"."id" = 6
959
+  (3.9ms) commit transaction
960
+  (0.0ms) begin transaction
961
+  (0.1ms) UPDATE "users" SET "permissions" = '---
962
+ - signin
963
+ ' WHERE "users"."id" = 6
964
+  (2.6ms) commit transaction
965
+ Redirected to http://www.example-client.com/this_requires_signin_permission
966
+ Completed 302 Found in 14ms (ActiveRecord: 7.0ms)
967
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
968
+ Processing by ExampleController#this_requires_signin_permission as HTML
969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
970
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
971
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
972
+ Processing by ExampleController#this_requires_signin_permission as HTML
973
+ Authenticating with gds_sso strategy
974
+ Completed in 0ms
975
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:32 +0000
976
+ Started GET "/auth/gds/callback?code=7c321cd30d0c43ab2851a7cc3d6687ab5bbe3afd7847cafd6fad512cb8e2d6e2&state=2bddf3a79f4b65e60bbb5c565430b36326a9d0fa94816b20" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
977
+ Processing by AuthenticationsController#callback as HTML
978
+ Parameters: {"code"=>"7c321cd30d0c43ab2851a7cc3d6687ab5bbe3afd7847cafd6fad512cb8e2d6e2", "state"=>"2bddf3a79f4b65e60bbb5c565430b36326a9d0fa94816b20"}
979
+ Authenticating with gds_sso strategy
980
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
981
+  (0.0ms) begin transaction
982
+  (0.1ms) UPDATE "users" SET "permissions" = '---
983
+ - signin
984
+ ' WHERE "users"."id" = 6
985
+  (12.0ms) commit transaction
986
+  (0.0ms) begin transaction
987
+  (0.1ms) UPDATE "users" SET "permissions" = '---
988
+ - signin
989
+ ' WHERE "users"."id" = 6
990
+  (11.9ms) commit transaction
991
+ Redirected to http://www.example-client.com/this_requires_signin_permission
992
+ Completed 302 Found in 31ms (ActiveRecord: 24.4ms)
993
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
994
+ Processing by ExampleController#this_requires_signin_permission as HTML
995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
996
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
997
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
998
+ Processing by ExampleController#restricted as HTML
999
+ Authenticating with gds_sso strategy
1000
+ Completed in 0ms
1001
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1002
+ Started GET "/auth/gds/callback?code=0c3b23240b97cb7d99126dd2c3397a06fc3f8c531a47fabaf9e39ab7f9d9a001&state=59102a409f214d76343f2ce4108ae7ebe90d6ee8b20f2893" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1003
+ Processing by AuthenticationsController#callback as HTML
1004
+ Parameters: {"code"=>"0c3b23240b97cb7d99126dd2c3397a06fc3f8c531a47fabaf9e39ab7f9d9a001", "state"=>"59102a409f214d76343f2ce4108ae7ebe90d6ee8b20f2893"}
1005
+ Authenticating with gds_sso strategy
1006
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1007
+  (0.1ms) begin transaction
1008
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1009
+ - signin
1010
+ ' WHERE "users"."id" = 6
1011
+  (12.2ms) commit transaction
1012
+  (0.0ms) begin transaction
1013
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1014
+ - signin
1015
+ ' WHERE "users"."id" = 6
1016
+  (12.3ms) commit transaction
1017
+ Redirected to http://www.example-client.com/restricted
1018
+ Completed 302 Found in 32ms (ActiveRecord: 25.0ms)
1019
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1020
+ Processing by ExampleController#restricted as HTML
1021
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1022
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1023
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1024
+  (0.0ms) begin transaction
1025
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1026
+ - signin
1027
+ ' WHERE "users"."id" = 6
1028
+  (10.2ms) commit transaction
1029
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1030
+ Processing by ExampleController#restricted as HTML
1031
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1032
+ Filter chain halted as :authenticate_user! rendered or redirected
1033
+ Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
1034
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1035
+ Processing by AuthenticationsController#sign_out as HTML
1036
+ Redirected to http://localhost:4567/users/sign_out
1037
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1038
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1039
+ Processing by ExampleController#restricted as HTML
1040
+ Authenticating with gds_sso strategy
1041
+ Completed in 0ms
1042
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1043
+ Started GET "/auth/gds/callback?code=4aa78db028388035a6cfee00434bd3310848e6a5c4a368f779f40522b1a04979&state=58e4edf72f862d640aa271c8e9d89ce0a8353d20ce87c272" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1044
+ Processing by AuthenticationsController#callback as HTML
1045
+ Parameters: {"code"=>"4aa78db028388035a6cfee00434bd3310848e6a5c4a368f779f40522b1a04979", "state"=>"58e4edf72f862d640aa271c8e9d89ce0a8353d20ce87c272"}
1046
+ Authenticating with gds_sso strategy
1047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1048
+  (0.0ms) begin transaction
1049
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1050
+ - signin
1051
+ ' WHERE "users"."id" = 6
1052
+  (3.5ms) commit transaction
1053
+  (0.0ms) begin transaction
1054
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1055
+ - signin
1056
+ ' WHERE "users"."id" = 6
1057
+  (3.7ms) commit transaction
1058
+ Redirected to http://www.example-client.com/restricted
1059
+ Completed 302 Found in 14ms (ActiveRecord: 7.6ms)
1060
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1061
+ Processing by ExampleController#restricted as HTML
1062
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1063
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1064
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1065
+ Processing by ExampleController#restricted as HTML
1066
+ Authenticating with gds_sso strategy
1067
+ Completed in 0ms
1068
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:33 +0000
1069
+ Started GET "/auth/gds/callback?code=b7d909b346c327e4bf227637f560ed19c90ae5e712188df5a1ae8b52d5046405&state=f5d58cc9029dc6607e7899f4e3dd7e87b0532d8a63b7599e" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1070
+ Processing by AuthenticationsController#callback as HTML
1071
+ Parameters: {"code"=>"b7d909b346c327e4bf227637f560ed19c90ae5e712188df5a1ae8b52d5046405", "state"=>"f5d58cc9029dc6607e7899f4e3dd7e87b0532d8a63b7599e"}
1072
+ Authenticating with gds_sso strategy
1073
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1074
+  (0.1ms) begin transaction
1075
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1076
+ - signin
1077
+ ' WHERE "users"."id" = 6
1078
+  (4.1ms) commit transaction
1079
+  (0.0ms) begin transaction
1080
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1081
+ - signin
1082
+ ' WHERE "users"."id" = 6
1083
+  (2.4ms) commit transaction
1084
+ Redirected to http://www.example-client.com/restricted
1085
+ Completed 302 Found in 14ms (ActiveRecord: 7.0ms)
1086
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1087
+ Processing by ExampleController#restricted as HTML
1088
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1089
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1090
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:42:34 +0000
1091
+ Processing by ExampleController#restricted as HTML
1092
+ Authenticating with gds_sso strategy
1093
+ Completed in 0ms
1094
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-24 08:42:34 +0000
1095
+ Started GET "/auth/gds/callback?code=6b11da83c5d76f81708ed1270ff93c01018676674569959874aed9665f7c7e82&state=230300d21864fdb6e3a47558d0fb7882da07dac4e6f23ed7" for 127.0.0.1 at 2013-09-24 08:42:34 +0000
1096
+ Processing by AuthenticationsController#callback as HTML
1097
+ Parameters: {"code"=>"6b11da83c5d76f81708ed1270ff93c01018676674569959874aed9665f7c7e82", "state"=>"230300d21864fdb6e3a47558d0fb7882da07dac4e6f23ed7"}
1098
+ Authenticating with gds_sso strategy
1099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1100
+  (0.1ms) begin transaction
1101
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1102
+ - signin
1103
+ ' WHERE "users"."id" = 6
1104
+  (3.3ms) commit transaction
1105
+  (0.0ms) begin transaction
1106
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1107
+ - signin
1108
+ ' WHERE "users"."id" = 6
1109
+  (3.2ms) commit transaction
1110
+ Redirected to http://www.example-client.com/restricted
1111
+ Completed 302 Found in 13ms (ActiveRecord: 7.0ms)
1112
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:42:34 +0000
1113
+ Processing by ExampleController#restricted as HTML
1114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1115
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1116
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1117
+ Processing by ExampleController#restricted as HTML
1118
+ Authenticating with gds_sso strategy
1119
+ Completed in 0ms
1120
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1121
+ Started GET "/auth/gds/callback?code=1ef0a5ea47e0d6b21764f34294b0c4801f007d0cfd868196677ed5504b5b7fe2&state=d94b355bbd641f86ce4a1749a6df73097dccc4f83dc0cab1" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1122
+ Processing by AuthenticationsController#callback as HTML
1123
+ Parameters: {"code"=>"1ef0a5ea47e0d6b21764f34294b0c4801f007d0cfd868196677ed5504b5b7fe2", "state"=>"d94b355bbd641f86ce4a1749a6df73097dccc4f83dc0cab1"}
1124
+ Authenticating with gds_sso strategy
1125
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1126
+  (0.1ms) begin transaction
1127
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1128
+ - signin
1129
+ ' WHERE "users"."id" = 6
1130
+  (4.1ms) commit transaction
1131
+  (0.0ms) begin transaction
1132
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1133
+ - signin
1134
+ ' WHERE "users"."id" = 6
1135
+  (2.7ms) commit transaction
1136
+ Redirected to http://www.example-client.com/restricted
1137
+ Completed 302 Found in 15ms (ActiveRecord: 7.3ms)
1138
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1139
+ Processing by ExampleController#restricted as HTML
1140
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1141
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1142
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:32:34 +0000
1143
+ Processing by ExampleController#restricted as HTML
1144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1145
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1146
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1147
+ Processing by ExampleController#restricted as JSON
1148
+ Authenticating with gds_sso_api_access strategy
1149
+ Completed in 2ms
1150
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1151
+ Processing by ExampleController#restricted as JSON
1152
+ Authenticating with gds_sso_api_access strategy
1153
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1154
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1155
+ Processing by ExampleController#this_requires_signin_permission as JSON
1156
+ Authenticating with gds_sso_api_access strategy
1157
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1158
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1159
+ Processing by ExampleController#restricted as JSON
1160
+ Authenticating with gds_bearer_token strategy
1161
+ Completed in 7ms
1162
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1163
+ Processing by ExampleController#restricted as JSON
1164
+ Authenticating with gds_bearer_token strategy
1165
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1166
+  (0.1ms) begin transaction
1167
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1168
+ - signin
1169
+ ' WHERE "users"."id" = 6
1170
+  (3.3ms) commit transaction
1171
+  (0.0ms) begin transaction
1172
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1173
+ - signin
1174
+ ' WHERE "users"."id" = 6
1175
+  (3.6ms) commit transaction
1176
+ Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 7.5ms)
1177
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:34 +0000
1178
+ Processing by ExampleController#this_requires_signin_permission as JSON
1179
+ Authenticating with gds_bearer_token strategy
1180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1181
+  (0.0ms) begin transaction
1182
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1183
+ - signin
1184
+ ' WHERE "users"."id" = 6
1185
+  (3.7ms) commit transaction
1186
+  (0.0ms) begin transaction
1187
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1188
+ - signin
1189
+ ' WHERE "users"."id" = 6
1190
+  (2.9ms) commit transaction
1191
+ Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 7.1ms)
1192
+ Connecting to database specified by database.yml
1193
+  (0.8ms) select sqlite_version(*)
1194
+  (24.4ms) DROP TABLE "users"
1195
+  (11.7ms) 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) 
1196
+  (0.1ms) begin transaction
1197
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37458"]]
1198
+  (18.8ms) commit transaction
1199
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1200
+ Processing by Api::UserController#update as HTML
1201
+ Parameters: {"uid"=>"a1s2d37458"}
1202
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms)
1203
+ Completed 403 Forbidden in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
1204
+  (0.1ms) begin transaction
1205
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32480"]]
1206
+  (19.3ms) commit transaction
1207
+ Processing by Api::UserController#update as HTML
1208
+ Parameters: {"uid"=>"a1s2d32480"}
1209
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32480' LIMIT 1
1210
+  (0.1ms) begin transaction
1211
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1212
+ - signin
1213
+ - new permission
1214
+ ' WHERE "users"."id" = 2
1215
+  (32.4ms) commit transaction
1216
+ Completed 200 OK in 98ms (ActiveRecord: 32.8ms)
1217
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
1218
+  (0.1ms) begin transaction
1219
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32629"]]
1220
+  (15.3ms) commit transaction
1221
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1222
+ Processing by Api::UserController#reauth as HTML
1223
+ Parameters: {"uid"=>"a1s2d32629"}
1224
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1225
+  (0.1ms) begin transaction
1226
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37907"]]
1227
+  (23.5ms) commit transaction
1228
+ Processing by Api::UserController#reauth as HTML
1229
+ Parameters: {"uid"=>"nonexistent-user"}
1230
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1231
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1232
+  (0.0ms) begin transaction
1233
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33618"]]
1234
+  (37.5ms) commit transaction
1235
+ Processing by Api::UserController#reauth as HTML
1236
+ Parameters: {"uid"=>"a1s2d33618"}
1237
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33618' LIMIT 1
1238
+  (0.0ms) begin transaction
1239
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1240
+ - signin
1241
+ ' WHERE "users"."id" = 5
1242
+  (13.8ms) commit transaction
1243
+ Completed 200 OK in 18ms (ActiveRecord: 14.2ms)
1244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1245
+ Started GET "/" for 127.0.0.1 at 2013-09-30 12:48:18 +0000
1246
+ Processing by ExampleController#index as HTML
1247
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
1248
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:18 +0000
1249
+ Processing by ExampleController#restricted as HTML
1250
+ Authenticating with gds_sso strategy
1251
+ Completed in 3ms
1252
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:18 +0000
1253
+ Started GET "/auth/gds/callback?code=d484013d97e38f16404fc0b9c63d8cd742a8d99cf1d84d1f9b064066d028a420&state=b4c00acff89a7cb5ce2174417668700c4382dc3e73e8bb9e" for 127.0.0.1 at 2013-09-30 12:48:19 +0000
1254
+ Processing by AuthenticationsController#callback as HTML
1255
+ Parameters: {"code"=>"d484013d97e38f16404fc0b9c63d8cd742a8d99cf1d84d1f9b064066d028a420", "state"=>"b4c00acff89a7cb5ce2174417668700c4382dc3e73e8bb9e"}
1256
+ Authenticating with gds_sso strategy
1257
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1258
+  (0.1ms) begin transaction
1259
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1260
+  (4.0ms) commit transaction
1261
+  (0.1ms) begin transaction
1262
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1263
+ - signin
1264
+ ' WHERE "users"."id" = 6
1265
+  (2.9ms) commit transaction
1266
+ Redirected to http://www.example-client.com/restricted
1267
+ Completed 302 Found in 14ms (ActiveRecord: 7.5ms)
1268
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:19 +0000
1269
+ Processing by ExampleController#restricted as HTML
1270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1271
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1272
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:19 +0000
1273
+ Processing by ExampleController#restricted as HTML
1274
+ Authenticating with gds_sso strategy
1275
+ Completed in 0ms
1276
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:19 +0000
1277
+ Started GET "/auth/gds/callback?code=f1f7d684f3b2ee4a232c6a1a1f0b047ec671a2c989f6e4a3511493c143ffdf23&state=a2b093684d5cae367f7a8f53ba37a4f7afbffd063701fc81" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1278
+ Processing by AuthenticationsController#callback as HTML
1279
+ Parameters: {"code"=>"f1f7d684f3b2ee4a232c6a1a1f0b047ec671a2c989f6e4a3511493c143ffdf23", "state"=>"a2b093684d5cae367f7a8f53ba37a4f7afbffd063701fc81"}
1280
+ Authenticating with gds_sso strategy
1281
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1282
+  (0.1ms) begin transaction
1283
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1284
+ - signin
1285
+ ' WHERE "users"."id" = 6
1286
+  (3.8ms) commit transaction
1287
+  (0.0ms) begin transaction
1288
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1289
+ - signin
1290
+ ' WHERE "users"."id" = 6
1291
+  (4.1ms) commit transaction
1292
+ Redirected to http://www.example-client.com/restricted
1293
+ Completed 302 Found in 48ms (ActiveRecord: 8.6ms)
1294
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1295
+ Processing by ExampleController#restricted as HTML
1296
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1297
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1298
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1299
+ Processing by ExampleController#restricted as HTML
1300
+ Authenticating with gds_sso strategy
1301
+ Completed in 0ms
1302
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1303
+ Started GET "/auth/gds/callback?code=bac9627d46507ebb2f947e603592f753b0bf746e9595b438463c968ee2f222e3&state=d0b9b796ce713b154d0eacadba38d2f6de8bd94f6cc204d0" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1304
+ Processing by AuthenticationsController#callback as HTML
1305
+ Parameters: {"code"=>"bac9627d46507ebb2f947e603592f753b0bf746e9595b438463c968ee2f222e3", "state"=>"d0b9b796ce713b154d0eacadba38d2f6de8bd94f6cc204d0"}
1306
+ Authenticating with gds_sso strategy
1307
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1308
+  (0.0ms) begin transaction
1309
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1310
+ - signin
1311
+ ' WHERE "users"."id" = 6
1312
+  (3.4ms) commit transaction
1313
+  (0.0ms) begin transaction
1314
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1315
+ - signin
1316
+ ' WHERE "users"."id" = 6
1317
+  (3.2ms) commit transaction
1318
+ Redirected to http://www.example-client.com/restricted
1319
+ Completed 302 Found in 14ms (ActiveRecord: 7.2ms)
1320
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1321
+ Processing by ExampleController#restricted as HTML
1322
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1323
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1324
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1325
+ Processing by ExampleController#this_requires_signin_permission as HTML
1326
+ Authenticating with gds_sso strategy
1327
+ Completed in 1ms
1328
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1329
+ Started GET "/auth/gds/callback?code=d1df3abf2b5a516a4febdc2e1159d3a20e033a0817f43c7061895f7aa82b1985&state=5a5a0416a0aaa51cb6ec52a1ff4f13dca69579076610c963" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1330
+ Processing by AuthenticationsController#callback as HTML
1331
+ Parameters: {"code"=>"d1df3abf2b5a516a4febdc2e1159d3a20e033a0817f43c7061895f7aa82b1985", "state"=>"5a5a0416a0aaa51cb6ec52a1ff4f13dca69579076610c963"}
1332
+ Authenticating with gds_sso strategy
1333
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1334
+  (0.1ms) begin transaction
1335
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1336
+ - signin
1337
+ ' WHERE "users"."id" = 6
1338
+  (3.8ms) commit transaction
1339
+  (0.0ms) begin transaction
1340
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1341
+ - signin
1342
+ ' WHERE "users"."id" = 6
1343
+  (3.2ms) commit transaction
1344
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1345
+ Completed 302 Found in 16ms (ActiveRecord: 7.6ms)
1346
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1347
+ Processing by ExampleController#this_requires_signin_permission as HTML
1348
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1349
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)
1350
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1351
+ Processing by ExampleController#this_requires_signin_permission as HTML
1352
+ Authenticating with gds_sso strategy
1353
+ Completed in 0ms
1354
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1355
+ Started GET "/auth/gds/callback?code=1560bb6c2536efa132f1b279c9687bdfca58ff36ff263be0e30d4996798a091e&state=882f3aff87783aef08fc533e8b08722a852112256b248753" for 127.0.0.1 at 2013-09-30 12:48:20 +0000
1356
+ Processing by AuthenticationsController#callback as HTML
1357
+ Parameters: {"code"=>"1560bb6c2536efa132f1b279c9687bdfca58ff36ff263be0e30d4996798a091e", "state"=>"882f3aff87783aef08fc533e8b08722a852112256b248753"}
1358
+ Authenticating with gds_sso strategy
1359
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1360
+  (0.1ms) begin transaction
1361
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1362
+ - signin
1363
+ ' WHERE "users"."id" = 6
1364
+  (4.3ms) commit transaction
1365
+  (0.0ms) begin transaction
1366
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1367
+ - signin
1368
+ ' WHERE "users"."id" = 6
1369
+  (3.4ms) commit transaction
1370
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1371
+ Completed 302 Found in 30ms (ActiveRecord: 8.3ms)
1372
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1373
+ Processing by ExampleController#this_requires_signin_permission as HTML
1374
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1375
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1376
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1377
+ Processing by ExampleController#restricted as HTML
1378
+ Authenticating with gds_sso strategy
1379
+ Completed in 0ms
1380
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1381
+ Started GET "/auth/gds/callback?code=79eeefafa5ba2723361a415e9a90261a57aaba45793a711b2783bf6d11c60f5e&state=8df4f2ec3f7940d348fa004eb56bed7e3a38768376631c24" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1382
+ Processing by AuthenticationsController#callback as HTML
1383
+ Parameters: {"code"=>"79eeefafa5ba2723361a415e9a90261a57aaba45793a711b2783bf6d11c60f5e", "state"=>"8df4f2ec3f7940d348fa004eb56bed7e3a38768376631c24"}
1384
+ Authenticating with gds_sso strategy
1385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1386
+  (0.1ms) begin transaction
1387
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1388
+ - signin
1389
+ ' WHERE "users"."id" = 6
1390
+  (16.2ms) commit transaction
1391
+  (0.0ms) begin transaction
1392
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1393
+ - signin
1394
+ ' WHERE "users"."id" = 6
1395
+  (3.2ms) commit transaction
1396
+ Redirected to http://www.example-client.com/restricted
1397
+ Completed 302 Found in 28ms (ActiveRecord: 20.0ms)
1398
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1399
+ Processing by ExampleController#restricted as HTML
1400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1401
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1402
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1403
+  (0.0ms) begin transaction
1404
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1405
+ - signin
1406
+ ' WHERE "users"."id" = 6
1407
+  (2.8ms) commit transaction
1408
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1409
+ Processing by ExampleController#restricted as HTML
1410
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1411
+ Filter chain halted as :authenticate_user! rendered or redirected
1412
+ Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
1413
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1414
+ Processing by AuthenticationsController#sign_out as HTML
1415
+ Redirected to http://localhost:4567/users/sign_out
1416
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1417
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1418
+ Processing by ExampleController#restricted as HTML
1419
+ Authenticating with gds_sso strategy
1420
+ Completed in 0ms
1421
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1422
+ Started GET "/auth/gds/callback?code=d2f3535c89a462e478c76136a836413487510740cc6400f942163be5f9dd4d37&state=47bb6b00c720cb4c552b258f8010598e3c401ae5c456d4b2" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1423
+ Processing by AuthenticationsController#callback as HTML
1424
+ Parameters: {"code"=>"d2f3535c89a462e478c76136a836413487510740cc6400f942163be5f9dd4d37", "state"=>"47bb6b00c720cb4c552b258f8010598e3c401ae5c456d4b2"}
1425
+ Authenticating with gds_sso strategy
1426
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1427
+  (0.0ms) begin transaction
1428
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1429
+ - signin
1430
+ ' WHERE "users"."id" = 6
1431
+  (21.2ms) commit transaction
1432
+  (0.0ms) begin transaction
1433
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1434
+ - signin
1435
+ ' WHERE "users"."id" = 6
1436
+  (3.4ms) commit transaction
1437
+ Redirected to http://www.example-client.com/restricted
1438
+ Completed 302 Found in 32ms (ActiveRecord: 25.1ms)
1439
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1440
+ Processing by ExampleController#restricted as HTML
1441
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1442
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1443
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1444
+ Processing by ExampleController#restricted as HTML
1445
+ Authenticating with gds_sso strategy
1446
+ Completed in 0ms
1447
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:21 +0000
1448
+ Started GET "/auth/gds/callback?code=2682deac4667cce26808ee90e880ab6bc6455e8f585fadd1401a436f657e36c0&state=2982124f0b79ec5783a634b5bddeb2a7b6eb251db7dc3a00" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1449
+ Processing by AuthenticationsController#callback as HTML
1450
+ Parameters: {"code"=>"2682deac4667cce26808ee90e880ab6bc6455e8f585fadd1401a436f657e36c0", "state"=>"2982124f0b79ec5783a634b5bddeb2a7b6eb251db7dc3a00"}
1451
+ Authenticating with gds_sso strategy
1452
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1453
+  (0.1ms) begin transaction
1454
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1455
+ - signin
1456
+ ' WHERE "users"."id" = 6
1457
+  (4.2ms) commit transaction
1458
+  (0.0ms) begin transaction
1459
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1460
+ - signin
1461
+ ' WHERE "users"."id" = 6
1462
+  (3.3ms) commit transaction
1463
+ Redirected to http://www.example-client.com/restricted
1464
+ Completed 302 Found in 17ms (ActiveRecord: 8.1ms)
1465
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1466
+ Processing by ExampleController#restricted as HTML
1467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1468
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1469
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:53:22 +0000
1470
+ Processing by ExampleController#restricted as HTML
1471
+ Authenticating with gds_sso strategy
1472
+ Completed in 0ms
1473
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-01 08:53:22 +0000
1474
+ Started GET "/auth/gds/callback?code=6cf1c043bdd35b99a550550e17abfb9a4ea606bb37efb4733db0fe5acb9e22af&state=0639a411cf813df9283c79cf0db70c7669476d1e018dc93d" for 127.0.0.1 at 2013-10-01 08:53:22 +0000
1475
+ Processing by AuthenticationsController#callback as HTML
1476
+ Parameters: {"code"=>"6cf1c043bdd35b99a550550e17abfb9a4ea606bb37efb4733db0fe5acb9e22af", "state"=>"0639a411cf813df9283c79cf0db70c7669476d1e018dc93d"}
1477
+ Authenticating with gds_sso strategy
1478
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1479
+  (0.1ms) begin transaction
1480
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1481
+ - signin
1482
+ ' WHERE "users"."id" = 6
1483
+  (23.4ms) commit transaction
1484
+  (0.1ms) begin transaction
1485
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1486
+ - signin
1487
+ ' WHERE "users"."id" = 6
1488
+  (20.8ms) commit transaction
1489
+ Redirected to http://www.example-client.com/restricted
1490
+ Completed 302 Found in 52ms (ActiveRecord: 44.8ms)
1491
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:53:22 +0000
1492
+ Processing by ExampleController#restricted as HTML
1493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1494
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1495
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1496
+ Processing by ExampleController#restricted as HTML
1497
+ Authenticating with gds_sso strategy
1498
+ Completed in 0ms
1499
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1500
+ Started GET "/auth/gds/callback?code=f7759babbc6cdea65fee47ee0424df5f1605d0706e70c345133211bd323101ef&state=32573a9fc99b5ceae14cce6a793620ace6e2e008033ebc73" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1501
+ Processing by AuthenticationsController#callback as HTML
1502
+ Parameters: {"code"=>"f7759babbc6cdea65fee47ee0424df5f1605d0706e70c345133211bd323101ef", "state"=>"32573a9fc99b5ceae14cce6a793620ace6e2e008033ebc73"}
1503
+ Authenticating with gds_sso strategy
1504
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1505
+  (0.1ms) begin transaction
1506
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1507
+ - signin
1508
+ ' WHERE "users"."id" = 6
1509
+  (4.1ms) commit transaction
1510
+  (0.1ms) begin transaction
1511
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1512
+ - signin
1513
+ ' WHERE "users"."id" = 6
1514
+  (3.3ms) commit transaction
1515
+ Redirected to http://www.example-client.com/restricted
1516
+ Completed 302 Found in 16ms (ActiveRecord: 8.0ms)
1517
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1518
+ Processing by ExampleController#restricted as HTML
1519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1520
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1521
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:43:22 +0000
1522
+ Processing by ExampleController#restricted as HTML
1523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1524
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1525
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1526
+ Processing by ExampleController#restricted as JSON
1527
+ Authenticating with gds_sso_api_access strategy
1528
+ Completed in 2ms
1529
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1530
+ Processing by ExampleController#restricted as JSON
1531
+ Authenticating with gds_sso_api_access strategy
1532
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1533
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1534
+ Processing by ExampleController#this_requires_signin_permission as JSON
1535
+ Authenticating with gds_sso_api_access strategy
1536
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1537
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000
1538
+ Processing by ExampleController#restricted as JSON
1539
+ Authenticating with gds_bearer_token strategy
1540
+ Completed in 7ms
1541
+ Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:23 +0000
1542
+ Processing by ExampleController#restricted as JSON
1543
+ Authenticating with gds_bearer_token strategy
1544
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1545
+  (0.1ms) begin transaction
1546
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1547
+ - signin
1548
+ ' WHERE "users"."id" = 6
1549
+  (4.2ms) commit transaction
1550
+  (0.0ms) begin transaction
1551
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1552
+ - signin
1553
+ ' WHERE "users"."id" = 6
1554
+  (3.9ms) commit transaction
1555
+ Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 8.7ms)
1556
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:23 +0000
1557
+ Processing by ExampleController#this_requires_signin_permission as JSON
1558
+ Authenticating with gds_bearer_token strategy
1559
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1560
+  (0.0ms) begin transaction
1561
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1562
+ - signin
1563
+ ' WHERE "users"."id" = 6
1564
+  (7.8ms) commit transaction
1565
+  (0.0ms) begin transaction
1566
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1567
+ - signin
1568
+ ' WHERE "users"."id" = 6
1569
+  (2.9ms) commit transaction
1570
+ Completed 200 OK in 52ms (Views: 0.2ms | ActiveRecord: 11.2ms)
1571
+ Connecting to database specified by database.yml
1572
+  (1.0ms) select sqlite_version(*)
1573
+  (7.9ms) DROP TABLE "users"
1574
+  (3.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) 
1575
+  (0.1ms) begin transaction
1576
+ SQL (2.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33503"]]
1577
+  (3.2ms) commit transaction
1578
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1579
+ Processing by Api::UserController#update as HTML
1580
+ Parameters: {"uid"=>"a1s2d33503"}
1581
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.2ms)
1582
+ Completed 403 Forbidden in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
1583
+  (0.1ms) begin transaction
1584
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37801"]]
1585
+  (3.6ms) commit transaction
1586
+ Processing by Api::UserController#update as HTML
1587
+ Parameters: {"uid"=>"a1s2d37801"}
1588
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37801' LIMIT 1
1589
+  (0.1ms) begin transaction
1590
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1591
+ - signin
1592
+ - new permission
1593
+ ' WHERE "users"."id" = 2
1594
+  (3.2ms) commit transaction
1595
+ Completed 200 OK in 12ms (ActiveRecord: 3.5ms)
1596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
1597
+  (0.1ms) begin transaction
1598
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38543"]]
1599
+  (3.5ms) commit transaction
1600
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1601
+ Processing by Api::UserController#reauth as HTML
1602
+ Parameters: {"uid"=>"a1s2d38543"}
1603
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1604
+  (0.1ms) begin transaction
1605
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32466"]]
1606
+  (3.5ms) commit transaction
1607
+ Processing by Api::UserController#reauth as HTML
1608
+ Parameters: {"uid"=>"nonexistent-user"}
1609
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1610
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1611
+  (0.0ms) begin transaction
1612
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38600"]]
1613
+  (2.9ms) commit transaction
1614
+ Processing by Api::UserController#reauth as HTML
1615
+ Parameters: {"uid"=>"a1s2d38600"}
1616
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38600' LIMIT 1
1617
+  (0.0ms) begin transaction
1618
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1619
+ - signin
1620
+ ' WHERE "users"."id" = 5
1621
+  (2.7ms) commit transaction
1622
+ Completed 200 OK in 7ms (ActiveRecord: 3.0ms)
1623
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1624
+ Started GET "/" for 127.0.0.1 at 2013-10-02 15:26:12 +0000
1625
+ Processing by ExampleController#index as HTML
1626
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1627
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:12 +0000
1628
+ Processing by ExampleController#restricted as HTML
1629
+ Authenticating with gds_sso strategy
1630
+ Completed in 3ms
1631
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:12 +0000
1632
+ Started GET "/auth/gds/callback?code=7d15e1520c4dda96d8658b721b6902d7f79e59bd9011f6256320b484f2c7b980&state=84d29007268fb84523e04a0ef2dc3d9796634e7dec2a5a32" for 127.0.0.1 at 2013-10-02 15:26:13 +0000
1633
+ Processing by AuthenticationsController#callback as HTML
1634
+ Parameters: {"code"=>"7d15e1520c4dda96d8658b721b6902d7f79e59bd9011f6256320b484f2c7b980", "state"=>"84d29007268fb84523e04a0ef2dc3d9796634e7dec2a5a32"}
1635
+ Authenticating with gds_sso strategy
1636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1637
+  (0.1ms) begin transaction
1638
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1639
+  (3.4ms) commit transaction
1640
+  (0.0ms) begin transaction
1641
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1642
+ - signin
1643
+ ' WHERE "users"."id" = 6
1644
+  (2.6ms) commit transaction
1645
+ Redirected to http://www.example-client.com/restricted
1646
+ Completed 302 Found in 12ms (ActiveRecord: 6.5ms)
1647
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1648
+ Processing by ExampleController#restricted as HTML
1649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1650
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1651
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1652
+ Processing by ExampleController#restricted as HTML
1653
+ Authenticating with gds_sso strategy
1654
+ Completed in 0ms
1655
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1656
+ Started GET "/auth/gds/callback?code=08bb64663aef878a49f6a4dbdd5e6fd1a4a8dabbece06b09f3af900604674745&state=dd24d6bc43769a17fcaee9a83a269a4548e875e1463ab159" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1657
+ Processing by AuthenticationsController#callback as HTML
1658
+ Parameters: {"code"=>"08bb64663aef878a49f6a4dbdd5e6fd1a4a8dabbece06b09f3af900604674745", "state"=>"dd24d6bc43769a17fcaee9a83a269a4548e875e1463ab159"}
1659
+ Authenticating with gds_sso strategy
1660
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1661
+  (0.1ms) begin transaction
1662
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1663
+ - signin
1664
+ ' WHERE "users"."id" = 6
1665
+  (4.6ms) commit transaction
1666
+  (0.0ms) begin transaction
1667
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1668
+ - signin
1669
+ ' WHERE "users"."id" = 6
1670
+  (2.7ms) commit transaction
1671
+ Redirected to http://www.example-client.com/restricted
1672
+ Completed 302 Found in 47ms (ActiveRecord: 8.0ms)
1673
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1674
+ Processing by ExampleController#restricted as HTML
1675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1676
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1677
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1678
+ Processing by ExampleController#restricted as HTML
1679
+ Authenticating with gds_sso strategy
1680
+ Completed in 0ms
1681
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1682
+ Started GET "/auth/gds/callback?code=fd3cb17aabfd5fd329298c80492d9c5e1edca43098f629cbd25267d1c7ef22ff&state=f371d9d4389b16937d81d39a9c2083ceeba444fa63686084" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1683
+ Processing by AuthenticationsController#callback as HTML
1684
+ Parameters: {"code"=>"fd3cb17aabfd5fd329298c80492d9c5e1edca43098f629cbd25267d1c7ef22ff", "state"=>"f371d9d4389b16937d81d39a9c2083ceeba444fa63686084"}
1685
+ Authenticating with gds_sso strategy
1686
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1687
+  (0.0ms) begin transaction
1688
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1689
+ - signin
1690
+ ' WHERE "users"."id" = 6
1691
+  (4.2ms) commit transaction
1692
+  (0.0ms) begin transaction
1693
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1694
+ - signin
1695
+ ' WHERE "users"."id" = 6
1696
+  (2.9ms) commit transaction
1697
+ Redirected to http://www.example-client.com/restricted
1698
+ Completed 302 Found in 15ms (ActiveRecord: 7.6ms)
1699
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1700
+ Processing by ExampleController#restricted as HTML
1701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1702
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1703
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1704
+ Processing by ExampleController#this_requires_signin_permission as HTML
1705
+ Authenticating with gds_sso strategy
1706
+ Completed in 1ms
1707
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:14 +0000
1708
+ Started GET "/auth/gds/callback?code=a40b525e5ba17e73fdbe6b5d206b0505908e4bf9dbf656c04acf00249f0eca49&state=5afd1b2d20fd3f7b958d2f05faedf85f25b4e6a0396ce1ca" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1709
+ Processing by AuthenticationsController#callback as HTML
1710
+ Parameters: {"code"=>"a40b525e5ba17e73fdbe6b5d206b0505908e4bf9dbf656c04acf00249f0eca49", "state"=>"5afd1b2d20fd3f7b958d2f05faedf85f25b4e6a0396ce1ca"}
1711
+ Authenticating with gds_sso strategy
1712
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1713
+  (0.1ms) begin transaction
1714
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1715
+ - signin
1716
+ ' WHERE "users"."id" = 6
1717
+  (4.3ms) commit transaction
1718
+  (0.0ms) begin transaction
1719
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1720
+ - signin
1721
+ ' WHERE "users"."id" = 6
1722
+  (3.2ms) commit transaction
1723
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1724
+ Completed 302 Found in 16ms (ActiveRecord: 8.0ms)
1725
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1726
+ Processing by ExampleController#this_requires_signin_permission as HTML
1727
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1728
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1729
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1730
+ Processing by ExampleController#this_requires_signin_permission as HTML
1731
+ Authenticating with gds_sso strategy
1732
+ Completed in 0ms
1733
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1734
+ Started GET "/auth/gds/callback?code=12762211dd795628ada82bf246ffd0d1837f3245d645982937d4aa2a23a5524e&state=d15f37cd1a1f10e73ace34f7df2f51390367e09e491cd9b7" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1735
+ Processing by AuthenticationsController#callback as HTML
1736
+ Parameters: {"code"=>"12762211dd795628ada82bf246ffd0d1837f3245d645982937d4aa2a23a5524e", "state"=>"d15f37cd1a1f10e73ace34f7df2f51390367e09e491cd9b7"}
1737
+ Authenticating with gds_sso strategy
1738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1739
+  (0.0ms) begin transaction
1740
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1741
+ - signin
1742
+ ' WHERE "users"."id" = 6
1743
+  (3.6ms) commit transaction
1744
+  (0.0ms) begin transaction
1745
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1746
+ - signin
1747
+ ' WHERE "users"."id" = 6
1748
+  (3.5ms) commit transaction
1749
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1750
+ Completed 302 Found in 14ms (ActiveRecord: 7.5ms)
1751
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1752
+ Processing by ExampleController#this_requires_signin_permission as HTML
1753
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1754
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1755
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1756
+ Processing by ExampleController#restricted as HTML
1757
+ Authenticating with gds_sso strategy
1758
+ Completed in 0ms
1759
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1760
+ Started GET "/auth/gds/callback?code=729168400275b7ed95cd7d87495234f962ced9f39a494f194315a463b261b207&state=d3ee9a84fac64d20e25bf97c76b4911ab62ded0862a28450" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1761
+ Processing by AuthenticationsController#callback as HTML
1762
+ Parameters: {"code"=>"729168400275b7ed95cd7d87495234f962ced9f39a494f194315a463b261b207", "state"=>"d3ee9a84fac64d20e25bf97c76b4911ab62ded0862a28450"}
1763
+ Authenticating with gds_sso strategy
1764
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1765
+  (0.1ms) begin transaction
1766
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1767
+ - signin
1768
+ ' WHERE "users"."id" = 6
1769
+  (4.1ms) commit transaction
1770
+  (0.0ms) begin transaction
1771
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1772
+ - signin
1773
+ ' WHERE "users"."id" = 6
1774
+  (2.8ms) commit transaction
1775
+ Redirected to http://www.example-client.com/restricted
1776
+ Completed 302 Found in 15ms (ActiveRecord: 7.4ms)
1777
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1778
+ Processing by ExampleController#restricted as HTML
1779
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1780
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1782
+  (0.0ms) begin transaction
1783
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1784
+ - signin
1785
+ ' WHERE "users"."id" = 6
1786
+  (3.7ms) commit transaction
1787
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1788
+ Processing by ExampleController#restricted as HTML
1789
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1790
+ Filter chain halted as :authenticate_user! rendered or redirected
1791
+ Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1792
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1793
+ Processing by AuthenticationsController#sign_out as HTML
1794
+ Redirected to http://localhost:4567/users/sign_out
1795
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1796
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1797
+ Processing by ExampleController#restricted as HTML
1798
+ Authenticating with gds_sso strategy
1799
+ Completed in 0ms
1800
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1801
+ Started GET "/auth/gds/callback?code=ccc88fc69647c69a53f872aee0c3d21c0ce01599b8c5bcfe4ae79207dc016752&state=efec1487654ea1c636c503ed9f5cb0730b11692621dd4215" for 127.0.0.1 at 2013-10-02 15:26:15 +0000
1802
+ Processing by AuthenticationsController#callback as HTML
1803
+ Parameters: {"code"=>"ccc88fc69647c69a53f872aee0c3d21c0ce01599b8c5bcfe4ae79207dc016752", "state"=>"efec1487654ea1c636c503ed9f5cb0730b11692621dd4215"}
1804
+ Authenticating with gds_sso strategy
1805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1806
+  (0.0ms) begin transaction
1807
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1808
+ - signin
1809
+ ' WHERE "users"."id" = 6
1810
+  (3.7ms) commit transaction
1811
+  (0.0ms) begin transaction
1812
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1813
+ - signin
1814
+ ' WHERE "users"."id" = 6
1815
+  (4.0ms) commit transaction
1816
+ Redirected to http://www.example-client.com/restricted
1817
+ Completed 302 Found in 15ms (ActiveRecord: 8.2ms)
1818
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1819
+ Processing by ExampleController#restricted as HTML
1820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1821
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1822
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1823
+ Processing by ExampleController#restricted as HTML
1824
+ Authenticating with gds_sso strategy
1825
+ Completed in 0ms
1826
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1827
+ Started GET "/auth/gds/callback?code=faef8624a6b69371cf7e207af1b215f16dda59e7a8f669938a4ec555fbf0b153&state=804798fc4266b2e588149e9b51e4f1176699febf620301a1" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1828
+ Processing by AuthenticationsController#callback as HTML
1829
+ Parameters: {"code"=>"faef8624a6b69371cf7e207af1b215f16dda59e7a8f669938a4ec555fbf0b153", "state"=>"804798fc4266b2e588149e9b51e4f1176699febf620301a1"}
1830
+ Authenticating with gds_sso strategy
1831
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1832
+  (0.1ms) begin transaction
1833
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1834
+ - signin
1835
+ ' WHERE "users"."id" = 6
1836
+  (4.1ms) commit transaction
1837
+  (0.0ms) begin transaction
1838
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1839
+ - signin
1840
+ ' WHERE "users"."id" = 6
1841
+  (3.2ms) commit transaction
1842
+ Redirected to http://www.example-client.com/restricted
1843
+ Completed 302 Found in 15ms (ActiveRecord: 7.9ms)
1844
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1845
+ Processing by ExampleController#restricted as HTML
1846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1847
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1848
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:31:16 +0000
1849
+ Processing by ExampleController#restricted as HTML
1850
+ Authenticating with gds_sso strategy
1851
+ Completed in 0ms
1852
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-03 11:31:16 +0000
1853
+ Started GET "/auth/gds/callback?code=253b26881b71c3d54a29f58a4b10aa0c651d70e80f19b1615f3da6b41ed89202&state=deeb55564cc8cdbd526b56d17eff67e8c37959c9da283d9b" for 127.0.0.1 at 2013-10-03 11:31:16 +0000
1854
+ Processing by AuthenticationsController#callback as HTML
1855
+ Parameters: {"code"=>"253b26881b71c3d54a29f58a4b10aa0c651d70e80f19b1615f3da6b41ed89202", "state"=>"deeb55564cc8cdbd526b56d17eff67e8c37959c9da283d9b"}
1856
+ Authenticating with gds_sso strategy
1857
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1858
+  (0.1ms) begin transaction
1859
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1860
+ - signin
1861
+ ' WHERE "users"."id" = 6
1862
+  (4.4ms) commit transaction
1863
+  (0.0ms) begin transaction
1864
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1865
+ - signin
1866
+ ' WHERE "users"."id" = 6
1867
+  (2.9ms) commit transaction
1868
+ Redirected to http://www.example-client.com/restricted
1869
+ Completed 302 Found in 47ms (ActiveRecord: 7.9ms)
1870
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:31:16 +0000
1871
+ Processing by ExampleController#restricted as HTML
1872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1873
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1874
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1875
+ Processing by ExampleController#restricted as HTML
1876
+ Authenticating with gds_sso strategy
1877
+ Completed in 0ms
1878
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1879
+ Started GET "/auth/gds/callback?code=75cca67039ce35bfaa00bf812b968e049d8d3e9387f305703df19a024873f11e&state=4ea070cb7db43a9118eb51c9920e3959ac96dbb83205628d" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1880
+ Processing by AuthenticationsController#callback as HTML
1881
+ Parameters: {"code"=>"75cca67039ce35bfaa00bf812b968e049d8d3e9387f305703df19a024873f11e", "state"=>"4ea070cb7db43a9118eb51c9920e3959ac96dbb83205628d"}
1882
+ Authenticating with gds_sso strategy
1883
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1884
+  (0.1ms) begin transaction
1885
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1886
+ - signin
1887
+ ' WHERE "users"."id" = 6
1888
+  (3.8ms) commit transaction
1889
+  (0.0ms) begin transaction
1890
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1891
+ - signin
1892
+ ' WHERE "users"."id" = 6
1893
+  (3.6ms) commit transaction
1894
+ Redirected to http://www.example-client.com/restricted
1895
+ Completed 302 Found in 15ms (ActiveRecord: 7.9ms)
1896
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1897
+ Processing by ExampleController#restricted as HTML
1898
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1899
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1900
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:21:16 +0000
1901
+ Processing by ExampleController#restricted as HTML
1902
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1903
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1904
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1905
+ Processing by ExampleController#restricted as JSON
1906
+ Authenticating with gds_sso_api_access strategy
1907
+ Completed in 4ms
1908
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1909
+ Processing by ExampleController#restricted as JSON
1910
+ Authenticating with gds_sso_api_access strategy
1911
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1912
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1913
+ Processing by ExampleController#this_requires_signin_permission as JSON
1914
+ Authenticating with gds_sso_api_access strategy
1915
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1916
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000
1917
+ Processing by ExampleController#restricted as JSON
1918
+ Authenticating with gds_bearer_token strategy
1919
+ Completed in 7ms
1920
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:17 +0000
1921
+ Processing by ExampleController#restricted as JSON
1922
+ Authenticating with gds_bearer_token strategy
1923
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1924
+  (0.1ms) begin transaction
1925
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1926
+ - signin
1927
+ ' WHERE "users"."id" = 6
1928
+  (4.2ms) commit transaction
1929
+  (0.0ms) begin transaction
1930
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1931
+ - signin
1932
+ ' WHERE "users"."id" = 6
1933
+  (2.7ms) commit transaction
1934
+ Completed 200 OK in 37ms (Views: 0.2ms | ActiveRecord: 7.3ms)
1935
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:17 +0000
1936
+ Processing by ExampleController#this_requires_signin_permission as JSON
1937
+ Authenticating with gds_bearer_token strategy
1938
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1939
+  (0.0ms) begin transaction
1940
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1941
+ - signin
1942
+ ' WHERE "users"."id" = 6
1943
+  (4.1ms) commit transaction
1944
+  (0.0ms) begin transaction
1945
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1946
+ - signin
1947
+ ' WHERE "users"."id" = 6
1948
+  (3.3ms) commit transaction
1949
+ Completed 200 OK in 71ms (Views: 0.2ms | ActiveRecord: 7.9ms)
1950
+ Connecting to database specified by database.yml
1951
+  (0.7ms) select sqlite_version(*)
1952
+  (6.8ms) DROP TABLE "users"
1953
+  (3.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) 
1954
+  (0.1ms) begin transaction
1955
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36132"]]
1956
+  (4.1ms) commit transaction
1957
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1958
+ Processing by Api::UserController#update as HTML
1959
+ Parameters: {"uid"=>"a1s2d36132"}
1960
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
1961
+ Completed 403 Forbidden in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
1962
+  (0.1ms) begin transaction
1963
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3823"]]
1964
+  (3.2ms) commit transaction
1965
+ Processing by Api::UserController#update as HTML
1966
+ Parameters: {"uid"=>"a1s2d3823"}
1967
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3823' LIMIT 1
1968
+  (0.1ms) begin transaction
1969
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1970
+ - signin
1971
+ - new permission
1972
+ ' WHERE "users"."id" = 2
1973
+  (4.0ms) commit transaction
1974
+ Completed 200 OK in 12ms (ActiveRecord: 4.3ms)
1975
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
1976
+  (0.1ms) begin transaction
1977
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32729"]]
1978
+  (3.0ms) commit transaction
1979
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1980
+ Processing by Api::UserController#reauth as HTML
1981
+ Parameters: {"uid"=>"a1s2d32729"}
1982
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1983
+  (0.1ms) begin transaction
1984
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32211"]]
1985
+  (2.9ms) commit transaction
1986
+ Processing by Api::UserController#reauth as HTML
1987
+ Parameters: {"uid"=>"nonexistent-user"}
1988
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1989
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1990
+  (0.0ms) begin transaction
1991
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39814"]]
1992
+  (3.5ms) commit transaction
1993
+ Processing by Api::UserController#reauth as HTML
1994
+ Parameters: {"uid"=>"a1s2d39814"}
1995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39814' LIMIT 1
1996
+  (0.0ms) begin transaction
1997
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1998
+ - signin
1999
+ ' WHERE "users"."id" = 5
2000
+  (3.3ms) commit transaction
2001
+ Completed 200 OK in 7ms (ActiveRecord: 3.6ms)
2002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
2003
+ Started GET "/" for 127.0.0.1 at 2013-10-04 11:53:03 +0000
2004
+ Processing by ExampleController#index as HTML
2005
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
2006
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:03 +0000
2007
+ Processing by ExampleController#restricted as HTML
2008
+ Authenticating with gds_sso strategy
2009
+ Completed in 3ms
2010
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:03 +0000
2011
+ Started GET "/auth/gds/callback?code=420c8437e87daaed288186ffe45158464c83dbc97735000353e0895b1130c2cf&state=e499c377bc1d3cc446906afe1da47cc62faec253f94228db" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2012
+ Processing by AuthenticationsController#callback as HTML
2013
+ Parameters: {"code"=>"420c8437e87daaed288186ffe45158464c83dbc97735000353e0895b1130c2cf", "state"=>"e499c377bc1d3cc446906afe1da47cc62faec253f94228db"}
2014
+ Authenticating with gds_sso strategy
2015
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2016
+  (0.1ms) begin transaction
2017
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
2018
+  (4.5ms) commit transaction
2019
+  (0.0ms) begin transaction
2020
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2021
+ - signin
2022
+ ' WHERE "users"."id" = 6
2023
+  (2.9ms) commit transaction
2024
+ Redirected to http://www.example-client.com/restricted
2025
+ Completed 302 Found in 14ms (ActiveRecord: 7.9ms)
2026
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2027
+ Processing by ExampleController#restricted as HTML
2028
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2029
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2030
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2031
+ Processing by ExampleController#restricted as HTML
2032
+ Authenticating with gds_sso strategy
2033
+ Completed in 0ms
2034
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2035
+ Started GET "/auth/gds/callback?code=0beefafe73571b828d506e314137c383b3d9668dc2de2932bffb85df95833f2b&state=282e9bd73eff42035b8745db4110e69a9d8ddff70061d142" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2036
+ Processing by AuthenticationsController#callback as HTML
2037
+ Parameters: {"code"=>"0beefafe73571b828d506e314137c383b3d9668dc2de2932bffb85df95833f2b", "state"=>"282e9bd73eff42035b8745db4110e69a9d8ddff70061d142"}
2038
+ Authenticating with gds_sso strategy
2039
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2040
+  (0.1ms) begin transaction
2041
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2042
+ - signin
2043
+ ' WHERE "users"."id" = 6
2044
+  (4.3ms) commit transaction
2045
+  (0.0ms) begin transaction
2046
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2047
+ - signin
2048
+ ' WHERE "users"."id" = 6
2049
+  (3.7ms) commit transaction
2050
+ Redirected to http://www.example-client.com/restricted
2051
+ Completed 302 Found in 46ms (ActiveRecord: 8.6ms)
2052
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2053
+ Processing by ExampleController#restricted as HTML
2054
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2055
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2056
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2057
+ Processing by ExampleController#restricted as HTML
2058
+ Authenticating with gds_sso strategy
2059
+ Completed in 0ms
2060
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2061
+ Started GET "/auth/gds/callback?code=792120e6a364952401684794fa5ea62930c961998d1938b894a8add846d45404&state=09de51349003ab34c874771932f31a3141578e7c0aa50e8b" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2062
+ Processing by AuthenticationsController#callback as HTML
2063
+ Parameters: {"code"=>"792120e6a364952401684794fa5ea62930c961998d1938b894a8add846d45404", "state"=>"09de51349003ab34c874771932f31a3141578e7c0aa50e8b"}
2064
+ Authenticating with gds_sso strategy
2065
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2066
+  (0.0ms) begin transaction
2067
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2068
+ - signin
2069
+ ' WHERE "users"."id" = 6
2070
+  (5.6ms) commit transaction
2071
+  (0.1ms) begin transaction
2072
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2073
+ - signin
2074
+ ' WHERE "users"."id" = 6
2075
+  (3.2ms) commit transaction
2076
+ Redirected to http://www.example-client.com/restricted
2077
+ Completed 302 Found in 16ms (ActiveRecord: 9.2ms)
2078
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000
2079
+ Processing by ExampleController#restricted as HTML
2080
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2081
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2082
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2083
+ Processing by ExampleController#this_requires_signin_permission as HTML
2084
+ Authenticating with gds_sso strategy
2085
+ Completed in 1ms
2086
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2087
+ Started GET "/auth/gds/callback?code=804bbe29d7672dcf529c2cf5e1970b419c2c33ade6206583c82f3b9b27417ee7&state=e6ebcaf670c31cec3f168991124dbabcf8456ea4bb0ceade" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2088
+ Processing by AuthenticationsController#callback as HTML
2089
+ Parameters: {"code"=>"804bbe29d7672dcf529c2cf5e1970b419c2c33ade6206583c82f3b9b27417ee7", "state"=>"e6ebcaf670c31cec3f168991124dbabcf8456ea4bb0ceade"}
2090
+ Authenticating with gds_sso strategy
2091
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2092
+  (0.1ms) begin transaction
2093
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2094
+ - signin
2095
+ ' WHERE "users"."id" = 6
2096
+  (3.6ms) commit transaction
2097
+  (0.0ms) begin transaction
2098
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2099
+ - signin
2100
+ ' WHERE "users"."id" = 6
2101
+  (3.7ms) commit transaction
2102
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2103
+ Completed 302 Found in 15ms (ActiveRecord: 7.8ms)
2104
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2105
+ Processing by ExampleController#this_requires_signin_permission as HTML
2106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2107
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2108
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2109
+ Processing by ExampleController#this_requires_signin_permission as HTML
2110
+ Authenticating with gds_sso strategy
2111
+ Completed in 0ms
2112
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2113
+ Started GET "/auth/gds/callback?code=1e02e7105ebdecd3c8ee938a9b8b2f1813affbd5717747ff567aef58a3e46724&state=9fc7cdfa8b0876d4ea180c8d7cea3dbaab9248465ed112fb" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2114
+ Processing by AuthenticationsController#callback as HTML
2115
+ Parameters: {"code"=>"1e02e7105ebdecd3c8ee938a9b8b2f1813affbd5717747ff567aef58a3e46724", "state"=>"9fc7cdfa8b0876d4ea180c8d7cea3dbaab9248465ed112fb"}
2116
+ Authenticating with gds_sso strategy
2117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2118
+  (0.1ms) begin transaction
2119
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2120
+ - signin
2121
+ ' WHERE "users"."id" = 6
2122
+  (4.1ms) commit transaction
2123
+  (0.0ms) begin transaction
2124
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2125
+ - signin
2126
+ ' WHERE "users"."id" = 6
2127
+  (2.7ms) commit transaction
2128
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2129
+ Completed 302 Found in 14ms (ActiveRecord: 7.3ms)
2130
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2131
+ Processing by ExampleController#this_requires_signin_permission as HTML
2132
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2133
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2134
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2135
+ Processing by ExampleController#restricted as HTML
2136
+ Authenticating with gds_sso strategy
2137
+ Completed in 0ms
2138
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2139
+ Started GET "/auth/gds/callback?code=c79fe0cd5919c3eba88e4c02817e9d608da079f39456cf918179222f2faa8bd6&state=c1d3da5b0ea9e07c111c0a00ed9c33b223dd00ebcdae05c3" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2140
+ Processing by AuthenticationsController#callback as HTML
2141
+ Parameters: {"code"=>"c79fe0cd5919c3eba88e4c02817e9d608da079f39456cf918179222f2faa8bd6", "state"=>"c1d3da5b0ea9e07c111c0a00ed9c33b223dd00ebcdae05c3"}
2142
+ Authenticating with gds_sso strategy
2143
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2144
+  (0.1ms) begin transaction
2145
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2146
+ - signin
2147
+ ' WHERE "users"."id" = 6
2148
+  (4.3ms) commit transaction
2149
+  (0.0ms) begin transaction
2150
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2151
+ - signin
2152
+ ' WHERE "users"."id" = 6
2153
+  (2.7ms) commit transaction
2154
+ Redirected to http://www.example-client.com/restricted
2155
+ Completed 302 Found in 15ms (ActiveRecord: 7.6ms)
2156
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2157
+ Processing by ExampleController#restricted as HTML
2158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2159
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2160
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2161
+  (0.0ms) begin transaction
2162
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
2163
+ - signin
2164
+ ' WHERE "users"."id" = 6
2165
+  (2.8ms) commit transaction
2166
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2167
+ Processing by ExampleController#restricted as HTML
2168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2169
+ Filter chain halted as :authenticate_user! rendered or redirected
2170
+ Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2171
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-04 11:53:05 +0000
2172
+ Processing by AuthenticationsController#sign_out as HTML
2173
+ Redirected to http://localhost:4567/users/sign_out
2174
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2175
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2176
+ Processing by ExampleController#restricted as HTML
2177
+ Authenticating with gds_sso strategy
2178
+ Completed in 0ms
2179
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2180
+ Started GET "/auth/gds/callback?code=a445b0f78f7fcb96c5f67df707bdda18c8d6f8e255402eb5fdb3fdd4f7107a4e&state=069acacf2707ee34ee8c62fe146e04e956ebe33d63499378" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2181
+ Processing by AuthenticationsController#callback as HTML
2182
+ Parameters: {"code"=>"a445b0f78f7fcb96c5f67df707bdda18c8d6f8e255402eb5fdb3fdd4f7107a4e", "state"=>"069acacf2707ee34ee8c62fe146e04e956ebe33d63499378"}
2183
+ Authenticating with gds_sso strategy
2184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2185
+  (0.1ms) begin transaction
2186
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2187
+ - signin
2188
+ ' WHERE "users"."id" = 6
2189
+  (4.5ms) commit transaction
2190
+  (0.0ms) begin transaction
2191
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2192
+ - signin
2193
+ ' WHERE "users"."id" = 6
2194
+  (3.0ms) commit transaction
2195
+ Redirected to http://www.example-client.com/restricted
2196
+ Completed 302 Found in 15ms (ActiveRecord: 7.9ms)
2197
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2198
+ Processing by ExampleController#restricted as HTML
2199
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2200
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2201
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2202
+ Processing by ExampleController#restricted as HTML
2203
+ Authenticating with gds_sso strategy
2204
+ Completed in 0ms
2205
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2206
+ Started GET "/auth/gds/callback?code=b36ebf97e8f46ff74a4b4e299cd0b7ec137a9ac1da1d16ff61678ae9fbabbf2c&state=1c2f476c38445734195139417c19d2e9b73ee430defb57c8" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2207
+ Processing by AuthenticationsController#callback as HTML
2208
+ Parameters: {"code"=>"b36ebf97e8f46ff74a4b4e299cd0b7ec137a9ac1da1d16ff61678ae9fbabbf2c", "state"=>"1c2f476c38445734195139417c19d2e9b73ee430defb57c8"}
2209
+ Authenticating with gds_sso strategy
2210
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2211
+  (0.1ms) begin transaction
2212
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2213
+ - signin
2214
+ ' WHERE "users"."id" = 6
2215
+  (4.1ms) commit transaction
2216
+  (0.0ms) begin transaction
2217
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2218
+ - signin
2219
+ ' WHERE "users"."id" = 6
2220
+  (2.8ms) commit transaction
2221
+ Redirected to http://www.example-client.com/restricted
2222
+ Completed 302 Found in 15ms (ActiveRecord: 7.4ms)
2223
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2224
+ Processing by ExampleController#restricted as HTML
2225
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2226
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2227
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:58:06 +0000
2228
+ Processing by ExampleController#restricted as HTML
2229
+ Authenticating with gds_sso strategy
2230
+ Completed in 0ms
2231
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-05 07:58:06 +0000
2232
+ Started GET "/auth/gds/callback?code=c8c9d9275c5b5560573226ea5d01eef7595e50346e92839e991596802f8d790b&state=393045a693c13525b75877dd89eae5cc724385a28399104d" for 127.0.0.1 at 2013-10-05 07:58:06 +0000
2233
+ Processing by AuthenticationsController#callback as HTML
2234
+ Parameters: {"code"=>"c8c9d9275c5b5560573226ea5d01eef7595e50346e92839e991596802f8d790b", "state"=>"393045a693c13525b75877dd89eae5cc724385a28399104d"}
2235
+ Authenticating with gds_sso strategy
2236
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2237
+  (0.1ms) begin transaction
2238
+  (0.3ms) UPDATE "users" SET "permissions" = '---
2239
+ - signin
2240
+ ' WHERE "users"."id" = 6
2241
+  (4.3ms) commit transaction
2242
+  (0.0ms) begin transaction
2243
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2244
+ - signin
2245
+ ' WHERE "users"."id" = 6
2246
+  (3.8ms) commit transaction
2247
+ Redirected to http://www.example-client.com/restricted
2248
+ Completed 302 Found in 46ms (ActiveRecord: 8.7ms)
2249
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:58:06 +0000
2250
+ Processing by ExampleController#restricted as HTML
2251
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2252
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2253
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2254
+ Processing by ExampleController#restricted as HTML
2255
+ Authenticating with gds_sso strategy
2256
+ Completed in 0ms
2257
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2258
+ Started GET "/auth/gds/callback?code=bcfadc014c245982fc8a7e1095c083500c27bd2410f1ad4f035fea95489c65f7&state=3a11f2dda7d8a9fb049b21bde7a49664e6cbff428a8d1e0d" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2259
+ Processing by AuthenticationsController#callback as HTML
2260
+ Parameters: {"code"=>"bcfadc014c245982fc8a7e1095c083500c27bd2410f1ad4f035fea95489c65f7", "state"=>"3a11f2dda7d8a9fb049b21bde7a49664e6cbff428a8d1e0d"}
2261
+ Authenticating with gds_sso strategy
2262
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2263
+  (0.1ms) begin transaction
2264
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2265
+ - signin
2266
+ ' WHERE "users"."id" = 6
2267
+  (4.5ms) commit transaction
2268
+  (0.0ms) begin transaction
2269
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2270
+ - signin
2271
+ ' WHERE "users"."id" = 6
2272
+  (2.8ms) commit transaction
2273
+ Redirected to http://www.example-client.com/restricted
2274
+ Completed 302 Found in 15ms (ActiveRecord: 7.8ms)
2275
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000
2276
+ Processing by ExampleController#restricted as HTML
2277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2278
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2279
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:48:07 +0000
2280
+ Processing by ExampleController#restricted as HTML
2281
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2282
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2283
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2284
+ Processing by ExampleController#restricted as JSON
2285
+ Authenticating with gds_sso_api_access strategy
2286
+ Completed in 2ms
2287
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2288
+ Processing by ExampleController#restricted as JSON
2289
+ Authenticating with gds_sso_api_access strategy
2290
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2291
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2292
+ Processing by ExampleController#this_requires_signin_permission as JSON
2293
+ Authenticating with gds_sso_api_access strategy
2294
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2295
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2296
+ Processing by ExampleController#restricted as JSON
2297
+ Authenticating with gds_bearer_token strategy
2298
+ Completed in 7ms
2299
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2300
+ Processing by ExampleController#restricted as JSON
2301
+ Authenticating with gds_bearer_token strategy
2302
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2303
+  (0.1ms) begin transaction
2304
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2305
+ - signin
2306
+ ' WHERE "users"."id" = 6
2307
+  (4.0ms) commit transaction
2308
+  (0.1ms) begin transaction
2309
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2310
+ - signin
2311
+ ' WHERE "users"."id" = 6
2312
+  (2.9ms) commit transaction
2313
+ Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 7.5ms)
2314
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:07 +0000
2315
+ Processing by ExampleController#this_requires_signin_permission as JSON
2316
+ Authenticating with gds_bearer_token strategy
2317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2318
+  (0.0ms) begin transaction
2319
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2320
+ - signin
2321
+ ' WHERE "users"."id" = 6
2322
+  (3.4ms) commit transaction
2323
+  (0.0ms) begin transaction
2324
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2325
+ - signin
2326
+ ' WHERE "users"."id" = 6
2327
+  (2.8ms) commit transaction
2328
+ Completed 200 OK in 37ms (Views: 0.2ms | ActiveRecord: 6.7ms)
2329
+ Connecting to database specified by database.yml
2330
+  (0.7ms) select sqlite_version(*)
2331
+  (16.2ms) DROP TABLE "users"
2332
+  (10.7ms) 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) 
2333
+  (0.1ms) begin transaction
2334
+ SQL (1.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39466"]]
2335
+  (11.0ms) commit transaction
2336
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
2337
+ Processing by Api::UserController#update as HTML
2338
+ Parameters: {"uid"=>"a1s2d39466"}
2339
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
2340
+ Completed 403 Forbidden in 5.7ms (Views: 5.2ms | ActiveRecord: 0.0ms)
2341
+  (0.1ms) begin transaction
2342
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3645"]]
2343
+  (13.0ms) commit transaction
2344
+ Processing by Api::UserController#update as HTML
2345
+ Parameters: {"uid"=>"a1s2d3645"}
2346
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3645' LIMIT 1
2347
+  (0.0ms) begin transaction
2348
+  (0.1ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
2349
+ - signin
2350
+ - new permission
2351
+ ' WHERE "users"."id" = 2
2352
+  (10.6ms) commit transaction
2353
+ Completed 200 OK in 17.7ms (ActiveRecord: 10.9ms)
2354
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
2355
+  (0.0ms) begin transaction
2356
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31950"]]
2357
+  (9.6ms) commit transaction
2358
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
2359
+ Processing by Api::UserController#reauth as HTML
2360
+ Parameters: {"uid"=>"a1s2d31950"}
2361
+ Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2362
+  (0.1ms) begin transaction
2363
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32120"]]
2364
+  (10.4ms) commit transaction
2365
+ Processing by Api::UserController#reauth as HTML
2366
+ Parameters: {"uid"=>"nonexistent-user"}
2367
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
2368
+ Completed 200 OK in 0.9ms (ActiveRecord: 0.2ms)
2369
+  (0.0ms) begin transaction
2370
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31170"]]
2371
+  (8.5ms) commit transaction
2372
+ Processing by Api::UserController#reauth as HTML
2373
+ Parameters: {"uid"=>"a1s2d31170"}
2374
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31170' LIMIT 1
2375
+  (0.0ms) begin transaction
2376
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
2377
+ - signin
2378
+ ' WHERE "users"."id" = 5
2379
+  (7.7ms) commit transaction
2380
+ Completed 200 OK in 11.3ms (ActiveRecord: 8.1ms)
2381
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
2382
+ Started GET "/" for 127.0.0.1 at 2013-10-21 08:59:36 +0000
2383
+ Processing by ExampleController#index as HTML
2384
+ Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2385
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:36 +0000
2386
+ Processing by ExampleController#restricted as HTML
2387
+ Authenticating with gds_sso strategy
2388
+ Completed in 3.3ms
2389
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:36 +0000
2390
+ Started GET "/auth/gds/callback?code=9e4a7c53d9d79a13544760f76b1cac7205cbfac73b00d482dfb3600979635971&state=f1240fbbdb3835d15211c5bb2670afa3d9dcddefaa6f2581" for 127.0.0.1 at 2013-10-21 08:59:37 +0000
2391
+ Processing by AuthenticationsController#callback as HTML
2392
+ Parameters: {"code"=>"9e4a7c53d9d79a13544760f76b1cac7205cbfac73b00d482dfb3600979635971", "state"=>"f1240fbbdb3835d15211c5bb2670afa3d9dcddefaa6f2581"}
2393
+ Authenticating with gds_sso strategy
2394
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2395
+  (0.1ms) begin transaction
2396
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
2397
+  (4.3ms) commit transaction
2398
+  (0.0ms) begin transaction
2399
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2400
+ - signin
2401
+ ' WHERE "users"."id" = 6
2402
+  (3.1ms) commit transaction
2403
+ Redirected to http://www.example-client.com/restricted
2404
+ Completed 302 Found in 14.2ms (ActiveRecord: 7.9ms)
2405
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:37 +0000
2406
+ Processing by ExampleController#restricted as HTML
2407
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2408
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2409
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2410
+ Processing by ExampleController#restricted as HTML
2411
+ Authenticating with gds_sso strategy
2412
+ Completed in 0.2ms
2413
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2414
+ Started GET "/auth/gds/callback?code=acf9b7b1bd87cda6b6c89084ecbf678bf212173cdab1abf3807bb843f5a44723&state=497cb4bb8a4498b035bc0404bee7583d6950a0b360f044e2" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2415
+ Processing by AuthenticationsController#callback as HTML
2416
+ Parameters: {"code"=>"acf9b7b1bd87cda6b6c89084ecbf678bf212173cdab1abf3807bb843f5a44723", "state"=>"497cb4bb8a4498b035bc0404bee7583d6950a0b360f044e2"}
2417
+ Authenticating with gds_sso strategy
2418
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2419
+  (0.0ms) begin transaction
2420
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2421
+ - signin
2422
+ ' WHERE "users"."id" = 6
2423
+  (4.6ms) commit transaction
2424
+  (0.0ms) begin transaction
2425
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2426
+ - signin
2427
+ ' WHERE "users"."id" = 6
2428
+  (3.4ms) commit transaction
2429
+ Redirected to http://www.example-client.com/restricted
2430
+ Completed 302 Found in 16.1ms (ActiveRecord: 8.5ms)
2431
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2432
+ Processing by ExampleController#restricted as HTML
2433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2434
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2435
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2436
+ Processing by ExampleController#restricted as HTML
2437
+ Authenticating with gds_sso strategy
2438
+ Completed in 0.2ms
2439
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2440
+ Started GET "/auth/gds/callback?code=08137148f6a030dcade8fc1c7df6aaace857d94ef1e1763edf8283d732a11ecc&state=c8023e5955ab4278f87310670fcca4eaf03bfb30a1e2c032" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2441
+ Processing by AuthenticationsController#callback as HTML
2442
+ Parameters: {"code"=>"08137148f6a030dcade8fc1c7df6aaace857d94ef1e1763edf8283d732a11ecc", "state"=>"c8023e5955ab4278f87310670fcca4eaf03bfb30a1e2c032"}
2443
+ Authenticating with gds_sso strategy
2444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2445
+  (0.0ms) begin transaction
2446
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2447
+ - signin
2448
+ ' WHERE "users"."id" = 6
2449
+  (4.1ms) commit transaction
2450
+  (0.0ms) begin transaction
2451
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2452
+ - signin
2453
+ ' WHERE "users"."id" = 6
2454
+  (2.8ms) commit transaction
2455
+ Redirected to http://www.example-client.com/restricted
2456
+ Completed 302 Found in 14.5ms (ActiveRecord: 7.4ms)
2457
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2458
+ Processing by ExampleController#restricted as HTML
2459
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2460
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2461
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2462
+ Processing by ExampleController#this_requires_signin_permission as HTML
2463
+ Authenticating with gds_sso strategy
2464
+ Completed in 0.6ms
2465
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2466
+ Started GET "/auth/gds/callback?code=7be251ef7b108391155bbc351de1350e8977a89897b04b67f965ef2057d46729&state=5a8faaeaddde3ee3bc2fecf27ad00a0f1a0ed90e01dea17b" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2467
+ Processing by AuthenticationsController#callback as HTML
2468
+ Parameters: {"code"=>"7be251ef7b108391155bbc351de1350e8977a89897b04b67f965ef2057d46729", "state"=>"5a8faaeaddde3ee3bc2fecf27ad00a0f1a0ed90e01dea17b"}
2469
+ Authenticating with gds_sso strategy
2470
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2471
+  (0.1ms) begin transaction
2472
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2473
+ - signin
2474
+ ' WHERE "users"."id" = 6
2475
+  (5.3ms) commit transaction
2476
+  (0.0ms) begin transaction
2477
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2478
+ - signin
2479
+ ' WHERE "users"."id" = 6
2480
+  (4.7ms) commit transaction
2481
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2482
+ Completed 302 Found in 18.2ms (ActiveRecord: 10.5ms)
2483
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2484
+ Processing by ExampleController#this_requires_signin_permission as HTML
2485
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2486
+ Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2487
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2488
+ Processing by ExampleController#this_requires_signin_permission as HTML
2489
+ Authenticating with gds_sso strategy
2490
+ Completed in 0.1ms
2491
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:38 +0000
2492
+ Started GET "/auth/gds/callback?code=f84048344d9191d02a01569374e42a08dee9cb6955f58664e2f6d21335502d4f&state=dd641334695cfd3cc1077afbb0b729cf985bc659c8f4ede6" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2493
+ Processing by AuthenticationsController#callback as HTML
2494
+ Parameters: {"code"=>"f84048344d9191d02a01569374e42a08dee9cb6955f58664e2f6d21335502d4f", "state"=>"dd641334695cfd3cc1077afbb0b729cf985bc659c8f4ede6"}
2495
+ Authenticating with gds_sso strategy
2496
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2497
+  (0.0ms) begin transaction
2498
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2499
+ - signin
2500
+ ' WHERE "users"."id" = 6
2501
+  (5.0ms) commit transaction
2502
+  (0.0ms) begin transaction
2503
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2504
+ - signin
2505
+ ' WHERE "users"."id" = 6
2506
+  (3.8ms) commit transaction
2507
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2508
+ Completed 302 Found in 16.7ms (ActiveRecord: 9.4ms)
2509
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2510
+ Processing by ExampleController#this_requires_signin_permission as HTML
2511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2512
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2513
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2514
+ Processing by ExampleController#restricted as HTML
2515
+ Authenticating with gds_sso strategy
2516
+ Completed in 0.2ms
2517
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2518
+ Started GET "/auth/gds/callback?code=b543b9ea990a206e79a6897eb1932a9b98279d3bc932a9b14e38e8c6f65b2731&state=544ce6e653ec06a528a7b12f680eb099729f4a6569715fe2" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2519
+ Processing by AuthenticationsController#callback as HTML
2520
+ Parameters: {"code"=>"b543b9ea990a206e79a6897eb1932a9b98279d3bc932a9b14e38e8c6f65b2731", "state"=>"544ce6e653ec06a528a7b12f680eb099729f4a6569715fe2"}
2521
+ Authenticating with gds_sso strategy
2522
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2523
+  (0.1ms) begin transaction
2524
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2525
+ - signin
2526
+ ' WHERE "users"."id" = 6
2527
+  (6.9ms) commit transaction
2528
+  (0.0ms) begin transaction
2529
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2530
+ - signin
2531
+ ' WHERE "users"."id" = 6
2532
+  (2.9ms) commit transaction
2533
+ Redirected to http://www.example-client.com/restricted
2534
+ Completed 302 Found in 17.6ms (ActiveRecord: 10.2ms)
2535
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2536
+ Processing by ExampleController#restricted as HTML
2537
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2538
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2539
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2540
+  (0.0ms) begin transaction
2541
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
2542
+ - signin
2543
+ ' WHERE "users"."id" = 6
2544
+  (4.1ms) commit transaction
2545
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2546
+ Processing by ExampleController#restricted as HTML
2547
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2548
+ Filter chain halted as :authenticate_user! rendered or redirected
2549
+ Completed 403 Forbidden in 2.5ms (Views: 1.7ms | ActiveRecord: 0.1ms)
2550
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2551
+ Processing by AuthenticationsController#sign_out as HTML
2552
+ Redirected to http://localhost:4567/users/sign_out
2553
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
2554
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2555
+ Processing by ExampleController#restricted as HTML
2556
+ Authenticating with gds_sso strategy
2557
+ Completed in 0.2ms
2558
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2559
+ Started GET "/auth/gds/callback?code=c414167674321a74ad1460a9fcc4c24b8ecfd612bf209e9c160249c51b02b05c&state=6d4b192a4b2304818d63a0ac5511f3967ba29f9275e35d0d" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2560
+ Processing by AuthenticationsController#callback as HTML
2561
+ Parameters: {"code"=>"c414167674321a74ad1460a9fcc4c24b8ecfd612bf209e9c160249c51b02b05c", "state"=>"6d4b192a4b2304818d63a0ac5511f3967ba29f9275e35d0d"}
2562
+ Authenticating with gds_sso strategy
2563
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2564
+  (0.0ms) begin transaction
2565
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2566
+ - signin
2567
+ ' WHERE "users"."id" = 6
2568
+  (4.3ms) commit transaction
2569
+  (0.0ms) begin transaction
2570
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2571
+ - signin
2572
+ ' WHERE "users"."id" = 6
2573
+  (3.4ms) commit transaction
2574
+ Redirected to http://www.example-client.com/restricted
2575
+ Completed 302 Found in 15.4ms (ActiveRecord: 8.3ms)
2576
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2577
+ Processing by ExampleController#restricted as HTML
2578
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2579
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2580
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2581
+ Processing by ExampleController#restricted as HTML
2582
+ Authenticating with gds_sso strategy
2583
+ Completed in 0.2ms
2584
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:39 +0000
2585
+ Started GET "/auth/gds/callback?code=0981412c345ec339d41ab7a71727ffb918f19d9d96b39e88d4efa448ab4ddc5b&state=a21c3ff3622ebd028d390eaf4604874b36a4918312bf0708" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2586
+ Processing by AuthenticationsController#callback as HTML
2587
+ Parameters: {"code"=>"0981412c345ec339d41ab7a71727ffb918f19d9d96b39e88d4efa448ab4ddc5b", "state"=>"a21c3ff3622ebd028d390eaf4604874b36a4918312bf0708"}
2588
+ Authenticating with gds_sso strategy
2589
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2590
+  (0.1ms) begin transaction
2591
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2592
+ - signin
2593
+ ' WHERE "users"."id" = 6
2594
+  (6.1ms) commit transaction
2595
+  (0.0ms) begin transaction
2596
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2597
+ - signin
2598
+ ' WHERE "users"."id" = 6
2599
+  (3.1ms) commit transaction
2600
+ Redirected to http://www.example-client.com/restricted
2601
+ Completed 302 Found in 50.6ms (ActiveRecord: 9.8ms)
2602
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2603
+ Processing by ExampleController#restricted as HTML
2604
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2605
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2606
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-22 05:04:40 +0000
2607
+ Processing by ExampleController#restricted as HTML
2608
+ Authenticating with gds_sso strategy
2609
+ Completed in 0.3ms
2610
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-22 05:04:40 +0000
2611
+ Started GET "/auth/gds/callback?code=7208885479dedf545807ed283aec1513bb62d9094b6a32ed2d8f8c2f9142f1e1&state=45b0115e837090bbf47e9faec63c064c0f2fd640a454af24" for 127.0.0.1 at 2013-10-22 05:04:40 +0000
2612
+ Processing by AuthenticationsController#callback as HTML
2613
+ Parameters: {"code"=>"7208885479dedf545807ed283aec1513bb62d9094b6a32ed2d8f8c2f9142f1e1", "state"=>"45b0115e837090bbf47e9faec63c064c0f2fd640a454af24"}
2614
+ Authenticating with gds_sso strategy
2615
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2616
+  (0.1ms) begin transaction
2617
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2618
+ - signin
2619
+ ' WHERE "users"."id" = 6
2620
+  (6.0ms) commit transaction
2621
+  (0.1ms) begin transaction
2622
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2623
+ - signin
2624
+ ' WHERE "users"."id" = 6
2625
+  (3.8ms) commit transaction
2626
+ Redirected to http://www.example-client.com/restricted
2627
+ Completed 302 Found in 17.8ms (ActiveRecord: 10.4ms)
2628
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-22 05:04:40 +0000
2629
+ Processing by ExampleController#restricted as HTML
2630
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2631
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2632
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2633
+ Processing by ExampleController#restricted as HTML
2634
+ Authenticating with gds_sso strategy
2635
+ Completed in 0.3ms
2636
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2637
+ Started GET "/auth/gds/callback?code=4317672d83fe2e79f460d6e347e5e1b7420970edc7386c8a665ddb6de0322854&state=644d45d39ee8eda36f6486f0b22821e0159a0ce0c613983a" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2638
+ Processing by AuthenticationsController#callback as HTML
2639
+ Parameters: {"code"=>"4317672d83fe2e79f460d6e347e5e1b7420970edc7386c8a665ddb6de0322854", "state"=>"644d45d39ee8eda36f6486f0b22821e0159a0ce0c613983a"}
2640
+ Authenticating with gds_sso strategy
2641
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2642
+  (0.1ms) begin transaction
2643
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2644
+ - signin
2645
+ ' WHERE "users"."id" = 6
2646
+  (4.2ms) commit transaction
2647
+  (0.0ms) begin transaction
2648
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2649
+ - signin
2650
+ ' WHERE "users"."id" = 6
2651
+  (2.7ms) commit transaction
2652
+ Redirected to http://www.example-client.com/restricted
2653
+ Completed 302 Found in 15.1ms (ActiveRecord: 7.5ms)
2654
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2655
+ Processing by ExampleController#restricted as HTML
2656
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2657
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2658
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-22 04:54:40 +0000
2659
+ Processing by ExampleController#restricted as HTML
2660
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2661
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2662
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2663
+ Processing by ExampleController#restricted as JSON
2664
+ Authenticating with gds_sso_api_access strategy
2665
+ Completed in 2.1ms
2666
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2667
+ Processing by ExampleController#restricted as JSON
2668
+ Authenticating with gds_sso_api_access strategy
2669
+ Completed 200 OK in 0.9ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2670
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2671
+ Processing by ExampleController#this_requires_signin_permission as JSON
2672
+ Authenticating with gds_sso_api_access strategy
2673
+ Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2674
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2675
+ Processing by ExampleController#restricted as JSON
2676
+ Authenticating with gds_bearer_token strategy
2677
+ Completed in 7.1ms
2678
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2679
+ Processing by ExampleController#restricted as JSON
2680
+ Authenticating with gds_bearer_token strategy
2681
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2682
+  (0.1ms) begin transaction
2683
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2684
+ - signin
2685
+ ' WHERE "users"."id" = 6
2686
+  (3.9ms) commit transaction
2687
+  (0.1ms) begin transaction
2688
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2689
+ - signin
2690
+ ' WHERE "users"."id" = 6
2691
+  (2.8ms) commit transaction
2692
+ Completed 200 OK in 35.9ms (Views: 0.2ms | ActiveRecord: 7.2ms)
2693
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:40 +0000
2694
+ Processing by ExampleController#this_requires_signin_permission as JSON
2695
+ Authenticating with gds_bearer_token strategy
2696
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2697
+  (0.0ms) begin transaction
2698
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2699
+ - signin
2700
+ ' WHERE "users"."id" = 6
2701
+  (4.0ms) commit transaction
2702
+  (0.0ms) begin transaction
2703
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2704
+ - signin
2705
+ ' WHERE "users"."id" = 6
2706
+  (2.6ms) commit transaction
2707
+ Completed 200 OK in 36.5ms (Views: 0.2ms | ActiveRecord: 7.0ms)
2708
+ Connecting to database specified by database.yml
2709
+  (0.9ms) select sqlite_version(*)
2710
+  (9.5ms) DROP TABLE "users"
2711
+  (3.8ms) 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) 
2712
+  (0.1ms) begin transaction
2713
+ SQL (2.5ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37932"]]
2714
+  (5.5ms) commit transaction
2715
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
2716
+ Processing by Api::UserController#update as HTML
2717
+ Parameters: {"uid"=>"a1s2d37932"}
2718
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms)
2719
+ Completed 403 Forbidden in 7.7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
2720
+  (0.1ms) begin transaction
2721
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36842"]]
2722
+  (5.6ms) commit transaction
2723
+ Processing by Api::UserController#update as HTML
2724
+ Parameters: {"uid"=>"a1s2d36842"}
2725
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36842' LIMIT 1
2726
+  (0.1ms) begin transaction
2727
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
2728
+ - signin
2729
+ - new permission
2730
+ ' WHERE "users"."id" = 2
2731
+  (4.2ms) commit transaction
2732
+ Completed 200 OK in 42.0ms (ActiveRecord: 4.7ms)
2733
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
2734
+  (0.1ms) begin transaction
2735
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31391"]]
2736
+  (4.2ms) commit transaction
2737
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
2738
+ Processing by Api::UserController#reauth as HTML
2739
+ Parameters: {"uid"=>"a1s2d31391"}
2740
+ Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)
2741
+  (0.3ms) begin transaction
2742
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38574"]]
2743
+  (5.8ms) commit transaction
2744
+ Processing by Api::UserController#reauth as HTML
2745
+ Parameters: {"uid"=>"nonexistent-user"}
2746
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
2747
+ Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
2748
+  (0.1ms) begin transaction
2749
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3671"]]
2750
+  (6.2ms) commit transaction
2751
+ Processing by Api::UserController#reauth as HTML
2752
+ Parameters: {"uid"=>"a1s2d3671"}
2753
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3671' LIMIT 1
2754
+  (0.0ms) begin transaction
2755
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
2756
+ - signin
2757
+ ' WHERE "users"."id" = 5
2758
+  (5.4ms) commit transaction
2759
+ Completed 200 OK in 10.0ms (ActiveRecord: 5.8ms)
2760
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
2761
+ Started GET "/" for 127.0.0.1 at 2013-10-29 22:06:47 +0000
2762
+ Processing by ExampleController#index as HTML
2763
+ Completed 200 OK in 2.4ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2764
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:47 +0000
2765
+ Processing by ExampleController#restricted as HTML
2766
+ Authenticating with gds_sso strategy
2767
+ Completed in 3.0ms
2768
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:47 +0000
2769
+ Started GET "/auth/gds/callback?code=bfad229443ad7f7c502d74dd1855733f173dece7f39002680a485f6de3530cdc&state=fc0b308a709a3db43e2be9c3a6199dcabae1321711cffbaf" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2770
+ Processing by AuthenticationsController#callback as HTML
2771
+ Parameters: {"code"=>"bfad229443ad7f7c502d74dd1855733f173dece7f39002680a485f6de3530cdc", "state"=>"fc0b308a709a3db43e2be9c3a6199dcabae1321711cffbaf"}
2772
+ Authenticating with gds_sso strategy
2773
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2774
+  (0.1ms) begin transaction
2775
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
2776
+  (4.5ms) commit transaction
2777
+  (0.0ms) begin transaction
2778
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2779
+ - signin
2780
+ ' WHERE "users"."id" = 6
2781
+  (3.1ms) commit transaction
2782
+ Redirected to http://www.example-client.com/restricted
2783
+ Completed 302 Found in 16.3ms (ActiveRecord: 8.3ms)
2784
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2785
+ Processing by ExampleController#restricted as HTML
2786
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2787
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2788
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2789
+ Processing by ExampleController#restricted as HTML
2790
+ Authenticating with gds_sso strategy
2791
+ Completed in 0.3ms
2792
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2793
+ Started GET "/auth/gds/callback?code=c2c08bb86316bb1761eeb0541653a936428c95b3a3a8851505d98d118ffcfcc5&state=09328c483f66a296fe1ddad1daabedc98cb879092dfc0a87" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2794
+ Processing by AuthenticationsController#callback as HTML
2795
+ Parameters: {"code"=>"c2c08bb86316bb1761eeb0541653a936428c95b3a3a8851505d98d118ffcfcc5", "state"=>"09328c483f66a296fe1ddad1daabedc98cb879092dfc0a87"}
2796
+ Authenticating with gds_sso strategy
2797
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2798
+  (0.1ms) begin transaction
2799
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2800
+ - signin
2801
+ ' WHERE "users"."id" = 6
2802
+  (5.3ms) commit transaction
2803
+  (0.0ms) begin transaction
2804
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2805
+ - signin
2806
+ ' WHERE "users"."id" = 6
2807
+  (4.3ms) commit transaction
2808
+ Redirected to http://www.example-client.com/restricted
2809
+ Completed 302 Found in 19.6ms (ActiveRecord: 10.2ms)
2810
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2811
+ Processing by ExampleController#restricted as HTML
2812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2813
+ Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2814
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2815
+ Processing by ExampleController#restricted as HTML
2816
+ Authenticating with gds_sso strategy
2817
+ Completed in 0.2ms
2818
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:48 +0000
2819
+ Started GET "/auth/gds/callback?code=505af0ae594cc55882709086d0cc7ee978a4db8c0b1a746ea75f8e92502e8562&state=3c8d9960c716970b360f9731211ace4e9132e163f0e5404a" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2820
+ Processing by AuthenticationsController#callback as HTML
2821
+ Parameters: {"code"=>"505af0ae594cc55882709086d0cc7ee978a4db8c0b1a746ea75f8e92502e8562", "state"=>"3c8d9960c716970b360f9731211ace4e9132e163f0e5404a"}
2822
+ Authenticating with gds_sso strategy
2823
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2824
+  (0.0ms) begin transaction
2825
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2826
+ - signin
2827
+ ' WHERE "users"."id" = 6
2828
+  (4.3ms) commit transaction
2829
+  (0.1ms) begin transaction
2830
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2831
+ - signin
2832
+ ' WHERE "users"."id" = 6
2833
+  (3.7ms) commit transaction
2834
+ Redirected to http://www.example-client.com/restricted
2835
+ Completed 302 Found in 16.8ms (ActiveRecord: 8.6ms)
2836
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2837
+ Processing by ExampleController#restricted as HTML
2838
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2839
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2840
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2841
+ Processing by ExampleController#this_requires_signin_permission as HTML
2842
+ Authenticating with gds_sso strategy
2843
+ Completed in 0.8ms
2844
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2845
+ Started GET "/auth/gds/callback?code=ea532f74d907a78bedf124318d2ecf6786cff724fc7452359397fae5521cfa18&state=417e3e0a955e869d810faade85b70fd2a161428d15f186b7" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2846
+ Processing by AuthenticationsController#callback as HTML
2847
+ Parameters: {"code"=>"ea532f74d907a78bedf124318d2ecf6786cff724fc7452359397fae5521cfa18", "state"=>"417e3e0a955e869d810faade85b70fd2a161428d15f186b7"}
2848
+ Authenticating with gds_sso strategy
2849
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2850
+  (0.1ms) begin transaction
2851
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2852
+ - signin
2853
+ ' WHERE "users"."id" = 6
2854
+  (5.3ms) commit transaction
2855
+  (0.0ms) begin transaction
2856
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2857
+ - signin
2858
+ ' WHERE "users"."id" = 6
2859
+  (4.0ms) commit transaction
2860
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2861
+ Completed 302 Found in 20.0ms (ActiveRecord: 10.1ms)
2862
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2863
+ Processing by ExampleController#this_requires_signin_permission as HTML
2864
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2865
+ Completed 200 OK in 3.5ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2866
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2867
+ Processing by ExampleController#this_requires_signin_permission as HTML
2868
+ Authenticating with gds_sso strategy
2869
+ Completed in 0.2ms
2870
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2871
+ Started GET "/auth/gds/callback?code=07eaba147159a74f8e48e1d1533c3094c0834ea078b062a7c7f93ac6d02a1e05&state=398859ae46c844aceac2371aa2d17491b72de59865a9f0cd" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2872
+ Processing by AuthenticationsController#callback as HTML
2873
+ Parameters: {"code"=>"07eaba147159a74f8e48e1d1533c3094c0834ea078b062a7c7f93ac6d02a1e05", "state"=>"398859ae46c844aceac2371aa2d17491b72de59865a9f0cd"}
2874
+ Authenticating with gds_sso strategy
2875
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2876
+  (0.1ms) begin transaction
2877
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2878
+ - signin
2879
+ ' WHERE "users"."id" = 6
2880
+  (5.4ms) commit transaction
2881
+  (0.0ms) begin transaction
2882
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2883
+ - signin
2884
+ ' WHERE "users"."id" = 6
2885
+  (4.3ms) commit transaction
2886
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2887
+ Completed 302 Found in 18.5ms (ActiveRecord: 10.3ms)
2888
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2889
+ Processing by ExampleController#this_requires_signin_permission as HTML
2890
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2891
+ Completed 200 OK in 3.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2892
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2893
+ Processing by ExampleController#restricted as HTML
2894
+ Authenticating with gds_sso strategy
2895
+ Completed in 0.4ms
2896
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:49 +0000
2897
+ Started GET "/auth/gds/callback?code=3c6ddfcc33e241accd76bf8e5663763e7031c8d5ca4c31ca2273ce6c34f5e4da&state=feb1babd82029749d6ea5030b197c904572c49399d069e72" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2898
+ Processing by AuthenticationsController#callback as HTML
2899
+ Parameters: {"code"=>"3c6ddfcc33e241accd76bf8e5663763e7031c8d5ca4c31ca2273ce6c34f5e4da", "state"=>"feb1babd82029749d6ea5030b197c904572c49399d069e72"}
2900
+ Authenticating with gds_sso strategy
2901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2902
+  (0.1ms) begin transaction
2903
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2904
+ - signin
2905
+ ' WHERE "users"."id" = 6
2906
+  (5.6ms) commit transaction
2907
+  (0.0ms) begin transaction
2908
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2909
+ - signin
2910
+ ' WHERE "users"."id" = 6
2911
+  (4.5ms) commit transaction
2912
+ Redirected to http://www.example-client.com/restricted
2913
+ Completed 302 Found in 20.1ms (ActiveRecord: 10.7ms)
2914
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2915
+ Processing by ExampleController#restricted as HTML
2916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2917
+ Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
2918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2919
+  (0.0ms) begin transaction
2920
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
2921
+ - signin
2922
+ ' WHERE "users"."id" = 6
2923
+  (3.7ms) commit transaction
2924
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2925
+ Processing by ExampleController#restricted as HTML
2926
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2927
+ Filter chain halted as :authenticate_user! rendered or redirected
2928
+ Completed 403 Forbidden in 3.3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
2929
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2930
+ Processing by AuthenticationsController#sign_out as HTML
2931
+ Redirected to http://localhost:4567/users/sign_out
2932
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
2933
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2934
+ Processing by ExampleController#restricted as HTML
2935
+ Authenticating with gds_sso strategy
2936
+ Completed in 0.3ms
2937
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2938
+ Started GET "/auth/gds/callback?code=e5ee885e58a23fdb741d66ccda0acd550bf1fef0aa0984b1be736fb167cbca1b&state=33b9619b5f2478d1c3165a30ef2695df3e838372d9dc9e1f" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2939
+ Processing by AuthenticationsController#callback as HTML
2940
+ Parameters: {"code"=>"e5ee885e58a23fdb741d66ccda0acd550bf1fef0aa0984b1be736fb167cbca1b", "state"=>"33b9619b5f2478d1c3165a30ef2695df3e838372d9dc9e1f"}
2941
+ Authenticating with gds_sso strategy
2942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2943
+  (0.0ms) begin transaction
2944
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2945
+ - signin
2946
+ ' WHERE "users"."id" = 6
2947
+  (5.7ms) commit transaction
2948
+  (0.0ms) begin transaction
2949
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
2950
+ - signin
2951
+ ' WHERE "users"."id" = 6
2952
+  (11.4ms) commit transaction
2953
+ Redirected to http://www.example-client.com/restricted
2954
+ Completed 302 Found in 25.8ms (ActiveRecord: 17.6ms)
2955
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2956
+ Processing by ExampleController#restricted as HTML
2957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2958
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2959
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2960
+ Processing by ExampleController#restricted as HTML
2961
+ Authenticating with gds_sso strategy
2962
+ Completed in 0.2ms
2963
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2964
+ Started GET "/auth/gds/callback?code=806a4d1546badf92bd4d9c338bac570aed4ff00f0bcdbaf2d4578d1dd02a6ee3&state=9116220569a839ba8c9a2af26a1a0d63057e9a16dfe43b63" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2965
+ Processing by AuthenticationsController#callback as HTML
2966
+ Parameters: {"code"=>"806a4d1546badf92bd4d9c338bac570aed4ff00f0bcdbaf2d4578d1dd02a6ee3", "state"=>"9116220569a839ba8c9a2af26a1a0d63057e9a16dfe43b63"}
2967
+ Authenticating with gds_sso strategy
2968
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2969
+  (0.1ms) begin transaction
2970
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2971
+ - signin
2972
+ ' WHERE "users"."id" = 6
2973
+  (5.5ms) commit transaction
2974
+  (0.0ms) begin transaction
2975
+  (0.1ms) UPDATE "users" SET "permissions" = '---
2976
+ - signin
2977
+ ' WHERE "users"."id" = 6
2978
+  (4.2ms) commit transaction
2979
+ Redirected to http://www.example-client.com/restricted
2980
+ Completed 302 Found in 20.0ms (ActiveRecord: 10.4ms)
2981
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000
2982
+ Processing by ExampleController#restricted as HTML
2983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2984
+ Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms)
2985
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:11:50 +0000
2986
+ Processing by ExampleController#restricted as HTML
2987
+ Authenticating with gds_sso strategy
2988
+ Completed in 0.3ms
2989
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 18:11:50 +0000
2990
+ Started GET "/auth/gds/callback?code=728ce244ce0e13097e1aa5f096e8746469f6045aaf961039bfe9a7c67a9b1a38&state=16466f821199d0f710ad7806aec57d8c14bc3cd03d048ff9" for 127.0.0.1 at 2013-10-30 18:11:50 +0000
2991
+ Processing by AuthenticationsController#callback as HTML
2992
+ Parameters: {"code"=>"728ce244ce0e13097e1aa5f096e8746469f6045aaf961039bfe9a7c67a9b1a38", "state"=>"16466f821199d0f710ad7806aec57d8c14bc3cd03d048ff9"}
2993
+ Authenticating with gds_sso strategy
2994
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
2995
+  (0.1ms) begin transaction
2996
+  (0.2ms) UPDATE "users" SET "permissions" = '---
2997
+ - signin
2998
+ ' WHERE "users"."id" = 6
2999
+  (4.6ms) commit transaction
3000
+  (0.1ms) begin transaction
3001
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3002
+ - signin
3003
+ ' WHERE "users"."id" = 6
3004
+  (4.6ms) commit transaction
3005
+ Redirected to http://www.example-client.com/restricted
3006
+ Completed 302 Found in 17.4ms (ActiveRecord: 9.8ms)
3007
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:11:51 +0000
3008
+ Processing by ExampleController#restricted as HTML
3009
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3010
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3011
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3012
+ Processing by ExampleController#restricted as HTML
3013
+ Authenticating with gds_sso strategy
3014
+ Completed in 0.3ms
3015
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3016
+ Started GET "/auth/gds/callback?code=d0f7eb08a6e6da864bf58de465cc8dd2a616aedd16e26a0679c3c568d17bb50e&state=5d4789d94f85b07cf5f7cf2af16858959f9003d148b330d1" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3017
+ Processing by AuthenticationsController#callback as HTML
3018
+ Parameters: {"code"=>"d0f7eb08a6e6da864bf58de465cc8dd2a616aedd16e26a0679c3c568d17bb50e", "state"=>"5d4789d94f85b07cf5f7cf2af16858959f9003d148b330d1"}
3019
+ Authenticating with gds_sso strategy
3020
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3021
+  (0.1ms) begin transaction
3022
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3023
+ - signin
3024
+ ' WHERE "users"."id" = 6
3025
+  (4.2ms) commit transaction
3026
+  (0.1ms) begin transaction
3027
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3028
+ - signin
3029
+ ' WHERE "users"."id" = 6
8
3030
   (3.3ms) commit transaction
3031
+ Redirected to http://www.example-client.com/restricted
3032
+ Completed 302 Found in 18.3ms (ActiveRecord: 8.2ms)
3033
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3034
+ Processing by ExampleController#restricted as HTML
3035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3036
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3037
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:01:51 +0000
3038
+ Processing by ExampleController#restricted as HTML
3039
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3040
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3041
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3042
+ Processing by ExampleController#restricted as JSON
3043
+ Authenticating with gds_sso_api_access strategy
3044
+ Completed in 2.4ms
3045
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3046
+ Processing by ExampleController#restricted as JSON
3047
+ Authenticating with gds_sso_api_access strategy
3048
+ Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.0ms)
3049
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3050
+ Processing by ExampleController#this_requires_signin_permission as JSON
3051
+ Authenticating with gds_sso_api_access strategy
3052
+ Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3053
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3054
+ Processing by ExampleController#restricted as JSON
3055
+ Authenticating with gds_bearer_token strategy
3056
+ Completed in 42.7ms
3057
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3058
+ Processing by ExampleController#restricted as JSON
3059
+ Authenticating with gds_bearer_token strategy
3060
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3061
+  (0.1ms) begin transaction
3062
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3063
+ - signin
3064
+ ' WHERE "users"."id" = 6
3065
+  (3.9ms) commit transaction
3066
+  (0.0ms) begin transaction
3067
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3068
+ - signin
3069
+ ' WHERE "users"."id" = 6
3070
+  (3.5ms) commit transaction
3071
+ Completed 200 OK in 42.0ms (Views: 0.3ms | ActiveRecord: 8.1ms)
3072
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:51 +0000
3073
+ Processing by ExampleController#this_requires_signin_permission as JSON
3074
+ Authenticating with gds_bearer_token strategy
3075
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3076
+  (0.1ms) begin transaction
3077
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3078
+ - signin
3079
+ ' WHERE "users"."id" = 6
3080
+  (4.9ms) commit transaction
3081
+  (0.0ms) begin transaction
3082
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3083
+ - signin
3084
+ ' WHERE "users"."id" = 6
3085
+  (4.3ms) commit transaction
3086
+ Completed 200 OK in 46.6ms (Views: 0.3ms | ActiveRecord: 9.9ms)
3087
+ Connecting to database specified by database.yml
3088
+  (0.8ms) select sqlite_version(*)
3089
+  (28.5ms) DROP TABLE "users"
3090
+  (25.4ms) 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) 
3091
+  (0.1ms) begin transaction
3092
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38009"]]
3093
+  (3.3ms) commit transaction
9
3094
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
10
3095
  Processing by Api::UserController#update as HTML
11
- Parameters: {"uid"=>"a1s2d35949"}
12
- Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (35.3ms)
13
- Completed 403 Forbidden in 86ms (Views: 85.6ms | ActiveRecord: 0.0ms)
14
-  (0.1ms) begin transaction
15
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34471"]]
16
-  (2.2ms) commit transaction
3096
+ Parameters: {"uid"=>"a1s2d38009"}
3097
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
3098
+ Completed 403 Forbidden in 7.1ms (Views: 6.4ms | ActiveRecord: 0.0ms)
3099
+  (0.1ms) begin transaction
3100
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32094"]]
3101
+  (3.9ms) commit transaction
17
3102
  Processing by Api::UserController#update as HTML
18
- Parameters: {"uid"=>"a1s2d34471"}
19
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34471' LIMIT 1
20
-  (0.0ms) begin transaction
21
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
3103
+ Parameters: {"uid"=>"a1s2d32094"}
3104
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32094' LIMIT 1
3105
+  (0.1ms) begin transaction
3106
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
22
3107
  - signin
23
3108
  - new permission
24
- ' WHERE "users"."id" = 2
25
-  (2.0ms) commit transaction
26
- Completed 200 OK in 10ms (ActiveRecord: 2.6ms)
27
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
28
-  (0.1ms) begin transaction
29
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36314"]]
30
-  (1.9ms) commit transaction
3109
+ ' WHERE "users"."id" = 2
3110
+  (3.3ms) commit transaction
3111
+ Completed 200 OK in 42.6ms (ActiveRecord: 3.9ms)
3112
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
3113
+  (0.1ms) begin transaction
3114
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33167"]]
3115
+  (3.1ms) commit transaction
31
3116
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
32
3117
  Processing by Api::UserController#reauth as HTML
33
- Parameters: {"uid"=>"a1s2d36314"}
34
- Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
35
-  (0.1ms) begin transaction
36
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3499"]]
37
-  (2.4ms) commit transaction
3118
+ Parameters: {"uid"=>"a1s2d33167"}
3119
+ Completed 403 Forbidden in 2.0ms (Views: 1.1ms | ActiveRecord: 0.0ms)
3120
+  (0.1ms) begin transaction
3121
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32494"]]
3122
+  (3.7ms) commit transaction
38
3123
  Processing by Api::UserController#reauth as HTML
39
3124
  Parameters: {"uid"=>"nonexistent-user"}
40
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
41
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
42
-  (0.1ms) begin transaction
43
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36513"]]
44
-  (1.9ms) commit transaction
3125
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
3126
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
3127
+  (0.1ms) begin transaction
3128
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32783"]]
3129
+  (3.0ms) commit transaction
45
3130
  Processing by Api::UserController#reauth as HTML
46
- Parameters: {"uid"=>"a1s2d36513"}
47
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36513' LIMIT 1
48
-  (0.0ms) begin transaction
49
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
3131
+ Parameters: {"uid"=>"a1s2d32783"}
3132
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32783' LIMIT 1
3133
+  (0.0ms) begin transaction
3134
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
50
3135
  - signin
51
- ' WHERE "users"."id" = 5
52
-  (2.2ms) commit transaction
53
- Completed 200 OK in 5ms (ActiveRecord: 2.7ms)
54
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
55
- Started GET "/" for 127.0.0.1 at 2013-09-06 09:19:34 +0000
3136
+ ' WHERE "users"."id" = 5
3137
+  (3.2ms) commit transaction
3138
+ Completed 200 OK in 7.4ms (ActiveRecord: 3.5ms)
3139
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
3140
+ Started GET "/" for 127.0.0.1 at 2013-10-30 12:47:02 +0000
56
3141
  Processing by ExampleController#index as HTML
57
- Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
58
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:34 +0000
3142
+ Completed 200 OK in 2.3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
3143
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:02 +0000
59
3144
  Processing by ExampleController#restricted as HTML
60
3145
  Authenticating with gds_sso strategy
61
- Completed in 65ms
62
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:34 +0000
63
- Started GET "/auth/gds/callback?code=1f41e8d564f805618b5211627bd6f8d5c8e97c32f56fa0f794696b91e48ad696&state=cdc42e68c300f4fde49afb37d70e1afe4637b9e8f76f7274" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3146
+ Completed in 3.1ms
3147
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:02 +0000
3148
+ Started GET "/auth/gds/callback?code=d2f5403fbc91ea3030e53899d8a5cdcdb00b87b8b2cdec0fbf4249e2bd024911&state=30364844d59592c7093d9bbf8795357f145a45e0f583e290" for 127.0.0.1 at 2013-10-30 12:47:03 +0000
64
3149
  Processing by AuthenticationsController#callback as HTML
65
- Parameters: {"code"=>"1f41e8d564f805618b5211627bd6f8d5c8e97c32f56fa0f794696b91e48ad696", "state"=>"cdc42e68c300f4fde49afb37d70e1afe4637b9e8f76f7274"}
3150
+ Parameters: {"code"=>"d2f5403fbc91ea3030e53899d8a5cdcdb00b87b8b2cdec0fbf4249e2bd024911", "state"=>"30364844d59592c7093d9bbf8795357f145a45e0f583e290"}
66
3151
  Authenticating with gds_sso strategy
67
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
68
-  (0.1ms) begin transaction
69
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
70
-  (6.2ms) commit transaction
3152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
71
3153
   (0.1ms) begin transaction
72
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
3154
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
3155
+  (4.6ms) commit transaction
3156
+  (0.1ms) begin transaction
3157
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
73
3158
  - signin
74
- ' WHERE "users"."id" = 6
75
-  (2.0ms) commit transaction
3159
+ ' WHERE "users"."id" = 6
3160
+  (2.9ms) commit transaction
76
3161
  Redirected to http://www.example-client.com/restricted
77
- Completed 302 Found in 15ms (ActiveRecord: 9.2ms)
78
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3162
+ Completed 302 Found in 16.1ms (ActiveRecord: 8.3ms)
3163
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:03 +0000
79
3164
  Processing by ExampleController#restricted as HTML
80
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
81
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
82
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3166
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3167
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:03 +0000
83
3168
  Processing by ExampleController#restricted as HTML
84
3169
  Authenticating with gds_sso strategy
85
- Completed in 0ms
86
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
87
- Started GET "/auth/gds/callback?code=e7c8e7f73b56e55d63b3b016641a95c15ee6ec3901335180cac093024cf2fbb9&state=c692c8056bbb9adb0313976773e55451d0a3a1712c67f0be" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3170
+ Completed in 0.4ms
3171
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:03 +0000
3172
+ Started GET "/auth/gds/callback?code=10c380b3098e063a19552a045434a5d5f1384cb65c412249496d960988780946&state=6951e93169ce9ef0156481380c0fa9a1b64d6bfb32d5f2e4" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
88
3173
  Processing by AuthenticationsController#callback as HTML
89
- Parameters: {"code"=>"e7c8e7f73b56e55d63b3b016641a95c15ee6ec3901335180cac093024cf2fbb9", "state"=>"c692c8056bbb9adb0313976773e55451d0a3a1712c67f0be"}
3174
+ Parameters: {"code"=>"10c380b3098e063a19552a045434a5d5f1384cb65c412249496d960988780946", "state"=>"6951e93169ce9ef0156481380c0fa9a1b64d6bfb32d5f2e4"}
90
3175
  Authenticating with gds_sso strategy
91
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
92
-  (0.1ms) begin transaction
93
-  (0.3ms) UPDATE "users" SET "permissions" = '---
94
- - signin
95
- ' WHERE "users"."id" = 6
96
-  (6.4ms) commit transaction
3176
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
97
3177
   (0.1ms) begin transaction
98
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3178
+  (0.2ms) UPDATE "users" SET "permissions" = '---
99
3179
  - signin
100
3180
  ' WHERE "users"."id" = 6
101
-  (2.1ms) commit transaction
3181
+  (4.0ms) commit transaction
3182
+  (0.0ms) begin transaction
3183
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3184
+ - signin
3185
+ ' WHERE "users"."id" = 6
3186
+  (2.8ms) commit transaction
102
3187
  Redirected to http://www.example-client.com/restricted
103
- Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
104
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3188
+ Completed 302 Found in 16.4ms (ActiveRecord: 7.4ms)
3189
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
105
3190
  Processing by ExampleController#restricted as HTML
106
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
107
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
108
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
3191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3192
+ Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms)
3193
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
109
3194
  Processing by ExampleController#restricted as HTML
110
3195
  Authenticating with gds_sso strategy
111
- Completed in 0ms
112
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:36 +0000
113
- Started GET "/auth/gds/callback?code=3bda6f5f988bfdd0c8d4f9fecf0555150dfe4fc661d5e544293af975db31fbe4&state=fe3a794e850945a872b93b902933da8d8fac74b1066564df" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3196
+ Completed in 0.2ms
3197
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
3198
+ Started GET "/auth/gds/callback?code=b141d5daa63c247d164243df3a76c95e34893bfec3df01636af65a29f3fd0bfd&state=dcc2465af505ba91aaa2bd6aadc8893d21750d1f414dc2c0" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
114
3199
  Processing by AuthenticationsController#callback as HTML
115
- Parameters: {"code"=>"3bda6f5f988bfdd0c8d4f9fecf0555150dfe4fc661d5e544293af975db31fbe4", "state"=>"fe3a794e850945a872b93b902933da8d8fac74b1066564df"}
3200
+ Parameters: {"code"=>"b141d5daa63c247d164243df3a76c95e34893bfec3df01636af65a29f3fd0bfd", "state"=>"dcc2465af505ba91aaa2bd6aadc8893d21750d1f414dc2c0"}
116
3201
  Authenticating with gds_sso strategy
117
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
118
-  (0.1ms) begin transaction
119
-  (0.3ms) UPDATE "users" SET "permissions" = '---
120
- - signin
121
- ' WHERE "users"."id" = 6
122
-  (8.4ms) commit transaction
123
-  (0.1ms) begin transaction
124
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3202
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3203
+  (0.0ms) begin transaction
3204
+  (0.2ms) UPDATE "users" SET "permissions" = '---
125
3205
  - signin
126
3206
  ' WHERE "users"."id" = 6
127
-  (2.0ms) commit transaction
3207
+  (4.2ms) commit transaction
3208
+  (0.0ms) begin transaction
3209
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3210
+ - signin
3211
+ ' WHERE "users"."id" = 6
3212
+  (2.7ms) commit transaction
128
3213
  Redirected to http://www.example-client.com/restricted
129
- Completed 302 Found in 16ms (ActiveRecord: 11.5ms)
130
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3214
+ Completed 302 Found in 15.1ms (ActiveRecord: 7.4ms)
3215
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
131
3216
  Processing by ExampleController#restricted as HTML
132
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
133
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
134
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3218
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3219
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
135
3220
  Processing by ExampleController#this_requires_signin_permission as HTML
136
3221
  Authenticating with gds_sso strategy
137
- Completed in 1ms
138
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
139
- Started GET "/auth/gds/callback?code=3da13a2f9a1e7ffd50819bcbb61a845f5edede9f518619ca9b49c881a05a9223&state=773bd50239b2220a485eea657c5f14953804738120ba1c0e" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3222
+ Completed in 0.8ms
3223
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
3224
+ Started GET "/auth/gds/callback?code=53b9bbe99988ae378e821ec29cc433f80c53b2de8f8fc501b34f944ec918e046&state=2fa8465b79e1b1f1db534d3fdbfc3b32557109306b933477" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
140
3225
  Processing by AuthenticationsController#callback as HTML
141
- Parameters: {"code"=>"3da13a2f9a1e7ffd50819bcbb61a845f5edede9f518619ca9b49c881a05a9223", "state"=>"773bd50239b2220a485eea657c5f14953804738120ba1c0e"}
3226
+ Parameters: {"code"=>"53b9bbe99988ae378e821ec29cc433f80c53b2de8f8fc501b34f944ec918e046", "state"=>"2fa8465b79e1b1f1db534d3fdbfc3b32557109306b933477"}
142
3227
  Authenticating with gds_sso strategy
143
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
144
-  (0.1ms) begin transaction
145
-  (0.3ms) UPDATE "users" SET "permissions" = '---
146
- - signin
147
- ' WHERE "users"."id" = 6
148
-  (7.1ms) commit transaction
149
-  (0.0ms) begin transaction
150
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3228
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3229
+  (0.1ms) begin transaction
3230
+  (0.2ms) UPDATE "users" SET "permissions" = '---
151
3231
  - signin
152
3232
  ' WHERE "users"."id" = 6
153
-  (2.7ms) commit transaction
3233
+  (4.4ms) commit transaction
3234
+  (0.0ms) begin transaction
3235
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3236
+ - signin
3237
+ ' WHERE "users"."id" = 6
3238
+  (2.8ms) commit transaction
154
3239
  Redirected to http://www.example-client.com/this_requires_signin_permission
155
- Completed 302 Found in 16ms (ActiveRecord: 10.8ms)
156
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3240
+ Completed 302 Found in 16.7ms (ActiveRecord: 7.9ms)
3241
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
157
3242
  Processing by ExampleController#this_requires_signin_permission as HTML
158
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
159
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
160
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3243
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3244
+ Completed 200 OK in 3.1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
3245
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
161
3246
  Processing by ExampleController#this_requires_signin_permission as HTML
162
3247
  Authenticating with gds_sso strategy
163
- Completed in 0ms
164
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
165
- Started GET "/auth/gds/callback?code=154823598c021a7363156eb5d35b79d2b72018d2626aefbc7603296127766220&state=368f76c9935cdb785ec3d731d1ebd96f123bb7ce5cb3f17b" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3248
+ Completed in 0.2ms
3249
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:04 +0000
3250
+ Started GET "/auth/gds/callback?code=b6702c1af8e5d3ccc2b026c4926cc28bba039cd2e383c5521c19677713b27f26&state=241c3a65bc43b766632a0fe4ca00b8bbab798a7e1e2ef509" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
166
3251
  Processing by AuthenticationsController#callback as HTML
167
- Parameters: {"code"=>"154823598c021a7363156eb5d35b79d2b72018d2626aefbc7603296127766220", "state"=>"368f76c9935cdb785ec3d731d1ebd96f123bb7ce5cb3f17b"}
3252
+ Parameters: {"code"=>"b6702c1af8e5d3ccc2b026c4926cc28bba039cd2e383c5521c19677713b27f26", "state"=>"241c3a65bc43b766632a0fe4ca00b8bbab798a7e1e2ef509"}
168
3253
  Authenticating with gds_sso strategy
169
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
170
-  (0.1ms) begin transaction
171
-  (0.3ms) UPDATE "users" SET "permissions" = '---
172
- - signin
173
- ' WHERE "users"."id" = 6
174
-  (9.3ms) commit transaction
175
-  (0.0ms) begin transaction
176
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3254
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3255
+  (0.1ms) begin transaction
3256
+  (0.2ms) UPDATE "users" SET "permissions" = '---
177
3257
  - signin
178
3258
  ' WHERE "users"."id" = 6
179
-  (2.1ms) commit transaction
3259
+  (3.9ms) commit transaction
3260
+  (0.0ms) begin transaction
3261
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3262
+ - signin
3263
+ ' WHERE "users"."id" = 6
3264
+  (3.8ms) commit transaction
180
3265
  Redirected to http://www.example-client.com/this_requires_signin_permission
181
- Completed 302 Found in 17ms (ActiveRecord: 12.3ms)
182
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3266
+ Completed 302 Found in 16.1ms (ActiveRecord: 8.4ms)
3267
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
183
3268
  Processing by ExampleController#this_requires_signin_permission as HTML
184
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
185
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
186
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
3269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3270
+ Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3271
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
187
3272
  Processing by ExampleController#restricted as HTML
188
3273
  Authenticating with gds_sso strategy
189
- Completed in 0ms
190
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:37 +0000
191
- Started GET "/auth/gds/callback?code=f55d183e6f34b5e3442a3c24a67ba070fba097128602b028a77990c1d500e50e&state=7aa4286c9ad432c1b4620496e6ddae1840501dee8e9cfbb0" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3274
+ Completed in 0.3ms
3275
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
3276
+ Started GET "/auth/gds/callback?code=8aae158a8bfcc0f7c4399be14e452f67c9bb49b2a93fcbc29b71fa7764ff4837&state=7205e6da505664c8bc0f7019b1f69d2831510db6a5ac8098" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
192
3277
  Processing by AuthenticationsController#callback as HTML
193
- Parameters: {"code"=>"f55d183e6f34b5e3442a3c24a67ba070fba097128602b028a77990c1d500e50e", "state"=>"7aa4286c9ad432c1b4620496e6ddae1840501dee8e9cfbb0"}
3278
+ Parameters: {"code"=>"8aae158a8bfcc0f7c4399be14e452f67c9bb49b2a93fcbc29b71fa7764ff4837", "state"=>"7205e6da505664c8bc0f7019b1f69d2831510db6a5ac8098"}
194
3279
  Authenticating with gds_sso strategy
195
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
196
-  (0.1ms) begin transaction
197
-  (0.3ms) UPDATE "users" SET "permissions" = '---
198
- - signin
199
- ' WHERE "users"."id" = 6
200
-  (7.4ms) commit transaction
3280
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
201
3281
   (0.1ms) begin transaction
202
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3282
+  (0.2ms) UPDATE "users" SET "permissions" = '---
203
3283
  - signin
204
3284
  ' WHERE "users"."id" = 6
205
-  (2.0ms) commit transaction
206
- Redirected to http://www.example-client.com/restricted
207
- Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
208
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
209
- Processing by ExampleController#restricted as HTML
210
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
211
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
212
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3285
+  (4.3ms) commit transaction
213
3286
   (0.0ms) begin transaction
214
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
3287
+  (0.1ms) UPDATE "users" SET "permissions" = '---
215
3288
  - signin
216
3289
  ' WHERE "users"."id" = 6
217
-  (2.8ms) commit transaction
218
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3290
+  (2.7ms) commit transaction
3291
+ Redirected to http://www.example-client.com/restricted
3292
+ Completed 302 Found in 17.1ms (ActiveRecord: 7.6ms)
3293
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
219
3294
  Processing by ExampleController#restricted as HTML
220
3295
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3296
+ Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3298
+  (0.1ms) begin transaction
3299
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
3300
+ - signin
3301
+ ' WHERE "users"."id" = 6
3302
+  (2.6ms) commit transaction
3303
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
3304
+ Processing by ExampleController#restricted as HTML
3305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
221
3306
  Filter chain halted as :authenticate_user! rendered or redirected
222
- Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
223
- Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3307
+ Completed 403 Forbidden in 3.3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
3308
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
224
3309
  Processing by AuthenticationsController#sign_out as HTML
225
3310
  Redirected to http://localhost:4567/users/sign_out
226
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
227
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3311
+ Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms)
3312
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
228
3313
  Processing by ExampleController#restricted as HTML
229
3314
  Authenticating with gds_sso strategy
230
- Completed in 0ms
231
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
232
- Started GET "/auth/gds/callback?code=0618577da3bda3d6a1f421257011dcb89d3c40de4819a131e809eb3cac3419ed&state=9b78a019b6565c00d4c2c675bb3f40c7236741cd85a08f43" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3315
+ Completed in 0.3ms
3316
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
3317
+ Started GET "/auth/gds/callback?code=fdf7b8895211cb1b1457c8546a7549dd3d567e5ee1bd4e9e4b506148f50ad31b&state=c3ae6df21e93f250a51ee1fb53453aa1e31e5ec5e2e61ca3" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
233
3318
  Processing by AuthenticationsController#callback as HTML
234
- Parameters: {"code"=>"0618577da3bda3d6a1f421257011dcb89d3c40de4819a131e809eb3cac3419ed", "state"=>"9b78a019b6565c00d4c2c675bb3f40c7236741cd85a08f43"}
3319
+ Parameters: {"code"=>"fdf7b8895211cb1b1457c8546a7549dd3d567e5ee1bd4e9e4b506148f50ad31b", "state"=>"c3ae6df21e93f250a51ee1fb53453aa1e31e5ec5e2e61ca3"}
235
3320
  Authenticating with gds_sso strategy
236
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
237
-  (0.1ms) begin transaction
238
-  (0.3ms) UPDATE "users" SET "permissions" = '---
239
- - signin
240
- ' WHERE "users"."id" = 6
241
-  (6.2ms) commit transaction
242
-  (0.0ms) begin transaction
243
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
3321
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3322
+  (0.1ms) begin transaction
3323
+  (0.2ms) UPDATE "users" SET "permissions" = '---
244
3324
  - signin
245
3325
  ' WHERE "users"."id" = 6
246
-  (2.7ms) commit transaction
3326
+  (5.0ms) commit transaction
3327
+  (0.0ms) begin transaction
3328
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
3329
+ - signin
3330
+ ' WHERE "users"."id" = 6
3331
+  (3.7ms) commit transaction
247
3332
  Redirected to http://www.example-client.com/restricted
248
- Completed 302 Found in 15ms (ActiveRecord: 9.8ms)
249
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3333
+ Completed 302 Found in 16.9ms (ActiveRecord: 9.3ms)
3334
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
250
3335
  Processing by ExampleController#restricted as HTML
251
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
252
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
253
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3337
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3338
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
254
3339
  Processing by ExampleController#restricted as HTML
255
3340
  Authenticating with gds_sso strategy
256
- Completed in 1ms
257
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
258
- Started GET "/auth/gds/callback?code=2bddc4c453330ae448da21a87f164105a9ef2db7bd536f3d55f27acf409589c3&state=f0068aa44ee50439c6bb9995b8bc8ef6dbc79105904dc11e" for 127.0.0.1 at 2013-09-06 09:19:38 +0000
3341
+ Completed in 0.3ms
3342
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:05 +0000
3343
+ Started GET "/auth/gds/callback?code=14c75c8302e3908eacf51a6736b4ca9611c7106141cdf51672b09fd68e181211&state=5841214313ea61f08b54dbdb072d16dc7faef82030144e06" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
259
3344
  Processing by AuthenticationsController#callback as HTML
260
- Parameters: {"code"=>"2bddc4c453330ae448da21a87f164105a9ef2db7bd536f3d55f27acf409589c3", "state"=>"f0068aa44ee50439c6bb9995b8bc8ef6dbc79105904dc11e"}
3345
+ Parameters: {"code"=>"14c75c8302e3908eacf51a6736b4ca9611c7106141cdf51672b09fd68e181211", "state"=>"5841214313ea61f08b54dbdb072d16dc7faef82030144e06"}
261
3346
  Authenticating with gds_sso strategy
262
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
263
-  (0.1ms) begin transaction
264
-  (0.3ms) UPDATE "users" SET "permissions" = '---
265
- - signin
266
- ' WHERE "users"."id" = 6
267
-  (8.7ms) commit transaction
268
-  (0.0ms) begin transaction
269
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3347
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3348
+  (0.1ms) begin transaction
3349
+  (0.2ms) UPDATE "users" SET "permissions" = '---
270
3350
  - signin
271
3351
  ' WHERE "users"."id" = 6
272
-  (2.1ms) commit transaction
3352
+  (4.4ms) commit transaction
3353
+  (0.0ms) begin transaction
3354
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3355
+ - signin
3356
+ ' WHERE "users"."id" = 6
3357
+  (3.3ms) commit transaction
273
3358
  Redirected to http://www.example-client.com/restricted
274
- Completed 302 Found in 17ms (ActiveRecord: 11.7ms)
275
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3359
+ Completed 302 Found in 17.4ms (ActiveRecord: 8.3ms)
3360
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
276
3361
  Processing by ExampleController#restricted as HTML
277
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
278
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
279
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:24:39 +0000
3362
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3363
+ Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
3364
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:52:06 +0000
280
3365
  Processing by ExampleController#restricted as HTML
281
3366
  Authenticating with gds_sso strategy
282
- Completed in 0ms
283
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-07 05:24:39 +0000
284
- Started GET "/auth/gds/callback?code=bc8f864aac07bbd69d5a10feb32299d421202c4f56cbfb333aeb08dd258165d5&state=3f0afb178e850fc5106b558f3974abd5447a2bffbc305821" for 127.0.0.1 at 2013-09-07 05:24:39 +0000
3367
+ Completed in 0.3ms
3368
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 08:52:06 +0000
3369
+ Started GET "/auth/gds/callback?code=31e78b521f37d104ee2851c279fd8b9d1f5017f70684c2365fc39cfb5238921e&state=32d9aede2fa12a9e6326080464df63ee312d00eaac51e9ef" for 127.0.0.1 at 2013-10-31 08:52:06 +0000
285
3370
  Processing by AuthenticationsController#callback as HTML
286
- Parameters: {"code"=>"bc8f864aac07bbd69d5a10feb32299d421202c4f56cbfb333aeb08dd258165d5", "state"=>"3f0afb178e850fc5106b558f3974abd5447a2bffbc305821"}
3371
+ Parameters: {"code"=>"31e78b521f37d104ee2851c279fd8b9d1f5017f70684c2365fc39cfb5238921e", "state"=>"32d9aede2fa12a9e6326080464df63ee312d00eaac51e9ef"}
287
3372
  Authenticating with gds_sso strategy
288
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
289
-  (0.1ms) begin transaction
290
-  (0.3ms) UPDATE "users" SET "permissions" = '---
291
- - signin
292
- ' WHERE "users"."id" = 6
293
-  (8.5ms) commit transaction
3373
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
294
3374
   (0.1ms) begin transaction
295
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3375
+  (0.2ms) UPDATE "users" SET "permissions" = '---
296
3376
  - signin
297
3377
  ' WHERE "users"."id" = 6
298
-  (2.2ms) commit transaction
3378
+  (5.4ms) commit transaction
3379
+  (0.1ms) begin transaction
3380
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3381
+ - signin
3382
+ ' WHERE "users"."id" = 6
3383
+  (3.5ms) commit transaction
299
3384
  Redirected to http://www.example-client.com/restricted
300
- Completed 302 Found in 16ms (ActiveRecord: 11.7ms)
301
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:24:39 +0000
3385
+ Completed 302 Found in 16.9ms (ActiveRecord: 9.5ms)
3386
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:52:06 +0000
302
3387
  Processing by ExampleController#restricted as HTML
303
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
304
- Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
305
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3388
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3389
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3390
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
306
3391
  Processing by ExampleController#restricted as HTML
307
3392
  Authenticating with gds_sso strategy
308
- Completed in 0ms
309
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
310
- Started GET "/auth/gds/callback?code=88407004a9e58ad40d911eeac6f181ed0bd1e9724338e657e928f2ade6ea4490&state=f570ab75d910e40e6219502928b0b9815477698175bbf1a7" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3393
+ Completed in 0.2ms
3394
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
3395
+ Started GET "/auth/gds/callback?code=7c18d522b58c786c23b3b277b822f2f65f7c3adc7a8f5a16590cb78276e59ed5&state=2d11faaff51a8ba15fc650d30270244d1ca650411d72a7d3" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
311
3396
  Processing by AuthenticationsController#callback as HTML
312
- Parameters: {"code"=>"88407004a9e58ad40d911eeac6f181ed0bd1e9724338e657e928f2ade6ea4490", "state"=>"f570ab75d910e40e6219502928b0b9815477698175bbf1a7"}
3397
+ Parameters: {"code"=>"7c18d522b58c786c23b3b277b822f2f65f7c3adc7a8f5a16590cb78276e59ed5", "state"=>"2d11faaff51a8ba15fc650d30270244d1ca650411d72a7d3"}
313
3398
  Authenticating with gds_sso strategy
314
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
315
-  (0.1ms) begin transaction
316
-  (0.3ms) UPDATE "users" SET "permissions" = '---
317
- - signin
318
- ' WHERE "users"."id" = 6
319
-  (17.1ms) commit transaction
3399
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
320
3400
   (0.1ms) begin transaction
321
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3401
+  (0.2ms) UPDATE "users" SET "permissions" = '---
322
3402
  - signin
323
3403
  ' WHERE "users"."id" = 6
324
-  (2.5ms) commit transaction
3404
+  (4.2ms) commit transaction
3405
+  (0.0ms) begin transaction
3406
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3407
+ - signin
3408
+ ' WHERE "users"."id" = 6
3409
+  (4.6ms) commit transaction
325
3410
  Redirected to http://www.example-client.com/restricted
326
- Completed 302 Found in 27ms (ActiveRecord: 20.7ms)
327
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3411
+ Completed 302 Found in 18.4ms (ActiveRecord: 9.4ms)
3412
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
328
3413
  Processing by ExampleController#restricted as HTML
329
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
330
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
331
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:14:39 +0000
3414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3415
+ Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms)
3416
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:42:06 +0000
332
3417
  Processing by ExampleController#restricted as HTML
333
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
334
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
335
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3418
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3419
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3420
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
336
3421
  Processing by ExampleController#restricted as JSON
337
3422
  Authenticating with gds_sso_api_access strategy
338
- Completed in 66ms
339
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3423
+ Completed in 2.3ms
3424
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
340
3425
  Processing by ExampleController#restricted as JSON
341
3426
  Authenticating with gds_sso_api_access strategy
342
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
343
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3427
+ Completed 200 OK in 1.2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
3428
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
344
3429
  Processing by ExampleController#this_requires_signin_permission as JSON
345
3430
  Authenticating with gds_sso_api_access strategy
346
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
347
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:39 +0000
3431
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3432
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
348
3433
  Processing by ExampleController#restricted as JSON
349
3434
  Authenticating with gds_bearer_token strategy
350
- Completed in 10ms
351
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:19:40 +0000
3435
+ Completed in 8.4ms
3436
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000
352
3437
  Processing by ExampleController#restricted as JSON
353
3438
  Authenticating with gds_bearer_token strategy
354
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
355
-  (0.1ms) begin transaction
356
-  (0.3ms) UPDATE "users" SET "permissions" = '---
357
- - signin
358
- ' WHERE "users"."id" = 6
359
-  (8.7ms) commit transaction
3439
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
360
3440
   (0.1ms) begin transaction
361
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3441
+  (0.2ms) UPDATE "users" SET "permissions" = '---
362
3442
  - signin
363
3443
  ' WHERE "users"."id" = 6
364
-  (2.0ms) commit transaction
365
- Completed 200 OK in 45ms (Views: 0.7ms | ActiveRecord: 11.8ms)
366
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:19:40 +0000
3444
+  (3.4ms) commit transaction
3445
+  (0.0ms) begin transaction
3446
+  (0.1ms) UPDATE "users" SET "permissions" = '---
3447
+ - signin
3448
+ ' WHERE "users"."id" = 6
3449
+  (3.6ms) commit transaction
3450
+ Completed 200 OK in 39.9ms (Views: 0.3ms | ActiveRecord: 7.6ms)
3451
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:07 +0000
367
3452
  Processing by ExampleController#this_requires_signin_permission as JSON
368
3453
  Authenticating with gds_bearer_token strategy
369
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3454
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3455
+  (0.0ms) begin transaction
3456
+  (0.2ms) UPDATE "users" SET "permissions" = '---
3457
+ - signin
3458
+ ' WHERE "users"."id" = 6
3459
+  (4.4ms) commit transaction
370
3460
   (0.1ms) begin transaction
371
-  (6.0ms) UPDATE "users" SET "permissions" = '---
3461
+  (0.1ms) UPDATE "users" SET "permissions" = '---
372
3462
  - signin
373
3463
  ' WHERE "users"."id" = 6
374
-  (3.0ms) commit transaction
375
-  (0.1ms) begin transaction
376
-  (0.3ms) UPDATE "users" SET "permissions" = '---
377
- - signin
378
- ' WHERE "users"."id" = 6
379
-  (1.9ms) commit transaction
380
- Completed 200 OK in 47ms (Views: 0.7ms | ActiveRecord: 11.5ms)
3464
+  (2.8ms) commit transaction
3465
+ Completed 200 OK in 43.3ms (Views: 0.3ms | ActiveRecord: 7.8ms)
381
3466
  Connecting to database specified by database.yml
382
-  (3.3ms) select sqlite_version(*)
383
-  (22.6ms) DROP TABLE "users"
384
-  (2.3ms) 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) 
3467
+  (0.9ms) select sqlite_version(*)
3468
+  (13.5ms) DROP TABLE "users"
3469
+  (2.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) 
385
3470
   (0.1ms) begin transaction
386
- SQL (40.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35039"]]
387
-  (3.1ms) commit transaction
3471
+ SQL (2.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31967"]]
3472
+  (6.9ms) commit transaction
388
3473
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
389
3474
  Processing by Api::UserController#update as HTML
390
- Parameters: {"uid"=>"a1s2d35039"}
391
- Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (36.3ms)
392
- Completed 403 Forbidden in 87ms (Views: 86.4ms | ActiveRecord: 0.0ms)
3475
+ Parameters: {"uid"=>"a1s2d31967"}
3476
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
3477
+ Completed 403 Forbidden in 7.0ms (Views: 6.3ms | ActiveRecord: 0.0ms)
393
3478
   (0.1ms) begin transaction
394
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33989"]]
395
-  (2.0ms) commit transaction
3479
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31453"]]
3480
+  (3.8ms) commit transaction
396
3481
  Processing by Api::UserController#update as HTML
397
- Parameters: {"uid"=>"a1s2d33989"}
398
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33989' LIMIT 1
3482
+ Parameters: {"uid"=>"a1s2d31453"}
3483
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31453' LIMIT 1
399
3484
   (0.1ms) begin transaction
400
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
3485
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
401
3486
  - signin
402
3487
  - new permission
403
3488
  ' WHERE "users"."id" = 2
404
-  (2.1ms) commit transaction
405
- Completed 200 OK in 10ms (ActiveRecord: 2.6ms)
3489
+  (3.5ms) commit transaction
3490
+ Completed 200 OK in 40.9ms (ActiveRecord: 4.0ms)
406
3491
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
407
3492
   (0.1ms) begin transaction
408
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3974"]]
409
-  (2.5ms) commit transaction
3493
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38552"]]
3494
+  (4.6ms) commit transaction
410
3495
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
411
3496
  Processing by Api::UserController#reauth as HTML
412
- Parameters: {"uid"=>"a1s2d3974"}
413
- Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
3497
+ Parameters: {"uid"=>"a1s2d38552"}
3498
+ Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
414
3499
   (0.1ms) begin transaction
415
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3812"]]
416
-  (2.8ms) commit transaction
3500
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33909"]]
3501
+  (3.8ms) commit transaction
417
3502
  Processing by Api::UserController#reauth as HTML
418
3503
  Parameters: {"uid"=>"nonexistent-user"}
419
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
420
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
3504
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
3505
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
421
3506
   (0.1ms) begin transaction
422
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31583"]]
423
-  (2.1ms) commit transaction
3507
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33546"]]
3508
+  (4.3ms) commit transaction
424
3509
  Processing by Api::UserController#reauth as HTML
425
- Parameters: {"uid"=>"a1s2d31583"}
426
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31583' LIMIT 1
3510
+ Parameters: {"uid"=>"a1s2d33546"}
3511
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33546' LIMIT 1
427
3512
   (0.0ms) begin transaction
428
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
3513
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
429
3514
  - signin
430
3515
  ' WHERE "users"."id" = 5
431
-  (1.8ms) commit transaction
432
- Completed 200 OK in 4ms (ActiveRecord: 2.3ms)
3516
+  (4.7ms) commit transaction
3517
+ Completed 200 OK in 9.2ms (ActiveRecord: 5.1ms)
433
3518
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
434
- Started GET "/" for 127.0.0.1 at 2013-09-06 09:54:17 +0000
3519
+ Started GET "/" for 127.0.0.1 at 2013-10-30 12:55:14 +0000
435
3520
  Processing by ExampleController#index as HTML
436
- Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
437
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:17 +0000
3521
+ Completed 200 OK in 2.3ms (Views: 1.8ms | ActiveRecord: 0.0ms)
3522
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:14 +0000
438
3523
  Processing by ExampleController#restricted as HTML
439
3524
  Authenticating with gds_sso strategy
440
- Completed in 63ms
441
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:17 +0000
442
- Started GET "/auth/gds/callback?code=e8c31d7cb4ee3f440f9154cb5bd8b734d9c67b05bfeb710b8144b38f9a72b3dc&state=8a83b797dc3230692abd2f0c38f4a532ae6f9a3bb5f892dc" for 127.0.0.1 at 2013-09-06 09:54:18 +0000
3525
+ Completed in 3.0ms
3526
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:14 +0000
3527
+ Started GET "/auth/gds/callback?code=5901e6e152958ee53e2eb6ffba820367b7a69d61a225bffaa46c73da31f3e039&state=2fd438af5eb8ce854b275ee647af9c752834e134a09107eb" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
443
3528
  Processing by AuthenticationsController#callback as HTML
444
- Parameters: {"code"=>"e8c31d7cb4ee3f440f9154cb5bd8b734d9c67b05bfeb710b8144b38f9a72b3dc", "state"=>"8a83b797dc3230692abd2f0c38f4a532ae6f9a3bb5f892dc"}
3529
+ Parameters: {"code"=>"5901e6e152958ee53e2eb6ffba820367b7a69d61a225bffaa46c73da31f3e039", "state"=>"2fd438af5eb8ce854b275ee647af9c752834e134a09107eb"}
445
3530
  Authenticating with gds_sso strategy
446
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3531
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
447
3532
   (0.1ms) begin transaction
448
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
449
-  (6.1ms) commit transaction
3533
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
3534
+  (5.5ms) commit transaction
450
3535
   (0.0ms) begin transaction
451
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
3536
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
452
3537
  - signin
453
3538
  ' WHERE "users"."id" = 6
454
-  (1.8ms) commit transaction
3539
+  (5.1ms) commit transaction
455
3540
  Redirected to http://www.example-client.com/restricted
456
- Completed 302 Found in 15ms (ActiveRecord: 8.9ms)
457
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:18 +0000
3541
+ Completed 302 Found in 18.9ms (ActiveRecord: 11.3ms)
3542
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
458
3543
  Processing by ExampleController#restricted as HTML
459
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
460
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
461
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:18 +0000
3544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3545
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3546
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
462
3547
  Processing by ExampleController#restricted as HTML
463
3548
  Authenticating with gds_sso strategy
464
- Completed in 0ms
465
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:18 +0000
466
- Started GET "/auth/gds/callback?code=4721b1a82d9db52de1bda1cc89047738a96f3d32216993db656ca9df852b0081&state=afaf545614601881950d381a20dfc51412d78ab1f44fd9d9" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3549
+ Completed in 0.2ms
3550
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
3551
+ Started GET "/auth/gds/callback?code=71ac7202d4a3f0d357b4839140896cda41c7e2d0764d3eb3e4bf8693947e8e2f&state=0d933dc87568c431e8fcfb945c9380b3d90af4a94becc179" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
467
3552
  Processing by AuthenticationsController#callback as HTML
468
- Parameters: {"code"=>"4721b1a82d9db52de1bda1cc89047738a96f3d32216993db656ca9df852b0081", "state"=>"afaf545614601881950d381a20dfc51412d78ab1f44fd9d9"}
3553
+ Parameters: {"code"=>"71ac7202d4a3f0d357b4839140896cda41c7e2d0764d3eb3e4bf8693947e8e2f", "state"=>"0d933dc87568c431e8fcfb945c9380b3d90af4a94becc179"}
469
3554
  Authenticating with gds_sso strategy
470
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
471
3556
   (0.1ms) begin transaction
472
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3557
+  (0.2ms) UPDATE "users" SET "permissions" = '---
473
3558
  - signin
474
3559
  ' WHERE "users"."id" = 6
475
-  (7.1ms) commit transaction
476
-  (0.1ms) begin transaction
477
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3560
+  (3.6ms) commit transaction
3561
+  (0.0ms) begin transaction
3562
+  (0.1ms) UPDATE "users" SET "permissions" = '---
478
3563
  - signin
479
3564
  ' WHERE "users"."id" = 6
480
-  (2.7ms) commit transaction
3565
+  (3.8ms) commit transaction
481
3566
  Redirected to http://www.example-client.com/restricted
482
- Completed 302 Found in 17ms (ActiveRecord: 10.7ms)
483
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3567
+ Completed 302 Found in 16.7ms (ActiveRecord: 8.0ms)
3568
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
484
3569
  Processing by ExampleController#restricted as HTML
485
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
486
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
487
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3571
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3572
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
488
3573
  Processing by ExampleController#restricted as HTML
489
3574
  Authenticating with gds_sso strategy
490
- Completed in 0ms
491
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
492
- Started GET "/auth/gds/callback?code=41125e11e9509a520c57deaa4d2b8c683e2b1141c8eb69995a860eef9b56bb9f&state=c4d3137db0e2ce7726815cbc75b37a23f472c19c6fb2c21b" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3575
+ Completed in 0.2ms
3576
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:15 +0000
3577
+ Started GET "/auth/gds/callback?code=9370da5b9f42d91b56ad137f474838dca008dc3aa23d45e3397cda0be627542f&state=86f69f92ec120f24ada08329ad44c52a211726584fd2e308" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
493
3578
  Processing by AuthenticationsController#callback as HTML
494
- Parameters: {"code"=>"41125e11e9509a520c57deaa4d2b8c683e2b1141c8eb69995a860eef9b56bb9f", "state"=>"c4d3137db0e2ce7726815cbc75b37a23f472c19c6fb2c21b"}
3579
+ Parameters: {"code"=>"9370da5b9f42d91b56ad137f474838dca008dc3aa23d45e3397cda0be627542f", "state"=>"86f69f92ec120f24ada08329ad44c52a211726584fd2e308"}
495
3580
  Authenticating with gds_sso strategy
496
3581
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
497
-  (0.1ms) begin transaction
498
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3582
+  (0.0ms) begin transaction
3583
+  (0.2ms) UPDATE "users" SET "permissions" = '---
499
3584
  - signin
500
3585
  ' WHERE "users"."id" = 6
501
-  (9.4ms) commit transaction
502
-  (0.1ms) begin transaction
503
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3586
+  (3.7ms) commit transaction
3587
+  (0.0ms) begin transaction
3588
+  (0.2ms) UPDATE "users" SET "permissions" = '---
504
3589
  - signin
505
3590
  ' WHERE "users"."id" = 6
506
-  (1.8ms) commit transaction
3591
+  (4.1ms) commit transaction
507
3592
  Redirected to http://www.example-client.com/restricted
508
- Completed 302 Found in 17ms (ActiveRecord: 12.1ms)
509
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3593
+ Completed 302 Found in 15.8ms (ActiveRecord: 8.3ms)
3594
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
510
3595
  Processing by ExampleController#restricted as HTML
511
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
512
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
513
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3596
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3597
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3598
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
514
3599
  Processing by ExampleController#this_requires_signin_permission as HTML
515
3600
  Authenticating with gds_sso strategy
516
- Completed in 1ms
517
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
518
- Started GET "/auth/gds/callback?code=9fc77e144a4f1f48b8d328709b255ef2455d4581c5c2327216e748a913f4b747&state=053ea0610740f2239f0dde30cada173091bcf4c96666054b" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3601
+ Completed in 0.8ms
3602
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
3603
+ Started GET "/auth/gds/callback?code=40ca3dcb4718907ae3baa404ac4aa1e35cc9fbd9b056640a42c61b22f89ada2b&state=a82151a8df4bc4c7c2af4c533b01938c44a44e75b2044f9d" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
519
3604
  Processing by AuthenticationsController#callback as HTML
520
- Parameters: {"code"=>"9fc77e144a4f1f48b8d328709b255ef2455d4581c5c2327216e748a913f4b747", "state"=>"053ea0610740f2239f0dde30cada173091bcf4c96666054b"}
3605
+ Parameters: {"code"=>"40ca3dcb4718907ae3baa404ac4aa1e35cc9fbd9b056640a42c61b22f89ada2b", "state"=>"a82151a8df4bc4c7c2af4c533b01938c44a44e75b2044f9d"}
521
3606
  Authenticating with gds_sso strategy
522
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3607
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
523
3608
   (0.1ms) begin transaction
524
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3609
+  (0.2ms) UPDATE "users" SET "permissions" = '---
525
3610
  - signin
526
3611
  ' WHERE "users"."id" = 6
527
-  (8.1ms) commit transaction
3612
+  (11.8ms) commit transaction
528
3613
   (0.0ms) begin transaction
529
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3614
+  (0.1ms) UPDATE "users" SET "permissions" = '---
530
3615
  - signin
531
3616
  ' WHERE "users"."id" = 6
532
-  (1.8ms) commit transaction
3617
+  (8.7ms) commit transaction
533
3618
  Redirected to http://www.example-client.com/this_requires_signin_permission
534
- Completed 302 Found in 16ms (ActiveRecord: 10.8ms)
535
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3619
+ Completed 302 Found in 29.8ms (ActiveRecord: 21.1ms)
3620
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
536
3621
  Processing by ExampleController#this_requires_signin_permission as HTML
537
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
538
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
539
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
3622
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3623
+ Completed 200 OK in 3.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3624
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
540
3625
  Processing by ExampleController#this_requires_signin_permission as HTML
541
3626
  Authenticating with gds_sso strategy
542
- Completed in 0ms
543
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:19 +0000
544
- Started GET "/auth/gds/callback?code=8737ca4b907d63764be71677c9c31fcf90d3cf7c2cc73dce6de2648a66af5844&state=cecbfb14583102a9e718d003f5e5fe85c92dd480182c0e8e" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3627
+ Completed in 0.2ms
3628
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
3629
+ Started GET "/auth/gds/callback?code=24dc1f1ceb425bf0acc6a73cb3ceecd6fb90158b7aa035a61e6b499ab2aa02b3&state=729b7beb80411872899bd1d0e46956b6868cbfb90dcc9385" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
545
3630
  Processing by AuthenticationsController#callback as HTML
546
- Parameters: {"code"=>"8737ca4b907d63764be71677c9c31fcf90d3cf7c2cc73dce6de2648a66af5844", "state"=>"cecbfb14583102a9e718d003f5e5fe85c92dd480182c0e8e"}
3631
+ Parameters: {"code"=>"24dc1f1ceb425bf0acc6a73cb3ceecd6fb90158b7aa035a61e6b499ab2aa02b3", "state"=>"729b7beb80411872899bd1d0e46956b6868cbfb90dcc9385"}
547
3632
  Authenticating with gds_sso strategy
548
3633
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
549
3634
   (0.1ms) begin transaction
550
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3635
+  (0.2ms) UPDATE "users" SET "permissions" = '---
551
3636
  - signin
552
3637
  ' WHERE "users"."id" = 6
553
-  (30.1ms) commit transaction
3638
+  (3.5ms) commit transaction
554
3639
   (0.0ms) begin transaction
555
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3640
+  (0.2ms) UPDATE "users" SET "permissions" = '---
556
3641
  - signin
557
3642
  ' WHERE "users"."id" = 6
558
-  (11.7ms) commit transaction
3643
+  (3.2ms) commit transaction
559
3644
  Redirected to http://www.example-client.com/this_requires_signin_permission
560
- Completed 302 Found in 47ms (ActiveRecord: 42.6ms)
561
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3645
+ Completed 302 Found in 14.9ms (ActiveRecord: 7.3ms)
3646
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
562
3647
  Processing by ExampleController#this_requires_signin_permission as HTML
563
3648
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
564
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
565
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3649
+ Completed 200 OK in 2.9ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3650
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
566
3651
  Processing by ExampleController#restricted as HTML
567
3652
  Authenticating with gds_sso strategy
568
- Completed in 0ms
569
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
570
- Started GET "/auth/gds/callback?code=ccb38866a6b585558e55fcba86fda25ea07aff935b4ff80b2539c320ab133b70&state=e84135d5d280865a97ae4c9bd9163c9906c51502d80271e6" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3653
+ Completed in 0.3ms
3654
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:16 +0000
3655
+ Started GET "/auth/gds/callback?code=0100042293d2c7e830a22822ea65c6c6045e34fbef4ebd8f8d88900d94677ed5&state=35369200bcf68adca750c5387ec2efb330930ce3e41dfd4e" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
571
3656
  Processing by AuthenticationsController#callback as HTML
572
- Parameters: {"code"=>"ccb38866a6b585558e55fcba86fda25ea07aff935b4ff80b2539c320ab133b70", "state"=>"e84135d5d280865a97ae4c9bd9163c9906c51502d80271e6"}
3657
+ Parameters: {"code"=>"0100042293d2c7e830a22822ea65c6c6045e34fbef4ebd8f8d88900d94677ed5", "state"=>"35369200bcf68adca750c5387ec2efb330930ce3e41dfd4e"}
573
3658
  Authenticating with gds_sso strategy
574
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
575
3660
   (0.1ms) begin transaction
576
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3661
+  (0.2ms) UPDATE "users" SET "permissions" = '---
577
3662
  - signin
578
3663
  ' WHERE "users"."id" = 6
579
-  (21.0ms) commit transaction
3664
+  (6.8ms) commit transaction
580
3665
   (0.1ms) begin transaction
581
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3666
+  (0.1ms) UPDATE "users" SET "permissions" = '---
582
3667
  - signin
583
3668
  ' WHERE "users"."id" = 6
584
-  (1.9ms) commit transaction
3669
+  (3.9ms) commit transaction
585
3670
  Redirected to http://www.example-client.com/restricted
586
- Completed 302 Found in 31ms (ActiveRecord: 23.9ms)
587
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3671
+ Completed 302 Found in 20.6ms (ActiveRecord: 11.3ms)
3672
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
588
3673
  Processing by ExampleController#restricted as HTML
589
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
590
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
3674
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3675
+ Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
591
3676
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
592
-  (0.1ms) begin transaction
593
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
3677
+  (0.0ms) begin transaction
3678
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
594
3679
  - signin
595
3680
  ' WHERE "users"."id" = 6
596
-  (1.8ms) commit transaction
597
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3681
+  (4.0ms) commit transaction
3682
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
598
3683
  Processing by ExampleController#restricted as HTML
599
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3684
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
600
3685
  Filter chain halted as :authenticate_user! rendered or redirected
601
- Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
602
- Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-06 09:54:20 +0000
3686
+ Completed 403 Forbidden in 3.3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
3687
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
603
3688
  Processing by AuthenticationsController#sign_out as HTML
604
3689
  Redirected to http://localhost:4567/users/sign_out
605
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
606
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3690
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
3691
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
607
3692
  Processing by ExampleController#restricted as HTML
608
3693
  Authenticating with gds_sso strategy
609
- Completed in 0ms
610
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
611
- Started GET "/auth/gds/callback?code=68f257da53730246e034c5b14420a767e3d3765ef8395d3de3d7885da7e9a49c&state=27de9983b3072b39a7249986979d505714b0e6bc74e7de82" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3694
+ Completed in 0.3ms
3695
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
3696
+ Started GET "/auth/gds/callback?code=a3b475f892300048894a8b116edab59c69d39a58aac4f1d297419cda30e2e60c&state=a5ff23d1b5c671314788e32c879ec3e4ce61d3465a883d24" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
612
3697
  Processing by AuthenticationsController#callback as HTML
613
- Parameters: {"code"=>"68f257da53730246e034c5b14420a767e3d3765ef8395d3de3d7885da7e9a49c", "state"=>"27de9983b3072b39a7249986979d505714b0e6bc74e7de82"}
3698
+ Parameters: {"code"=>"a3b475f892300048894a8b116edab59c69d39a58aac4f1d297419cda30e2e60c", "state"=>"a5ff23d1b5c671314788e32c879ec3e4ce61d3465a883d24"}
614
3699
  Authenticating with gds_sso strategy
615
3700
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
616
-  (0.1ms) begin transaction
617
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3701
+  (0.0ms) begin transaction
3702
+  (0.2ms) UPDATE "users" SET "permissions" = '---
618
3703
  - signin
619
3704
  ' WHERE "users"."id" = 6
620
-  (4.9ms) commit transaction
621
-  (0.1ms) begin transaction
622
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
3705
+  (4.1ms) commit transaction
3706
+  (0.0ms) begin transaction
3707
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
623
3708
  - signin
624
3709
  ' WHERE "users"."id" = 6
625
-  (10.0ms) commit transaction
3710
+  (2.8ms) commit transaction
626
3711
  Redirected to http://www.example-client.com/restricted
627
- Completed 302 Found in 21ms (ActiveRecord: 15.8ms)
628
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3712
+ Completed 302 Found in 15.3ms (ActiveRecord: 7.5ms)
3713
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
629
3714
  Processing by ExampleController#restricted as HTML
630
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
631
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
632
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3715
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3716
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3717
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
633
3718
  Processing by ExampleController#restricted as HTML
634
3719
  Authenticating with gds_sso strategy
635
- Completed in 0ms
636
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
637
- Started GET "/auth/gds/callback?code=6a05618b509c376ab15ece7eb2e4d72f476ea62fbb87432d6116dbf023ce6ec9&state=ee18c08f830853da6855a6aef69ca92f00fd89575c4cb615" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3720
+ Completed in 0.3ms
3721
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
3722
+ Started GET "/auth/gds/callback?code=ef7df9ebfd94d40488a4b90a70e4a57fd1c8dffa96e60f8cc7891ae65e08005b&state=11080402cb476cbdb88b0c752a670b801d691a590645d524" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
638
3723
  Processing by AuthenticationsController#callback as HTML
639
- Parameters: {"code"=>"6a05618b509c376ab15ece7eb2e4d72f476ea62fbb87432d6116dbf023ce6ec9", "state"=>"ee18c08f830853da6855a6aef69ca92f00fd89575c4cb615"}
3724
+ Parameters: {"code"=>"ef7df9ebfd94d40488a4b90a70e4a57fd1c8dffa96e60f8cc7891ae65e08005b", "state"=>"11080402cb476cbdb88b0c752a670b801d691a590645d524"}
640
3725
  Authenticating with gds_sso strategy
641
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3726
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
642
3727
   (0.1ms) begin transaction
643
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3728
+  (0.2ms) UPDATE "users" SET "permissions" = '---
644
3729
  - signin
645
3730
  ' WHERE "users"."id" = 6
646
-  (7.5ms) commit transaction
3731
+  (3.7ms) commit transaction
647
3732
   (0.0ms) begin transaction
648
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3733
+  (0.2ms) UPDATE "users" SET "permissions" = '---
649
3734
  - signin
650
3735
  ' WHERE "users"."id" = 6
651
-  (7.2ms) commit transaction
3736
+  (2.7ms) commit transaction
652
3737
  Redirected to http://www.example-client.com/restricted
653
- Completed 302 Found in 21ms (ActiveRecord: 15.7ms)
654
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3738
+ Completed 302 Found in 16.1ms (ActiveRecord: 7.1ms)
3739
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
655
3740
  Processing by ExampleController#restricted as HTML
656
3741
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
657
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
658
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:59:21 +0000
3742
+ Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3743
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 09:00:17 +0000
659
3744
  Processing by ExampleController#restricted as HTML
660
3745
  Authenticating with gds_sso strategy
661
- Completed in 0ms
662
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-07 05:59:21 +0000
663
- Started GET "/auth/gds/callback?code=f6f5e6ecee4f6477b7f874bc87d737b4a520a0539277ae8dd8e8aedd8a05355d&state=e7a32bebb099a81a66cfd4980e53eab8a6fa61e3d131aad9" for 127.0.0.1 at 2013-09-07 05:59:21 +0000
3746
+ Completed in 0.3ms
3747
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 09:00:17 +0000
3748
+ Started GET "/auth/gds/callback?code=55da2103f3f0fc1bb5fb9476d5ecd9dc5370c305ec4e28886be730e8998b631a&state=66ae85366ba15dd6051f7fcf6ad2ce09b204f539f86b17b6" for 127.0.0.1 at 2013-10-31 09:00:17 +0000
664
3749
  Processing by AuthenticationsController#callback as HTML
665
- Parameters: {"code"=>"f6f5e6ecee4f6477b7f874bc87d737b4a520a0539277ae8dd8e8aedd8a05355d", "state"=>"e7a32bebb099a81a66cfd4980e53eab8a6fa61e3d131aad9"}
3750
+ Parameters: {"code"=>"55da2103f3f0fc1bb5fb9476d5ecd9dc5370c305ec4e28886be730e8998b631a", "state"=>"66ae85366ba15dd6051f7fcf6ad2ce09b204f539f86b17b6"}
666
3751
  Authenticating with gds_sso strategy
667
3752
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
668
3753
   (0.1ms) begin transaction
669
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3754
+  (0.2ms) UPDATE "users" SET "permissions" = '---
670
3755
  - signin
671
3756
  ' WHERE "users"."id" = 6
672
3757
   (4.1ms) commit transaction
673
3758
   (0.1ms) begin transaction
674
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3759
+  (0.2ms) UPDATE "users" SET "permissions" = '---
675
3760
  - signin
676
3761
  ' WHERE "users"."id" = 6
677
-  (4.2ms) commit transaction
3762
+  (2.6ms) commit transaction
678
3763
  Redirected to http://www.example-client.com/restricted
679
- Completed 302 Found in 14ms (ActiveRecord: 9.2ms)
680
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:59:21 +0000
3764
+ Completed 302 Found in 14.5ms (ActiveRecord: 7.3ms)
3765
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 09:00:17 +0000
681
3766
  Processing by ExampleController#restricted as HTML
682
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
683
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
684
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
3767
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3768
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3769
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
685
3770
  Processing by ExampleController#restricted as HTML
686
3771
  Authenticating with gds_sso strategy
687
- Completed in 0ms
688
- Started GET "/auth/gds" for 127.0.0.1 at 2013-09-06 09:54:21 +0000
689
- Started GET "/auth/gds/callback?code=caa215dec193abf95eb53bf99c7a8a041b625696463a82c90570171fa70385a2&state=8ed463296a1a452f82485897aa8344b487a8b2cc7a961943" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3772
+ Completed in 0.2ms
3773
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:17 +0000
3774
+ Started GET "/auth/gds/callback?code=8949021d8c6fbf8f8338e319dfb4c7cca794182f1f36b94d1c9ce2eebb8c714c&state=031d45faeb2e45b63d82911c526fc9ddeb1918a2096e4ea7" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
690
3775
  Processing by AuthenticationsController#callback as HTML
691
- Parameters: {"code"=>"caa215dec193abf95eb53bf99c7a8a041b625696463a82c90570171fa70385a2", "state"=>"8ed463296a1a452f82485897aa8344b487a8b2cc7a961943"}
3776
+ Parameters: {"code"=>"8949021d8c6fbf8f8338e319dfb4c7cca794182f1f36b94d1c9ce2eebb8c714c", "state"=>"031d45faeb2e45b63d82911c526fc9ddeb1918a2096e4ea7"}
692
3777
  Authenticating with gds_sso strategy
693
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3778
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
694
3779
   (0.1ms) begin transaction
695
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3780
+  (0.2ms) UPDATE "users" SET "permissions" = '---
696
3781
  - signin
697
3782
  ' WHERE "users"."id" = 6
698
-  (14.1ms) commit transaction
699
-  (0.1ms) begin transaction
700
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3783
+  (6.0ms) commit transaction
3784
+  (0.0ms) begin transaction
3785
+  (0.2ms) UPDATE "users" SET "permissions" = '---
701
3786
  - signin
702
3787
  ' WHERE "users"."id" = 6
703
-  (2.8ms) commit transaction
3788
+  (3.4ms) commit transaction
704
3789
  Redirected to http://www.example-client.com/restricted
705
- Completed 302 Found in 24ms (ActiveRecord: 17.9ms)
706
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3790
+ Completed 302 Found in 19.2ms (ActiveRecord: 10.0ms)
3791
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
707
3792
  Processing by ExampleController#restricted as HTML
708
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
709
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
710
- Started GET "/restricted" for 127.0.0.1 at 2013-09-07 05:49:22 +0000
3793
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3794
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3795
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:50:18 +0000
711
3796
  Processing by ExampleController#restricted as HTML
712
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
713
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
714
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3798
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3799
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
715
3800
  Processing by ExampleController#restricted as JSON
716
3801
  Authenticating with gds_sso_api_access strategy
717
- Completed in 86ms
718
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3802
+ Completed in 2.3ms
3803
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
719
3804
  Processing by ExampleController#restricted as JSON
720
3805
  Authenticating with gds_sso_api_access strategy
721
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
722
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3806
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
3807
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
723
3808
  Processing by ExampleController#this_requires_signin_permission as JSON
724
3809
  Authenticating with gds_sso_api_access strategy
725
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
726
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3810
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3811
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
727
3812
  Processing by ExampleController#restricted as JSON
728
3813
  Authenticating with gds_bearer_token strategy
729
- Completed in 32ms
730
- Started GET "/restricted" for 127.0.0.1 at 2013-09-06 09:54:22 +0000
3814
+ Completed in 8.4ms
3815
+ Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
731
3816
  Processing by ExampleController#restricted as JSON
732
3817
  Authenticating with gds_bearer_token strategy
733
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
3818
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
734
3819
   (0.1ms) begin transaction
735
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3820
+  (0.2ms) UPDATE "users" SET "permissions" = '---
736
3821
  - signin
737
3822
  ' WHERE "users"."id" = 6
738
-  (19.8ms) commit transaction
739
-  (0.1ms) begin transaction
740
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3823
+  (5.7ms) commit transaction
3824
+  (0.0ms) begin transaction
3825
+  (0.1ms) UPDATE "users" SET "permissions" = '---
741
3826
  - signin
742
3827
  ' WHERE "users"."id" = 6
743
-  (4.9ms) commit transaction
744
- Completed 200 OK in 70ms (Views: 0.7ms | ActiveRecord: 25.8ms)
745
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-06 09:54:23 +0000
3828
+  (3.0ms) commit transaction
3829
+ Completed 200 OK in 42.4ms (Views: 0.4ms | ActiveRecord: 9.3ms)
3830
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:18 +0000
746
3831
  Processing by ExampleController#this_requires_signin_permission as JSON
747
3832
  Authenticating with gds_bearer_token strategy
748
3833
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
749
3834
   (0.1ms) begin transaction
750
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3835
+  (0.2ms) UPDATE "users" SET "permissions" = '---
751
3836
  - signin
752
3837
  ' WHERE "users"."id" = 6
753
-  (16.3ms) commit transaction
754
-  (0.1ms) begin transaction
755
-  (0.3ms) UPDATE "users" SET "permissions" = '---
3838
+  (4.3ms) commit transaction
3839
+  (0.0ms) begin transaction
3840
+  (0.2ms) UPDATE "users" SET "permissions" = '---
756
3841
  - signin
757
3842
  ' WHERE "users"."id" = 6
758
-  (2.8ms) commit transaction
759
- Completed 200 OK in 84ms (Views: 0.7ms | ActiveRecord: 20.2ms)
3843
+  (2.7ms) commit transaction
3844
+ Completed 200 OK in 76.1ms (Views: 0.3ms | ActiveRecord: 7.6ms)