gds-sso 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8187,3 +8187,2295 @@ Authenticating with gds_bearer_token strategy
8187
8187
  ' WHERE "users"."id" = 11
8188
8188
   (13.3ms) commit transaction
8189
8189
  Completed 200 OK in 91.9ms (Views: 0.2ms | ActiveRecord: 28.7ms)
8190
+ Connecting to database specified by database.yml
8191
+  (1.0ms) select sqlite_version(*)
8192
+  (16.6ms) DROP TABLE "users"
8193
+  (13.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) 
8194
+  (0.1ms) begin transaction
8195
+ SQL (1.9ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36499"]]
8196
+  (49.4ms) commit transaction
8197
+  (0.1ms) begin transaction
8198
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31029"]]
8199
+  (17.1ms) commit transaction
8200
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8201
+ Processing by Api::UserController#update as HTML
8202
+ Parameters: {"uid"=>"a1s2d36499"}
8203
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
8204
+ Completed 403 Forbidden in 7.5ms (Views: 6.8ms | ActiveRecord: 0.0ms)
8205
+  (0.1ms) begin transaction
8206
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3895"]]
8207
+  (18.4ms) commit transaction
8208
+  (0.1ms) begin transaction
8209
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33240"]]
8210
+  (13.9ms) commit transaction
8211
+ Processing by Api::UserController#update as HTML
8212
+ Parameters: {"uid"=>"a1s2d3895"}
8213
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3895' LIMIT 1
8214
+  (0.1ms) begin transaction
8215
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
8216
+ - signin
8217
+ - new permission
8218
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
8219
+  (12.5ms) commit transaction
8220
+ Completed 200 OK in 25.9ms (ActiveRecord: 12.9ms)
8221
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
8222
+  (0.1ms) begin transaction
8223
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3188"]]
8224
+  (21.9ms) commit transaction
8225
+  (0.1ms) begin transaction
8226
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35121"]]
8227
+  (44.9ms) commit transaction
8228
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8229
+ Processing by Api::UserController#reauth as HTML
8230
+ Parameters: {"uid"=>"a1s2d3188"}
8231
+ Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
8232
+  (0.1ms) begin transaction
8233
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39205"]]
8234
+  (15.4ms) commit transaction
8235
+  (0.1ms) begin transaction
8236
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35990"]]
8237
+  (16.9ms) commit transaction
8238
+ Processing by Api::UserController#reauth as HTML
8239
+ Parameters: {"uid"=>"nonexistent-user"}
8240
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
8241
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
8242
+  (0.1ms) begin transaction
8243
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3203"]]
8244
+  (21.8ms) commit transaction
8245
+  (0.1ms) begin transaction
8246
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31661"]]
8247
+  (31.3ms) commit transaction
8248
+ Processing by Api::UserController#reauth as HTML
8249
+ Parameters: {"uid"=>"a1s2d3203"}
8250
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3203' LIMIT 1
8251
+  (0.1ms) begin transaction
8252
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
8253
+ - signin
8254
+ ' WHERE "users"."id" = 9
8255
+  (15.1ms) commit transaction
8256
+ Completed 200 OK in 31.9ms (ActiveRecord: 15.8ms)
8257
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
8258
+ Started GET "/" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
8259
+ Processing by ExampleController#index as HTML
8260
+ Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
8261
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
8262
+ Processing by ExampleController#restricted as HTML
8263
+ Authenticating with gds_sso strategy
8264
+ Completed in 2.6ms
8265
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
8266
+ Started GET "/auth/gds/callback?code=06726d4a0bc07792dccc837b0f84f328d9ada346e0fa7047ea7e936464c1fb6a&state=c0d66efb0e433e29d3c83da3d1ea09a48733d8600216406c" for 127.0.0.1 at 2013-11-04 14:53:15 +0000
8267
+ Processing by AuthenticationsController#callback as HTML
8268
+ Parameters: {"code"=>"06726d4a0bc07792dccc837b0f84f328d9ada346e0fa7047ea7e936464c1fb6a", "state"=>"c0d66efb0e433e29d3c83da3d1ea09a48733d8600216406c"}
8269
+ Authenticating with gds_sso strategy
8270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8271
+  (0.1ms) begin transaction
8272
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
8273
+  (14.6ms) commit transaction
8274
+  (0.0ms) begin transaction
8275
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
8276
+ - signin
8277
+ ' WHERE "users"."id" = 11
8278
+  (12.5ms) commit transaction
8279
+ Redirected to http://www.example-client.com/restricted
8280
+ Completed 302 Found in 34.1ms (ActiveRecord: 27.7ms)
8281
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8282
+ Processing by ExampleController#restricted as HTML
8283
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8284
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8285
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8286
+ Processing by ExampleController#restricted as HTML
8287
+ Authenticating with gds_sso strategy
8288
+ Completed in 0.3ms
8289
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8290
+ Started GET "/auth/gds/callback?code=f148b65d7bdda006a9a6373f45924020b5c06b6168341b95d49fd41db6732687&state=8c560bb3107cdfec52a8ec9de907b26ffb8516e90b1c61a1" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8291
+ Processing by AuthenticationsController#callback as HTML
8292
+ Parameters: {"code"=>"f148b65d7bdda006a9a6373f45924020b5c06b6168341b95d49fd41db6732687", "state"=>"8c560bb3107cdfec52a8ec9de907b26ffb8516e90b1c61a1"}
8293
+ Authenticating with gds_sso strategy
8294
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8295
+  (0.1ms) begin transaction
8296
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8297
+ - signin
8298
+ ' WHERE "users"."id" = 11
8299
+  (5.4ms) commit transaction
8300
+  (0.0ms) begin transaction
8301
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8302
+ - signin
8303
+ ' WHERE "users"."id" = 11
8304
+  (4.5ms) commit transaction
8305
+ Redirected to http://www.example-client.com/restricted
8306
+ Completed 302 Found in 18.5ms (ActiveRecord: 10.5ms)
8307
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8308
+ Processing by ExampleController#restricted as HTML
8309
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8310
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8311
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8312
+ Processing by ExampleController#restricted as HTML
8313
+ Authenticating with gds_sso strategy
8314
+ Completed in 0.2ms
8315
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8316
+ Started GET "/auth/gds/callback?code=fbaeeaad7852416e960a0f8c41e71d00bd57f90db3ec4af5cb35018b20b593d1&state=845d7304f00743be31a1af26a2844f67d241e75b661d7b0e" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
8317
+ Processing by AuthenticationsController#callback as HTML
8318
+ Parameters: {"code"=>"fbaeeaad7852416e960a0f8c41e71d00bd57f90db3ec4af5cb35018b20b593d1", "state"=>"845d7304f00743be31a1af26a2844f67d241e75b661d7b0e"}
8319
+ Authenticating with gds_sso strategy
8320
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8321
+  (0.1ms) begin transaction
8322
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8323
+ - signin
8324
+ ' WHERE "users"."id" = 11
8325
+  (5.3ms) commit transaction
8326
+  (0.0ms) begin transaction
8327
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8328
+ - signin
8329
+ ' WHERE "users"."id" = 11
8330
+  (4.7ms) commit transaction
8331
+ Redirected to http://www.example-client.com/restricted
8332
+ Completed 302 Found in 17.4ms (ActiveRecord: 10.5ms)
8333
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8334
+ Processing by ExampleController#restricted as HTML
8335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8336
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
8337
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8338
+ Processing by ExampleController#this_requires_signin_permission as HTML
8339
+ Authenticating with gds_sso strategy
8340
+ Completed in 0.6ms
8341
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8342
+ Started GET "/auth/gds/callback?code=9f5486bee554a2ad173289d4f9e4a2ddaeb214099e96ddfdb9c8438461610abd&state=08d34c341460a4e1d61e7a9b16b9f17f9ef6729ae2decd92" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8343
+ Processing by AuthenticationsController#callback as HTML
8344
+ Parameters: {"code"=>"9f5486bee554a2ad173289d4f9e4a2ddaeb214099e96ddfdb9c8438461610abd", "state"=>"08d34c341460a4e1d61e7a9b16b9f17f9ef6729ae2decd92"}
8345
+ Authenticating with gds_sso strategy
8346
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8347
+  (0.1ms) begin transaction
8348
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8349
+ - signin
8350
+ ' WHERE "users"."id" = 11
8351
+  (7.6ms) commit transaction
8352
+  (0.0ms) begin transaction
8353
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8354
+ - signin
8355
+ ' WHERE "users"."id" = 11
8356
+  (5.2ms) commit transaction
8357
+ Redirected to http://www.example-client.com/this_requires_signin_permission
8358
+ Completed 302 Found in 21.0ms (ActiveRecord: 13.3ms)
8359
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8360
+ Processing by ExampleController#this_requires_signin_permission as HTML
8361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8362
+ Completed 200 OK in 2.8ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8363
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8364
+ Processing by ExampleController#this_requires_signin_permission as HTML
8365
+ Authenticating with gds_sso strategy
8366
+ Completed in 0.2ms
8367
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8368
+ Started GET "/auth/gds/callback?code=b720026a318f8e82780bea827ee9e4a9e1d0d89bc817bfa5af576225c5cc9efa&state=1623f52829d3d70cac12dcefc2f8634a2a1a1cd041c7cbb1" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8369
+ Processing by AuthenticationsController#callback as HTML
8370
+ Parameters: {"code"=>"b720026a318f8e82780bea827ee9e4a9e1d0d89bc817bfa5af576225c5cc9efa", "state"=>"1623f52829d3d70cac12dcefc2f8634a2a1a1cd041c7cbb1"}
8371
+ Authenticating with gds_sso strategy
8372
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8373
+  (0.0ms) begin transaction
8374
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8375
+ - signin
8376
+ ' WHERE "users"."id" = 11
8377
+  (6.3ms) commit transaction
8378
+  (0.0ms) begin transaction
8379
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8380
+ - signin
8381
+ ' WHERE "users"."id" = 11
8382
+  (32.2ms) commit transaction
8383
+ Redirected to http://www.example-client.com/this_requires_signin_permission
8384
+ Completed 302 Found in 46.5ms (ActiveRecord: 38.9ms)
8385
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8386
+ Processing by ExampleController#this_requires_signin_permission as HTML
8387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8388
+ Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8389
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8390
+ Processing by ExampleController#restricted as HTML
8391
+ Authenticating with gds_sso strategy
8392
+ Completed in 0.3ms
8393
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
8394
+ Started GET "/auth/gds/callback?code=05a06a48cab9ea38f6d93ec9880743b7d00dacba1fbf076c2600abd5cd7ad87b&state=8bcbb55b93c32a724c26b534ec01a8e0c8dab0e365b46b1e" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8395
+ Processing by AuthenticationsController#callback as HTML
8396
+ Parameters: {"code"=>"05a06a48cab9ea38f6d93ec9880743b7d00dacba1fbf076c2600abd5cd7ad87b", "state"=>"8bcbb55b93c32a724c26b534ec01a8e0c8dab0e365b46b1e"}
8397
+ Authenticating with gds_sso strategy
8398
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8399
+  (0.1ms) begin transaction
8400
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8401
+ - signin
8402
+ ' WHERE "users"."id" = 11
8403
+  (16.3ms) commit transaction
8404
+  (0.0ms) begin transaction
8405
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8406
+ - signin
8407
+ ' WHERE "users"."id" = 11
8408
+  (15.4ms) commit transaction
8409
+ Redirected to http://www.example-client.com/restricted
8410
+ Completed 302 Found in 40.0ms (ActiveRecord: 32.2ms)
8411
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8412
+ Processing by ExampleController#restricted as HTML
8413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8414
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8415
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8416
+  (0.0ms) begin transaction
8417
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
8418
+ - signin
8419
+ ' WHERE "users"."id" = 11
8420
+  (4.6ms) commit transaction
8421
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8422
+ Processing by ExampleController#restricted as HTML
8423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8424
+ Filter chain halted as :authenticate_user! rendered or redirected
8425
+ Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
8426
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8427
+ Processing by AuthenticationsController#sign_out as HTML
8428
+ Redirected to http://localhost:4567/users/sign_out
8429
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
8430
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8431
+ Processing by ExampleController#restricted as HTML
8432
+ Authenticating with gds_sso strategy
8433
+ Completed in 0.2ms
8434
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8435
+ Started GET "/auth/gds/callback?code=c45cce8ffe57ffea85f13c6048d7ddc7f96c7bf0f535260b7078a5f82faf67cf&state=126877e1589904c7c219dc66edbc88c12a7237599e116fef" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8436
+ Processing by AuthenticationsController#callback as HTML
8437
+ Parameters: {"code"=>"c45cce8ffe57ffea85f13c6048d7ddc7f96c7bf0f535260b7078a5f82faf67cf", "state"=>"126877e1589904c7c219dc66edbc88c12a7237599e116fef"}
8438
+ Authenticating with gds_sso strategy
8439
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8440
+  (0.1ms) begin transaction
8441
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8442
+ - signin
8443
+ ' WHERE "users"."id" = 11
8444
+  (38.3ms) commit transaction
8445
+  (0.0ms) begin transaction
8446
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
8447
+ - signin
8448
+ ' WHERE "users"."id" = 11
8449
+  (10.4ms) commit transaction
8450
+ Redirected to http://www.example-client.com/restricted
8451
+ Completed 302 Found in 56.1ms (ActiveRecord: 49.2ms)
8452
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8453
+ Processing by ExampleController#restricted as HTML
8454
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8455
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8456
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8457
+ Processing by ExampleController#restricted as HTML
8458
+ Authenticating with gds_sso strategy
8459
+ Completed in 0.2ms
8460
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
8461
+ Started GET "/auth/gds/callback?code=9860037820951412f75aeb7aca06a4eafb1c311234565e384d07882407b67ffa&state=1401a7586ab3dbf27d58f9c74b5b83032985ea4cf1e9cc8e" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8462
+ Processing by AuthenticationsController#callback as HTML
8463
+ Parameters: {"code"=>"9860037820951412f75aeb7aca06a4eafb1c311234565e384d07882407b67ffa", "state"=>"1401a7586ab3dbf27d58f9c74b5b83032985ea4cf1e9cc8e"}
8464
+ Authenticating with gds_sso strategy
8465
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8466
+  (0.1ms) begin transaction
8467
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8468
+ - signin
8469
+ ' WHERE "users"."id" = 11
8470
+  (12.4ms) commit transaction
8471
+  (0.0ms) begin transaction
8472
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8473
+ - signin
8474
+ ' WHERE "users"."id" = 11
8475
+  (22.1ms) commit transaction
8476
+ Redirected to http://www.example-client.com/restricted
8477
+ Completed 302 Found in 43.0ms (ActiveRecord: 35.1ms)
8478
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8479
+ Processing by ExampleController#restricted as HTML
8480
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8481
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8482
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
8483
+ Processing by ExampleController#restricted as HTML
8484
+ Authenticating with gds_sso strategy
8485
+ Completed in 0.2ms
8486
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
8487
+ Started GET "/auth/gds/callback?code=8feddcb054934cfbf8d2164c43a9320029aaef7dc4763573e41e43cf1f9a6758&state=43b29c93f0f71b31e80bd19fdb4227b1d1927ad5bde1b167" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
8488
+ Processing by AuthenticationsController#callback as HTML
8489
+ Parameters: {"code"=>"8feddcb054934cfbf8d2164c43a9320029aaef7dc4763573e41e43cf1f9a6758", "state"=>"43b29c93f0f71b31e80bd19fdb4227b1d1927ad5bde1b167"}
8490
+ Authenticating with gds_sso strategy
8491
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8492
+  (0.1ms) begin transaction
8493
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8494
+ - signin
8495
+ ' WHERE "users"."id" = 11
8496
+  (29.2ms) commit transaction
8497
+  (0.1ms) begin transaction
8498
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8499
+ - signin
8500
+ ' WHERE "users"."id" = 11
8501
+  (3.6ms) commit transaction
8502
+ Redirected to http://www.example-client.com/restricted
8503
+ Completed 302 Found in 40.8ms (ActiveRecord: 33.4ms)
8504
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
8505
+ Processing by ExampleController#restricted as HTML
8506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8507
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
8508
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8509
+ Processing by ExampleController#restricted as HTML
8510
+ Authenticating with gds_sso strategy
8511
+ Completed in 0.2ms
8512
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8513
+ Started GET "/auth/gds/callback?code=fe26dae9665c2fee5f2729804bdbc2d118f00fd97d66a965b3522d52e76dbcd7&state=ff4cec5214be14b0250709cd3cd649308285a6c0c136b49e" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8514
+ Processing by AuthenticationsController#callback as HTML
8515
+ Parameters: {"code"=>"fe26dae9665c2fee5f2729804bdbc2d118f00fd97d66a965b3522d52e76dbcd7", "state"=>"ff4cec5214be14b0250709cd3cd649308285a6c0c136b49e"}
8516
+ Authenticating with gds_sso strategy
8517
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8518
+  (0.1ms) begin transaction
8519
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8520
+ - signin
8521
+ ' WHERE "users"."id" = 11
8522
+  (12.6ms) commit transaction
8523
+  (0.0ms) begin transaction
8524
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8525
+ - signin
8526
+ ' WHERE "users"."id" = 11
8527
+  (36.3ms) commit transaction
8528
+ Redirected to http://www.example-client.com/restricted
8529
+ Completed 302 Found in 57.8ms (ActiveRecord: 49.5ms)
8530
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
8531
+ Processing by ExampleController#restricted as HTML
8532
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8533
+ Completed 200 OK in 2.3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
8534
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:48:19 +0000
8535
+ Processing by ExampleController#restricted as HTML
8536
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8537
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
8538
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
8539
+ Processing by ExampleController#restricted as JSON
8540
+ Authenticating with gds_bearer_token strategy
8541
+ Completed in 7.1ms
8542
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
8543
+ Processing by ExampleController#restricted as JSON
8544
+ Authenticating with gds_bearer_token strategy
8545
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8546
+  (0.0ms) begin transaction
8547
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8548
+ - signin
8549
+ ' WHERE "users"."id" = 11
8550
+  (13.2ms) commit transaction
8551
+  (0.0ms) begin transaction
8552
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8553
+ - signin
8554
+ ' WHERE "users"."id" = 11
8555
+  (26.4ms) commit transaction
8556
+ Completed 200 OK in 79.9ms (Views: 0.5ms | ActiveRecord: 40.0ms)
8557
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
8558
+ Processing by ExampleController#this_requires_signin_permission as JSON
8559
+ Authenticating with gds_bearer_token strategy
8560
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8561
+  (0.0ms) begin transaction
8562
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8563
+ - signin
8564
+ ' WHERE "users"."id" = 11
8565
+  (14.3ms) commit transaction
8566
+  (0.0ms) begin transaction
8567
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8568
+ - signin
8569
+ ' WHERE "users"."id" = 11
8570
+  (12.6ms) commit transaction
8571
+ Completed 200 OK in 71.1ms (Views: 0.3ms | ActiveRecord: 27.4ms)
8572
+ Connecting to database specified by database.yml
8573
+  (0.8ms) select sqlite_version(*)
8574
+  (27.3ms) DROP TABLE "users"
8575
+  (14.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, "organisation" varchar(255)) 
8576
+  (0.1ms) begin transaction
8577
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3950"]]
8578
+  (18.4ms) commit transaction
8579
+  (0.1ms) begin transaction
8580
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39071"]]
8581
+  (15.0ms) commit transaction
8582
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8583
+ Processing by Api::UserController#update as HTML
8584
+ Parameters: {"uid"=>"a1s2d3950"}
8585
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (12.2ms)
8586
+ Completed 403 Forbidden in 17.9ms (Views: 17.2ms | ActiveRecord: 0.0ms)
8587
+  (0.1ms) begin transaction
8588
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3848"]]
8589
+  (37.1ms) commit transaction
8590
+  (0.1ms) begin transaction
8591
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3682"]]
8592
+  (26.2ms) commit transaction
8593
+ Processing by Api::UserController#update as HTML
8594
+ Parameters: {"uid"=>"a1s2d3848"}
8595
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3848' LIMIT 1
8596
+  (0.1ms) begin transaction
8597
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
8598
+ - signin
8599
+ - new permission
8600
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
8601
+  (18.4ms) commit transaction
8602
+ Completed 200 OK in 27.3ms (ActiveRecord: 18.8ms)
8603
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
8604
+  (0.1ms) begin transaction
8605
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38622"]]
8606
+  (23.8ms) commit transaction
8607
+  (0.1ms) begin transaction
8608
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34018"]]
8609
+  (59.8ms) commit transaction
8610
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8611
+ Processing by Api::UserController#reauth as HTML
8612
+ Parameters: {"uid"=>"a1s2d38622"}
8613
+ Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
8614
+  (0.1ms) begin transaction
8615
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35732"]]
8616
+  (22.1ms) commit transaction
8617
+  (0.1ms) begin transaction
8618
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39986"]]
8619
+  (14.7ms) commit transaction
8620
+ Processing by Api::UserController#reauth as HTML
8621
+ Parameters: {"uid"=>"nonexistent-user"}
8622
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
8623
+ Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
8624
+  (0.1ms) begin transaction
8625
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32902"]]
8626
+  (24.5ms) commit transaction
8627
+  (0.1ms) begin transaction
8628
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38871"]]
8629
+  (16.5ms) commit transaction
8630
+ Processing by Api::UserController#reauth as HTML
8631
+ Parameters: {"uid"=>"a1s2d32902"}
8632
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32902' LIMIT 1
8633
+  (0.0ms) begin transaction
8634
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
8635
+ - signin
8636
+ ' WHERE "users"."id" = 9
8637
+  (63.3ms) commit transaction
8638
+ Completed 200 OK in 67.7ms (ActiveRecord: 63.6ms)
8639
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
8640
+ Started GET "/" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
8641
+ Processing by ExampleController#index as HTML
8642
+ Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
8643
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
8644
+ Processing by ExampleController#restricted as HTML
8645
+ Authenticating with gds_sso strategy
8646
+ Completed in 2.6ms
8647
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
8648
+ Started GET "/auth/gds/callback?code=6523e9eefc06b21b57524f2e6b00fd0f7380afa648c50a84c2639fa023d41da7&state=f08907b2174d5f997abd1830f9956c56b78bcc0d17fef96a" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
8649
+ Processing by AuthenticationsController#callback as HTML
8650
+ Parameters: {"code"=>"6523e9eefc06b21b57524f2e6b00fd0f7380afa648c50a84c2639fa023d41da7", "state"=>"f08907b2174d5f997abd1830f9956c56b78bcc0d17fef96a"}
8651
+ Authenticating with gds_sso strategy
8652
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8653
+  (0.1ms) begin transaction
8654
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
8655
+  (14.2ms) commit transaction
8656
+  (0.0ms) begin transaction
8657
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
8658
+ - signin
8659
+ ' WHERE "users"."id" = 11
8660
+  (22.9ms) commit transaction
8661
+ Redirected to http://www.example-client.com/restricted
8662
+ Completed 302 Found in 44.3ms (ActiveRecord: 37.7ms)
8663
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
8664
+ Processing by ExampleController#restricted as HTML
8665
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8666
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8667
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
8668
+ Processing by ExampleController#restricted as HTML
8669
+ Authenticating with gds_sso strategy
8670
+ Completed in 0.3ms
8671
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
8672
+ Started GET "/auth/gds/callback?code=15ad67d3f290a61f7b518c78100143d6f232f6193ef47b7f088767bec062d434&state=e7562a405a239f21f3c322c931ea07082b5e5c5c0aa02da5" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8673
+ Processing by AuthenticationsController#callback as HTML
8674
+ Parameters: {"code"=>"15ad67d3f290a61f7b518c78100143d6f232f6193ef47b7f088767bec062d434", "state"=>"e7562a405a239f21f3c322c931ea07082b5e5c5c0aa02da5"}
8675
+ Authenticating with gds_sso strategy
8676
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8677
+  (0.1ms) begin transaction
8678
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8679
+ - signin
8680
+ ' WHERE "users"."id" = 11
8681
+  (3.7ms) commit transaction
8682
+  (0.0ms) begin transaction
8683
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8684
+ - signin
8685
+ ' WHERE "users"."id" = 11
8686
+  (3.7ms) commit transaction
8687
+ Redirected to http://www.example-client.com/restricted
8688
+ Completed 302 Found in 16.0ms (ActiveRecord: 8.0ms)
8689
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8690
+ Processing by ExampleController#restricted as HTML
8691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8692
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8693
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8694
+ Processing by ExampleController#restricted as HTML
8695
+ Authenticating with gds_sso strategy
8696
+ Completed in 0.1ms
8697
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8698
+ Started GET "/auth/gds/callback?code=543d3d1694e849a4e64634965ba893817ac02ece0f6d03ac100aad63ba83f0ac&state=f9ff9dc9e4a3227bce79cf5b2c4c5bdebc48fcfafc1fa26f" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8699
+ Processing by AuthenticationsController#callback as HTML
8700
+ Parameters: {"code"=>"543d3d1694e849a4e64634965ba893817ac02ece0f6d03ac100aad63ba83f0ac", "state"=>"f9ff9dc9e4a3227bce79cf5b2c4c5bdebc48fcfafc1fa26f"}
8701
+ Authenticating with gds_sso strategy
8702
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8703
+  (0.0ms) begin transaction
8704
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8705
+ - signin
8706
+ ' WHERE "users"."id" = 11
8707
+  (27.2ms) commit transaction
8708
+  (0.0ms) begin transaction
8709
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8710
+ - signin
8711
+ ' WHERE "users"."id" = 11
8712
+  (4.0ms) commit transaction
8713
+ Redirected to http://www.example-client.com/restricted
8714
+ Completed 302 Found in 39.1ms (ActiveRecord: 31.7ms)
8715
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8716
+ Processing by ExampleController#restricted as HTML
8717
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8718
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8719
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8720
+ Processing by ExampleController#this_requires_signin_permission as HTML
8721
+ Authenticating with gds_sso strategy
8722
+ Completed in 0.7ms
8723
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8724
+ Started GET "/auth/gds/callback?code=d3b327860a52c4e8f42c523bd20ebe0f7ac1f93d6a53a269b9dc7398b2be259d&state=b7de822d6a291141397f4b6ce10a0dd798c18a2c78cb3927" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8725
+ Processing by AuthenticationsController#callback as HTML
8726
+ Parameters: {"code"=>"d3b327860a52c4e8f42c523bd20ebe0f7ac1f93d6a53a269b9dc7398b2be259d", "state"=>"b7de822d6a291141397f4b6ce10a0dd798c18a2c78cb3927"}
8727
+ Authenticating with gds_sso strategy
8728
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8729
+  (0.1ms) begin transaction
8730
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8731
+ - signin
8732
+ ' WHERE "users"."id" = 11
8733
+  (5.4ms) commit transaction
8734
+  (0.0ms) begin transaction
8735
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8736
+ - signin
8737
+ ' WHERE "users"."id" = 11
8738
+  (4.5ms) commit transaction
8739
+ Redirected to http://www.example-client.com/this_requires_signin_permission
8740
+ Completed 302 Found in 18.2ms (ActiveRecord: 10.4ms)
8741
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8742
+ Processing by ExampleController#this_requires_signin_permission as HTML
8743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8744
+ Completed 200 OK in 2.9ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8745
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8746
+ Processing by ExampleController#this_requires_signin_permission as HTML
8747
+ Authenticating with gds_sso strategy
8748
+ Completed in 0.1ms
8749
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
8750
+ Started GET "/auth/gds/callback?code=0ef1b000ae067c654134ab31c03c27f7858e910cb347e9dfe7f8713585070b92&state=348b4cabd989365e379ed96f0f868e9f42c52f7c2493e3a7" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8751
+ Processing by AuthenticationsController#callback as HTML
8752
+ Parameters: {"code"=>"0ef1b000ae067c654134ab31c03c27f7858e910cb347e9dfe7f8713585070b92", "state"=>"348b4cabd989365e379ed96f0f868e9f42c52f7c2493e3a7"}
8753
+ Authenticating with gds_sso strategy
8754
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8755
+  (0.0ms) begin transaction
8756
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8757
+ - signin
8758
+ ' WHERE "users"."id" = 11
8759
+  (17.4ms) commit transaction
8760
+  (0.0ms) begin transaction
8761
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8762
+ - signin
8763
+ ' WHERE "users"."id" = 11
8764
+  (9.7ms) commit transaction
8765
+ Redirected to http://www.example-client.com/this_requires_signin_permission
8766
+ Completed 302 Found in 35.1ms (ActiveRecord: 27.6ms)
8767
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8768
+ Processing by ExampleController#this_requires_signin_permission as HTML
8769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8770
+ Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8771
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8772
+ Processing by ExampleController#restricted as HTML
8773
+ Authenticating with gds_sso strategy
8774
+ Completed in 0.3ms
8775
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8776
+ Started GET "/auth/gds/callback?code=8125dcd72f186b7feb785978f6538585aae7987948453c8a3f4f7b32cb5529db&state=108ff3f3ae3e28e9046bee2786378e60cb7dea1585a7b2c8" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8777
+ Processing by AuthenticationsController#callback as HTML
8778
+ Parameters: {"code"=>"8125dcd72f186b7feb785978f6538585aae7987948453c8a3f4f7b32cb5529db", "state"=>"108ff3f3ae3e28e9046bee2786378e60cb7dea1585a7b2c8"}
8779
+ Authenticating with gds_sso strategy
8780
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8781
+  (0.1ms) begin transaction
8782
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8783
+ - signin
8784
+ ' WHERE "users"."id" = 11
8785
+  (23.4ms) commit transaction
8786
+  (0.1ms) begin transaction
8787
+  (0.3ms) UPDATE "users" SET "permissions" = '---
8788
+ - signin
8789
+ ' WHERE "users"."id" = 11
8790
+  (6.1ms) commit transaction
8791
+ Redirected to http://www.example-client.com/restricted
8792
+ Completed 302 Found in 41.5ms (ActiveRecord: 30.2ms)
8793
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8794
+ Processing by ExampleController#restricted as HTML
8795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8796
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8798
+  (0.0ms) begin transaction
8799
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
8800
+ - signin
8801
+ ' WHERE "users"."id" = 11
8802
+  (4.2ms) commit transaction
8803
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8804
+ Processing by ExampleController#restricted as HTML
8805
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8806
+ Filter chain halted as :authenticate_user! rendered or redirected
8807
+ Completed 403 Forbidden in 2.9ms (Views: 1.9ms | ActiveRecord: 0.2ms)
8808
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8809
+ Processing by AuthenticationsController#sign_out as HTML
8810
+ Redirected to http://localhost:4567/users/sign_out
8811
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
8812
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8813
+ Processing by ExampleController#restricted as HTML
8814
+ Authenticating with gds_sso strategy
8815
+ Completed in 0.2ms
8816
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
8817
+ Started GET "/auth/gds/callback?code=e821b1b9ff9d08d9d77ef4aa29bc7c1186f4e11b4f9690c57fde46c2b2e6ac5c&state=5652b193a12f3c7141c8fcaef91ee803e9c4721cc643f8de" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8818
+ Processing by AuthenticationsController#callback as HTML
8819
+ Parameters: {"code"=>"e821b1b9ff9d08d9d77ef4aa29bc7c1186f4e11b4f9690c57fde46c2b2e6ac5c", "state"=>"5652b193a12f3c7141c8fcaef91ee803e9c4721cc643f8de"}
8820
+ Authenticating with gds_sso strategy
8821
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8822
+  (0.0ms) begin transaction
8823
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8824
+ - signin
8825
+ ' WHERE "users"."id" = 11
8826
+  (6.8ms) commit transaction
8827
+  (0.0ms) begin transaction
8828
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
8829
+ - signin
8830
+ ' WHERE "users"."id" = 11
8831
+  (5.1ms) commit transaction
8832
+ Redirected to http://www.example-client.com/restricted
8833
+ Completed 302 Found in 19.5ms (ActiveRecord: 12.4ms)
8834
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8835
+ Processing by ExampleController#restricted as HTML
8836
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8837
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8838
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8839
+ Processing by ExampleController#restricted as HTML
8840
+ Authenticating with gds_sso strategy
8841
+ Completed in 0.2ms
8842
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8843
+ Started GET "/auth/gds/callback?code=dab7f1966109f9030abc4c9f014283301612f8a61c846d763efa72b9d1949c83&state=3c265d92341a04132a51bcc3ca9b23e3f1e51da07fb18177" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8844
+ Processing by AuthenticationsController#callback as HTML
8845
+ Parameters: {"code"=>"dab7f1966109f9030abc4c9f014283301612f8a61c846d763efa72b9d1949c83", "state"=>"3c265d92341a04132a51bcc3ca9b23e3f1e51da07fb18177"}
8846
+ Authenticating with gds_sso strategy
8847
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8848
+  (0.1ms) begin transaction
8849
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8850
+ - signin
8851
+ ' WHERE "users"."id" = 11
8852
+  (14.7ms) commit transaction
8853
+  (0.0ms) begin transaction
8854
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8855
+ - signin
8856
+ ' WHERE "users"."id" = 11
8857
+  (13.1ms) commit transaction
8858
+ Redirected to http://www.example-client.com/restricted
8859
+ Completed 302 Found in 36.3ms (ActiveRecord: 28.4ms)
8860
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8861
+ Processing by ExampleController#restricted as HTML
8862
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8863
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8864
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
8865
+ Processing by ExampleController#restricted as HTML
8866
+ Authenticating with gds_sso strategy
8867
+ Completed in 0.2ms
8868
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
8869
+ Started GET "/auth/gds/callback?code=6bc1a6226923682ce79faecd0c7b605279c693cac4c8f7c8dc4eb8ee9a636562&state=61b08f4472418cbf0f04aa3961aa1a943de5e102639269b5" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
8870
+ Processing by AuthenticationsController#callback as HTML
8871
+ Parameters: {"code"=>"6bc1a6226923682ce79faecd0c7b605279c693cac4c8f7c8dc4eb8ee9a636562", "state"=>"61b08f4472418cbf0f04aa3961aa1a943de5e102639269b5"}
8872
+ Authenticating with gds_sso strategy
8873
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8874
+  (0.1ms) begin transaction
8875
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8876
+ - signin
8877
+ ' WHERE "users"."id" = 11
8878
+  (14.2ms) commit transaction
8879
+  (0.0ms) begin transaction
8880
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8881
+ - signin
8882
+ ' WHERE "users"."id" = 11
8883
+  (8.1ms) commit transaction
8884
+ Redirected to http://www.example-client.com/restricted
8885
+ Completed 302 Found in 29.8ms (ActiveRecord: 22.9ms)
8886
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
8887
+ Processing by ExampleController#restricted as HTML
8888
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8889
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.2ms)
8890
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8891
+ Processing by ExampleController#restricted as HTML
8892
+ Authenticating with gds_sso strategy
8893
+ Completed in 0.2ms
8894
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
8895
+ Started GET "/auth/gds/callback?code=8644d4f33da02d60b3d6c01951d5aeadcd05a07f779f2332fee3bd4e9cae50e3&state=8dee45f043f6f8685fb6a7fe85791a702b8907d6ded9e63e" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
8896
+ Processing by AuthenticationsController#callback as HTML
8897
+ Parameters: {"code"=>"8644d4f33da02d60b3d6c01951d5aeadcd05a07f779f2332fee3bd4e9cae50e3", "state"=>"8dee45f043f6f8685fb6a7fe85791a702b8907d6ded9e63e"}
8898
+ Authenticating with gds_sso strategy
8899
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8900
+  (0.1ms) begin transaction
8901
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8902
+ - signin
8903
+ ' WHERE "users"."id" = 11
8904
+  (10.4ms) commit transaction
8905
+  (0.0ms) begin transaction
8906
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8907
+ - signin
8908
+ ' WHERE "users"."id" = 11
8909
+  (21.7ms) commit transaction
8910
+ Redirected to http://www.example-client.com/restricted
8911
+ Completed 302 Found in 40.7ms (ActiveRecord: 32.7ms)
8912
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
8913
+ Processing by ExampleController#restricted as HTML
8914
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8915
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
8916
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:52:23 +0000
8917
+ Processing by ExampleController#restricted as HTML
8918
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8919
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.2ms)
8920
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
8921
+ Processing by ExampleController#restricted as JSON
8922
+ Authenticating with gds_bearer_token strategy
8923
+ Completed in 7.1ms
8924
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
8925
+ Processing by ExampleController#restricted as JSON
8926
+ Authenticating with gds_bearer_token strategy
8927
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8928
+  (0.1ms) begin transaction
8929
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8930
+ - signin
8931
+ ' WHERE "users"."id" = 11
8932
+  (12.6ms) commit transaction
8933
+  (0.0ms) begin transaction
8934
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8935
+ - signin
8936
+ ' WHERE "users"."id" = 11
8937
+  (13.9ms) commit transaction
8938
+ Completed 200 OK in 64.2ms (Views: 0.2ms | ActiveRecord: 27.0ms)
8939
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
8940
+ Processing by ExampleController#this_requires_signin_permission as JSON
8941
+ Authenticating with gds_bearer_token strategy
8942
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8943
+  (0.0ms) begin transaction
8944
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8945
+ - signin
8946
+ ' WHERE "users"."id" = 11
8947
+  (17.6ms) commit transaction
8948
+  (0.0ms) begin transaction
8949
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8950
+ - signin
8951
+ ' WHERE "users"."id" = 11
8952
+  (14.5ms) commit transaction
8953
+ Completed 200 OK in 87.8ms (Views: 0.2ms | ActiveRecord: 32.6ms)
8954
+ Connecting to database specified by database.yml
8955
+  (0.8ms) select sqlite_version(*)
8956
+  (43.1ms) DROP TABLE "users"
8957
+  (21.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, "organisation" varchar(255)) 
8958
+  (0.1ms) begin transaction
8959
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d326"]]
8960
+  (18.1ms) commit transaction
8961
+  (0.1ms) begin transaction
8962
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39034"]]
8963
+  (16.4ms) commit transaction
8964
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8965
+ Processing by Api::UserController#update as HTML
8966
+ Parameters: {"uid"=>"a1s2d326"}
8967
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
8968
+ Completed 403 Forbidden in 6.8ms (Views: 6.1ms | ActiveRecord: 0.0ms)
8969
+  (0.1ms) begin transaction
8970
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33800"]]
8971
+  (51.0ms) commit transaction
8972
+  (0.1ms) begin transaction
8973
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32959"]]
8974
+  (17.9ms) commit transaction
8975
+ Processing by Api::UserController#update as HTML
8976
+ Parameters: {"uid"=>"a1s2d33800"}
8977
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33800' LIMIT 1
8978
+  (0.1ms) begin transaction
8979
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
8980
+ - signin
8981
+ - new permission
8982
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
8983
+  (18.2ms) commit transaction
8984
+ Completed 200 OK in 37.2ms (ActiveRecord: 18.6ms)
8985
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
8986
+  (0.1ms) begin transaction
8987
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31577"]]
8988
+  (14.9ms) commit transaction
8989
+  (0.1ms) begin transaction
8990
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3392"]]
8991
+  (49.9ms) commit transaction
8992
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
8993
+ Processing by Api::UserController#reauth as HTML
8994
+ Parameters: {"uid"=>"a1s2d31577"}
8995
+ Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
8996
+  (0.1ms) begin transaction
8997
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3170"]]
8998
+  (19.8ms) commit transaction
8999
+  (0.1ms) begin transaction
9000
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35949"]]
9001
+  (13.0ms) commit transaction
9002
+ Processing by Api::UserController#reauth as HTML
9003
+ Parameters: {"uid"=>"nonexistent-user"}
9004
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
9005
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
9006
+  (0.1ms) begin transaction
9007
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32504"]]
9008
+  (14.1ms) commit transaction
9009
+  (0.1ms) begin transaction
9010
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37684"]]
9011
+  (13.0ms) commit transaction
9012
+ Processing by Api::UserController#reauth as HTML
9013
+ Parameters: {"uid"=>"a1s2d32504"}
9014
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32504' LIMIT 1
9015
+  (0.0ms) begin transaction
9016
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9017
+ - signin
9018
+ ' WHERE "users"."id" = 9
9019
+  (45.1ms) commit transaction
9020
+ Completed 200 OK in 49.5ms (ActiveRecord: 45.5ms)
9021
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
9022
+ Started GET "/" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
9023
+ Processing by ExampleController#index as HTML
9024
+ Completed 200 OK in 1.8ms (Views: 1.4ms | ActiveRecord: 0.0ms)
9025
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
9026
+ Processing by ExampleController#restricted as HTML
9027
+ Authenticating with gds_sso strategy
9028
+ Completed in 2.4ms
9029
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
9030
+ Started GET "/auth/gds/callback?code=3144d74f111bf5981034b9dcee0d94a02c0bc2277cff644bb406b54269756ce5&state=73210209439dff30038aff64ff67f25436d70222cef4c708" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
9031
+ Processing by AuthenticationsController#callback as HTML
9032
+ Parameters: {"code"=>"3144d74f111bf5981034b9dcee0d94a02c0bc2277cff644bb406b54269756ce5", "state"=>"73210209439dff30038aff64ff67f25436d70222cef4c708"}
9033
+ Authenticating with gds_sso strategy
9034
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9035
+  (0.1ms) begin transaction
9036
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
9037
+  (14.7ms) commit transaction
9038
+  (0.0ms) begin transaction
9039
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9040
+ - signin
9041
+ ' WHERE "users"."id" = 11
9042
+  (45.0ms) commit transaction
9043
+ Redirected to http://www.example-client.com/restricted
9044
+ Completed 302 Found in 66.8ms (ActiveRecord: 60.3ms)
9045
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
9046
+ Processing by ExampleController#restricted as HTML
9047
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9048
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9049
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
9050
+ Processing by ExampleController#restricted as HTML
9051
+ Authenticating with gds_sso strategy
9052
+ Completed in 0.3ms
9053
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
9054
+ Started GET "/auth/gds/callback?code=8e626979c90717068751e717ccc11ed0cd8213c352eb170428da39093e5ca20e&state=e54880e1e22c7b5f4879466f9faff35dbcb0633b0f11046d" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
9055
+ Processing by AuthenticationsController#callback as HTML
9056
+ Parameters: {"code"=>"8e626979c90717068751e717ccc11ed0cd8213c352eb170428da39093e5ca20e", "state"=>"e54880e1e22c7b5f4879466f9faff35dbcb0633b0f11046d"}
9057
+ Authenticating with gds_sso strategy
9058
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9059
+  (0.1ms) begin transaction
9060
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9061
+ - signin
9062
+ ' WHERE "users"."id" = 11
9063
+  (14.9ms) commit transaction
9064
+  (0.0ms) begin transaction
9065
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9066
+ - signin
9067
+ ' WHERE "users"."id" = 11
9068
+  (10.0ms) commit transaction
9069
+ Redirected to http://www.example-client.com/restricted
9070
+ Completed 302 Found in 33.2ms (ActiveRecord: 25.5ms)
9071
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9072
+ Processing by ExampleController#restricted as HTML
9073
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9074
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
9075
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9076
+ Processing by ExampleController#restricted as HTML
9077
+ Authenticating with gds_sso strategy
9078
+ Completed in 0.1ms
9079
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9080
+ Started GET "/auth/gds/callback?code=7f75c9678822704190a50305fde10a70e4d5dbe11a25c3231f824934ad04f8d7&state=e1c14be217db6e4cb1dcc3c48ecc37ab80738a93d2b42a49" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9081
+ Processing by AuthenticationsController#callback as HTML
9082
+ Parameters: {"code"=>"7f75c9678822704190a50305fde10a70e4d5dbe11a25c3231f824934ad04f8d7", "state"=>"e1c14be217db6e4cb1dcc3c48ecc37ab80738a93d2b42a49"}
9083
+ Authenticating with gds_sso strategy
9084
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9085
+  (0.1ms) begin transaction
9086
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9087
+ - signin
9088
+ ' WHERE "users"."id" = 11
9089
+  (6.7ms) commit transaction
9090
+  (0.0ms) begin transaction
9091
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9092
+ - signin
9093
+ ' WHERE "users"."id" = 11
9094
+  (6.6ms) commit transaction
9095
+ Redirected to http://www.example-client.com/restricted
9096
+ Completed 302 Found in 20.7ms (ActiveRecord: 13.8ms)
9097
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9098
+ Processing by ExampleController#restricted as HTML
9099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9100
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9101
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9102
+ Processing by ExampleController#this_requires_signin_permission as HTML
9103
+ Authenticating with gds_sso strategy
9104
+ Completed in 0.6ms
9105
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9106
+ Started GET "/auth/gds/callback?code=ea7453d36c93aaec69cbe4599ae38f683f907868597e4d42e9a5f3f15b50b38a&state=07e30914377ae326f26b557b9590e4d3b6e5020dcff5a572" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9107
+ Processing by AuthenticationsController#callback as HTML
9108
+ Parameters: {"code"=>"ea7453d36c93aaec69cbe4599ae38f683f907868597e4d42e9a5f3f15b50b38a", "state"=>"07e30914377ae326f26b557b9590e4d3b6e5020dcff5a572"}
9109
+ Authenticating with gds_sso strategy
9110
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9111
+  (0.1ms) begin transaction
9112
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9113
+ - signin
9114
+ ' WHERE "users"."id" = 11
9115
+  (13.8ms) commit transaction
9116
+  (0.0ms) begin transaction
9117
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9118
+ - signin
9119
+ ' WHERE "users"."id" = 11
9120
+  (12.4ms) commit transaction
9121
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9122
+ Completed 302 Found in 34.2ms (ActiveRecord: 26.7ms)
9123
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9124
+ Processing by ExampleController#this_requires_signin_permission as HTML
9125
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9126
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9127
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9128
+ Processing by ExampleController#this_requires_signin_permission as HTML
9129
+ Authenticating with gds_sso strategy
9130
+ Completed in 0.1ms
9131
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
9132
+ Started GET "/auth/gds/callback?code=4ebe2eb5d129b66775e23cb0944e5e9ce9b4f7a5b6858759da2c4cd2686bf057&state=f5aeef45797ecca1a7a68b11b483768c958ad05fc2be8834" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9133
+ Processing by AuthenticationsController#callback as HTML
9134
+ Parameters: {"code"=>"4ebe2eb5d129b66775e23cb0944e5e9ce9b4f7a5b6858759da2c4cd2686bf057", "state"=>"f5aeef45797ecca1a7a68b11b483768c958ad05fc2be8834"}
9135
+ Authenticating with gds_sso strategy
9136
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9137
+  (0.1ms) begin transaction
9138
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9139
+ - signin
9140
+ ' WHERE "users"."id" = 11
9141
+  (8.2ms) commit transaction
9142
+  (0.0ms) begin transaction
9143
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9144
+ - signin
9145
+ ' WHERE "users"."id" = 11
9146
+  (4.5ms) commit transaction
9147
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9148
+ Completed 302 Found in 20.7ms (ActiveRecord: 13.3ms)
9149
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9150
+ Processing by ExampleController#this_requires_signin_permission as HTML
9151
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9152
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9153
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9154
+ Processing by ExampleController#restricted as HTML
9155
+ Authenticating with gds_sso strategy
9156
+ Completed in 0.3ms
9157
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9158
+ Started GET "/auth/gds/callback?code=a9e0cb8429ed2b5c8fc20593ae2b8d9b42356023cdbf30a6da3c72ab500c14b6&state=6ccac22d2bbadd5703d1fc0a28f353bba79a92bf3e9ea365" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9159
+ Processing by AuthenticationsController#callback as HTML
9160
+ Parameters: {"code"=>"a9e0cb8429ed2b5c8fc20593ae2b8d9b42356023cdbf30a6da3c72ab500c14b6", "state"=>"6ccac22d2bbadd5703d1fc0a28f353bba79a92bf3e9ea365"}
9161
+ Authenticating with gds_sso strategy
9162
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9163
+  (0.1ms) begin transaction
9164
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9165
+ - signin
9166
+ ' WHERE "users"."id" = 11
9167
+  (6.1ms) commit transaction
9168
+  (0.0ms) begin transaction
9169
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9170
+ - signin
9171
+ ' WHERE "users"."id" = 11
9172
+  (4.9ms) commit transaction
9173
+ Redirected to http://www.example-client.com/restricted
9174
+ Completed 302 Found in 19.3ms (ActiveRecord: 11.6ms)
9175
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9176
+ Processing by ExampleController#restricted as HTML
9177
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9178
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9179
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9180
+  (0.0ms) begin transaction
9181
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9182
+ - signin
9183
+ ' WHERE "users"."id" = 11
9184
+  (6.1ms) commit transaction
9185
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9186
+ Processing by ExampleController#restricted as HTML
9187
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9188
+ Filter chain halted as :authenticate_user! rendered or redirected
9189
+ Completed 403 Forbidden in 2.7ms (Views: 1.8ms | ActiveRecord: 0.1ms)
9190
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9191
+ Processing by AuthenticationsController#sign_out as HTML
9192
+ Redirected to http://localhost:4567/users/sign_out
9193
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
9194
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9195
+ Processing by ExampleController#restricted as HTML
9196
+ Authenticating with gds_sso strategy
9197
+ Completed in 0.4ms
9198
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9199
+ Started GET "/auth/gds/callback?code=e10e68bda70950d8d26d21522e273add9ba549a6b0d8a0fd19bb24046653cad6&state=e7dfadafe9c96cfc6367850ca7d66d1c03d5d781b0b7d238" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9200
+ Processing by AuthenticationsController#callback as HTML
9201
+ Parameters: {"code"=>"e10e68bda70950d8d26d21522e273add9ba549a6b0d8a0fd19bb24046653cad6", "state"=>"e7dfadafe9c96cfc6367850ca7d66d1c03d5d781b0b7d238"}
9202
+ Authenticating with gds_sso strategy
9203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9204
+  (0.0ms) begin transaction
9205
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9206
+ - signin
9207
+ ' WHERE "users"."id" = 11
9208
+  (10.6ms) commit transaction
9209
+  (0.0ms) begin transaction
9210
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9211
+ - signin
9212
+ ' WHERE "users"."id" = 11
9213
+  (10.9ms) commit transaction
9214
+ Redirected to http://www.example-client.com/restricted
9215
+ Completed 302 Found in 29.0ms (ActiveRecord: 22.0ms)
9216
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
9217
+ Processing by ExampleController#restricted as HTML
9218
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9219
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9220
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9221
+ Processing by ExampleController#restricted as HTML
9222
+ Authenticating with gds_sso strategy
9223
+ Completed in 0.2ms
9224
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9225
+ Started GET "/auth/gds/callback?code=f1b1f695738669cc168af6829dc2776cd08a3f092c62c879fb108d67f570f60a&state=9a39df313afe7e12ff5ff7598b3bf1d1e49975ba2bd185ae" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9226
+ Processing by AuthenticationsController#callback as HTML
9227
+ Parameters: {"code"=>"f1b1f695738669cc168af6829dc2776cd08a3f092c62c879fb108d67f570f60a", "state"=>"9a39df313afe7e12ff5ff7598b3bf1d1e49975ba2bd185ae"}
9228
+ Authenticating with gds_sso strategy
9229
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9230
+  (0.1ms) begin transaction
9231
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9232
+ - signin
9233
+ ' WHERE "users"."id" = 11
9234
+  (16.0ms) commit transaction
9235
+  (0.0ms) begin transaction
9236
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9237
+ - signin
9238
+ ' WHERE "users"."id" = 11
9239
+  (9.8ms) commit transaction
9240
+ Redirected to http://www.example-client.com/restricted
9241
+ Completed 302 Found in 34.1ms (ActiveRecord: 26.3ms)
9242
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9243
+ Processing by ExampleController#restricted as HTML
9244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9245
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9246
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
9247
+ Processing by ExampleController#restricted as HTML
9248
+ Authenticating with gds_sso strategy
9249
+ Completed in 0.3ms
9250
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
9251
+ Started GET "/auth/gds/callback?code=35222d3a35cd2ccfa17bcbadc4f961ebef52ec7149ce0ced6d3332ea755f2396&state=d71d6c22a479ada2d30b3ae490fd8ca6c5e478d34d3bd644" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
9252
+ Processing by AuthenticationsController#callback as HTML
9253
+ Parameters: {"code"=>"35222d3a35cd2ccfa17bcbadc4f961ebef52ec7149ce0ced6d3332ea755f2396", "state"=>"d71d6c22a479ada2d30b3ae490fd8ca6c5e478d34d3bd644"}
9254
+ Authenticating with gds_sso strategy
9255
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9256
+  (0.1ms) begin transaction
9257
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9258
+ - signin
9259
+ ' WHERE "users"."id" = 11
9260
+  (10.3ms) commit transaction
9261
+  (0.0ms) begin transaction
9262
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9263
+ - signin
9264
+ ' WHERE "users"."id" = 11
9265
+  (8.0ms) commit transaction
9266
+ Redirected to http://www.example-client.com/restricted
9267
+ Completed 302 Found in 25.6ms (ActiveRecord: 18.8ms)
9268
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
9269
+ Processing by ExampleController#restricted as HTML
9270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9271
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
9272
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9273
+ Processing by ExampleController#restricted as HTML
9274
+ Authenticating with gds_sso strategy
9275
+ Completed in 0.2ms
9276
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
9277
+ Started GET "/auth/gds/callback?code=7ac79b2d6c71cd05d1f4e0fc6660144c64c988a0a69464fa6d27ebe750a32b4c&state=5015a361126ec3f15aa0d59deb2fddd53529a5fb78ce2d61" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
9278
+ Processing by AuthenticationsController#callback as HTML
9279
+ Parameters: {"code"=>"7ac79b2d6c71cd05d1f4e0fc6660144c64c988a0a69464fa6d27ebe750a32b4c", "state"=>"5015a361126ec3f15aa0d59deb2fddd53529a5fb78ce2d61"}
9280
+ Authenticating with gds_sso strategy
9281
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9282
+  (0.1ms) begin transaction
9283
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9284
+ - signin
9285
+ ' WHERE "users"."id" = 11
9286
+  (14.2ms) commit transaction
9287
+  (0.0ms) begin transaction
9288
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9289
+ - signin
9290
+ ' WHERE "users"."id" = 11
9291
+  (42.0ms) commit transaction
9292
+ Redirected to http://www.example-client.com/restricted
9293
+ Completed 302 Found in 64.8ms (ActiveRecord: 56.7ms)
9294
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
9295
+ Processing by ExampleController#restricted as HTML
9296
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9297
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9298
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:41:54 +0000
9299
+ Processing by ExampleController#restricted as HTML
9300
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9301
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
9302
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
9303
+ Processing by ExampleController#restricted as JSON
9304
+ Authenticating with gds_bearer_token strategy
9305
+ Completed in 6.9ms
9306
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
9307
+ Processing by ExampleController#restricted as JSON
9308
+ Authenticating with gds_bearer_token strategy
9309
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9310
+  (0.0ms) begin transaction
9311
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9312
+ - signin
9313
+ ' WHERE "users"."id" = 11
9314
+  (7.6ms) commit transaction
9315
+  (0.1ms) begin transaction
9316
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9317
+ - signin
9318
+ ' WHERE "users"."id" = 11
9319
+  (17.3ms) commit transaction
9320
+ Completed 200 OK in 58.6ms (Views: 0.4ms | ActiveRecord: 25.4ms)
9321
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
9322
+ Processing by ExampleController#this_requires_signin_permission as JSON
9323
+ Authenticating with gds_bearer_token strategy
9324
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9325
+  (0.0ms) begin transaction
9326
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9327
+ - signin
9328
+ ' WHERE "users"."id" = 11
9329
+  (16.2ms) commit transaction
9330
+  (0.0ms) begin transaction
9331
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9332
+ - signin
9333
+ ' WHERE "users"."id" = 11
9334
+  (11.2ms) commit transaction
9335
+ Completed 200 OK in 82.6ms (Views: 0.3ms | ActiveRecord: 27.9ms)
9336
+ Connecting to database specified by database.yml
9337
+  (0.8ms) select sqlite_version(*)
9338
+  (23.5ms) DROP TABLE "users"
9339
+  (13.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, "organisation" varchar(255)) 
9340
+  (0.1ms) begin transaction
9341
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38230"]]
9342
+  (26.1ms) commit transaction
9343
+  (0.1ms) begin transaction
9344
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35602"]]
9345
+  (27.9ms) commit transaction
9346
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
9347
+ Processing by Api::UserController#update as HTML
9348
+ Parameters: {"uid"=>"a1s2d38230"}
9349
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (13.1ms)
9350
+ Completed 403 Forbidden in 18.9ms (Views: 18.2ms | ActiveRecord: 0.0ms)
9351
+  (0.1ms) begin transaction
9352
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3328"]]
9353
+  (52.1ms) commit transaction
9354
+  (0.1ms) begin transaction
9355
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37283"]]
9356
+  (16.2ms) commit transaction
9357
+ Processing by Api::UserController#update as HTML
9358
+ Parameters: {"uid"=>"a1s2d3328"}
9359
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3328' LIMIT 1
9360
+  (0.0ms) begin transaction
9361
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
9362
+ - signin
9363
+ - new permission
9364
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
9365
+  (22.5ms) commit transaction
9366
+ Completed 200 OK in 31.1ms (ActiveRecord: 22.9ms)
9367
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
9368
+  (0.1ms) begin transaction
9369
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37431"]]
9370
+  (19.6ms) commit transaction
9371
+  (0.1ms) begin transaction
9372
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37412"]]
9373
+  (12.5ms) commit transaction
9374
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
9375
+ Processing by Api::UserController#reauth as HTML
9376
+ Parameters: {"uid"=>"a1s2d37431"}
9377
+ Completed 403 Forbidden in 1.8ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9378
+  (0.1ms) begin transaction
9379
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36141"]]
9380
+  (15.6ms) commit transaction
9381
+  (0.1ms) begin transaction
9382
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35540"]]
9383
+  (47.5ms) commit transaction
9384
+ Processing by Api::UserController#reauth as HTML
9385
+ Parameters: {"uid"=>"nonexistent-user"}
9386
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
9387
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
9388
+  (0.1ms) begin transaction
9389
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d357"]]
9390
+  (15.2ms) commit transaction
9391
+  (0.1ms) begin transaction
9392
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3580"]]
9393
+  (15.6ms) commit transaction
9394
+ Processing by Api::UserController#reauth as HTML
9395
+ Parameters: {"uid"=>"a1s2d357"}
9396
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d357' LIMIT 1
9397
+  (0.0ms) begin transaction
9398
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9399
+ - signin
9400
+ ' WHERE "users"."id" = 9
9401
+  (53.0ms) commit transaction
9402
+ Completed 200 OK in 57.4ms (ActiveRecord: 53.4ms)
9403
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
9404
+ Started GET "/" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
9405
+ Processing by ExampleController#index as HTML
9406
+ Completed 200 OK in 1.8ms (Views: 1.4ms | ActiveRecord: 0.0ms)
9407
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
9408
+ Processing by ExampleController#restricted as HTML
9409
+ Authenticating with gds_sso strategy
9410
+ Completed in 2.6ms
9411
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
9412
+ Started GET "/auth/gds/callback?code=d4511e53b9abd965f3595a247e507d54dd3fce55a984a9355b4d26cef31b2712&state=78c429951376e527b6978caf44ca97e17fa2fa55ec1abc77" for 127.0.0.1 at 2013-11-08 14:47:07 +0000
9413
+ Processing by AuthenticationsController#callback as HTML
9414
+ Parameters: {"code"=>"d4511e53b9abd965f3595a247e507d54dd3fce55a984a9355b4d26cef31b2712", "state"=>"78c429951376e527b6978caf44ca97e17fa2fa55ec1abc77"}
9415
+ Authenticating with gds_sso strategy
9416
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9417
+  (0.1ms) begin transaction
9418
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
9419
+  (35.9ms) commit transaction
9420
+  (0.1ms) begin transaction
9421
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9422
+ - signin
9423
+ ' WHERE "users"."id" = 11
9424
+  (14.1ms) commit transaction
9425
+ Redirected to http://www.example-client.com/restricted
9426
+ Completed 302 Found in 57.3ms (ActiveRecord: 50.7ms)
9427
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:07 +0000
9428
+ Processing by ExampleController#restricted as HTML
9429
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9430
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9431
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9432
+ Processing by ExampleController#restricted as HTML
9433
+ Authenticating with gds_sso strategy
9434
+ Completed in 0.3ms
9435
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9436
+ Started GET "/auth/gds/callback?code=4b7ad14e0455c3da5f408120116b640e94d72c31ffe68e646f5ce8cc7d6405e6&state=393752b84fc58af21ac2d5db1d9c47faa072269d499669c2" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9437
+ Processing by AuthenticationsController#callback as HTML
9438
+ Parameters: {"code"=>"4b7ad14e0455c3da5f408120116b640e94d72c31ffe68e646f5ce8cc7d6405e6", "state"=>"393752b84fc58af21ac2d5db1d9c47faa072269d499669c2"}
9439
+ Authenticating with gds_sso strategy
9440
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9441
+  (0.1ms) begin transaction
9442
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9443
+ - signin
9444
+ ' WHERE "users"."id" = 11
9445
+  (4.4ms) commit transaction
9446
+  (0.0ms) begin transaction
9447
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9448
+ - signin
9449
+ ' WHERE "users"."id" = 11
9450
+  (4.3ms) commit transaction
9451
+ Redirected to http://www.example-client.com/restricted
9452
+ Completed 302 Found in 17.2ms (ActiveRecord: 9.3ms)
9453
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9454
+ Processing by ExampleController#restricted as HTML
9455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9456
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9457
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9458
+ Processing by ExampleController#restricted as HTML
9459
+ Authenticating with gds_sso strategy
9460
+ Completed in 0.2ms
9461
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9462
+ Started GET "/auth/gds/callback?code=614cf71fa0731ff14d8845afb80207c5fb1853a7bb56da15e455d3aedcac4d6e&state=1cd84871ecc06fbe00682977252c39e94ab7c9dbe895f1a7" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9463
+ Processing by AuthenticationsController#callback as HTML
9464
+ Parameters: {"code"=>"614cf71fa0731ff14d8845afb80207c5fb1853a7bb56da15e455d3aedcac4d6e", "state"=>"1cd84871ecc06fbe00682977252c39e94ab7c9dbe895f1a7"}
9465
+ Authenticating with gds_sso strategy
9466
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9467
+  (0.0ms) begin transaction
9468
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9469
+ - signin
9470
+ ' WHERE "users"."id" = 11
9471
+  (17.6ms) commit transaction
9472
+  (0.0ms) begin transaction
9473
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9474
+ - signin
9475
+ ' WHERE "users"."id" = 11
9476
+  (5.1ms) commit transaction
9477
+ Redirected to http://www.example-client.com/restricted
9478
+ Completed 302 Found in 30.2ms (ActiveRecord: 23.2ms)
9479
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9480
+ Processing by ExampleController#restricted as HTML
9481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9482
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9483
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9484
+ Processing by ExampleController#this_requires_signin_permission as HTML
9485
+ Authenticating with gds_sso strategy
9486
+ Completed in 0.6ms
9487
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
9488
+ Started GET "/auth/gds/callback?code=36e9b0e5ad83d2031b66453db2162340df11709faab16b9f42a0e0314aa17a0a&state=41c80f6e0b9cd6e9390bdc0247f58f3f728823353810bd4b" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9489
+ Processing by AuthenticationsController#callback as HTML
9490
+ Parameters: {"code"=>"36e9b0e5ad83d2031b66453db2162340df11709faab16b9f42a0e0314aa17a0a", "state"=>"41c80f6e0b9cd6e9390bdc0247f58f3f728823353810bd4b"}
9491
+ Authenticating with gds_sso strategy
9492
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9493
+  (0.1ms) begin transaction
9494
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9495
+ - signin
9496
+ ' WHERE "users"."id" = 11
9497
+  (5.8ms) commit transaction
9498
+  (0.0ms) begin transaction
9499
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9500
+ - signin
9501
+ ' WHERE "users"."id" = 11
9502
+  (3.4ms) commit transaction
9503
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9504
+ Completed 302 Found in 17.4ms (ActiveRecord: 9.7ms)
9505
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9506
+ Processing by ExampleController#this_requires_signin_permission as HTML
9507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9508
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9509
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9510
+ Processing by ExampleController#this_requires_signin_permission as HTML
9511
+ Authenticating with gds_sso strategy
9512
+ Completed in 0.2ms
9513
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9514
+ Started GET "/auth/gds/callback?code=610ccfeebb25e1eb50e0d050ac1d89b798760d53134366fa47db76517a039a28&state=71fad6c7a516a79a2323ccddd9a7ee5a2299127171a88f45" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9515
+ Processing by AuthenticationsController#callback as HTML
9516
+ Parameters: {"code"=>"610ccfeebb25e1eb50e0d050ac1d89b798760d53134366fa47db76517a039a28", "state"=>"71fad6c7a516a79a2323ccddd9a7ee5a2299127171a88f45"}
9517
+ Authenticating with gds_sso strategy
9518
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9519
+  (0.0ms) begin transaction
9520
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9521
+ - signin
9522
+ ' WHERE "users"."id" = 11
9523
+  (15.6ms) commit transaction
9524
+  (0.0ms) begin transaction
9525
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9526
+ - signin
9527
+ ' WHERE "users"."id" = 11
9528
+  (14.0ms) commit transaction
9529
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9530
+ Completed 302 Found in 37.7ms (ActiveRecord: 30.1ms)
9531
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9532
+ Processing by ExampleController#this_requires_signin_permission as HTML
9533
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9534
+ Completed 200 OK in 3.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9535
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9536
+ Processing by ExampleController#restricted as HTML
9537
+ Authenticating with gds_sso strategy
9538
+ Completed in 0.3ms
9539
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9540
+ Started GET "/auth/gds/callback?code=3018b9c29dff911c3391b72a9440202c5ca28fe734633364ecda51e74d467c50&state=24539d85d63c7ca7bcc64fce3769779a247fc031a4ae6a04" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9541
+ Processing by AuthenticationsController#callback as HTML
9542
+ Parameters: {"code"=>"3018b9c29dff911c3391b72a9440202c5ca28fe734633364ecda51e74d467c50", "state"=>"24539d85d63c7ca7bcc64fce3769779a247fc031a4ae6a04"}
9543
+ Authenticating with gds_sso strategy
9544
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9545
+  (0.1ms) begin transaction
9546
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9547
+ - signin
9548
+ ' WHERE "users"."id" = 11
9549
+  (16.0ms) commit transaction
9550
+  (0.0ms) begin transaction
9551
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9552
+ - signin
9553
+ ' WHERE "users"."id" = 11
9554
+  (10.5ms) commit transaction
9555
+ Redirected to http://www.example-client.com/restricted
9556
+ Completed 302 Found in 34.9ms (ActiveRecord: 27.0ms)
9557
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
9558
+ Processing by ExampleController#restricted as HTML
9559
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9560
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9561
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9562
+  (0.0ms) begin transaction
9563
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9564
+ - signin
9565
+ ' WHERE "users"."id" = 11
9566
+  (14.6ms) commit transaction
9567
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9568
+ Processing by ExampleController#restricted as HTML
9569
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9570
+ Filter chain halted as :authenticate_user! rendered or redirected
9571
+ Completed 403 Forbidden in 2.8ms (Views: 1.9ms | ActiveRecord: 0.1ms)
9572
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9573
+ Processing by AuthenticationsController#sign_out as HTML
9574
+ Redirected to http://localhost:4567/users/sign_out
9575
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
9576
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9577
+ Processing by ExampleController#restricted as HTML
9578
+ Authenticating with gds_sso strategy
9579
+ Completed in 0.2ms
9580
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9581
+ Started GET "/auth/gds/callback?code=11262864dac7b5748763fa7bfa1bb3392a6559dcf4c48621d633f7af27530df4&state=162f3bb99bb82007f86536f4091ffdd10251dc74bb98a854" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9582
+ Processing by AuthenticationsController#callback as HTML
9583
+ Parameters: {"code"=>"11262864dac7b5748763fa7bfa1bb3392a6559dcf4c48621d633f7af27530df4", "state"=>"162f3bb99bb82007f86536f4091ffdd10251dc74bb98a854"}
9584
+ Authenticating with gds_sso strategy
9585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9586
+  (0.0ms) begin transaction
9587
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9588
+ - signin
9589
+ ' WHERE "users"."id" = 11
9590
+  (13.3ms) commit transaction
9591
+  (0.0ms) begin transaction
9592
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9593
+ - signin
9594
+ ' WHERE "users"."id" = 11
9595
+  (11.0ms) commit transaction
9596
+ Redirected to http://www.example-client.com/restricted
9597
+ Completed 302 Found in 31.8ms (ActiveRecord: 24.8ms)
9598
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9599
+ Processing by ExampleController#restricted as HTML
9600
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9601
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9602
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9603
+ Processing by ExampleController#restricted as HTML
9604
+ Authenticating with gds_sso strategy
9605
+ Completed in 0.2ms
9606
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9607
+ Started GET "/auth/gds/callback?code=dddeddc33498f17d2535d8503c383a85d60647e80d1a7d16a4e2dc157224d545&state=5c9346b3cec8b8ab243afa4cf46ef6f300cbbfc733e8c7c8" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9608
+ Processing by AuthenticationsController#callback as HTML
9609
+ Parameters: {"code"=>"dddeddc33498f17d2535d8503c383a85d60647e80d1a7d16a4e2dc157224d545", "state"=>"5c9346b3cec8b8ab243afa4cf46ef6f300cbbfc733e8c7c8"}
9610
+ Authenticating with gds_sso strategy
9611
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9612
+  (0.1ms) begin transaction
9613
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9614
+ - signin
9615
+ ' WHERE "users"."id" = 11
9616
+  (10.2ms) commit transaction
9617
+  (0.0ms) begin transaction
9618
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9619
+ - signin
9620
+ ' WHERE "users"."id" = 11
9621
+  (13.2ms) commit transaction
9622
+ Redirected to http://www.example-client.com/restricted
9623
+ Completed 302 Found in 31.5ms (ActiveRecord: 23.9ms)
9624
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
9625
+ Processing by ExampleController#restricted as HTML
9626
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9627
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9628
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
9629
+ Processing by ExampleController#restricted as HTML
9630
+ Authenticating with gds_sso strategy
9631
+ Completed in 0.2ms
9632
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
9633
+ Started GET "/auth/gds/callback?code=7777f0245ed85c93eeaec2239c0f7d4269f3a51c686702455796e59a31e08bee&state=47c5e7bd7aef3fe9dc1310974b8e05f14c6e37474f2d0ad4" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
9634
+ Processing by AuthenticationsController#callback as HTML
9635
+ Parameters: {"code"=>"7777f0245ed85c93eeaec2239c0f7d4269f3a51c686702455796e59a31e08bee", "state"=>"47c5e7bd7aef3fe9dc1310974b8e05f14c6e37474f2d0ad4"}
9636
+ Authenticating with gds_sso strategy
9637
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9638
+  (0.1ms) begin transaction
9639
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9640
+ - signin
9641
+ ' WHERE "users"."id" = 11
9642
+  (31.6ms) commit transaction
9643
+  (0.1ms) begin transaction
9644
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9645
+ - signin
9646
+ ' WHERE "users"."id" = 11
9647
+  (9.6ms) commit transaction
9648
+ Redirected to http://www.example-client.com/restricted
9649
+ Completed 302 Found in 48.5ms (ActiveRecord: 41.7ms)
9650
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:52:11 +0000
9651
+ Processing by ExampleController#restricted as HTML
9652
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9653
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
9654
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9655
+ Processing by ExampleController#restricted as HTML
9656
+ Authenticating with gds_sso strategy
9657
+ Completed in 0.2ms
9658
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9659
+ Started GET "/auth/gds/callback?code=937ba0d676e1d64a2ab8917afbf21668c6ba8609eae1119285f8bec3bfdb0bf5&state=eb2dff280e8ce23260562a506ae04af5d22164b0ccc01b12" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9660
+ Processing by AuthenticationsController#callback as HTML
9661
+ Parameters: {"code"=>"937ba0d676e1d64a2ab8917afbf21668c6ba8609eae1119285f8bec3bfdb0bf5", "state"=>"eb2dff280e8ce23260562a506ae04af5d22164b0ccc01b12"}
9662
+ Authenticating with gds_sso strategy
9663
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9664
+  (0.1ms) begin transaction
9665
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9666
+ - signin
9667
+ ' WHERE "users"."id" = 11
9668
+  (11.9ms) commit transaction
9669
+  (0.0ms) begin transaction
9670
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9671
+ - signin
9672
+ ' WHERE "users"."id" = 11
9673
+  (11.7ms) commit transaction
9674
+ Redirected to http://www.example-client.com/restricted
9675
+ Completed 302 Found in 32.3ms (ActiveRecord: 24.2ms)
9676
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9677
+ Processing by ExampleController#restricted as HTML
9678
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9679
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9680
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:42:11 +0000
9681
+ Processing by ExampleController#restricted as HTML
9682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9683
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
9684
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9685
+ Processing by ExampleController#restricted as JSON
9686
+ Authenticating with gds_bearer_token strategy
9687
+ Completed in 11.6ms
9688
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9689
+ Processing by ExampleController#restricted as JSON
9690
+ Authenticating with gds_bearer_token strategy
9691
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9692
+  (0.0ms) begin transaction
9693
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9694
+ - signin
9695
+ ' WHERE "users"."id" = 11
9696
+  (11.5ms) commit transaction
9697
+  (0.0ms) begin transaction
9698
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9699
+ - signin
9700
+ ' WHERE "users"."id" = 11
9701
+  (6.5ms) commit transaction
9702
+ Completed 200 OK in 55.5ms (Views: 0.2ms | ActiveRecord: 18.5ms)
9703
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
9704
+ Processing by ExampleController#this_requires_signin_permission as JSON
9705
+ Authenticating with gds_bearer_token strategy
9706
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9707
+  (0.1ms) begin transaction
9708
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9709
+ - signin
9710
+ ' WHERE "users"."id" = 11
9711
+  (5.8ms) commit transaction
9712
+  (0.0ms) begin transaction
9713
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9714
+ - signin
9715
+ ' WHERE "users"."id" = 11
9716
+  (4.1ms) commit transaction
9717
+ Completed 200 OK in 63.0ms (Views: 0.2ms | ActiveRecord: 10.4ms)
9718
+ Connecting to database specified by database.yml
9719
+  (0.9ms) select sqlite_version(*)
9720
+  (17.3ms) DROP TABLE "users"
9721
+  (14.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255)) 
9722
+  (0.1ms) begin transaction
9723
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38035"]]
9724
+  (47.8ms) commit transaction
9725
+  (0.1ms) begin transaction
9726
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31250"]]
9727
+  (10.0ms) commit transaction
9728
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
9729
+ Processing by Api::UserController#update as HTML
9730
+ Parameters: {"uid"=>"a1s2d38035"}
9731
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
9732
+ Completed 403 Forbidden in 9.0ms (Views: 8.3ms | ActiveRecord: 0.0ms)
9733
+  (0.1ms) begin transaction
9734
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32362"]]
9735
+  (36.0ms) commit transaction
9736
+  (0.1ms) begin transaction
9737
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37496"]]
9738
+  (13.0ms) commit transaction
9739
+ Processing by Api::UserController#update as HTML
9740
+ Parameters: {"uid"=>"a1s2d32362"}
9741
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32362' LIMIT 1
9742
+  (0.0ms) begin transaction
9743
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
9744
+ - signin
9745
+ - new permission
9746
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
9747
+  (14.2ms) commit transaction
9748
+ Completed 200 OK in 22.7ms (ActiveRecord: 14.6ms)
9749
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
9750
+  (0.1ms) begin transaction
9751
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35967"]]
9752
+  (60.1ms) commit transaction
9753
+  (0.1ms) begin transaction
9754
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38552"]]
9755
+  (18.4ms) commit transaction
9756
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
9757
+ Processing by Api::UserController#reauth as HTML
9758
+ Parameters: {"uid"=>"a1s2d35967"}
9759
+ Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9760
+  (0.1ms) begin transaction
9761
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38024"]]
9762
+  (19.5ms) commit transaction
9763
+  (0.1ms) begin transaction
9764
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37858"]]
9765
+  (14.7ms) commit transaction
9766
+ Processing by Api::UserController#reauth as HTML
9767
+ Parameters: {"uid"=>"nonexistent-user"}
9768
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
9769
+ Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
9770
+  (0.1ms) begin transaction
9771
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d317"]]
9772
+  (48.3ms) commit transaction
9773
+  (0.1ms) begin transaction
9774
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31792"]]
9775
+  (27.9ms) commit transaction
9776
+ Processing by Api::UserController#reauth as HTML
9777
+ Parameters: {"uid"=>"a1s2d317"}
9778
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d317' LIMIT 1
9779
+  (0.0ms) begin transaction
9780
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9781
+ - signin
9782
+ ' WHERE "users"."id" = 9
9783
+  (16.7ms) commit transaction
9784
+ Completed 200 OK in 21.7ms (ActiveRecord: 17.2ms)
9785
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
9786
+ Started GET "/" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
9787
+ Processing by ExampleController#index as HTML
9788
+ Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
9789
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
9790
+ Processing by ExampleController#restricted as HTML
9791
+ Authenticating with gds_sso strategy
9792
+ Completed in 2.5ms
9793
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
9794
+ Started GET "/auth/gds/callback?code=bef86a39b09b0998ac8c8b2d31bea4c7a9830c5e2009a9b7cb801ac19436f7c6&state=d6b1f002da22f88aa0f51e25c2995705f2a2aad3629e156c" for 127.0.0.1 at 2013-11-08 15:01:22 +0000
9795
+ Processing by AuthenticationsController#callback as HTML
9796
+ Parameters: {"code"=>"bef86a39b09b0998ac8c8b2d31bea4c7a9830c5e2009a9b7cb801ac19436f7c6", "state"=>"d6b1f002da22f88aa0f51e25c2995705f2a2aad3629e156c"}
9797
+ Authenticating with gds_sso strategy
9798
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9799
+  (0.1ms) begin transaction
9800
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
9801
+  (47.7ms) commit transaction
9802
+  (0.0ms) begin transaction
9803
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9804
+ - signin
9805
+ ' WHERE "users"."id" = 11
9806
+  (9.0ms) commit transaction
9807
+ Redirected to http://www.example-client.com/restricted
9808
+ Completed 302 Found in 63.6ms (ActiveRecord: 57.3ms)
9809
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:22 +0000
9810
+ Processing by ExampleController#restricted as HTML
9811
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9812
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9813
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9814
+ Processing by ExampleController#restricted as HTML
9815
+ Authenticating with gds_sso strategy
9816
+ Completed in 0.2ms
9817
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9818
+ Started GET "/auth/gds/callback?code=30478aca56e02750ac6b743c0afc7761734800c512f1416dc39b66a39677df9f&state=d98d9fc90c7029ebcfe3b03834fea279721136dec30cc065" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9819
+ Processing by AuthenticationsController#callback as HTML
9820
+ Parameters: {"code"=>"30478aca56e02750ac6b743c0afc7761734800c512f1416dc39b66a39677df9f", "state"=>"d98d9fc90c7029ebcfe3b03834fea279721136dec30cc065"}
9821
+ Authenticating with gds_sso strategy
9822
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9823
+  (0.1ms) begin transaction
9824
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9825
+ - signin
9826
+ ' WHERE "users"."id" = 11
9827
+  (14.7ms) commit transaction
9828
+  (0.0ms) begin transaction
9829
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9830
+ - signin
9831
+ ' WHERE "users"."id" = 11
9832
+  (9.8ms) commit transaction
9833
+ Redirected to http://www.example-client.com/restricted
9834
+ Completed 302 Found in 33.6ms (ActiveRecord: 25.1ms)
9835
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9836
+ Processing by ExampleController#restricted as HTML
9837
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9838
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9839
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9840
+ Processing by ExampleController#restricted as HTML
9841
+ Authenticating with gds_sso strategy
9842
+ Completed in 0.2ms
9843
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9844
+ Started GET "/auth/gds/callback?code=dbb6952b4512dc6d678e15e6bf41d64bb6f17d57c7289d1e36b95933ee8f4057&state=87509ffa738bd65b1f823372e8f2ebe7a4980eb69bcc375d" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9845
+ Processing by AuthenticationsController#callback as HTML
9846
+ Parameters: {"code"=>"dbb6952b4512dc6d678e15e6bf41d64bb6f17d57c7289d1e36b95933ee8f4057", "state"=>"87509ffa738bd65b1f823372e8f2ebe7a4980eb69bcc375d"}
9847
+ Authenticating with gds_sso strategy
9848
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9849
+  (0.0ms) begin transaction
9850
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9851
+ - signin
9852
+ ' WHERE "users"."id" = 11
9853
+  (5.4ms) commit transaction
9854
+  (0.0ms) begin transaction
9855
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9856
+ - signin
9857
+ ' WHERE "users"."id" = 11
9858
+  (3.4ms) commit transaction
9859
+ Redirected to http://www.example-client.com/restricted
9860
+ Completed 302 Found in 16.3ms (ActiveRecord: 9.3ms)
9861
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9862
+ Processing by ExampleController#restricted as HTML
9863
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9864
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9865
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9866
+ Processing by ExampleController#this_requires_signin_permission as HTML
9867
+ Authenticating with gds_sso strategy
9868
+ Completed in 0.6ms
9869
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
9870
+ Started GET "/auth/gds/callback?code=d99b30e79b5feab446bdeb3d52da096b24598dd7f1f36082c85f9408458771af&state=440b860600ba1872fd19bd1e61e262fc12219f4e9d16963f" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9871
+ Processing by AuthenticationsController#callback as HTML
9872
+ Parameters: {"code"=>"d99b30e79b5feab446bdeb3d52da096b24598dd7f1f36082c85f9408458771af", "state"=>"440b860600ba1872fd19bd1e61e262fc12219f4e9d16963f"}
9873
+ Authenticating with gds_sso strategy
9874
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9875
+  (0.1ms) begin transaction
9876
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9877
+ - signin
9878
+ ' WHERE "users"."id" = 11
9879
+  (4.9ms) commit transaction
9880
+  (0.0ms) begin transaction
9881
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9882
+ - signin
9883
+ ' WHERE "users"."id" = 11
9884
+  (3.1ms) commit transaction
9885
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9886
+ Completed 302 Found in 16.1ms (ActiveRecord: 8.6ms)
9887
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9888
+ Processing by ExampleController#this_requires_signin_permission as HTML
9889
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9890
+ Completed 200 OK in 3.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9891
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9892
+ Processing by ExampleController#this_requires_signin_permission as HTML
9893
+ Authenticating with gds_sso strategy
9894
+ Completed in 0.1ms
9895
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9896
+ Started GET "/auth/gds/callback?code=ad0e4943dcb83533de6bd7ce753eadb5e8541fb8f0b3feaac339204bb180f557&state=c1fb6e74a4e5e3ff96833cd091d44691a021a5d5ae878d8f" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9897
+ Processing by AuthenticationsController#callback as HTML
9898
+ Parameters: {"code"=>"ad0e4943dcb83533de6bd7ce753eadb5e8541fb8f0b3feaac339204bb180f557", "state"=>"c1fb6e74a4e5e3ff96833cd091d44691a021a5d5ae878d8f"}
9899
+ Authenticating with gds_sso strategy
9900
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9901
+  (0.0ms) begin transaction
9902
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9903
+ - signin
9904
+ ' WHERE "users"."id" = 11
9905
+  (8.0ms) commit transaction
9906
+  (0.0ms) begin transaction
9907
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9908
+ - signin
9909
+ ' WHERE "users"."id" = 11
9910
+  (6.0ms) commit transaction
9911
+ Redirected to http://www.example-client.com/this_requires_signin_permission
9912
+ Completed 302 Found in 21.6ms (ActiveRecord: 14.6ms)
9913
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9914
+ Processing by ExampleController#this_requires_signin_permission as HTML
9915
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9916
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9917
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9918
+ Processing by ExampleController#restricted as HTML
9919
+ Authenticating with gds_sso strategy
9920
+ Completed in 0.2ms
9921
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9922
+ Started GET "/auth/gds/callback?code=d2c5c2a6aacd0a736b2248e9355f4455b664f884911fd07fd3acf8b75e3c446c&state=1b546fb384dc7f0bd4eb7be1b17ee0c83842bc852f46fd31" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9923
+ Processing by AuthenticationsController#callback as HTML
9924
+ Parameters: {"code"=>"d2c5c2a6aacd0a736b2248e9355f4455b664f884911fd07fd3acf8b75e3c446c", "state"=>"1b546fb384dc7f0bd4eb7be1b17ee0c83842bc852f46fd31"}
9925
+ Authenticating with gds_sso strategy
9926
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9927
+  (0.1ms) begin transaction
9928
+  (0.2ms) UPDATE "users" SET "permissions" = '---
9929
+ - signin
9930
+ ' WHERE "users"."id" = 11
9931
+  (6.8ms) commit transaction
9932
+  (0.1ms) begin transaction
9933
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9934
+ - signin
9935
+ ' WHERE "users"."id" = 11
9936
+  (6.3ms) commit transaction
9937
+ Redirected to http://www.example-client.com/restricted
9938
+ Completed 302 Found in 21.5ms (ActiveRecord: 13.7ms)
9939
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9940
+ Processing by ExampleController#restricted as HTML
9941
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9942
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9943
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9944
+  (0.0ms) begin transaction
9945
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
9946
+ - signin
9947
+ ' WHERE "users"."id" = 11
9948
+  (4.2ms) commit transaction
9949
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9950
+ Processing by ExampleController#restricted as HTML
9951
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9952
+ Filter chain halted as :authenticate_user! rendered or redirected
9953
+ Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
9954
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
9955
+ Processing by AuthenticationsController#sign_out as HTML
9956
+ Redirected to http://localhost:4567/users/sign_out
9957
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
9958
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9959
+ Processing by ExampleController#restricted as HTML
9960
+ Authenticating with gds_sso strategy
9961
+ Completed in 0.2ms
9962
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9963
+ Started GET "/auth/gds/callback?code=94f0057c367d3c242c67eb40f67770f23b18de3f9ae8782023ffbf527802db8e&state=278080b1b7100342f586e07f2211323b2059a3e3073ded42" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9964
+ Processing by AuthenticationsController#callback as HTML
9965
+ Parameters: {"code"=>"94f0057c367d3c242c67eb40f67770f23b18de3f9ae8782023ffbf527802db8e", "state"=>"278080b1b7100342f586e07f2211323b2059a3e3073ded42"}
9966
+ Authenticating with gds_sso strategy
9967
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9968
+  (0.0ms) begin transaction
9969
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9970
+ - signin
9971
+ ' WHERE "users"."id" = 11
9972
+  (11.2ms) commit transaction
9973
+  (0.0ms) begin transaction
9974
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
9975
+ - signin
9976
+ ' WHERE "users"."id" = 11
9977
+  (29.1ms) commit transaction
9978
+ Redirected to http://www.example-client.com/restricted
9979
+ Completed 302 Found in 47.8ms (ActiveRecord: 40.8ms)
9980
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9981
+ Processing by ExampleController#restricted as HTML
9982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9983
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9984
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9985
+ Processing by ExampleController#restricted as HTML
9986
+ Authenticating with gds_sso strategy
9987
+ Completed in 0.2ms
9988
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9989
+ Started GET "/auth/gds/callback?code=6bd96c038b7a4b3da7de36dc97fabcf73811277e7ffb2ba71b9361a065e56806&state=2aa83e648b56336a9951a2b3d7f381987bfe4925c98ee94f" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
9990
+ Processing by AuthenticationsController#callback as HTML
9991
+ Parameters: {"code"=>"6bd96c038b7a4b3da7de36dc97fabcf73811277e7ffb2ba71b9361a065e56806", "state"=>"2aa83e648b56336a9951a2b3d7f381987bfe4925c98ee94f"}
9992
+ Authenticating with gds_sso strategy
9993
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
9994
+  (0.1ms) begin transaction
9995
+  (0.1ms) UPDATE "users" SET "permissions" = '---
9996
+ - signin
9997
+ ' WHERE "users"."id" = 11
9998
+  (49.4ms) commit transaction
9999
+  (0.1ms) begin transaction
10000
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10001
+ - signin
10002
+ ' WHERE "users"."id" = 11
10003
+  (10.8ms) commit transaction
10004
+ Redirected to http://www.example-client.com/restricted
10005
+ Completed 302 Found in 68.8ms (ActiveRecord: 60.8ms)
10006
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
10007
+ Processing by ExampleController#restricted as HTML
10008
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10009
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10010
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
10011
+ Processing by ExampleController#restricted as HTML
10012
+ Authenticating with gds_sso strategy
10013
+ Completed in 0.2ms
10014
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
10015
+ Started GET "/auth/gds/callback?code=ea4fd4e60ce54b9f456a11a5d209618c58e2800eb4d1dead071923188819bbd4&state=905f434431c0548a3f6b9913de56ab9ec0852fe32d82d2dc" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
10016
+ Processing by AuthenticationsController#callback as HTML
10017
+ Parameters: {"code"=>"ea4fd4e60ce54b9f456a11a5d209618c58e2800eb4d1dead071923188819bbd4", "state"=>"905f434431c0548a3f6b9913de56ab9ec0852fe32d82d2dc"}
10018
+ Authenticating with gds_sso strategy
10019
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10020
+  (0.1ms) begin transaction
10021
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10022
+ - signin
10023
+ ' WHERE "users"."id" = 11
10024
+  (9.0ms) commit transaction
10025
+  (0.0ms) begin transaction
10026
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10027
+ - signin
10028
+ ' WHERE "users"."id" = 11
10029
+  (9.4ms) commit transaction
10030
+ Redirected to http://www.example-client.com/restricted
10031
+ Completed 302 Found in 25.9ms (ActiveRecord: 19.0ms)
10032
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
10033
+ Processing by ExampleController#restricted as HTML
10034
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10035
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.2ms)
10036
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10037
+ Processing by ExampleController#restricted as HTML
10038
+ Authenticating with gds_sso strategy
10039
+ Completed in 0.2ms
10040
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10041
+ Started GET "/auth/gds/callback?code=40276fb1d0d0ef231f866bbcbc79bdc8204fe9134ed182d8041586413eb461e3&state=b0aecdac0e4b9475f8f682eae7a8964810bb38fc5a127a37" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10042
+ Processing by AuthenticationsController#callback as HTML
10043
+ Parameters: {"code"=>"40276fb1d0d0ef231f866bbcbc79bdc8204fe9134ed182d8041586413eb461e3", "state"=>"b0aecdac0e4b9475f8f682eae7a8964810bb38fc5a127a37"}
10044
+ Authenticating with gds_sso strategy
10045
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10046
+  (0.1ms) begin transaction
10047
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10048
+ - signin
10049
+ ' WHERE "users"."id" = 11
10050
+  (5.6ms) commit transaction
10051
+  (0.0ms) begin transaction
10052
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10053
+ - signin
10054
+ ' WHERE "users"."id" = 11
10055
+  (3.3ms) commit transaction
10056
+ Redirected to http://www.example-client.com/restricted
10057
+ Completed 302 Found in 17.1ms (ActiveRecord: 9.5ms)
10058
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10059
+ Processing by ExampleController#restricted as HTML
10060
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10061
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10062
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:56:26 +0000
10063
+ Processing by ExampleController#restricted as HTML
10064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10065
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
10066
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10067
+ Processing by ExampleController#restricted as JSON
10068
+ Authenticating with gds_bearer_token strategy
10069
+ Completed in 6.9ms
10070
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10071
+ Processing by ExampleController#restricted as JSON
10072
+ Authenticating with gds_bearer_token strategy
10073
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10074
+  (0.0ms) begin transaction
10075
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10076
+ - signin
10077
+ ' WHERE "users"."id" = 11
10078
+  (14.0ms) commit transaction
10079
+  (0.1ms) begin transaction
10080
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10081
+ - signin
10082
+ ' WHERE "users"."id" = 11
10083
+  (11.4ms) commit transaction
10084
+ Completed 200 OK in 70.0ms (Views: 0.2ms | ActiveRecord: 25.9ms)
10085
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
10086
+ Processing by ExampleController#this_requires_signin_permission as JSON
10087
+ Authenticating with gds_bearer_token strategy
10088
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10089
+  (0.0ms) begin transaction
10090
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10091
+ - signin
10092
+ ' WHERE "users"."id" = 11
10093
+  (10.9ms) commit transaction
10094
+  (0.0ms) begin transaction
10095
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10096
+ - signin
10097
+ ' WHERE "users"."id" = 11
10098
+  (10.8ms) commit transaction
10099
+ Completed 200 OK in 61.1ms (Views: 0.2ms | ActiveRecord: 22.2ms)
10100
+ Connecting to database specified by database.yml
10101
+  (0.8ms) select sqlite_version(*)
10102
+  (37.7ms) DROP TABLE "users"
10103
+  (16.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, "organisation_slug" varchar(255)) 
10104
+  (0.1ms) begin transaction
10105
+ SQL (2.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31283"]]
10106
+  (17.1ms) commit transaction
10107
+  (0.1ms) begin transaction
10108
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34722"]]
10109
+  (10.9ms) commit transaction
10110
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10111
+ Processing by Api::UserController#update as HTML
10112
+ Parameters: {"uid"=>"a1s2d31283"}
10113
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
10114
+ Completed 403 Forbidden in 6.3ms (Views: 5.6ms | ActiveRecord: 0.0ms)
10115
+  (0.1ms) begin transaction
10116
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39153"]]
10117
+  (37.9ms) commit transaction
10118
+  (0.1ms) begin transaction
10119
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35638"]]
10120
+  (17.6ms) commit transaction
10121
+ Processing by Api::UserController#update as HTML
10122
+ Parameters: {"uid"=>"a1s2d39153"}
10123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39153' LIMIT 1
10124
+  (0.1ms) begin transaction
10125
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
10126
+ - signin
10127
+ - new permission
10128
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
10129
+  (18.9ms) commit transaction
10130
+ Completed 200 OK in 47.8ms (ActiveRecord: 19.3ms)
10131
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10132
+  (0.1ms) begin transaction
10133
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34567"]]
10134
+  (17.0ms) commit transaction
10135
+  (0.1ms) begin transaction
10136
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35651"]]
10137
+  (32.1ms) commit transaction
10138
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10139
+ Processing by Api::UserController#reauth as HTML
10140
+ Parameters: {"uid"=>"a1s2d34567"}
10141
+ Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
10142
+  (0.1ms) begin transaction
10143
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36922"]]
10144
+  (20.4ms) commit transaction
10145
+  (0.1ms) begin transaction
10146
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32073"]]
10147
+  (42.1ms) commit transaction
10148
+ Processing by Api::UserController#reauth as HTML
10149
+ Parameters: {"uid"=>"nonexistent-user"}
10150
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
10151
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
10152
+  (0.1ms) begin transaction
10153
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35898"]]
10154
+  (16.3ms) commit transaction
10155
+  (0.1ms) begin transaction
10156
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33825"]]
10157
+  (11.3ms) commit transaction
10158
+ Processing by Api::UserController#reauth as HTML
10159
+ Parameters: {"uid"=>"a1s2d35898"}
10160
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35898' LIMIT 1
10161
+  (0.0ms) begin transaction
10162
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
10163
+ - signin
10164
+ ' WHERE "users"."id" = 9
10165
+  (8.3ms) commit transaction
10166
+ Completed 200 OK in 12.6ms (ActiveRecord: 8.7ms)
10167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
10168
+ Started GET "/" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
10169
+ Processing by ExampleController#index as HTML
10170
+ Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
10171
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
10172
+ Processing by ExampleController#restricted as HTML
10173
+ Authenticating with gds_sso strategy
10174
+ Completed in 2.6ms
10175
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
10176
+ Started GET "/auth/gds/callback?code=1f15bab7459e5266f1631dd56cb797d19ffb7f39fb208d6e5fc307e82d73da02&state=051c120b8039dc740b5e8362c6971514ab9faec4ef97d765" for 127.0.0.1 at 2013-11-08 15:02:42 +0000
10177
+ Processing by AuthenticationsController#callback as HTML
10178
+ Parameters: {"code"=>"1f15bab7459e5266f1631dd56cb797d19ffb7f39fb208d6e5fc307e82d73da02", "state"=>"051c120b8039dc740b5e8362c6971514ab9faec4ef97d765"}
10179
+ Authenticating with gds_sso strategy
10180
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10181
+  (0.1ms) begin transaction
10182
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
10183
+  (14.7ms) commit transaction
10184
+  (0.0ms) begin transaction
10185
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
10186
+ - signin
10187
+ ' WHERE "users"."id" = 11
10188
+  (32.7ms) commit transaction
10189
+ Redirected to http://www.example-client.com/restricted
10190
+ Completed 302 Found in 54.5ms (ActiveRecord: 48.0ms)
10191
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:42 +0000
10192
+ Processing by ExampleController#restricted as HTML
10193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10194
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10195
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10196
+ Processing by ExampleController#restricted as HTML
10197
+ Authenticating with gds_sso strategy
10198
+ Completed in 0.3ms
10199
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10200
+ Started GET "/auth/gds/callback?code=dd3db402e9ab7ae7815822077965e419c0fdf62a954acf781c4b8643b7f9eabe&state=e9deeedfb741a7c17c158ad118d9cda95b4110b2ce266cb6" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10201
+ Processing by AuthenticationsController#callback as HTML
10202
+ Parameters: {"code"=>"dd3db402e9ab7ae7815822077965e419c0fdf62a954acf781c4b8643b7f9eabe", "state"=>"e9deeedfb741a7c17c158ad118d9cda95b4110b2ce266cb6"}
10203
+ Authenticating with gds_sso strategy
10204
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10205
+  (0.1ms) begin transaction
10206
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10207
+ - signin
10208
+ ' WHERE "users"."id" = 11
10209
+  (31.5ms) commit transaction
10210
+  (0.0ms) begin transaction
10211
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10212
+ - signin
10213
+ ' WHERE "users"."id" = 11
10214
+  (13.4ms) commit transaction
10215
+ Redirected to http://www.example-client.com/restricted
10216
+ Completed 302 Found in 53.0ms (ActiveRecord: 45.4ms)
10217
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10218
+ Processing by ExampleController#restricted as HTML
10219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10220
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10221
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10222
+ Processing by ExampleController#restricted as HTML
10223
+ Authenticating with gds_sso strategy
10224
+ Completed in 0.2ms
10225
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10226
+ Started GET "/auth/gds/callback?code=327eaa7790a9b208216bf2519d85c13f42dc71305402f0a13fc2be2e09e8d56c&state=4714a2b35f3b1481cc7274fbdd5ac5d73a4c5b85e0133d22" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10227
+ Processing by AuthenticationsController#callback as HTML
10228
+ Parameters: {"code"=>"327eaa7790a9b208216bf2519d85c13f42dc71305402f0a13fc2be2e09e8d56c", "state"=>"4714a2b35f3b1481cc7274fbdd5ac5d73a4c5b85e0133d22"}
10229
+ Authenticating with gds_sso strategy
10230
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10231
+  (0.0ms) begin transaction
10232
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10233
+ - signin
10234
+ ' WHERE "users"."id" = 11
10235
+  (9.2ms) commit transaction
10236
+  (0.0ms) begin transaction
10237
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10238
+ - signin
10239
+ ' WHERE "users"."id" = 11
10240
+  (4.1ms) commit transaction
10241
+ Redirected to http://www.example-client.com/restricted
10242
+ Completed 302 Found in 21.7ms (ActiveRecord: 13.8ms)
10243
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10244
+ Processing by ExampleController#restricted as HTML
10245
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10246
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10247
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10248
+ Processing by ExampleController#this_requires_signin_permission as HTML
10249
+ Authenticating with gds_sso strategy
10250
+ Completed in 0.6ms
10251
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
10252
+ Started GET "/auth/gds/callback?code=404da1bf910fa7c838547c386139a7c25281491089bd87fbca64729e4a95f54a&state=e9602bc6256396e03cf5afb38bb3849ef728407de2890a2e" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10253
+ Processing by AuthenticationsController#callback as HTML
10254
+ Parameters: {"code"=>"404da1bf910fa7c838547c386139a7c25281491089bd87fbca64729e4a95f54a", "state"=>"e9602bc6256396e03cf5afb38bb3849ef728407de2890a2e"}
10255
+ Authenticating with gds_sso strategy
10256
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10257
+  (0.0ms) begin transaction
10258
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10259
+ - signin
10260
+ ' WHERE "users"."id" = 11
10261
+  (20.5ms) commit transaction
10262
+  (0.0ms) begin transaction
10263
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10264
+ - signin
10265
+ ' WHERE "users"."id" = 11
10266
+  (13.2ms) commit transaction
10267
+ Redirected to http://www.example-client.com/this_requires_signin_permission
10268
+ Completed 302 Found in 41.7ms (ActiveRecord: 34.2ms)
10269
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10270
+ Processing by ExampleController#this_requires_signin_permission as HTML
10271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10272
+ Completed 200 OK in 2.9ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10273
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10274
+ Processing by ExampleController#this_requires_signin_permission as HTML
10275
+ Authenticating with gds_sso strategy
10276
+ Completed in 0.2ms
10277
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10278
+ Started GET "/auth/gds/callback?code=2b710235af52d25f3967040ab08c3f3ccb3f4762b444a0b99d2ec46fd874271b&state=a95408ed3e33f548280066d979ef8c0f23781dcb6459fd62" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10279
+ Processing by AuthenticationsController#callback as HTML
10280
+ Parameters: {"code"=>"2b710235af52d25f3967040ab08c3f3ccb3f4762b444a0b99d2ec46fd874271b", "state"=>"a95408ed3e33f548280066d979ef8c0f23781dcb6459fd62"}
10281
+ Authenticating with gds_sso strategy
10282
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10283
+  (0.1ms) begin transaction
10284
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10285
+ - signin
10286
+ ' WHERE "users"."id" = 11
10287
+  (9.3ms) commit transaction
10288
+  (0.0ms) begin transaction
10289
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10290
+ - signin
10291
+ ' WHERE "users"."id" = 11
10292
+  (7.5ms) commit transaction
10293
+ Redirected to http://www.example-client.com/this_requires_signin_permission
10294
+ Completed 302 Found in 24.7ms (ActiveRecord: 17.3ms)
10295
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10296
+ Processing by ExampleController#this_requires_signin_permission as HTML
10297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10298
+ Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10299
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10300
+ Processing by ExampleController#restricted as HTML
10301
+ Authenticating with gds_sso strategy
10302
+ Completed in 0.2ms
10303
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10304
+ Started GET "/auth/gds/callback?code=4e80b394e7d82a0f0eb6c73d7094fc61d0f47e2359720f81ad3f66eb39b7b7f8&state=2aea5dad89f223eec5195924a904865d4fa5150140660a74" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
10305
+ Processing by AuthenticationsController#callback as HTML
10306
+ Parameters: {"code"=>"4e80b394e7d82a0f0eb6c73d7094fc61d0f47e2359720f81ad3f66eb39b7b7f8", "state"=>"2aea5dad89f223eec5195924a904865d4fa5150140660a74"}
10307
+ Authenticating with gds_sso strategy
10308
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10309
+  (0.1ms) begin transaction
10310
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10311
+ - signin
10312
+ ' WHERE "users"."id" = 11
10313
+  (23.2ms) commit transaction
10314
+  (0.0ms) begin transaction
10315
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10316
+ - signin
10317
+ ' WHERE "users"."id" = 11
10318
+  (13.0ms) commit transaction
10319
+ Redirected to http://www.example-client.com/restricted
10320
+ Completed 302 Found in 44.1ms (ActiveRecord: 36.6ms)
10321
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10322
+ Processing by ExampleController#restricted as HTML
10323
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10324
+ Completed 200 OK in 1.1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
10325
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10326
+  (0.0ms) begin transaction
10327
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
10328
+ - signin
10329
+ ' WHERE "users"."id" = 11
10330
+  (12.3ms) commit transaction
10331
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10332
+ Processing by ExampleController#restricted as HTML
10333
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10334
+ Filter chain halted as :authenticate_user! rendered or redirected
10335
+ Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
10336
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10337
+ Processing by AuthenticationsController#sign_out as HTML
10338
+ Redirected to http://localhost:4567/users/sign_out
10339
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
10340
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10341
+ Processing by ExampleController#restricted as HTML
10342
+ Authenticating with gds_sso strategy
10343
+ Completed in 0.2ms
10344
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10345
+ Started GET "/auth/gds/callback?code=1a57cb546ccdad7aa04689a6bb3a6de966d3efa64f37bcbe778dbc6f5fcb0734&state=e6ded0e740602f55d1873db2db40e81074c6e3f91ead341a" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10346
+ Processing by AuthenticationsController#callback as HTML
10347
+ Parameters: {"code"=>"1a57cb546ccdad7aa04689a6bb3a6de966d3efa64f37bcbe778dbc6f5fcb0734", "state"=>"e6ded0e740602f55d1873db2db40e81074c6e3f91ead341a"}
10348
+ Authenticating with gds_sso strategy
10349
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10350
+  (0.0ms) begin transaction
10351
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10352
+ - signin
10353
+ ' WHERE "users"."id" = 11
10354
+  (14.6ms) commit transaction
10355
+  (0.0ms) begin transaction
10356
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
10357
+ - signin
10358
+ ' WHERE "users"."id" = 11
10359
+  (11.7ms) commit transaction
10360
+ Redirected to http://www.example-client.com/restricted
10361
+ Completed 302 Found in 33.8ms (ActiveRecord: 26.8ms)
10362
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10363
+ Processing by ExampleController#restricted as HTML
10364
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10365
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
10366
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10367
+ Processing by ExampleController#restricted as HTML
10368
+ Authenticating with gds_sso strategy
10369
+ Completed in 0.2ms
10370
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10371
+ Started GET "/auth/gds/callback?code=b625d658705eecd075b56afec46f5590656138db8a381a9bd846bed189ad8ad2&state=87203e24e342df13610bafdb56805b97f7d4486eb0430fdd" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
10372
+ Processing by AuthenticationsController#callback as HTML
10373
+ Parameters: {"code"=>"b625d658705eecd075b56afec46f5590656138db8a381a9bd846bed189ad8ad2", "state"=>"87203e24e342df13610bafdb56805b97f7d4486eb0430fdd"}
10374
+ Authenticating with gds_sso strategy
10375
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10376
+  (0.1ms) begin transaction
10377
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10378
+ - signin
10379
+ ' WHERE "users"."id" = 11
10380
+  (66.5ms) commit transaction
10381
+  (0.0ms) begin transaction
10382
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10383
+ - signin
10384
+ ' WHERE "users"."id" = 11
10385
+  (56.8ms) commit transaction
10386
+ Redirected to http://www.example-client.com/restricted
10387
+ Completed 302 Found in 131.6ms (ActiveRecord: 123.8ms)
10388
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
10389
+ Processing by ExampleController#restricted as HTML
10390
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10391
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10392
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
10393
+ Processing by ExampleController#restricted as HTML
10394
+ Authenticating with gds_sso strategy
10395
+ Completed in 0.2ms
10396
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
10397
+ Started GET "/auth/gds/callback?code=f05a46d8c299f4ef3805ced576f6a99f7a299840a3e05969fd04097439cc0fe4&state=001047c5812986e315961437d22b6cf2bbc43b0211873952" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
10398
+ Processing by AuthenticationsController#callback as HTML
10399
+ Parameters: {"code"=>"f05a46d8c299f4ef3805ced576f6a99f7a299840a3e05969fd04097439cc0fe4", "state"=>"001047c5812986e315961437d22b6cf2bbc43b0211873952"}
10400
+ Authenticating with gds_sso strategy
10401
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10402
+  (0.1ms) begin transaction
10403
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10404
+ - signin
10405
+ ' WHERE "users"."id" = 11
10406
+  (58.7ms) commit transaction
10407
+  (0.1ms) begin transaction
10408
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10409
+ - signin
10410
+ ' WHERE "users"."id" = 11
10411
+  (51.5ms) commit transaction
10412
+ Redirected to http://www.example-client.com/restricted
10413
+ Completed 302 Found in 117.8ms (ActiveRecord: 110.8ms)
10414
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
10415
+ Processing by ExampleController#restricted as HTML
10416
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10417
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
10418
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
10419
+ Processing by ExampleController#restricted as HTML
10420
+ Authenticating with gds_sso strategy
10421
+ Completed in 0.2ms
10422
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
10423
+ Started GET "/auth/gds/callback?code=d5c34ecf9181c70ec56312dddd27ea0734989b8dcde8304f3dfb4803a29f4b78&state=e37813311ff3b59220be09b94b63436c9ca508bb00b5f241" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
10424
+ Processing by AuthenticationsController#callback as HTML
10425
+ Parameters: {"code"=>"d5c34ecf9181c70ec56312dddd27ea0734989b8dcde8304f3dfb4803a29f4b78", "state"=>"e37813311ff3b59220be09b94b63436c9ca508bb00b5f241"}
10426
+ Authenticating with gds_sso strategy
10427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10428
+  (0.1ms) begin transaction
10429
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10430
+ - signin
10431
+ ' WHERE "users"."id" = 11
10432
+  (20.2ms) commit transaction
10433
+  (0.0ms) begin transaction
10434
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10435
+ - signin
10436
+ ' WHERE "users"."id" = 11
10437
+  (14.0ms) commit transaction
10438
+ Redirected to http://www.example-client.com/restricted
10439
+ Completed 302 Found in 42.8ms (ActiveRecord: 34.7ms)
10440
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
10441
+ Processing by ExampleController#restricted as HTML
10442
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10443
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10444
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:57:47 +0000
10445
+ Processing by ExampleController#restricted as HTML
10446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10447
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
10448
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
10449
+ Processing by ExampleController#restricted as JSON
10450
+ Authenticating with gds_bearer_token strategy
10451
+ Completed in 6.8ms
10452
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
10453
+ Processing by ExampleController#restricted as JSON
10454
+ Authenticating with gds_bearer_token strategy
10455
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10456
+  (0.0ms) begin transaction
10457
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10458
+ - signin
10459
+ ' WHERE "users"."id" = 11
10460
+  (8.5ms) commit transaction
10461
+  (0.0ms) begin transaction
10462
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10463
+ - signin
10464
+ ' WHERE "users"."id" = 11
10465
+  (7.7ms) commit transaction
10466
+ Completed 200 OK in 51.7ms (Views: 0.2ms | ActiveRecord: 16.8ms)
10467
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
10468
+ Processing by ExampleController#this_requires_signin_permission as JSON
10469
+ Authenticating with gds_bearer_token strategy
10470
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10471
+  (0.0ms) begin transaction
10472
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10473
+ - signin
10474
+ ' WHERE "users"."id" = 11
10475
+  (8.5ms) commit transaction
10476
+  (0.0ms) begin transaction
10477
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10478
+ - signin
10479
+ ' WHERE "users"."id" = 11
10480
+  (5.4ms) commit transaction
10481
+ Completed 200 OK in 59.7ms (Views: 0.2ms | ActiveRecord: 14.3ms)