gds-sso 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25339,3 +25339,2621 @@ Authenticating with gds_bearer_token strategy
25339
25339
  ' WHERE "users"."id" = 5
25340
25340
   (1.7ms) commit transaction
25341
25341
  Completed 200 OK in 67ms (Views: 0.6ms | ActiveRecord: 12.4ms)
25342
+ Connecting to database specified by database.yml
25343
+  (3.2ms) select sqlite_version(*)
25344
+  (25.5ms) DROP TABLE "users"
25345
+  (2.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
25346
+  (0.1ms) begin transaction
25347
+ SQL (19.0ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39724"]]
25348
+  (15.1ms) commit transaction
25349
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
25350
+ Processing by Api::UserController#update as HTML
25351
+ Parameters: {"uid"=>"a1s2d39724"}
25352
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.8ms)
25353
+ Completed 403 Forbidden in 121ms (Views: 119.7ms | ActiveRecord: 0.0ms)
25354
+  (0.1ms) begin transaction
25355
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31987"]]
25356
+  (2.5ms) commit transaction
25357
+ Processing by Api::UserController#update as HTML
25358
+ Parameters: {"uid"=>"a1s2d31987"}
25359
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31987' LIMIT 1
25360
+  (0.1ms) begin transaction
25361
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
25362
+ - signin
25363
+ - new permission
25364
+ ' WHERE "users"."id" = 2
25365
+  (14.0ms) commit transaction
25366
+ Completed 200 OK in 23ms (ActiveRecord: 14.6ms)
25367
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
25368
+  (0.1ms) begin transaction
25369
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33445"]]
25370
+  (4.2ms) commit transaction
25371
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
25372
+ Processing by Api::UserController#reauth as HTML
25373
+ Parameters: {"uid"=>"a1s2d33445"}
25374
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
25375
+  (0.1ms) begin transaction
25376
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31714"]]
25377
+  (2.4ms) commit transaction
25378
+ Processing by Api::UserController#reauth as HTML
25379
+ Parameters: {"uid"=>"a1s2d31714"}
25380
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31714' LIMIT 1
25381
+  (0.0ms) begin transaction
25382
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25383
+ - signin
25384
+ ' WHERE "users"."id" = 4
25385
+  (11.8ms) commit transaction
25386
+ Completed 200 OK in 15ms (ActiveRecord: 12.3ms)
25387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
25388
+ Started GET "/" for 127.0.0.1 at 2013-04-11 11:41:02 +0000
25389
+ Processing by ExampleController#index as HTML
25390
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
25391
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:02 +0000
25392
+ Processing by ExampleController#restricted as HTML
25393
+ Authenticating with gds_sso strategy
25394
+ Completed in 67ms
25395
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:02 +0000
25396
+ Started GET "/auth/gds/callback?code=42fcd8cad574ff23f0ecc35d9fb8ac84c2ce67c6cb5095f9752b2c4c63ba302c&state=1d32e80685dbbee3edf7f8716014acb2a26a614233cffca1" for 127.0.0.1 at 2013-04-11 11:41:03 +0000
25397
+ Processing by AuthenticationsController#callback as HTML
25398
+ Parameters: {"code"=>"42fcd8cad574ff23f0ecc35d9fb8ac84c2ce67c6cb5095f9752b2c4c63ba302c", "state"=>"1d32e80685dbbee3edf7f8716014acb2a26a614233cffca1"}
25399
+ Authenticating with gds_sso strategy
25400
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25401
+  (0.1ms) begin transaction
25402
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
25403
+  (10.2ms) commit transaction
25404
+  (0.0ms) begin transaction
25405
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25406
+ - signin
25407
+ ' WHERE "users"."id" = 5
25408
+  (1.8ms) commit transaction
25409
+ Redirected to http://www.example-client.com/restricted
25410
+ Completed 302 Found in 19ms (ActiveRecord: 13.0ms)
25411
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25412
+ Processing by ExampleController#restricted as HTML
25413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25414
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
25415
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25416
+ Processing by ExampleController#restricted as HTML
25417
+ Authenticating with gds_sso strategy
25418
+ Completed in 0ms
25419
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25420
+ Started GET "/auth/gds/callback?code=d41d3eb70fb31646d08f0055b38186dd8e1fdd6a1d01d8e81b34f881804f04b2&state=080d3d5ba24d516c400c30221ef770900cff8e6411bc00ec" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25421
+ Processing by AuthenticationsController#callback as HTML
25422
+ Parameters: {"code"=>"d41d3eb70fb31646d08f0055b38186dd8e1fdd6a1d01d8e81b34f881804f04b2", "state"=>"080d3d5ba24d516c400c30221ef770900cff8e6411bc00ec"}
25423
+ Authenticating with gds_sso strategy
25424
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25425
+  (0.1ms) begin transaction
25426
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25427
+ - signin
25428
+ ' WHERE "users"."id" = 5
25429
+  (6.5ms) commit transaction
25430
+  (0.0ms) begin transaction
25431
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25432
+ - signin
25433
+ ' WHERE "users"."id" = 5
25434
+  (1.8ms) commit transaction
25435
+ Redirected to http://www.example-client.com/restricted
25436
+ Completed 302 Found in 15ms (ActiveRecord: 9.3ms)
25437
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25438
+ Processing by ExampleController#restricted as HTML
25439
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25440
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
25441
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25442
+ Processing by ExampleController#restricted as HTML
25443
+ Authenticating with gds_sso strategy
25444
+ Completed in 0ms
25445
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25446
+ Started GET "/auth/gds/callback?code=58c958ff6798d839dbf4fce76e3773368a9ccfc024ece07fcced96f9a134fe17&state=b6a5c33df97c0df45a548225be979385a8f3d83eaf00eb04" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25447
+ Processing by AuthenticationsController#callback as HTML
25448
+ Parameters: {"code"=>"58c958ff6798d839dbf4fce76e3773368a9ccfc024ece07fcced96f9a134fe17", "state"=>"b6a5c33df97c0df45a548225be979385a8f3d83eaf00eb04"}
25449
+ Authenticating with gds_sso strategy
25450
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25451
+  (0.1ms) begin transaction
25452
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25453
+ - signin
25454
+ ' WHERE "users"."id" = 5
25455
+  (10.4ms) commit transaction
25456
+  (0.1ms) begin transaction
25457
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25458
+ - signin
25459
+ ' WHERE "users"."id" = 5
25460
+  (2.1ms) commit transaction
25461
+ Redirected to http://www.example-client.com/restricted
25462
+ Completed 302 Found in 18ms (ActiveRecord: 13.4ms)
25463
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25464
+ Processing by ExampleController#restricted as HTML
25465
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25466
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
25467
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25468
+ Processing by ExampleController#this_requires_signin_permission as HTML
25469
+ Authenticating with gds_sso strategy
25470
+ Completed in 1ms
25471
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:04 +0000
25472
+ Started GET "/auth/gds/callback?code=eb7ef3ad71dfa02861787f7193fe6271293c12128c9199f303102323786a34bd&state=7c512529f84f68f8ab2a34c36b561f3e73dadfe791b04f9b" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25473
+ Processing by AuthenticationsController#callback as HTML
25474
+ Parameters: {"code"=>"eb7ef3ad71dfa02861787f7193fe6271293c12128c9199f303102323786a34bd", "state"=>"7c512529f84f68f8ab2a34c36b561f3e73dadfe791b04f9b"}
25475
+ Authenticating with gds_sso strategy
25476
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25477
+  (0.1ms) begin transaction
25478
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25479
+ - signin
25480
+ ' WHERE "users"."id" = 5
25481
+  (7.6ms) commit transaction
25482
+  (0.1ms) begin transaction
25483
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25484
+ - signin
25485
+ ' WHERE "users"."id" = 5
25486
+  (1.9ms) commit transaction
25487
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25488
+ Completed 302 Found in 17ms (ActiveRecord: 10.9ms)
25489
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25490
+ Processing by ExampleController#this_requires_signin_permission as HTML
25491
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25492
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
25493
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25494
+ Processing by ExampleController#this_requires_signin_permission as HTML
25495
+ Authenticating with gds_sso strategy
25496
+ Completed in 0ms
25497
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25498
+ Started GET "/auth/gds/callback?code=9e59234f8c1050ae5c2a7323f39569a1c0f7e7e37e68be0e518a7257d4b5c1b1&state=b00f0142ff4596de6ddc740efed461c7538fd182bfac896b" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25499
+ Processing by AuthenticationsController#callback as HTML
25500
+ Parameters: {"code"=>"9e59234f8c1050ae5c2a7323f39569a1c0f7e7e37e68be0e518a7257d4b5c1b1", "state"=>"b00f0142ff4596de6ddc740efed461c7538fd182bfac896b"}
25501
+ Authenticating with gds_sso strategy
25502
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25503
+  (0.1ms) begin transaction
25504
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25505
+ - signin
25506
+ ' WHERE "users"."id" = 5
25507
+  (9.1ms) commit transaction
25508
+  (0.0ms) begin transaction
25509
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25510
+ - signin
25511
+ ' WHERE "users"."id" = 5
25512
+  (1.8ms) commit transaction
25513
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25514
+ Completed 302 Found in 16ms (ActiveRecord: 11.8ms)
25515
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25516
+ Processing by ExampleController#this_requires_signin_permission as HTML
25517
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25518
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
25519
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25520
+ Processing by ExampleController#restricted as HTML
25521
+ Authenticating with gds_sso strategy
25522
+ Completed in 0ms
25523
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25524
+ Started GET "/auth/gds/callback?code=91486b12667ae63f2689aebc6afb9119e1a6e9e74f3ddd349190403a7ba97c9f&state=fa767b7fa28afae86131a8fd7d3d165eb32d9356d2b953b1" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25525
+ Processing by AuthenticationsController#callback as HTML
25526
+ Parameters: {"code"=>"91486b12667ae63f2689aebc6afb9119e1a6e9e74f3ddd349190403a7ba97c9f", "state"=>"fa767b7fa28afae86131a8fd7d3d165eb32d9356d2b953b1"}
25527
+ Authenticating with gds_sso strategy
25528
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25529
+  (0.1ms) begin transaction
25530
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25531
+ - signin
25532
+ ' WHERE "users"."id" = 5
25533
+  (7.9ms) commit transaction
25534
+  (0.1ms) begin transaction
25535
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25536
+ - signin
25537
+ ' WHERE "users"."id" = 5
25538
+  (1.8ms) commit transaction
25539
+ Redirected to http://www.example-client.com/restricted
25540
+ Completed 302 Found in 16ms (ActiveRecord: 10.7ms)
25541
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:05 +0000
25542
+ Processing by ExampleController#restricted as HTML
25543
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25544
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
25545
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25546
+  (0.0ms) begin transaction
25547
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25548
+ - signin
25549
+ ' WHERE "users"."id" = 5
25550
+  (1.9ms) commit transaction
25551
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25552
+ Processing by ExampleController#restricted as HTML
25553
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25554
+ Filter chain halted as :authenticate_user! rendered or redirected
25555
+ Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
25556
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25557
+ Processing by AuthenticationsController#sign_out as HTML
25558
+ Redirected to http://localhost:4567/users/sign_out
25559
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
25560
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25561
+ Processing by ExampleController#restricted as HTML
25562
+ Authenticating with gds_sso strategy
25563
+ Completed in 0ms
25564
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25565
+ Started GET "/auth/gds/callback?code=aa1df58062c0a9a454debf424406db6a9cd6cb3f244146436a0794bff76cc000&state=dff585ca928407b0ecd56df967478f4766d3e30716023d27" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25566
+ Processing by AuthenticationsController#callback as HTML
25567
+ Parameters: {"code"=>"aa1df58062c0a9a454debf424406db6a9cd6cb3f244146436a0794bff76cc000", "state"=>"dff585ca928407b0ecd56df967478f4766d3e30716023d27"}
25568
+ Authenticating with gds_sso strategy
25569
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25570
+  (0.1ms) begin transaction
25571
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25572
+ - signin
25573
+ ' WHERE "users"."id" = 5
25574
+  (8.4ms) commit transaction
25575
+  (0.1ms) begin transaction
25576
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25577
+ - signin
25578
+ ' WHERE "users"."id" = 5
25579
+  (2.0ms) commit transaction
25580
+ Redirected to http://www.example-client.com/restricted
25581
+ Completed 302 Found in 16ms (ActiveRecord: 11.2ms)
25582
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25583
+ Processing by ExampleController#restricted as HTML
25584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25585
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
25586
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25587
+ Processing by ExampleController#restricted as HTML
25588
+ Authenticating with gds_sso strategy
25589
+ Completed in 0ms
25590
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25591
+ Started GET "/auth/gds/callback?code=a6bcabb77c8db31b2e1bbe800aaf1d02cb80898eb0add8cb593bb38ada5afb49&state=ba0bbaa8949ff202fc8fb4b677035a7c314abcbf0283e8ef" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25592
+ Processing by AuthenticationsController#callback as HTML
25593
+ Parameters: {"code"=>"a6bcabb77c8db31b2e1bbe800aaf1d02cb80898eb0add8cb593bb38ada5afb49", "state"=>"ba0bbaa8949ff202fc8fb4b677035a7c314abcbf0283e8ef"}
25594
+ Authenticating with gds_sso strategy
25595
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25596
+  (0.1ms) begin transaction
25597
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25598
+ - signin
25599
+ ' WHERE "users"."id" = 5
25600
+  (7.6ms) commit transaction
25601
+  (0.1ms) begin transaction
25602
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25603
+ - signin
25604
+ ' WHERE "users"."id" = 5
25605
+  (1.9ms) commit transaction
25606
+ Redirected to http://www.example-client.com/restricted
25607
+ Completed 302 Found in 17ms (ActiveRecord: 11.1ms)
25608
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25609
+ Processing by ExampleController#restricted as HTML
25610
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25611
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
25612
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 07:46:06 +0000
25613
+ Processing by ExampleController#restricted as HTML
25614
+ Authenticating with gds_sso strategy
25615
+ Completed in 0ms
25616
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 07:46:06 +0000
25617
+ Started GET "/auth/gds/callback?code=1c3a7a5cf33499ef8daa33b07290d0eef31c0fbc7a7b519a5cbf39ba865f792d&state=fda6af6e39a39bf26c1abc5af2a29978b412acf793b24810" for 127.0.0.1 at 2013-04-12 07:46:06 +0000
25618
+ Processing by AuthenticationsController#callback as HTML
25619
+ Parameters: {"code"=>"1c3a7a5cf33499ef8daa33b07290d0eef31c0fbc7a7b519a5cbf39ba865f792d", "state"=>"fda6af6e39a39bf26c1abc5af2a29978b412acf793b24810"}
25620
+ Authenticating with gds_sso strategy
25621
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25622
+  (0.1ms) begin transaction
25623
+  (0.4ms) UPDATE "users" SET "permissions" = '---
25624
+ - signin
25625
+ ' WHERE "users"."id" = 5
25626
+  (8.2ms) commit transaction
25627
+  (0.1ms) begin transaction
25628
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25629
+ - signin
25630
+ ' WHERE "users"."id" = 5
25631
+  (2.6ms) commit transaction
25632
+ Redirected to http://www.example-client.com/restricted
25633
+ Completed 302 Found in 18ms (ActiveRecord: 12.0ms)
25634
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 07:46:06 +0000
25635
+ Processing by ExampleController#restricted as HTML
25636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25637
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
25638
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25639
+ Processing by ExampleController#restricted as HTML
25640
+ Authenticating with gds_sso strategy
25641
+ Completed in 0ms
25642
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 11:41:06 +0000
25643
+ Started GET "/auth/gds/callback?code=8141b8b33d554b28e27945ab8d3771d5699478f5dd62f6bfccd5b17ec1b15d4c&state=9ba5460e9926be533ee1db12a5425450ee7960f786852a31" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25644
+ Processing by AuthenticationsController#callback as HTML
25645
+ Parameters: {"code"=>"8141b8b33d554b28e27945ab8d3771d5699478f5dd62f6bfccd5b17ec1b15d4c", "state"=>"9ba5460e9926be533ee1db12a5425450ee7960f786852a31"}
25646
+ Authenticating with gds_sso strategy
25647
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25648
+  (0.1ms) begin transaction
25649
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25650
+ - signin
25651
+ ' WHERE "users"."id" = 5
25652
+  (8.5ms) commit transaction
25653
+  (0.0ms) begin transaction
25654
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25655
+ - signin
25656
+ ' WHERE "users"."id" = 5
25657
+  (1.8ms) commit transaction
25658
+ Redirected to http://www.example-client.com/restricted
25659
+ Completed 302 Found in 17ms (ActiveRecord: 11.5ms)
25660
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25661
+ Processing by ExampleController#restricted as HTML
25662
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25663
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
25664
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 07:36:07 +0000
25665
+ Processing by ExampleController#restricted as HTML
25666
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25667
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
25668
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25669
+ Processing by ExampleController#restricted as JSON
25670
+ Authenticating with gds_sso_api_access strategy
25671
+ Completed in 13ms
25672
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25673
+ Processing by ExampleController#restricted as JSON
25674
+ Authenticating with gds_sso_api_access strategy
25675
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
25676
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25677
+ Processing by ExampleController#this_requires_signin_permission as JSON
25678
+ Authenticating with gds_sso_api_access strategy
25679
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
25680
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25681
+ Processing by ExampleController#restricted as JSON
25682
+ Authenticating with gds_bearer_token strategy
25683
+ Completed in 9ms
25684
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25685
+ Processing by ExampleController#restricted as JSON
25686
+ Authenticating with gds_bearer_token strategy
25687
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25688
+  (0.1ms) begin transaction
25689
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25690
+ - signin
25691
+ ' WHERE "users"."id" = 5
25692
+  (9.6ms) commit transaction
25693
+  (0.1ms) begin transaction
25694
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25695
+ - signin
25696
+ ' WHERE "users"."id" = 5
25697
+  (2.4ms) commit transaction
25698
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 13.0ms)
25699
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 11:41:07 +0000
25700
+ Processing by ExampleController#this_requires_signin_permission as JSON
25701
+ Authenticating with gds_bearer_token strategy
25702
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25703
+  (0.1ms) begin transaction
25704
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25705
+ - signin
25706
+ ' WHERE "users"."id" = 5
25707
+  (21.3ms) commit transaction
25708
+  (0.1ms) begin transaction
25709
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25710
+ - signin
25711
+ ' WHERE "users"."id" = 5
25712
+  (1.8ms) commit transaction
25713
+ Completed 200 OK in 68ms (Views: 0.7ms | ActiveRecord: 24.2ms)
25714
+ Connecting to database specified by database.yml
25715
+  (3.1ms) select sqlite_version(*)
25716
+  (22.5ms) DROP TABLE "users"
25717
+  (2.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) 
25718
+  (0.1ms) begin transaction
25719
+ SQL (19.5ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33030"]]
25720
+  (12.2ms) commit transaction
25721
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
25722
+ Processing by Api::UserController#update as HTML
25723
+ Parameters: {"uid"=>"a1s2d33030"}
25724
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.1ms)
25725
+ Completed 403 Forbidden in 134ms (Views: 133.1ms | ActiveRecord: 0.0ms)
25726
+  (0.1ms) begin transaction
25727
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3423"]]
25728
+  (6.1ms) commit transaction
25729
+ Processing by Api::UserController#update as HTML
25730
+ Parameters: {"uid"=>"a1s2d3423"}
25731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3423' LIMIT 1
25732
+  (0.1ms) begin transaction
25733
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
25734
+ - signin
25735
+ - new permission
25736
+ ' WHERE "users"."id" = 2
25737
+  (2.5ms) commit transaction
25738
+ Completed 200 OK in 22ms (ActiveRecord: 3.2ms)
25739
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
25740
+  (0.1ms) begin transaction
25741
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37891"]]
25742
+  (9.0ms) commit transaction
25743
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
25744
+ Processing by Api::UserController#reauth as HTML
25745
+ Parameters: {"uid"=>"a1s2d37891"}
25746
+ Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
25747
+  (0.1ms) begin transaction
25748
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37496"]]
25749
+  (9.6ms) commit transaction
25750
+ Processing by Api::UserController#reauth as HTML
25751
+ Parameters: {"uid"=>"a1s2d37496"}
25752
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37496' LIMIT 1
25753
+  (0.0ms) begin transaction
25754
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25755
+ - signin
25756
+ ' WHERE "users"."id" = 4
25757
+  (4.7ms) commit transaction
25758
+ Completed 200 OK in 7ms (ActiveRecord: 5.2ms)
25759
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
25760
+ Started GET "/" for 127.0.0.1 at 2013-04-11 16:53:45 +0000
25761
+ Processing by ExampleController#index as HTML
25762
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
25763
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:45 +0000
25764
+ Processing by ExampleController#restricted as HTML
25765
+ Authenticating with gds_sso strategy
25766
+ Completed in 67ms
25767
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:45 +0000
25768
+ Started GET "/auth/gds/callback?code=66b582758b9cdae3e4c3d21f52a1aee53e723bf484ea966e07586db5ad0d18f5&state=6e744027ef85b24fbed71217dd34b6be08f14370b42e5154" for 127.0.0.1 at 2013-04-11 16:53:46 +0000
25769
+ Processing by AuthenticationsController#callback as HTML
25770
+ Parameters: {"code"=>"66b582758b9cdae3e4c3d21f52a1aee53e723bf484ea966e07586db5ad0d18f5", "state"=>"6e744027ef85b24fbed71217dd34b6be08f14370b42e5154"}
25771
+ Authenticating with gds_sso strategy
25772
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25773
+  (0.1ms) begin transaction
25774
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
25775
+  (16.4ms) commit transaction
25776
+  (0.1ms) begin transaction
25777
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25778
+ - signin
25779
+ ' WHERE "users"."id" = 5
25780
+  (2.6ms) commit transaction
25781
+ Redirected to http://www.example-client.com/restricted
25782
+ Completed 302 Found in 37ms (ActiveRecord: 20.1ms)
25783
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25784
+ Processing by ExampleController#restricted as HTML
25785
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25786
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
25787
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25788
+ Processing by ExampleController#restricted as HTML
25789
+ Authenticating with gds_sso strategy
25790
+ Completed in 0ms
25791
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25792
+ Started GET "/auth/gds/callback?code=952fa9f1fb1a7fffeefbce722a4f60c82346ba74276fc5419a02bb64c96e7e55&state=598f9d2152d5bf4178bebf7b8060f64bd1d7122492b97716" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25793
+ Processing by AuthenticationsController#callback as HTML
25794
+ Parameters: {"code"=>"952fa9f1fb1a7fffeefbce722a4f60c82346ba74276fc5419a02bb64c96e7e55", "state"=>"598f9d2152d5bf4178bebf7b8060f64bd1d7122492b97716"}
25795
+ Authenticating with gds_sso strategy
25796
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25797
+  (0.1ms) begin transaction
25798
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25799
+ - signin
25800
+ ' WHERE "users"."id" = 5
25801
+  (6.2ms) commit transaction
25802
+  (0.0ms) begin transaction
25803
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25804
+ - signin
25805
+ ' WHERE "users"."id" = 5
25806
+  (2.7ms) commit transaction
25807
+ Redirected to http://www.example-client.com/restricted
25808
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
25809
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25810
+ Processing by ExampleController#restricted as HTML
25811
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25812
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)
25813
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25814
+ Processing by ExampleController#restricted as HTML
25815
+ Authenticating with gds_sso strategy
25816
+ Completed in 0ms
25817
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25818
+ Started GET "/auth/gds/callback?code=32f60fe4b33a87dbd9447580eab734a72476a9c1be0491a3171a4960cbaa79df&state=bca8573a2ea07af33b3aa25980fa408298558986890947e6" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25819
+ Processing by AuthenticationsController#callback as HTML
25820
+ Parameters: {"code"=>"32f60fe4b33a87dbd9447580eab734a72476a9c1be0491a3171a4960cbaa79df", "state"=>"bca8573a2ea07af33b3aa25980fa408298558986890947e6"}
25821
+ Authenticating with gds_sso strategy
25822
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25823
+  (0.1ms) begin transaction
25824
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25825
+ - signin
25826
+ ' WHERE "users"."id" = 5
25827
+  (7.7ms) commit transaction
25828
+  (0.0ms) begin transaction
25829
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25830
+ - signin
25831
+ ' WHERE "users"."id" = 5
25832
+  (2.5ms) commit transaction
25833
+ Redirected to http://www.example-client.com/restricted
25834
+ Completed 302 Found in 16ms (ActiveRecord: 11.1ms)
25835
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25836
+ Processing by ExampleController#restricted as HTML
25837
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25838
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
25839
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25840
+ Processing by ExampleController#this_requires_signin_permission as HTML
25841
+ Authenticating with gds_sso strategy
25842
+ Completed in 1ms
25843
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:47 +0000
25844
+ Started GET "/auth/gds/callback?code=17ffb81921fd56c4125c996a82d91820c8117e9d6d48a189e53c2e1720aaaeb7&state=767f03a6cdb06fbf587d5a2fd9ed97ec7cd4d961eb4a4a50" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25845
+ Processing by AuthenticationsController#callback as HTML
25846
+ Parameters: {"code"=>"17ffb81921fd56c4125c996a82d91820c8117e9d6d48a189e53c2e1720aaaeb7", "state"=>"767f03a6cdb06fbf587d5a2fd9ed97ec7cd4d961eb4a4a50"}
25847
+ Authenticating with gds_sso strategy
25848
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25849
+  (0.1ms) begin transaction
25850
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25851
+ - signin
25852
+ ' WHERE "users"."id" = 5
25853
+  (7.3ms) commit transaction
25854
+  (0.1ms) begin transaction
25855
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25856
+ - signin
25857
+ ' WHERE "users"."id" = 5
25858
+  (1.8ms) commit transaction
25859
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25860
+ Completed 302 Found in 16ms (ActiveRecord: 10.1ms)
25861
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25862
+ Processing by ExampleController#this_requires_signin_permission as HTML
25863
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25864
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
25865
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25866
+ Processing by ExampleController#this_requires_signin_permission as HTML
25867
+ Authenticating with gds_sso strategy
25868
+ Completed in 0ms
25869
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25870
+ Started GET "/auth/gds/callback?code=5ac399f653eb1d718cef7864afe5cd09d86a14a1f8d3be63cb4258bf9f0f6d12&state=f027b37f3a7e7bd4660fc88debdf8de07d7add81476652f3" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25871
+ Processing by AuthenticationsController#callback as HTML
25872
+ Parameters: {"code"=>"5ac399f653eb1d718cef7864afe5cd09d86a14a1f8d3be63cb4258bf9f0f6d12", "state"=>"f027b37f3a7e7bd4660fc88debdf8de07d7add81476652f3"}
25873
+ Authenticating with gds_sso strategy
25874
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25875
+  (0.1ms) begin transaction
25876
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25877
+ - signin
25878
+ ' WHERE "users"."id" = 5
25879
+  (9.6ms) commit transaction
25880
+  (0.0ms) begin transaction
25881
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25882
+ - signin
25883
+ ' WHERE "users"."id" = 5
25884
+  (1.8ms) commit transaction
25885
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25886
+ Completed 302 Found in 17ms (ActiveRecord: 12.2ms)
25887
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25888
+ Processing by ExampleController#this_requires_signin_permission as HTML
25889
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25890
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
25891
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25892
+ Processing by ExampleController#restricted as HTML
25893
+ Authenticating with gds_sso strategy
25894
+ Completed in 0ms
25895
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25896
+ Started GET "/auth/gds/callback?code=90e7682e0123985a19a17a64220f93a2a4e830c908a95805a36a36376e441909&state=260004b4321536255ce5da2c61fe4585307ac46d9a49f8be" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25897
+ Processing by AuthenticationsController#callback as HTML
25898
+ Parameters: {"code"=>"90e7682e0123985a19a17a64220f93a2a4e830c908a95805a36a36376e441909", "state"=>"260004b4321536255ce5da2c61fe4585307ac46d9a49f8be"}
25899
+ Authenticating with gds_sso strategy
25900
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25901
+  (0.1ms) begin transaction
25902
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25903
+ - signin
25904
+ ' WHERE "users"."id" = 5
25905
+  (6.5ms) commit transaction
25906
+  (0.1ms) begin transaction
25907
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25908
+ - signin
25909
+ ' WHERE "users"."id" = 5
25910
+  (1.8ms) commit transaction
25911
+ Redirected to http://www.example-client.com/restricted
25912
+ Completed 302 Found in 16ms (ActiveRecord: 9.4ms)
25913
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25914
+ Processing by ExampleController#restricted as HTML
25915
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25916
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
25917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25918
+  (0.1ms) begin transaction
25919
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25920
+ - signin
25921
+ ' WHERE "users"."id" = 5
25922
+  (2.0ms) commit transaction
25923
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25924
+ Processing by ExampleController#restricted as HTML
25925
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25926
+ Filter chain halted as :authenticate_user! rendered or redirected
25927
+ Completed 403 Forbidden in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)
25928
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-11 16:53:48 +0000
25929
+ Processing by AuthenticationsController#sign_out as HTML
25930
+ Redirected to http://localhost:4567/users/sign_out
25931
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
25932
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25933
+ Processing by ExampleController#restricted as HTML
25934
+ Authenticating with gds_sso strategy
25935
+ Completed in 0ms
25936
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25937
+ Started GET "/auth/gds/callback?code=aee150b6c69153ca8e0f5a4ffc46dd521c8ab967f60333bd3a6954408bed48cd&state=6f29a5162cd270c0aa2f8e05fb62d0ebfbf17c2b15d30814" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25938
+ Processing by AuthenticationsController#callback as HTML
25939
+ Parameters: {"code"=>"aee150b6c69153ca8e0f5a4ffc46dd521c8ab967f60333bd3a6954408bed48cd", "state"=>"6f29a5162cd270c0aa2f8e05fb62d0ebfbf17c2b15d30814"}
25940
+ Authenticating with gds_sso strategy
25941
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25942
+  (0.1ms) begin transaction
25943
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25944
+ - signin
25945
+ ' WHERE "users"."id" = 5
25946
+  (8.8ms) commit transaction
25947
+  (0.0ms) begin transaction
25948
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25949
+ - signin
25950
+ ' WHERE "users"."id" = 5
25951
+  (1.9ms) commit transaction
25952
+ Redirected to http://www.example-client.com/restricted
25953
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
25954
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25955
+ Processing by ExampleController#restricted as HTML
25956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25957
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
25958
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25959
+ Processing by ExampleController#restricted as HTML
25960
+ Authenticating with gds_sso strategy
25961
+ Completed in 0ms
25962
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25963
+ Started GET "/auth/gds/callback?code=fae1430fea786b81c8c05a5b35030f69abde8c63f383e8213f2cfda6fefdd67e&state=a8c250384bd0fa3bb51c4fcb91ff9e6d09493bc3a0983e98" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25964
+ Processing by AuthenticationsController#callback as HTML
25965
+ Parameters: {"code"=>"fae1430fea786b81c8c05a5b35030f69abde8c63f383e8213f2cfda6fefdd67e", "state"=>"a8c250384bd0fa3bb51c4fcb91ff9e6d09493bc3a0983e98"}
25966
+ Authenticating with gds_sso strategy
25967
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25968
+  (0.1ms) begin transaction
25969
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25970
+ - signin
25971
+ ' WHERE "users"."id" = 5
25972
+  (16.0ms) commit transaction
25973
+  (0.1ms) begin transaction
25974
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25975
+ - signin
25976
+ ' WHERE "users"."id" = 5
25977
+  (1.8ms) commit transaction
25978
+ Redirected to http://www.example-client.com/restricted
25979
+ Completed 302 Found in 25ms (ActiveRecord: 18.8ms)
25980
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
25981
+ Processing by ExampleController#restricted as HTML
25982
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25983
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
25984
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 12:58:49 +0000
25985
+ Processing by ExampleController#restricted as HTML
25986
+ Authenticating with gds_sso strategy
25987
+ Completed in 0ms
25988
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 12:58:49 +0000
25989
+ Started GET "/auth/gds/callback?code=51e98a10d517748dc8defeba03ac2f7932f72a4cb84c1abe756b9ab4433262f6&state=7df622f04e7b9ca123ccad607ac1831659acbf3091fc2723" for 127.0.0.1 at 2013-04-12 12:58:49 +0000
25990
+ Processing by AuthenticationsController#callback as HTML
25991
+ Parameters: {"code"=>"51e98a10d517748dc8defeba03ac2f7932f72a4cb84c1abe756b9ab4433262f6", "state"=>"7df622f04e7b9ca123ccad607ac1831659acbf3091fc2723"}
25992
+ Authenticating with gds_sso strategy
25993
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25994
+  (0.1ms) begin transaction
25995
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25996
+ - signin
25997
+ ' WHERE "users"."id" = 5
25998
+  (7.0ms) commit transaction
25999
+  (0.1ms) begin transaction
26000
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26001
+ - signin
26002
+ ' WHERE "users"."id" = 5
26003
+  (1.8ms) commit transaction
26004
+ Redirected to http://www.example-client.com/restricted
26005
+ Completed 302 Found in 15ms (ActiveRecord: 9.8ms)
26006
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 12:58:49 +0000
26007
+ Processing by ExampleController#restricted as HTML
26008
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26009
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
26010
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
26011
+ Processing by ExampleController#restricted as HTML
26012
+ Authenticating with gds_sso strategy
26013
+ Completed in 1ms
26014
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-11 16:53:49 +0000
26015
+ Started GET "/auth/gds/callback?code=f832da2eb35bad11e727c4a0a32c139880f4d3f1e37f13185923c0e953210b5f&state=6e8cdebac5c19b8dda08155a232e87430e1eeda501bcbed2" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26016
+ Processing by AuthenticationsController#callback as HTML
26017
+ Parameters: {"code"=>"f832da2eb35bad11e727c4a0a32c139880f4d3f1e37f13185923c0e953210b5f", "state"=>"6e8cdebac5c19b8dda08155a232e87430e1eeda501bcbed2"}
26018
+ Authenticating with gds_sso strategy
26019
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26020
+  (0.1ms) begin transaction
26021
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26022
+ - signin
26023
+ ' WHERE "users"."id" = 5
26024
+  (8.3ms) commit transaction
26025
+  (0.0ms) begin transaction
26026
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26027
+ - signin
26028
+ ' WHERE "users"."id" = 5
26029
+  (1.8ms) commit transaction
26030
+ Redirected to http://www.example-client.com/restricted
26031
+ Completed 302 Found in 17ms (ActiveRecord: 11.0ms)
26032
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26033
+ Processing by ExampleController#restricted as HTML
26034
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26035
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
26036
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 12:48:50 +0000
26037
+ Processing by ExampleController#restricted as HTML
26038
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26039
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
26040
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26041
+ Processing by ExampleController#restricted as JSON
26042
+ Authenticating with gds_sso_api_access strategy
26043
+ Completed in 13ms
26044
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26045
+ Processing by ExampleController#restricted as JSON
26046
+ Authenticating with gds_sso_api_access strategy
26047
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
26048
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26049
+ Processing by ExampleController#this_requires_signin_permission as JSON
26050
+ Authenticating with gds_sso_api_access strategy
26051
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
26052
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26053
+ Processing by ExampleController#restricted as JSON
26054
+ Authenticating with gds_bearer_token strategy
26055
+ Completed in 10ms
26056
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26057
+ Processing by ExampleController#restricted as JSON
26058
+ Authenticating with gds_bearer_token strategy
26059
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26060
+  (0.1ms) begin transaction
26061
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26062
+ - signin
26063
+ ' WHERE "users"."id" = 5
26064
+  (9.5ms) commit transaction
26065
+  (0.1ms) begin transaction
26066
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26067
+ - signin
26068
+ ' WHERE "users"."id" = 5
26069
+  (1.9ms) commit transaction
26070
+ Completed 200 OK in 45ms (Views: 0.6ms | ActiveRecord: 12.4ms)
26071
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-11 16:53:50 +0000
26072
+ Processing by ExampleController#this_requires_signin_permission as JSON
26073
+ Authenticating with gds_bearer_token strategy
26074
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26075
+  (0.1ms) begin transaction
26076
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26077
+ - signin
26078
+ ' WHERE "users"."id" = 5
26079
+  (9.8ms) commit transaction
26080
+  (0.1ms) begin transaction
26081
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26082
+ - signin
26083
+ ' WHERE "users"."id" = 5
26084
+  (2.7ms) commit transaction
26085
+ Completed 200 OK in 58ms (Views: 0.7ms | ActiveRecord: 13.4ms)
26086
+ Connecting to database specified by database.yml
26087
+  (3.1ms) select sqlite_version(*)
26088
+  (15.2ms) DROP TABLE "users"
26089
+  (2.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
26090
+  (0.1ms) begin transaction
26091
+ SQL (8.5ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38197"]]
26092
+  (12.1ms) commit transaction
26093
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26094
+ Processing by Api::UserController#update as HTML
26095
+ Parameters: {"uid"=>"a1s2d38197"}
26096
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (4.0ms)
26097
+ Completed 403 Forbidden in 121ms (Views: 120.4ms | ActiveRecord: 0.0ms)
26098
+  (0.1ms) begin transaction
26099
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31568"]]
26100
+  (2.3ms) commit transaction
26101
+ Processing by Api::UserController#update as HTML
26102
+ Parameters: {"uid"=>"a1s2d31568"}
26103
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31568' LIMIT 1
26104
+  (0.1ms) begin transaction
26105
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
26106
+ - signin
26107
+ - new permission
26108
+ ' WHERE "users"."id" = 2
26109
+  (15.0ms) commit transaction
26110
+ Completed 200 OK in 24ms (ActiveRecord: 15.6ms)
26111
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
26112
+  (0.1ms) begin transaction
26113
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36785"]]
26114
+  (4.7ms) commit transaction
26115
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26116
+ Processing by Api::UserController#reauth as HTML
26117
+ Parameters: {"uid"=>"a1s2d36785"}
26118
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
26119
+  (0.1ms) begin transaction
26120
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37943"]]
26121
+  (10.1ms) commit transaction
26122
+ Processing by Api::UserController#reauth as HTML
26123
+ Parameters: {"uid"=>"a1s2d37943"}
26124
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37943' LIMIT 1
26125
+  (0.1ms) begin transaction
26126
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
26127
+ - signin
26128
+ ' WHERE "users"."id" = 4
26129
+  (3.8ms) commit transaction
26130
+ Completed 200 OK in 7ms (ActiveRecord: 4.4ms)
26131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
26132
+ Started GET "/" for 127.0.0.1 at 2013-04-12 16:23:20 +0000
26133
+ Processing by ExampleController#index as HTML
26134
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
26135
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:20 +0000
26136
+ Processing by ExampleController#restricted as HTML
26137
+ Authenticating with gds_sso strategy
26138
+ Completed in 66ms
26139
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:20 +0000
26140
+ Started GET "/auth/gds/callback?code=2f903d7cdfa6251466306400c59293e8a68c2236b1e1169aaa7c4d3c2a300b4d&state=aef6eb52d00493744301b98e0b7c892c0b3af10c64f6f9a7" for 127.0.0.1 at 2013-04-12 16:23:21 +0000
26141
+ Processing by AuthenticationsController#callback as HTML
26142
+ Parameters: {"code"=>"2f903d7cdfa6251466306400c59293e8a68c2236b1e1169aaa7c4d3c2a300b4d", "state"=>"aef6eb52d00493744301b98e0b7c892c0b3af10c64f6f9a7"}
26143
+ Authenticating with gds_sso strategy
26144
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26145
+  (0.1ms) begin transaction
26146
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
26147
+  (7.2ms) commit transaction
26148
+  (0.0ms) begin transaction
26149
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
26150
+ - signin
26151
+ ' WHERE "users"."id" = 5
26152
+  (2.7ms) commit transaction
26153
+ Redirected to http://www.example-client.com/restricted
26154
+ Completed 302 Found in 17ms (ActiveRecord: 10.8ms)
26155
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:21 +0000
26156
+ Processing by ExampleController#restricted as HTML
26157
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26158
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
26159
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:21 +0000
26160
+ Processing by ExampleController#restricted as HTML
26161
+ Authenticating with gds_sso strategy
26162
+ Completed in 0ms
26163
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:21 +0000
26164
+ Started GET "/auth/gds/callback?code=b9412736dadf0965dbcdebddc12f3a864f9b089a9c148fa2fa4fb829066a7865&state=f341790259a60df387fb8fad6c5a92a2b2e77b17f05e89e2" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26165
+ Processing by AuthenticationsController#callback as HTML
26166
+ Parameters: {"code"=>"b9412736dadf0965dbcdebddc12f3a864f9b089a9c148fa2fa4fb829066a7865", "state"=>"f341790259a60df387fb8fad6c5a92a2b2e77b17f05e89e2"}
26167
+ Authenticating with gds_sso strategy
26168
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26169
+  (0.1ms) begin transaction
26170
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26171
+ - signin
26172
+ ' WHERE "users"."id" = 5
26173
+  (8.2ms) commit transaction
26174
+  (0.0ms) begin transaction
26175
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26176
+ - signin
26177
+ ' WHERE "users"."id" = 5
26178
+  (2.0ms) commit transaction
26179
+ Redirected to http://www.example-client.com/restricted
26180
+ Completed 302 Found in 17ms (ActiveRecord: 11.2ms)
26181
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26182
+ Processing by ExampleController#restricted as HTML
26183
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26184
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
26185
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26186
+ Processing by ExampleController#restricted as HTML
26187
+ Authenticating with gds_sso strategy
26188
+ Completed in 0ms
26189
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26190
+ Started GET "/auth/gds/callback?code=f54db9830761f997212c53c6e23a1e1fa83bbd7d8f5b8c20b2762f7f83d08860&state=af79822f5e7bb9f294bd80922fdd9848c6a313963e7b533d" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26191
+ Processing by AuthenticationsController#callback as HTML
26192
+ Parameters: {"code"=>"f54db9830761f997212c53c6e23a1e1fa83bbd7d8f5b8c20b2762f7f83d08860", "state"=>"af79822f5e7bb9f294bd80922fdd9848c6a313963e7b533d"}
26193
+ Authenticating with gds_sso strategy
26194
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26195
+  (0.1ms) begin transaction
26196
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26197
+ - signin
26198
+ ' WHERE "users"."id" = 5
26199
+  (9.5ms) commit transaction
26200
+  (0.1ms) begin transaction
26201
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26202
+ - signin
26203
+ ' WHERE "users"."id" = 5
26204
+  (2.6ms) commit transaction
26205
+ Redirected to http://www.example-client.com/restricted
26206
+ Completed 302 Found in 18ms (ActiveRecord: 13.0ms)
26207
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26208
+ Processing by ExampleController#restricted as HTML
26209
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26210
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
26211
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26212
+ Processing by ExampleController#this_requires_signin_permission as HTML
26213
+ Authenticating with gds_sso strategy
26214
+ Completed in 1ms
26215
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26216
+ Started GET "/auth/gds/callback?code=72e2bb7dda9af95f36ea32971b76229221c3382aea3e9acb07e415d1baa17770&state=c2dccdc833612628175cd84685172c5b921c2990b4c29c27" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26217
+ Processing by AuthenticationsController#callback as HTML
26218
+ Parameters: {"code"=>"72e2bb7dda9af95f36ea32971b76229221c3382aea3e9acb07e415d1baa17770", "state"=>"c2dccdc833612628175cd84685172c5b921c2990b4c29c27"}
26219
+ Authenticating with gds_sso strategy
26220
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26221
+  (0.1ms) begin transaction
26222
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26223
+ - signin
26224
+ ' WHERE "users"."id" = 5
26225
+  (7.3ms) commit transaction
26226
+  (0.1ms) begin transaction
26227
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26228
+ - signin
26229
+ ' WHERE "users"."id" = 5
26230
+  (2.2ms) commit transaction
26231
+ Redirected to http://www.example-client.com/this_requires_signin_permission
26232
+ Completed 302 Found in 17ms (ActiveRecord: 10.6ms)
26233
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26234
+ Processing by ExampleController#this_requires_signin_permission as HTML
26235
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26236
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
26237
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26238
+ Processing by ExampleController#this_requires_signin_permission as HTML
26239
+ Authenticating with gds_sso strategy
26240
+ Completed in 0ms
26241
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:22 +0000
26242
+ Started GET "/auth/gds/callback?code=31ac2de6652a0ca1f1e020c6452ebd0d5731f90a57184b330eb34dea1c5b6116&state=9d5e20c62bcb487894bd71a559403943b9cde46abdaba550" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26243
+ Processing by AuthenticationsController#callback as HTML
26244
+ Parameters: {"code"=>"31ac2de6652a0ca1f1e020c6452ebd0d5731f90a57184b330eb34dea1c5b6116", "state"=>"9d5e20c62bcb487894bd71a559403943b9cde46abdaba550"}
26245
+ Authenticating with gds_sso strategy
26246
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26247
+  (0.1ms) begin transaction
26248
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26249
+ - signin
26250
+ ' WHERE "users"."id" = 5
26251
+  (10.2ms) commit transaction
26252
+  (0.0ms) begin transaction
26253
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26254
+ - signin
26255
+ ' WHERE "users"."id" = 5
26256
+  (1.9ms) commit transaction
26257
+ Redirected to http://www.example-client.com/this_requires_signin_permission
26258
+ Completed 302 Found in 17ms (ActiveRecord: 13.0ms)
26259
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26260
+ Processing by ExampleController#this_requires_signin_permission as HTML
26261
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26262
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
26263
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26264
+ Processing by ExampleController#restricted as HTML
26265
+ Authenticating with gds_sso strategy
26266
+ Completed in 1ms
26267
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26268
+ Started GET "/auth/gds/callback?code=405cd044bba812bb564122d91bb08e913736a0b526a18fd6634aa614b1fde0f8&state=7e87c7b95134e81a24a87f637cbb0c695ad5bc30df0136c6" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26269
+ Processing by AuthenticationsController#callback as HTML
26270
+ Parameters: {"code"=>"405cd044bba812bb564122d91bb08e913736a0b526a18fd6634aa614b1fde0f8", "state"=>"7e87c7b95134e81a24a87f637cbb0c695ad5bc30df0136c6"}
26271
+ Authenticating with gds_sso strategy
26272
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26273
+  (0.1ms) begin transaction
26274
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26275
+ - signin
26276
+ ' WHERE "users"."id" = 5
26277
+  (8.8ms) commit transaction
26278
+  (0.0ms) begin transaction
26279
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26280
+ - signin
26281
+ ' WHERE "users"."id" = 5
26282
+  (1.9ms) commit transaction
26283
+ Redirected to http://www.example-client.com/restricted
26284
+ Completed 302 Found in 18ms (ActiveRecord: 11.8ms)
26285
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26286
+ Processing by ExampleController#restricted as HTML
26287
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26288
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
26289
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26290
+  (0.1ms) begin transaction
26291
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
26292
+ - signin
26293
+ ' WHERE "users"."id" = 5
26294
+  (2.1ms) commit transaction
26295
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26296
+ Processing by ExampleController#restricted as HTML
26297
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26298
+ Filter chain halted as :authenticate_user! rendered or redirected
26299
+ Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
26300
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26301
+ Processing by AuthenticationsController#sign_out as HTML
26302
+ Redirected to http://localhost:4567/users/sign_out
26303
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
26304
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26305
+ Processing by ExampleController#restricted as HTML
26306
+ Authenticating with gds_sso strategy
26307
+ Completed in 0ms
26308
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:23 +0000
26309
+ Started GET "/auth/gds/callback?code=38899ba951a5d75ad2df8d446128cdb9d31fadfdbf65a97a5d570f0564a662f3&state=7a97749d97a08f48aef02956a5f096c33ae558c041af5a39" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26310
+ Processing by AuthenticationsController#callback as HTML
26311
+ Parameters: {"code"=>"38899ba951a5d75ad2df8d446128cdb9d31fadfdbf65a97a5d570f0564a662f3", "state"=>"7a97749d97a08f48aef02956a5f096c33ae558c041af5a39"}
26312
+ Authenticating with gds_sso strategy
26313
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26314
+  (0.1ms) begin transaction
26315
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26316
+ - signin
26317
+ ' WHERE "users"."id" = 5
26318
+  (8.5ms) commit transaction
26319
+  (0.0ms) begin transaction
26320
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
26321
+ - signin
26322
+ ' WHERE "users"."id" = 5
26323
+  (2.6ms) commit transaction
26324
+ Redirected to http://www.example-client.com/restricted
26325
+ Completed 302 Found in 17ms (ActiveRecord: 12.0ms)
26326
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26327
+ Processing by ExampleController#restricted as HTML
26328
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26329
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
26330
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26331
+ Processing by ExampleController#restricted as HTML
26332
+ Authenticating with gds_sso strategy
26333
+ Completed in 0ms
26334
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26335
+ Started GET "/auth/gds/callback?code=922a50c6824a9ca98a8f23a05788c142752b83a814ae7917e47518010d1f82c0&state=e9e065b0e2cb3917b149e9643372999700dd468ca26fab63" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26336
+ Processing by AuthenticationsController#callback as HTML
26337
+ Parameters: {"code"=>"922a50c6824a9ca98a8f23a05788c142752b83a814ae7917e47518010d1f82c0", "state"=>"e9e065b0e2cb3917b149e9643372999700dd468ca26fab63"}
26338
+ Authenticating with gds_sso strategy
26339
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26340
+  (0.1ms) begin transaction
26341
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26342
+ - signin
26343
+ ' WHERE "users"."id" = 5
26344
+  (7.9ms) commit transaction
26345
+  (0.1ms) begin transaction
26346
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26347
+ - signin
26348
+ ' WHERE "users"."id" = 5
26349
+  (2.0ms) commit transaction
26350
+ Redirected to http://www.example-client.com/restricted
26351
+ Completed 302 Found in 17ms (ActiveRecord: 10.9ms)
26352
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26353
+ Processing by ExampleController#restricted as HTML
26354
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26355
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
26356
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-13 12:28:24 +0000
26357
+ Processing by ExampleController#restricted as HTML
26358
+ Authenticating with gds_sso strategy
26359
+ Completed in 0ms
26360
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-13 12:28:24 +0000
26361
+ Started GET "/auth/gds/callback?code=907e5057bc937e1c26111676e043b345f443ef54d3d92e6a158f14a10f473973&state=c9c73ef236f2687cc6c0ee0edb62e61ad919e2db75680e89" for 127.0.0.1 at 2013-04-13 12:28:24 +0000
26362
+ Processing by AuthenticationsController#callback as HTML
26363
+ Parameters: {"code"=>"907e5057bc937e1c26111676e043b345f443ef54d3d92e6a158f14a10f473973", "state"=>"c9c73ef236f2687cc6c0ee0edb62e61ad919e2db75680e89"}
26364
+ Authenticating with gds_sso strategy
26365
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26366
+  (0.1ms) begin transaction
26367
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26368
+ - signin
26369
+ ' WHERE "users"."id" = 5
26370
+  (9.8ms) commit transaction
26371
+  (0.1ms) begin transaction
26372
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26373
+ - signin
26374
+ ' WHERE "users"."id" = 5
26375
+  (1.9ms) commit transaction
26376
+ Redirected to http://www.example-client.com/restricted
26377
+ Completed 302 Found in 17ms (ActiveRecord: 12.6ms)
26378
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-13 12:28:24 +0000
26379
+ Processing by ExampleController#restricted as HTML
26380
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26381
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
26382
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26383
+ Processing by ExampleController#restricted as HTML
26384
+ Authenticating with gds_sso strategy
26385
+ Completed in 0ms
26386
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26387
+ Started GET "/auth/gds/callback?code=d2387aca84beb1a3f01fa606847c7719dacd212703f2cfa6bc9414fa468e0bd0&state=a8d3e2ab4e94712cb2221a347d21f7979052a3a2090f3303" for 127.0.0.1 at 2013-04-12 16:23:24 +0000
26388
+ Processing by AuthenticationsController#callback as HTML
26389
+ Parameters: {"code"=>"d2387aca84beb1a3f01fa606847c7719dacd212703f2cfa6bc9414fa468e0bd0", "state"=>"a8d3e2ab4e94712cb2221a347d21f7979052a3a2090f3303"}
26390
+ Authenticating with gds_sso strategy
26391
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26392
+  (0.1ms) begin transaction
26393
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26394
+ - signin
26395
+ ' WHERE "users"."id" = 5
26396
+  (8.3ms) commit transaction
26397
+  (0.0ms) begin transaction
26398
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26399
+ - signin
26400
+ ' WHERE "users"."id" = 5
26401
+  (2.5ms) commit transaction
26402
+ Redirected to http://www.example-client.com/restricted
26403
+ Completed 302 Found in 17ms (ActiveRecord: 11.9ms)
26404
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26405
+ Processing by ExampleController#restricted as HTML
26406
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26407
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
26408
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-13 12:18:25 +0000
26409
+ Processing by ExampleController#restricted as HTML
26410
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26411
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
26412
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26413
+ Processing by ExampleController#restricted as JSON
26414
+ Authenticating with gds_sso_api_access strategy
26415
+ Completed in 16ms
26416
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26417
+ Processing by ExampleController#restricted as JSON
26418
+ Authenticating with gds_sso_api_access strategy
26419
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
26420
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26421
+ Processing by ExampleController#this_requires_signin_permission as JSON
26422
+ Authenticating with gds_sso_api_access strategy
26423
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
26424
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26425
+ Processing by ExampleController#restricted as JSON
26426
+ Authenticating with gds_bearer_token strategy
26427
+ Completed in 9ms
26428
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26429
+ Processing by ExampleController#restricted as JSON
26430
+ Authenticating with gds_bearer_token strategy
26431
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26432
+  (0.1ms) begin transaction
26433
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26434
+ - signin
26435
+ ' WHERE "users"."id" = 5
26436
+  (9.9ms) commit transaction
26437
+  (0.1ms) begin transaction
26438
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26439
+ - signin
26440
+ ' WHERE "users"."id" = 5
26441
+  (2.5ms) commit transaction
26442
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 13.3ms)
26443
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-12 16:23:25 +0000
26444
+ Processing by ExampleController#this_requires_signin_permission as JSON
26445
+ Authenticating with gds_bearer_token strategy
26446
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26447
+  (0.1ms) begin transaction
26448
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26449
+ - signin
26450
+ ' WHERE "users"."id" = 5
26451
+  (9.3ms) commit transaction
26452
+  (0.0ms) begin transaction
26453
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26454
+ - signin
26455
+ ' WHERE "users"."id" = 5
26456
+  (2.8ms) commit transaction
26457
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 13.0ms)
26458
+ Connecting to database specified by database.yml
26459
+  (3.4ms) select sqlite_version(*)
26460
+  (8.1ms) DROP TABLE "users"
26461
+  (2.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) 
26462
+  (0.1ms) begin transaction
26463
+ SQL (8.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34524"]]
26464
+  (3.2ms) commit transaction
26465
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26466
+ Processing by Api::UserController#update as HTML
26467
+ Parameters: {"uid"=>"a1s2d34524"}
26468
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.8ms)
26469
+ Completed 403 Forbidden in 59ms (Views: 58.3ms | ActiveRecord: 0.0ms)
26470
+  (0.1ms) begin transaction
26471
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38725"]]
26472
+  (2.4ms) commit transaction
26473
+ Processing by Api::UserController#update as HTML
26474
+ Parameters: {"uid"=>"a1s2d38725"}
26475
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38725' LIMIT 1
26476
+  (0.1ms) begin transaction
26477
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
26478
+ - signin
26479
+ - new permission
26480
+ ' WHERE "users"."id" = 2
26481
+  (1.9ms) commit transaction
26482
+ Completed 200 OK in 10ms (ActiveRecord: 2.5ms)
26483
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
26484
+  (0.1ms) begin transaction
26485
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33268"]]
26486
+  (1.8ms) commit transaction
26487
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26488
+ Processing by Api::UserController#reauth as HTML
26489
+ Parameters: {"uid"=>"a1s2d33268"}
26490
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
26491
+  (0.1ms) begin transaction
26492
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3326"]]
26493
+  (2.5ms) commit transaction
26494
+ Processing by Api::UserController#reauth as HTML
26495
+ Parameters: {"uid"=>"a1s2d3326"}
26496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3326' LIMIT 1
26497
+  (0.0ms) begin transaction
26498
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
26499
+ - signin
26500
+ ' WHERE "users"."id" = 4
26501
+  (1.8ms) commit transaction
26502
+ Completed 200 OK in 4ms (ActiveRecord: 2.2ms)
26503
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
26504
+ Started GET "/" for 127.0.0.1 at 2013-04-17 11:44:05 +0000
26505
+ Processing by ExampleController#index as HTML
26506
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
26507
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:05 +0000
26508
+ Processing by ExampleController#restricted as HTML
26509
+ Authenticating with gds_sso strategy
26510
+ Completed in 65ms
26511
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:05 +0000
26512
+ Started GET "/auth/gds/callback?code=cd17e9e335f791a8f07b73f9f19f43037c91c1815152b833945ec29bb5422c79&state=3871c798e5a343c3009e1665b3a790d74516483eb5b8f72f" for 127.0.0.1 at 2013-04-17 11:44:06 +0000
26513
+ Processing by AuthenticationsController#callback as HTML
26514
+ Parameters: {"code"=>"cd17e9e335f791a8f07b73f9f19f43037c91c1815152b833945ec29bb5422c79", "state"=>"3871c798e5a343c3009e1665b3a790d74516483eb5b8f72f"}
26515
+ Authenticating with gds_sso strategy
26516
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26517
+  (0.1ms) begin transaction
26518
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
26519
+  (7.0ms) commit transaction
26520
+  (0.1ms) begin transaction
26521
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
26522
+ - signin
26523
+ ' WHERE "users"."id" = 5
26524
+  (1.8ms) commit transaction
26525
+ Redirected to http://www.example-client.com/restricted
26526
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
26527
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26528
+ Processing by ExampleController#restricted as HTML
26529
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26530
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
26531
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26532
+ Processing by ExampleController#restricted as HTML
26533
+ Authenticating with gds_sso strategy
26534
+ Completed in 0ms
26535
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26536
+ Started GET "/auth/gds/callback?code=523f3d4452f995c6d1d0ca0049f84d40cc477201c453f49558f164ea87dac2bb&state=a9cf97155df53995241babd5c51f30249023da4f16b6323c" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26537
+ Processing by AuthenticationsController#callback as HTML
26538
+ Parameters: {"code"=>"523f3d4452f995c6d1d0ca0049f84d40cc477201c453f49558f164ea87dac2bb", "state"=>"a9cf97155df53995241babd5c51f30249023da4f16b6323c"}
26539
+ Authenticating with gds_sso strategy
26540
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26541
+  (0.1ms) begin transaction
26542
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26543
+ - signin
26544
+ ' WHERE "users"."id" = 5
26545
+  (7.5ms) commit transaction
26546
+  (0.1ms) begin transaction
26547
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26548
+ - signin
26549
+ ' WHERE "users"."id" = 5
26550
+  (1.8ms) commit transaction
26551
+ Redirected to http://www.example-client.com/restricted
26552
+ Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
26553
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26554
+ Processing by ExampleController#restricted as HTML
26555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26556
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
26557
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26558
+ Processing by ExampleController#restricted as HTML
26559
+ Authenticating with gds_sso strategy
26560
+ Completed in 0ms
26561
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26562
+ Started GET "/auth/gds/callback?code=ebb97a21c261ac8781267af6a6964fcd332d3ae741f56564081cdd5267370c4f&state=991c82299091f0d2e0d6c63b7e7a7cb3c8bc7040bb932452" for 127.0.0.1 at 2013-04-17 11:44:07 +0000
26563
+ Processing by AuthenticationsController#callback as HTML
26564
+ Parameters: {"code"=>"ebb97a21c261ac8781267af6a6964fcd332d3ae741f56564081cdd5267370c4f", "state"=>"991c82299091f0d2e0d6c63b7e7a7cb3c8bc7040bb932452"}
26565
+ Authenticating with gds_sso strategy
26566
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26567
+  (0.1ms) begin transaction
26568
+  (0.4ms) UPDATE "users" SET "permissions" = '---
26569
+ - signin
26570
+ ' WHERE "users"."id" = 5
26571
+  (6.9ms) commit transaction
26572
+  (0.1ms) begin transaction
26573
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26574
+ - signin
26575
+ ' WHERE "users"."id" = 5
26576
+  (1.9ms) commit transaction
26577
+ Redirected to http://www.example-client.com/restricted
26578
+ Completed 302 Found in 16ms (ActiveRecord: 9.9ms)
26579
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26580
+ Processing by ExampleController#restricted as HTML
26581
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26582
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
26583
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26584
+ Processing by ExampleController#this_requires_signin_permission as HTML
26585
+ Authenticating with gds_sso strategy
26586
+ Completed in 1ms
26587
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26588
+ Started GET "/auth/gds/callback?code=6d918c497b24357124b5235b89e4b60bda6cc41fe0d642c2eef4fe2458a5e029&state=6dee6bcb6e9e746f3219d826be07fb805a6bcce9d3b2dd9f" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26589
+ Processing by AuthenticationsController#callback as HTML
26590
+ Parameters: {"code"=>"6d918c497b24357124b5235b89e4b60bda6cc41fe0d642c2eef4fe2458a5e029", "state"=>"6dee6bcb6e9e746f3219d826be07fb805a6bcce9d3b2dd9f"}
26591
+ Authenticating with gds_sso strategy
26592
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26593
+  (0.1ms) begin transaction
26594
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26595
+ - signin
26596
+ ' WHERE "users"."id" = 5
26597
+  (7.0ms) commit transaction
26598
+  (0.1ms) begin transaction
26599
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26600
+ - signin
26601
+ ' WHERE "users"."id" = 5
26602
+  (2.5ms) commit transaction
26603
+ Redirected to http://www.example-client.com/this_requires_signin_permission
26604
+ Completed 302 Found in 16ms (ActiveRecord: 10.5ms)
26605
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26606
+ Processing by ExampleController#this_requires_signin_permission as HTML
26607
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26608
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
26609
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26610
+ Processing by ExampleController#this_requires_signin_permission as HTML
26611
+ Authenticating with gds_sso strategy
26612
+ Completed in 0ms
26613
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26614
+ Started GET "/auth/gds/callback?code=bb900e403a82621a396fc924521b11546bdf15db2fa886d29390bb796900204a&state=ccfe25860b67acab11dcbb342728749f00bc1b77b524224d" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26615
+ Processing by AuthenticationsController#callback as HTML
26616
+ Parameters: {"code"=>"bb900e403a82621a396fc924521b11546bdf15db2fa886d29390bb796900204a", "state"=>"ccfe25860b67acab11dcbb342728749f00bc1b77b524224d"}
26617
+ Authenticating with gds_sso strategy
26618
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26619
+  (0.1ms) begin transaction
26620
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26621
+ - signin
26622
+ ' WHERE "users"."id" = 5
26623
+  (6.1ms) commit transaction
26624
+  (0.0ms) begin transaction
26625
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26626
+ - signin
26627
+ ' WHERE "users"."id" = 5
26628
+  (2.3ms) commit transaction
26629
+ Redirected to http://www.example-client.com/this_requires_signin_permission
26630
+ Completed 302 Found in 14ms (ActiveRecord: 9.7ms)
26631
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26632
+ Processing by ExampleController#this_requires_signin_permission as HTML
26633
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26634
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
26635
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26636
+ Processing by ExampleController#restricted as HTML
26637
+ Authenticating with gds_sso strategy
26638
+ Completed in 0ms
26639
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:08 +0000
26640
+ Started GET "/auth/gds/callback?code=f2b29009d7ca62c7c638a6759a08fdd53ab7888d6549d5f07b2d62d5f1ee6075&state=f48c309fa2eebb9a0fa9c3867611e46304e433bc290c2307" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26641
+ Processing by AuthenticationsController#callback as HTML
26642
+ Parameters: {"code"=>"f2b29009d7ca62c7c638a6759a08fdd53ab7888d6549d5f07b2d62d5f1ee6075", "state"=>"f48c309fa2eebb9a0fa9c3867611e46304e433bc290c2307"}
26643
+ Authenticating with gds_sso strategy
26644
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26645
+  (0.1ms) begin transaction
26646
+  (0.4ms) UPDATE "users" SET "permissions" = '---
26647
+ - signin
26648
+ ' WHERE "users"."id" = 5
26649
+  (9.5ms) commit transaction
26650
+  (0.1ms) begin transaction
26651
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26652
+ - signin
26653
+ ' WHERE "users"."id" = 5
26654
+  (1.9ms) commit transaction
26655
+ Redirected to http://www.example-client.com/restricted
26656
+ Completed 302 Found in 18ms (ActiveRecord: 12.5ms)
26657
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26658
+ Processing by ExampleController#restricted as HTML
26659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26660
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
26661
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26662
+  (0.1ms) begin transaction
26663
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
26664
+ - signin
26665
+ ' WHERE "users"."id" = 5
26666
+  (1.8ms) commit transaction
26667
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26668
+ Processing by ExampleController#restricted as HTML
26669
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26670
+ Filter chain halted as :authenticate_user! rendered or redirected
26671
+ Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
26672
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26673
+ Processing by AuthenticationsController#sign_out as HTML
26674
+ Redirected to http://localhost:4567/users/sign_out
26675
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
26676
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26677
+ Processing by ExampleController#restricted as HTML
26678
+ Authenticating with gds_sso strategy
26679
+ Completed in 0ms
26680
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26681
+ Started GET "/auth/gds/callback?code=4afa51eb386803efd9602bb780c2a1bb67374e4ec389682cf744327e45b0b723&state=aeeb316305bf76a17972f11f6b48819065bfcbe935f9ee73" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26682
+ Processing by AuthenticationsController#callback as HTML
26683
+ Parameters: {"code"=>"4afa51eb386803efd9602bb780c2a1bb67374e4ec389682cf744327e45b0b723", "state"=>"aeeb316305bf76a17972f11f6b48819065bfcbe935f9ee73"}
26684
+ Authenticating with gds_sso strategy
26685
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26686
+  (0.1ms) begin transaction
26687
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26688
+ - signin
26689
+ ' WHERE "users"."id" = 5
26690
+  (8.5ms) commit transaction
26691
+  (0.1ms) begin transaction
26692
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
26693
+ - signin
26694
+ ' WHERE "users"."id" = 5
26695
+  (1.8ms) commit transaction
26696
+ Redirected to http://www.example-client.com/restricted
26697
+ Completed 302 Found in 16ms (ActiveRecord: 11.4ms)
26698
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26699
+ Processing by ExampleController#restricted as HTML
26700
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26701
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
26702
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26703
+ Processing by ExampleController#restricted as HTML
26704
+ Authenticating with gds_sso strategy
26705
+ Completed in 0ms
26706
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26707
+ Started GET "/auth/gds/callback?code=b74458d5865f0995c24342a99f8ee5ea9f3594c2631d4372db489b00a530e5f3&state=2684bbe4f3385dd561a66a9f7472d9d23248bab16f0c1181" for 127.0.0.1 at 2013-04-17 11:44:09 +0000
26708
+ Processing by AuthenticationsController#callback as HTML
26709
+ Parameters: {"code"=>"b74458d5865f0995c24342a99f8ee5ea9f3594c2631d4372db489b00a530e5f3", "state"=>"2684bbe4f3385dd561a66a9f7472d9d23248bab16f0c1181"}
26710
+ Authenticating with gds_sso strategy
26711
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26712
+  (0.1ms) begin transaction
26713
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26714
+ - signin
26715
+ ' WHERE "users"."id" = 5
26716
+  (7.5ms) commit transaction
26717
+  (0.1ms) begin transaction
26718
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26719
+ - signin
26720
+ ' WHERE "users"."id" = 5
26721
+  (2.3ms) commit transaction
26722
+ Redirected to http://www.example-client.com/restricted
26723
+ Completed 302 Found in 17ms (ActiveRecord: 10.8ms)
26724
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26725
+ Processing by ExampleController#restricted as HTML
26726
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26727
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
26728
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 07:49:10 +0000
26729
+ Processing by ExampleController#restricted as HTML
26730
+ Authenticating with gds_sso strategy
26731
+ Completed in 0ms
26732
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 07:49:10 +0000
26733
+ Started GET "/auth/gds/callback?code=3ee6e797158f6a2153b32c52ea609c5d764e559fb9d8a657888e0238eceaba15&state=264e4226c0e0592f164fee27d6feee947cc0b99a09481053" for 127.0.0.1 at 2013-04-18 07:49:10 +0000
26734
+ Processing by AuthenticationsController#callback as HTML
26735
+ Parameters: {"code"=>"3ee6e797158f6a2153b32c52ea609c5d764e559fb9d8a657888e0238eceaba15", "state"=>"264e4226c0e0592f164fee27d6feee947cc0b99a09481053"}
26736
+ Authenticating with gds_sso strategy
26737
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26738
+  (0.1ms) begin transaction
26739
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26740
+ - signin
26741
+ ' WHERE "users"."id" = 5
26742
+  (8.1ms) commit transaction
26743
+  (0.1ms) begin transaction
26744
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26745
+ - signin
26746
+ ' WHERE "users"."id" = 5
26747
+  (2.4ms) commit transaction
26748
+ Redirected to http://www.example-client.com/restricted
26749
+ Completed 302 Found in 18ms (ActiveRecord: 11.5ms)
26750
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 07:49:10 +0000
26751
+ Processing by ExampleController#restricted as HTML
26752
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26753
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
26754
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26755
+ Processing by ExampleController#restricted as HTML
26756
+ Authenticating with gds_sso strategy
26757
+ Completed in 0ms
26758
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26759
+ Started GET "/auth/gds/callback?code=17a863fe4d30dfcdf1a9e9176f35d2c9a45d08763d3e3612fb0e510f860c153c&state=56b6e648b0a54a3100d49a0abafc98164e033d4ae9c54a09" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26760
+ Processing by AuthenticationsController#callback as HTML
26761
+ Parameters: {"code"=>"17a863fe4d30dfcdf1a9e9176f35d2c9a45d08763d3e3612fb0e510f860c153c", "state"=>"56b6e648b0a54a3100d49a0abafc98164e033d4ae9c54a09"}
26762
+ Authenticating with gds_sso strategy
26763
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26764
+  (0.1ms) begin transaction
26765
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26766
+ - signin
26767
+ ' WHERE "users"."id" = 5
26768
+  (8.3ms) commit transaction
26769
+  (0.0ms) begin transaction
26770
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26771
+ - signin
26772
+ ' WHERE "users"."id" = 5
26773
+  (1.8ms) commit transaction
26774
+ Redirected to http://www.example-client.com/restricted
26775
+ Completed 302 Found in 17ms (ActiveRecord: 11.0ms)
26776
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26777
+ Processing by ExampleController#restricted as HTML
26778
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26779
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
26780
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 07:39:10 +0000
26781
+ Processing by ExampleController#restricted as HTML
26782
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26783
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
26784
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26785
+ Processing by ExampleController#restricted as JSON
26786
+ Authenticating with gds_sso_api_access strategy
26787
+ Completed in 14ms
26788
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26789
+ Processing by ExampleController#restricted as JSON
26790
+ Authenticating with gds_sso_api_access strategy
26791
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
26792
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26793
+ Processing by ExampleController#this_requires_signin_permission as JSON
26794
+ Authenticating with gds_sso_api_access strategy
26795
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
26796
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26797
+ Processing by ExampleController#restricted as JSON
26798
+ Authenticating with gds_bearer_token strategy
26799
+ Completed in 9ms
26800
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-17 11:44:10 +0000
26801
+ Processing by ExampleController#restricted as JSON
26802
+ Authenticating with gds_bearer_token strategy
26803
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26804
+  (0.1ms) begin transaction
26805
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26806
+ - signin
26807
+ ' WHERE "users"."id" = 5
26808
+  (9.9ms) commit transaction
26809
+  (0.1ms) begin transaction
26810
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26811
+ - signin
26812
+ ' WHERE "users"."id" = 5
26813
+  (1.8ms) commit transaction
26814
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 12.6ms)
26815
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-17 11:44:11 +0000
26816
+ Processing by ExampleController#this_requires_signin_permission as JSON
26817
+ Authenticating with gds_bearer_token strategy
26818
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26819
+  (0.1ms) begin transaction
26820
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26821
+ - signin
26822
+ ' WHERE "users"."id" = 5
26823
+  (9.6ms) commit transaction
26824
+  (0.1ms) begin transaction
26825
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26826
+ - signin
26827
+ ' WHERE "users"."id" = 5
26828
+  (1.8ms) commit transaction
26829
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 12.4ms)
26830
+ Connecting to database specified by database.yml
26831
+  (3.3ms) select sqlite_version(*)
26832
+  (31.9ms) DROP TABLE "users"
26833
+  (2.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
26834
+  (0.1ms) begin transaction
26835
+ SQL (19.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38628"]]
26836
+  (12.7ms) commit transaction
26837
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26838
+ Processing by Api::UserController#update as HTML
26839
+ Parameters: {"uid"=>"a1s2d38628"}
26840
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.6ms)
26841
+ Completed 403 Forbidden in 127ms (Views: 126.1ms | ActiveRecord: 0.0ms)
26842
+  (0.1ms) begin transaction
26843
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38050"]]
26844
+  (13.9ms) commit transaction
26845
+ Processing by Api::UserController#update as HTML
26846
+ Parameters: {"uid"=>"a1s2d38050"}
26847
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38050' LIMIT 1
26848
+  (0.1ms) begin transaction
26849
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
26850
+ - signin
26851
+ - new permission
26852
+ ' WHERE "users"."id" = 2
26853
+  (2.7ms) commit transaction
26854
+ Completed 200 OK in 22ms (ActiveRecord: 3.3ms)
26855
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
26856
+  (0.1ms) begin transaction
26857
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36624"]]
26858
+  (9.4ms) commit transaction
26859
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
26860
+ Processing by Api::UserController#reauth as HTML
26861
+ Parameters: {"uid"=>"a1s2d36624"}
26862
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
26863
+  (0.1ms) begin transaction
26864
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38335"]]
26865
+  (9.4ms) commit transaction
26866
+ Processing by Api::UserController#reauth as HTML
26867
+ Parameters: {"uid"=>"a1s2d38335"}
26868
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38335' LIMIT 1
26869
+  (0.1ms) begin transaction
26870
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
26871
+ - signin
26872
+ ' WHERE "users"."id" = 4
26873
+  (4.5ms) commit transaction
26874
+ Completed 200 OK in 8ms (ActiveRecord: 5.0ms)
26875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
26876
+ Started GET "/" for 127.0.0.1 at 2013-04-18 13:13:32 +0000
26877
+ Processing by ExampleController#index as HTML
26878
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
26879
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:32 +0000
26880
+ Processing by ExampleController#restricted as HTML
26881
+ Authenticating with gds_sso strategy
26882
+ Completed in 141ms
26883
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:32 +0000
26884
+ Started GET "/auth/gds/callback?code=c237d0446d5fab151b2c04a876df68213b731a9ba343fa92925d45839bd9ece6&state=614e8ba472f950f994bca65e7f58796ca1213f4f729853c8" for 127.0.0.1 at 2013-04-18 13:13:35 +0000
26885
+ Processing by AuthenticationsController#callback as HTML
26886
+ Parameters: {"code"=>"c237d0446d5fab151b2c04a876df68213b731a9ba343fa92925d45839bd9ece6", "state"=>"614e8ba472f950f994bca65e7f58796ca1213f4f729853c8"}
26887
+ Authenticating with gds_sso strategy
26888
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26889
+  (0.1ms) begin transaction
26890
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
26891
+  (9.7ms) commit transaction
26892
+  (0.1ms) begin transaction
26893
+  (0.4ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
26894
+ - signin
26895
+ ' WHERE "users"."id" = 5
26896
+  (2.1ms) commit transaction
26897
+ Redirected to http://www.example-client.com/restricted
26898
+ Completed 302 Found in 30ms (ActiveRecord: 13.0ms)
26899
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:35 +0000
26900
+ Processing by ExampleController#restricted as HTML
26901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26902
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
26903
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26904
+ Processing by ExampleController#restricted as HTML
26905
+ Authenticating with gds_sso strategy
26906
+ Completed in 6ms
26907
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26908
+ Started GET "/auth/gds/callback?code=d1aadb7fab13ef586a230ecac7db64eb0d39bee795474fbe1ac629dd9eeb2770&state=cf1e96960970e9b3836ea33ad9208af2cf1e567ea48fd0b4" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26909
+ Processing by AuthenticationsController#callback as HTML
26910
+ Parameters: {"code"=>"d1aadb7fab13ef586a230ecac7db64eb0d39bee795474fbe1ac629dd9eeb2770", "state"=>"cf1e96960970e9b3836ea33ad9208af2cf1e567ea48fd0b4"}
26911
+ Authenticating with gds_sso strategy
26912
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26913
+  (0.1ms) begin transaction
26914
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26915
+ - signin
26916
+ ' WHERE "users"."id" = 5
26917
+  (23.5ms) commit transaction
26918
+  (0.1ms) begin transaction
26919
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26920
+ - signin
26921
+ ' WHERE "users"."id" = 5
26922
+  (2.5ms) commit transaction
26923
+ Redirected to http://www.example-client.com/restricted
26924
+ Completed 302 Found in 33ms (ActiveRecord: 27.1ms)
26925
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26926
+ Processing by ExampleController#restricted as HTML
26927
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26928
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
26929
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26930
+ Processing by ExampleController#restricted as HTML
26931
+ Authenticating with gds_sso strategy
26932
+ Completed in 0ms
26933
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26934
+ Started GET "/auth/gds/callback?code=fff25aaffefbe8e382d318ead89505dcc8fbc1014587e65a9ef71146f0c61daf&state=feed7ac0fc4e178bef9cd3fc5e89d689fe3a721c228a9246" for 127.0.0.1 at 2013-04-18 13:13:36 +0000
26935
+ Processing by AuthenticationsController#callback as HTML
26936
+ Parameters: {"code"=>"fff25aaffefbe8e382d318ead89505dcc8fbc1014587e65a9ef71146f0c61daf", "state"=>"feed7ac0fc4e178bef9cd3fc5e89d689fe3a721c228a9246"}
26937
+ Authenticating with gds_sso strategy
26938
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26939
+  (0.1ms) begin transaction
26940
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26941
+ - signin
26942
+ ' WHERE "users"."id" = 5
26943
+  (15.9ms) commit transaction
26944
+  (0.0ms) begin transaction
26945
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26946
+ - signin
26947
+ ' WHERE "users"."id" = 5
26948
+  (2.1ms) commit transaction
26949
+ Redirected to http://www.example-client.com/restricted
26950
+ Completed 302 Found in 23ms (ActiveRecord: 19.0ms)
26951
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26952
+ Processing by ExampleController#restricted as HTML
26953
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26954
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
26955
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26956
+ Processing by ExampleController#this_requires_signin_permission as HTML
26957
+ Authenticating with gds_sso strategy
26958
+ Completed in 1ms
26959
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26960
+ Started GET "/auth/gds/callback?code=0f5e05edea32ad16cdde06980c1495c14ec76ed3bd2e65c72bca1fee3384ca12&state=6fbf9930e68d624766e24745c7a0ce10e0a2accf13113a67" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26961
+ Processing by AuthenticationsController#callback as HTML
26962
+ Parameters: {"code"=>"0f5e05edea32ad16cdde06980c1495c14ec76ed3bd2e65c72bca1fee3384ca12", "state"=>"6fbf9930e68d624766e24745c7a0ce10e0a2accf13113a67"}
26963
+ Authenticating with gds_sso strategy
26964
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26965
+  (0.1ms) begin transaction
26966
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26967
+ - signin
26968
+ ' WHERE "users"."id" = 5
26969
+  (15.1ms) commit transaction
26970
+  (0.0ms) begin transaction
26971
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26972
+ - signin
26973
+ ' WHERE "users"."id" = 5
26974
+  (2.5ms) commit transaction
26975
+ Redirected to http://www.example-client.com/this_requires_signin_permission
26976
+ Completed 302 Found in 24ms (ActiveRecord: 18.6ms)
26977
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26978
+ Processing by ExampleController#this_requires_signin_permission as HTML
26979
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26980
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)
26981
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26982
+ Processing by ExampleController#this_requires_signin_permission as HTML
26983
+ Authenticating with gds_sso strategy
26984
+ Completed in 0ms
26985
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26986
+ Started GET "/auth/gds/callback?code=9b1713cdaabd13143a8ed859a0351388ec9d799b821b09f0ddb7b36051a296e3&state=e3a6c6114af42541942145f93a6342e964be757c041c46b7" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
26987
+ Processing by AuthenticationsController#callback as HTML
26988
+ Parameters: {"code"=>"9b1713cdaabd13143a8ed859a0351388ec9d799b821b09f0ddb7b36051a296e3", "state"=>"e3a6c6114af42541942145f93a6342e964be757c041c46b7"}
26989
+ Authenticating with gds_sso strategy
26990
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
26991
+  (0.1ms) begin transaction
26992
+  (0.3ms) UPDATE "users" SET "permissions" = '---
26993
+ - signin
26994
+ ' WHERE "users"."id" = 5
26995
+  (15.0ms) commit transaction
26996
+  (0.1ms) begin transaction
26997
+  (0.4ms) UPDATE "users" SET "permissions" = '---
26998
+ - signin
26999
+ ' WHERE "users"."id" = 5
27000
+  (2.1ms) commit transaction
27001
+ Redirected to http://www.example-client.com/this_requires_signin_permission
27002
+ Completed 302 Found in 23ms (ActiveRecord: 18.1ms)
27003
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:37 +0000
27004
+ Processing by ExampleController#this_requires_signin_permission as HTML
27005
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27006
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 0.2ms)
27007
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27008
+ Processing by ExampleController#restricted as HTML
27009
+ Authenticating with gds_sso strategy
27010
+ Completed in 0ms
27011
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27012
+ Started GET "/auth/gds/callback?code=0119e6701446da3aec4e06185b22e91a75291279d230cc16617437f54241ba83&state=b25f756152bcf6dfa88314d66b1afd404b6cd8571dfa98ef" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27013
+ Processing by AuthenticationsController#callback as HTML
27014
+ Parameters: {"code"=>"0119e6701446da3aec4e06185b22e91a75291279d230cc16617437f54241ba83", "state"=>"b25f756152bcf6dfa88314d66b1afd404b6cd8571dfa98ef"}
27015
+ Authenticating with gds_sso strategy
27016
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27017
+  (0.1ms) begin transaction
27018
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27019
+ - signin
27020
+ ' WHERE "users"."id" = 5
27021
+  (15.4ms) commit transaction
27022
+  (0.0ms) begin transaction
27023
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27024
+ - signin
27025
+ ' WHERE "users"."id" = 5
27026
+  (1.9ms) commit transaction
27027
+ Redirected to http://www.example-client.com/restricted
27028
+ Completed 302 Found in 24ms (ActiveRecord: 18.3ms)
27029
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27030
+ Processing by ExampleController#restricted as HTML
27031
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27032
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
27033
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27034
+  (0.0ms) begin transaction
27035
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
27036
+ - signin
27037
+ ' WHERE "users"."id" = 5
27038
+  (6.2ms) commit transaction
27039
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27040
+ Processing by ExampleController#restricted as HTML
27041
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27042
+ Filter chain halted as :authenticate_user! rendered or redirected
27043
+ Completed 403 Forbidden in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
27044
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-18 13:13:38 +0000
27045
+ Processing by AuthenticationsController#sign_out as HTML
27046
+ Redirected to http://localhost:4567/users/sign_out
27047
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
27048
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27049
+ Processing by ExampleController#restricted as HTML
27050
+ Authenticating with gds_sso strategy
27051
+ Completed in 0ms
27052
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27053
+ Started GET "/auth/gds/callback?code=22aecc9976ab861df45a11b40b969ed89c433976cd10669ca40d74dc520be58b&state=3c68463f5b61b1163af1a08c47f4c33ba070ae7f2ca260d7" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27054
+ Processing by AuthenticationsController#callback as HTML
27055
+ Parameters: {"code"=>"22aecc9976ab861df45a11b40b969ed89c433976cd10669ca40d74dc520be58b", "state"=>"3c68463f5b61b1163af1a08c47f4c33ba070ae7f2ca260d7"}
27056
+ Authenticating with gds_sso strategy
27057
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27058
+  (0.1ms) begin transaction
27059
+  (0.4ms) UPDATE "users" SET "permissions" = '---
27060
+ - signin
27061
+ ' WHERE "users"."id" = 5
27062
+  (10.2ms) commit transaction
27063
+  (0.1ms) begin transaction
27064
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
27065
+ - signin
27066
+ ' WHERE "users"."id" = 5
27067
+  (2.0ms) commit transaction
27068
+ Redirected to http://www.example-client.com/restricted
27069
+ Completed 302 Found in 28ms (ActiveRecord: 13.3ms)
27070
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27071
+ Processing by ExampleController#restricted as HTML
27072
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27073
+ Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
27074
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27075
+ Processing by ExampleController#restricted as HTML
27076
+ Authenticating with gds_sso strategy
27077
+ Completed in 0ms
27078
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27079
+ Started GET "/auth/gds/callback?code=3df5ac30390c00ef5f783f86c49b51a9cc4afd6a2cd4da027dd33d302a509832&state=b3e09e5e8b8a4a0c03bc1b20be6bc048e63fcb47e2d7f146" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27080
+ Processing by AuthenticationsController#callback as HTML
27081
+ Parameters: {"code"=>"3df5ac30390c00ef5f783f86c49b51a9cc4afd6a2cd4da027dd33d302a509832", "state"=>"b3e09e5e8b8a4a0c03bc1b20be6bc048e63fcb47e2d7f146"}
27082
+ Authenticating with gds_sso strategy
27083
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27084
+  (0.1ms) begin transaction
27085
+  (0.4ms) UPDATE "users" SET "permissions" = '---
27086
+ - signin
27087
+ ' WHERE "users"."id" = 5
27088
+  (8.2ms) commit transaction
27089
+  (0.1ms) begin transaction
27090
+  (0.4ms) UPDATE "users" SET "permissions" = '---
27091
+ - signin
27092
+ ' WHERE "users"."id" = 5
27093
+  (2.3ms) commit transaction
27094
+ Redirected to http://www.example-client.com/restricted
27095
+ Completed 302 Found in 29ms (ActiveRecord: 11.7ms)
27096
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:39 +0000
27097
+ Processing by ExampleController#restricted as HTML
27098
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27099
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
27100
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:18:39 +0000
27101
+ Processing by ExampleController#restricted as HTML
27102
+ Authenticating with gds_sso strategy
27103
+ Completed in 0ms
27104
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-19 09:18:39 +0000
27105
+ Started GET "/auth/gds/callback?code=afff66f071795d674ed473467b46a655dac0cf468eda34a2acc68ea2ff0454a1&state=83a5faf4a8fcc818c87b3f52a310d0870ed1082cf4d979d7" for 127.0.0.1 at 2013-04-19 09:18:40 +0000
27106
+ Processing by AuthenticationsController#callback as HTML
27107
+ Parameters: {"code"=>"afff66f071795d674ed473467b46a655dac0cf468eda34a2acc68ea2ff0454a1", "state"=>"83a5faf4a8fcc818c87b3f52a310d0870ed1082cf4d979d7"}
27108
+ Authenticating with gds_sso strategy
27109
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27110
+  (0.1ms) begin transaction
27111
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27112
+ - signin
27113
+ ' WHERE "users"."id" = 5
27114
+  (10.2ms) commit transaction
27115
+  (0.1ms) begin transaction
27116
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27117
+ - signin
27118
+ ' WHERE "users"."id" = 5
27119
+  (1.9ms) commit transaction
27120
+ Redirected to http://www.example-client.com/restricted
27121
+ Completed 302 Found in 29ms (ActiveRecord: 13.1ms)
27122
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:18:40 +0000
27123
+ Processing by ExampleController#restricted as HTML
27124
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27125
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 0.2ms)
27126
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:40 +0000
27127
+ Processing by ExampleController#restricted as HTML
27128
+ Authenticating with gds_sso strategy
27129
+ Completed in 0ms
27130
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:13:40 +0000
27131
+ Started GET "/auth/gds/callback?code=cf807a33bbefd2accae87747295ff12f78c802f2ae113e9ea18c84168b3f9272&state=ffa196e7b03aef80caf1c46f945aad0fa78827ea865cd419" for 127.0.0.1 at 2013-04-18 13:13:40 +0000
27132
+ Processing by AuthenticationsController#callback as HTML
27133
+ Parameters: {"code"=>"cf807a33bbefd2accae87747295ff12f78c802f2ae113e9ea18c84168b3f9272", "state"=>"ffa196e7b03aef80caf1c46f945aad0fa78827ea865cd419"}
27134
+ Authenticating with gds_sso strategy
27135
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27136
+  (0.1ms) begin transaction
27137
+  (0.4ms) UPDATE "users" SET "permissions" = '---
27138
+ - signin
27139
+ ' WHERE "users"."id" = 5
27140
+  (10.2ms) commit transaction
27141
+  (0.1ms) begin transaction
27142
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27143
+ - signin
27144
+ ' WHERE "users"."id" = 5
27145
+  (2.4ms) commit transaction
27146
+ Redirected to http://www.example-client.com/restricted
27147
+ Completed 302 Found in 30ms (ActiveRecord: 13.8ms)
27148
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:40 +0000
27149
+ Processing by ExampleController#restricted as HTML
27150
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27151
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
27152
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:08:40 +0000
27153
+ Processing by ExampleController#restricted as HTML
27154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27155
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
27156
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:40 +0000
27157
+ Processing by ExampleController#restricted as JSON
27158
+ Authenticating with gds_sso_api_access strategy
27159
+ Completed in 25ms
27160
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:41 +0000
27161
+ Processing by ExampleController#restricted as JSON
27162
+ Authenticating with gds_sso_api_access strategy
27163
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
27164
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:41 +0000
27165
+ Processing by ExampleController#this_requires_signin_permission as JSON
27166
+ Authenticating with gds_sso_api_access strategy
27167
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
27168
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:41 +0000
27169
+ Processing by ExampleController#restricted as JSON
27170
+ Authenticating with gds_bearer_token strategy
27171
+ Completed in 20ms
27172
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:13:41 +0000
27173
+ Processing by ExampleController#restricted as JSON
27174
+ Authenticating with gds_bearer_token strategy
27175
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27176
+  (0.1ms) begin transaction
27177
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27178
+ - signin
27179
+ ' WHERE "users"."id" = 5
27180
+  (19.5ms) commit transaction
27181
+  (0.1ms) begin transaction
27182
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27183
+ - signin
27184
+ ' WHERE "users"."id" = 5
27185
+  (3.0ms) commit transaction
27186
+ Completed 200 OK in 98ms (Views: 0.7ms | ActiveRecord: 23.7ms)
27187
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:13:41 +0000
27188
+ Processing by ExampleController#this_requires_signin_permission as JSON
27189
+ Authenticating with gds_bearer_token strategy
27190
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27191
+  (0.1ms) begin transaction
27192
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27193
+ - signin
27194
+ ' WHERE "users"."id" = 5
27195
+  (10.8ms) commit transaction
27196
+  (0.1ms) begin transaction
27197
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27198
+ - signin
27199
+ ' WHERE "users"."id" = 5
27200
+  (1.7ms) commit transaction
27201
+ Completed 200 OK in 96ms (Views: 0.7ms | ActiveRecord: 13.5ms)
27202
+ Connecting to database specified by database.yml
27203
+  (3.2ms) select sqlite_version(*)
27204
+  (12.7ms) DROP TABLE "users"
27205
+  (2.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
27206
+  (0.1ms) begin transaction
27207
+ SQL (18.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36494"]]
27208
+  (2.2ms) commit transaction
27209
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
27210
+ Processing by Api::UserController#update as HTML
27211
+ Parameters: {"uid"=>"a1s2d36494"}
27212
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.1ms)
27213
+ Completed 403 Forbidden in 133ms (Views: 121.6ms | ActiveRecord: 0.0ms)
27214
+  (0.1ms) begin transaction
27215
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34704"]]
27216
+  (4.9ms) commit transaction
27217
+ Processing by Api::UserController#update as HTML
27218
+ Parameters: {"uid"=>"a1s2d34704"}
27219
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34704' LIMIT 1
27220
+  (0.1ms) begin transaction
27221
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
27222
+ - signin
27223
+ - new permission
27224
+ ' WHERE "users"."id" = 2
27225
+  (7.4ms) commit transaction
27226
+ Completed 200 OK in 27ms (ActiveRecord: 8.1ms)
27227
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
27228
+  (0.1ms) begin transaction
27229
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33107"]]
27230
+  (4.9ms) commit transaction
27231
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
27232
+ Processing by Api::UserController#reauth as HTML
27233
+ Parameters: {"uid"=>"a1s2d33107"}
27234
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
27235
+  (0.1ms) begin transaction
27236
+ SQL (11.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37321"]]
27237
+  (2.5ms) commit transaction
27238
+ Processing by Api::UserController#reauth as HTML
27239
+ Parameters: {"uid"=>"nonexistent-user"}
27240
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
27241
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
27242
+  (0.1ms) begin transaction
27243
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31530"]]
27244
+  (2.1ms) commit transaction
27245
+ Processing by Api::UserController#reauth as HTML
27246
+ Parameters: {"uid"=>"a1s2d31530"}
27247
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31530' LIMIT 1
27248
+  (0.0ms) begin transaction
27249
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
27250
+ - signin
27251
+ ' WHERE "users"."id" = 5
27252
+  (2.9ms) commit transaction
27253
+ Completed 200 OK in 6ms (ActiveRecord: 3.4ms)
27254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
27255
+ Started GET "/" for 127.0.0.1 at 2013-04-18 13:33:46 +0000
27256
+ Processing by ExampleController#index as HTML
27257
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
27258
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:46 +0000
27259
+ Processing by ExampleController#restricted as HTML
27260
+ Authenticating with gds_sso strategy
27261
+ Completed in 66ms
27262
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:46 +0000
27263
+ Started GET "/auth/gds/callback?code=3a8443984f92e84ab7424919dca5a4ef545125b4ff46eee9a6ee6823745a1d99&state=3d713df52d6af516813d44183c301331c1ea642e9724e8f3" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27264
+ Processing by AuthenticationsController#callback as HTML
27265
+ Parameters: {"code"=>"3a8443984f92e84ab7424919dca5a4ef545125b4ff46eee9a6ee6823745a1d99", "state"=>"3d713df52d6af516813d44183c301331c1ea642e9724e8f3"}
27266
+ Authenticating with gds_sso strategy
27267
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27268
+  (0.1ms) begin transaction
27269
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
27270
+  (10.9ms) commit transaction
27271
+  (0.0ms) begin transaction
27272
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
27273
+ - signin
27274
+ ' WHERE "users"."id" = 6
27275
+  (1.7ms) commit transaction
27276
+ Redirected to http://www.example-client.com/restricted
27277
+ Completed 302 Found in 19ms (ActiveRecord: 13.6ms)
27278
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27279
+ Processing by ExampleController#restricted as HTML
27280
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27281
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
27282
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27283
+ Processing by ExampleController#restricted as HTML
27284
+ Authenticating with gds_sso strategy
27285
+ Completed in 0ms
27286
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27287
+ Started GET "/auth/gds/callback?code=42c3faf36f8a4a80fda74867f90a1888a55b5429bf7fb32c8a61ffee5bcb4130&state=d8248e2165f6d45096ccce6ce6c87a123afe8fd591988ffe" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27288
+ Processing by AuthenticationsController#callback as HTML
27289
+ Parameters: {"code"=>"42c3faf36f8a4a80fda74867f90a1888a55b5429bf7fb32c8a61ffee5bcb4130", "state"=>"d8248e2165f6d45096ccce6ce6c87a123afe8fd591988ffe"}
27290
+ Authenticating with gds_sso strategy
27291
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27292
+  (0.1ms) begin transaction
27293
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27294
+ - signin
27295
+ ' WHERE "users"."id" = 6
27296
+  (7.0ms) commit transaction
27297
+  (0.1ms) begin transaction
27298
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27299
+ - signin
27300
+ ' WHERE "users"."id" = 6
27301
+  (1.8ms) commit transaction
27302
+ Redirected to http://www.example-client.com/restricted
27303
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
27304
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27305
+ Processing by ExampleController#restricted as HTML
27306
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27307
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
27308
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27309
+ Processing by ExampleController#restricted as HTML
27310
+ Authenticating with gds_sso strategy
27311
+ Completed in 0ms
27312
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27313
+ Started GET "/auth/gds/callback?code=808cb2e8e37f2fd7160727f0cd8b4a2aebb9a01c29c14a6bd0ce5cbd25395a45&state=2dcbb90211288e9ec5f18c02f2cf30eb6d949d2884b0046c" for 127.0.0.1 at 2013-04-18 13:33:48 +0000
27314
+ Processing by AuthenticationsController#callback as HTML
27315
+ Parameters: {"code"=>"808cb2e8e37f2fd7160727f0cd8b4a2aebb9a01c29c14a6bd0ce5cbd25395a45", "state"=>"2dcbb90211288e9ec5f18c02f2cf30eb6d949d2884b0046c"}
27316
+ Authenticating with gds_sso strategy
27317
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27318
+  (0.1ms) begin transaction
27319
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27320
+ - signin
27321
+ ' WHERE "users"."id" = 6
27322
+  (9.4ms) commit transaction
27323
+  (0.0ms) begin transaction
27324
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27325
+ - signin
27326
+ ' WHERE "users"."id" = 6
27327
+  (2.8ms) commit transaction
27328
+ Redirected to http://www.example-client.com/restricted
27329
+ Completed 302 Found in 18ms (ActiveRecord: 13.0ms)
27330
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27331
+ Processing by ExampleController#restricted as HTML
27332
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27333
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
27334
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27335
+ Processing by ExampleController#this_requires_signin_permission as HTML
27336
+ Authenticating with gds_sso strategy
27337
+ Completed in 1ms
27338
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27339
+ Started GET "/auth/gds/callback?code=d7fa5b332ba9e460cff92620201736737ab3e14c3cc21ea5a87f612e0c820d74&state=ce2e8ac2b5f1db356b48f97ac9f72540c6a22af25d62a19b" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27340
+ Processing by AuthenticationsController#callback as HTML
27341
+ Parameters: {"code"=>"d7fa5b332ba9e460cff92620201736737ab3e14c3cc21ea5a87f612e0c820d74", "state"=>"ce2e8ac2b5f1db356b48f97ac9f72540c6a22af25d62a19b"}
27342
+ Authenticating with gds_sso strategy
27343
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27344
+  (0.1ms) begin transaction
27345
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27346
+ - signin
27347
+ ' WHERE "users"."id" = 6
27348
+  (7.4ms) commit transaction
27349
+  (0.1ms) begin transaction
27350
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27351
+ - signin
27352
+ ' WHERE "users"."id" = 6
27353
+  (2.0ms) commit transaction
27354
+ Redirected to http://www.example-client.com/this_requires_signin_permission
27355
+ Completed 302 Found in 16ms (ActiveRecord: 10.5ms)
27356
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27357
+ Processing by ExampleController#this_requires_signin_permission as HTML
27358
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27359
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
27360
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27361
+ Processing by ExampleController#this_requires_signin_permission as HTML
27362
+ Authenticating with gds_sso strategy
27363
+ Completed in 0ms
27364
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27365
+ Started GET "/auth/gds/callback?code=6dd9c4e80575d4018da331cf46d523222fcfd9a5d5b12d41fe6ce4fc85383bf4&state=55bdb410ce56e1d8be7b52d839894219552ae08daad99b9b" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27366
+ Processing by AuthenticationsController#callback as HTML
27367
+ Parameters: {"code"=>"6dd9c4e80575d4018da331cf46d523222fcfd9a5d5b12d41fe6ce4fc85383bf4", "state"=>"55bdb410ce56e1d8be7b52d839894219552ae08daad99b9b"}
27368
+ Authenticating with gds_sso strategy
27369
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27370
+  (0.1ms) begin transaction
27371
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27372
+ - signin
27373
+ ' WHERE "users"."id" = 6
27374
+  (10.0ms) commit transaction
27375
+  (0.0ms) begin transaction
27376
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27377
+ - signin
27378
+ ' WHERE "users"."id" = 6
27379
+  (1.8ms) commit transaction
27380
+ Redirected to http://www.example-client.com/this_requires_signin_permission
27381
+ Completed 302 Found in 17ms (ActiveRecord: 12.6ms)
27382
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27383
+ Processing by ExampleController#this_requires_signin_permission as HTML
27384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27385
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
27386
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27387
+ Processing by ExampleController#restricted as HTML
27388
+ Authenticating with gds_sso strategy
27389
+ Completed in 0ms
27390
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:49 +0000
27391
+ Started GET "/auth/gds/callback?code=bade7f1e338d6f792dc2d4d28f0b10319f7870934cbaf6c1a882065bc7aaba5c&state=e473123560b4a7c23cade712d67181bf09d007351fa00696" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27392
+ Processing by AuthenticationsController#callback as HTML
27393
+ Parameters: {"code"=>"bade7f1e338d6f792dc2d4d28f0b10319f7870934cbaf6c1a882065bc7aaba5c", "state"=>"e473123560b4a7c23cade712d67181bf09d007351fa00696"}
27394
+ Authenticating with gds_sso strategy
27395
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27396
+  (0.1ms) begin transaction
27397
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27398
+ - signin
27399
+ ' WHERE "users"."id" = 6
27400
+  (7.3ms) commit transaction
27401
+  (0.0ms) begin transaction
27402
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27403
+ - signin
27404
+ ' WHERE "users"."id" = 6
27405
+  (1.8ms) commit transaction
27406
+ Redirected to http://www.example-client.com/restricted
27407
+ Completed 302 Found in 16ms (ActiveRecord: 10.1ms)
27408
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27409
+ Processing by ExampleController#restricted as HTML
27410
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27411
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
27412
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27413
+  (0.1ms) begin transaction
27414
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
27415
+ - signin
27416
+ ' WHERE "users"."id" = 6
27417
+  (1.9ms) commit transaction
27418
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27419
+ Processing by ExampleController#restricted as HTML
27420
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27421
+ Filter chain halted as :authenticate_user! rendered or redirected
27422
+ Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
27423
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27424
+ Processing by AuthenticationsController#sign_out as HTML
27425
+ Redirected to http://localhost:4567/users/sign_out
27426
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
27427
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27428
+ Processing by ExampleController#restricted as HTML
27429
+ Authenticating with gds_sso strategy
27430
+ Completed in 0ms
27431
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27432
+ Started GET "/auth/gds/callback?code=f1ca7f36b8890168be456122438216b0beeb2eeb787b1f48d2af852609f4ccd1&state=7d4f687997e05e1399a7d86b1aec02786d82ad609f6841ab" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27433
+ Processing by AuthenticationsController#callback as HTML
27434
+ Parameters: {"code"=>"f1ca7f36b8890168be456122438216b0beeb2eeb787b1f48d2af852609f4ccd1", "state"=>"7d4f687997e05e1399a7d86b1aec02786d82ad609f6841ab"}
27435
+ Authenticating with gds_sso strategy
27436
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27437
+  (0.2ms) begin transaction
27438
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27439
+ - signin
27440
+ ' WHERE "users"."id" = 6
27441
+  (9.2ms) commit transaction
27442
+  (0.1ms) begin transaction
27443
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
27444
+ - signin
27445
+ ' WHERE "users"."id" = 6
27446
+  (2.3ms) commit transaction
27447
+ Redirected to http://www.example-client.com/restricted
27448
+ Completed 302 Found in 17ms (ActiveRecord: 12.5ms)
27449
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27450
+ Processing by ExampleController#restricted as HTML
27451
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27452
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
27453
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27454
+ Processing by ExampleController#restricted as HTML
27455
+ Authenticating with gds_sso strategy
27456
+ Completed in 0ms
27457
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27458
+ Started GET "/auth/gds/callback?code=aab6591415272dd10dc769e20e44c090589002b68fedcf0bd01f8176813bc457&state=bcd7c15adde3db4d050f34b1016a4c5fa4901f02c2df1919" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27459
+ Processing by AuthenticationsController#callback as HTML
27460
+ Parameters: {"code"=>"aab6591415272dd10dc769e20e44c090589002b68fedcf0bd01f8176813bc457", "state"=>"bcd7c15adde3db4d050f34b1016a4c5fa4901f02c2df1919"}
27461
+ Authenticating with gds_sso strategy
27462
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27463
+  (0.1ms) begin transaction
27464
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27465
+ - signin
27466
+ ' WHERE "users"."id" = 6
27467
+  (7.4ms) commit transaction
27468
+  (0.0ms) begin transaction
27469
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27470
+ - signin
27471
+ ' WHERE "users"."id" = 6
27472
+  (1.8ms) commit transaction
27473
+ Redirected to http://www.example-client.com/restricted
27474
+ Completed 302 Found in 16ms (ActiveRecord: 10.1ms)
27475
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:50 +0000
27476
+ Processing by ExampleController#restricted as HTML
27477
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27478
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
27479
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:38:50 +0000
27480
+ Processing by ExampleController#restricted as HTML
27481
+ Authenticating with gds_sso strategy
27482
+ Completed in 0ms
27483
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-19 09:38:50 +0000
27484
+ Started GET "/auth/gds/callback?code=f2e3f7f6a94f70b72d1f739a1e51a0c773df83aa8203e4a357c7f7f274f32db9&state=f9cc3ab0906ebf028bd3dad0c6052d389ef77ea621226bde" for 127.0.0.1 at 2013-04-19 09:38:50 +0000
27485
+ Processing by AuthenticationsController#callback as HTML
27486
+ Parameters: {"code"=>"f2e3f7f6a94f70b72d1f739a1e51a0c773df83aa8203e4a357c7f7f274f32db9", "state"=>"f9cc3ab0906ebf028bd3dad0c6052d389ef77ea621226bde"}
27487
+ Authenticating with gds_sso strategy
27488
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27489
+  (0.1ms) begin transaction
27490
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27491
+ - signin
27492
+ ' WHERE "users"."id" = 6
27493
+  (9.1ms) commit transaction
27494
+  (0.1ms) begin transaction
27495
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27496
+ - signin
27497
+ ' WHERE "users"."id" = 6
27498
+  (1.8ms) commit transaction
27499
+ Redirected to http://www.example-client.com/restricted
27500
+ Completed 302 Found in 18ms (ActiveRecord: 11.9ms)
27501
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:38:51 +0000
27502
+ Processing by ExampleController#restricted as HTML
27503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27504
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
27505
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27506
+ Processing by ExampleController#restricted as HTML
27507
+ Authenticating with gds_sso strategy
27508
+ Completed in 0ms
27509
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27510
+ Started GET "/auth/gds/callback?code=53c3cea1d355032b97a854cbfa32786177cb2020d009318a708d383f4ed646ab&state=8d0d0549947f326841dd10b347371b2f424e6eb87b1c2fa8" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27511
+ Processing by AuthenticationsController#callback as HTML
27512
+ Parameters: {"code"=>"53c3cea1d355032b97a854cbfa32786177cb2020d009318a708d383f4ed646ab", "state"=>"8d0d0549947f326841dd10b347371b2f424e6eb87b1c2fa8"}
27513
+ Authenticating with gds_sso strategy
27514
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27515
+  (0.1ms) begin transaction
27516
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27517
+ - signin
27518
+ ' WHERE "users"."id" = 6
27519
+  (8.6ms) commit transaction
27520
+  (0.0ms) begin transaction
27521
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27522
+ - signin
27523
+ ' WHERE "users"."id" = 6
27524
+  (2.3ms) commit transaction
27525
+ Redirected to http://www.example-client.com/restricted
27526
+ Completed 302 Found in 18ms (ActiveRecord: 11.9ms)
27527
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27528
+ Processing by ExampleController#restricted as HTML
27529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27530
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
27531
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:28:51 +0000
27532
+ Processing by ExampleController#restricted as HTML
27533
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27534
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
27535
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27536
+ Processing by ExampleController#restricted as JSON
27537
+ Authenticating with gds_sso_api_access strategy
27538
+ Completed in 14ms
27539
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27540
+ Processing by ExampleController#restricted as JSON
27541
+ Authenticating with gds_sso_api_access strategy
27542
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
27543
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27544
+ Processing by ExampleController#this_requires_signin_permission as JSON
27545
+ Authenticating with gds_sso_api_access strategy
27546
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
27547
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27548
+ Processing by ExampleController#restricted as JSON
27549
+ Authenticating with gds_bearer_token strategy
27550
+ Completed in 9ms
27551
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27552
+ Processing by ExampleController#restricted as JSON
27553
+ Authenticating with gds_bearer_token strategy
27554
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27555
+  (0.1ms) begin transaction
27556
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27557
+ - signin
27558
+ ' WHERE "users"."id" = 6
27559
+  (9.5ms) commit transaction
27560
+  (0.1ms) begin transaction
27561
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27562
+ - signin
27563
+ ' WHERE "users"."id" = 6
27564
+  (2.2ms) commit transaction
27565
+ Completed 200 OK in 56ms (Views: 0.6ms | ActiveRecord: 12.6ms)
27566
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:33:51 +0000
27567
+ Processing by ExampleController#this_requires_signin_permission as JSON
27568
+ Authenticating with gds_bearer_token strategy
27569
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27570
+  (0.1ms) begin transaction
27571
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27572
+ - signin
27573
+ ' WHERE "users"."id" = 6
27574
+  (9.7ms) commit transaction
27575
+  (0.1ms) begin transaction
27576
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27577
+ - signin
27578
+ ' WHERE "users"."id" = 6
27579
+  (2.4ms) commit transaction
27580
+ Completed 200 OK in 56ms (Views: 0.6ms | ActiveRecord: 13.1ms)
27581
+ Connecting to database specified by database.yml
27582
+  (3.1ms) select sqlite_version(*)
27583
+  (21.8ms) DROP TABLE "users"
27584
+  (2.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) 
27585
+  (0.1ms) begin transaction
27586
+ SQL (8.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3837"]]
27587
+  (2.5ms) commit transaction
27588
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
27589
+ Processing by Api::UserController#update as HTML
27590
+ Parameters: {"uid"=>"a1s2d3837"}
27591
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.7ms)
27592
+ Completed 403 Forbidden in 57ms (Views: 55.7ms | ActiveRecord: 0.0ms)
27593
+  (0.4ms) begin transaction
27594
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37199"]]
27595
+  (2.1ms) commit transaction
27596
+ Processing by Api::UserController#update as HTML
27597
+ Parameters: {"uid"=>"a1s2d37199"}
27598
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37199' LIMIT 1
27599
+  (0.0ms) begin transaction
27600
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
27601
+ - signin
27602
+ - new permission
27603
+ ' WHERE "users"."id" = 2
27604
+  (1.9ms) commit transaction
27605
+ Completed 200 OK in 10ms (ActiveRecord: 2.4ms)
27606
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
27607
+  (0.1ms) begin transaction
27608
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36651"]]
27609
+  (1.9ms) commit transaction
27610
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
27611
+ Processing by Api::UserController#reauth as HTML
27612
+ Parameters: {"uid"=>"a1s2d36651"}
27613
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
27614
+  (0.1ms) begin transaction
27615
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37480"]]
27616
+  (2.2ms) commit transaction
27617
+ Processing by Api::UserController#reauth as HTML
27618
+ Parameters: {"uid"=>"nonexistent-user"}
27619
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
27620
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
27621
+  (0.1ms) begin transaction
27622
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36196"]]
27623
+  (1.9ms) commit transaction
27624
+ Processing by Api::UserController#reauth as HTML
27625
+ Parameters: {"uid"=>"a1s2d36196"}
27626
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36196' LIMIT 1
27627
+  (0.0ms) begin transaction
27628
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
27629
+ - signin
27630
+ ' WHERE "users"."id" = 5
27631
+  (1.9ms) commit transaction
27632
+ Completed 200 OK in 4ms (ActiveRecord: 2.3ms)
27633
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
27634
+ Started GET "/" for 127.0.0.1 at 2013-04-18 13:40:45 +0000
27635
+ Processing by ExampleController#index as HTML
27636
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
27637
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:45 +0000
27638
+ Processing by ExampleController#restricted as HTML
27639
+ Authenticating with gds_sso strategy
27640
+ Completed in 65ms
27641
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:45 +0000
27642
+ Started GET "/auth/gds/callback?code=cedd30b1a4e919c9ce7e48f4487eeb3613de41e39a936e5f84f5a9c208865737&state=c413bc9cce9df17af13aa5754b7148ee84cf080d2427486d" for 127.0.0.1 at 2013-04-18 13:40:46 +0000
27643
+ Processing by AuthenticationsController#callback as HTML
27644
+ Parameters: {"code"=>"cedd30b1a4e919c9ce7e48f4487eeb3613de41e39a936e5f84f5a9c208865737", "state"=>"c413bc9cce9df17af13aa5754b7148ee84cf080d2427486d"}
27645
+ Authenticating with gds_sso strategy
27646
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27647
+  (0.1ms) begin transaction
27648
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
27649
+  (7.4ms) commit transaction
27650
+  (0.0ms) begin transaction
27651
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
27652
+ - signin
27653
+ ' WHERE "users"."id" = 6
27654
+  (1.8ms) commit transaction
27655
+ Redirected to http://www.example-client.com/restricted
27656
+ Completed 302 Found in 16ms (ActiveRecord: 10.1ms)
27657
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27658
+ Processing by ExampleController#restricted as HTML
27659
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27660
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
27661
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27662
+ Processing by ExampleController#restricted as HTML
27663
+ Authenticating with gds_sso strategy
27664
+ Completed in 0ms
27665
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27666
+ Started GET "/auth/gds/callback?code=947f05b86ce13cdeb201ae423335fa4a054a83cc714afebe72c92ff0b468dcec&state=84ea70fd9f1144bcd750def75116ed2ba8af48089e0db9d9" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27667
+ Processing by AuthenticationsController#callback as HTML
27668
+ Parameters: {"code"=>"947f05b86ce13cdeb201ae423335fa4a054a83cc714afebe72c92ff0b468dcec", "state"=>"84ea70fd9f1144bcd750def75116ed2ba8af48089e0db9d9"}
27669
+ Authenticating with gds_sso strategy
27670
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27671
+  (0.1ms) begin transaction
27672
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27673
+ - signin
27674
+ ' WHERE "users"."id" = 6
27675
+  (7.9ms) commit transaction
27676
+  (0.0ms) begin transaction
27677
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27678
+ - signin
27679
+ ' WHERE "users"."id" = 6
27680
+  (1.8ms) commit transaction
27681
+ Redirected to http://www.example-client.com/restricted
27682
+ Completed 302 Found in 16ms (ActiveRecord: 10.7ms)
27683
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27684
+ Processing by ExampleController#restricted as HTML
27685
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27686
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
27687
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27688
+ Processing by ExampleController#restricted as HTML
27689
+ Authenticating with gds_sso strategy
27690
+ Completed in 0ms
27691
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27692
+ Started GET "/auth/gds/callback?code=5320f35741f878e97f94d0a5df8155da076dac362218ded70bcf45503b658044&state=9faa0341b67526b9d56b2370be32dc8bdf1a18a8937d8269" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27693
+ Processing by AuthenticationsController#callback as HTML
27694
+ Parameters: {"code"=>"5320f35741f878e97f94d0a5df8155da076dac362218ded70bcf45503b658044", "state"=>"9faa0341b67526b9d56b2370be32dc8bdf1a18a8937d8269"}
27695
+ Authenticating with gds_sso strategy
27696
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27697
+  (0.1ms) begin transaction
27698
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27699
+ - signin
27700
+ ' WHERE "users"."id" = 6
27701
+  (10.1ms) commit transaction
27702
+  (0.0ms) begin transaction
27703
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27704
+ - signin
27705
+ ' WHERE "users"."id" = 6
27706
+  (1.9ms) commit transaction
27707
+ Redirected to http://www.example-client.com/restricted
27708
+ Completed 302 Found in 17ms (ActiveRecord: 12.8ms)
27709
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:47 +0000
27710
+ Processing by ExampleController#restricted as HTML
27711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27712
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
27713
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27714
+ Processing by ExampleController#this_requires_signin_permission as HTML
27715
+ Authenticating with gds_sso strategy
27716
+ Completed in 1ms
27717
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27718
+ Started GET "/auth/gds/callback?code=f28e12842b1c767fdadb1690c803405a6768ca59a1e3aef519e650ae6403f9f3&state=c75ef1efcdea50a9fd21a5b66980be9490adcfe49e8361bc" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27719
+ Processing by AuthenticationsController#callback as HTML
27720
+ Parameters: {"code"=>"f28e12842b1c767fdadb1690c803405a6768ca59a1e3aef519e650ae6403f9f3", "state"=>"c75ef1efcdea50a9fd21a5b66980be9490adcfe49e8361bc"}
27721
+ Authenticating with gds_sso strategy
27722
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27723
+  (0.1ms) begin transaction
27724
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27725
+ - signin
27726
+ ' WHERE "users"."id" = 6
27727
+  (7.2ms) commit transaction
27728
+  (0.1ms) begin transaction
27729
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27730
+ - signin
27731
+ ' WHERE "users"."id" = 6
27732
+  (2.0ms) commit transaction
27733
+ Redirected to http://www.example-client.com/this_requires_signin_permission
27734
+ Completed 302 Found in 17ms (ActiveRecord: 10.2ms)
27735
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27736
+ Processing by ExampleController#this_requires_signin_permission as HTML
27737
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27738
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)
27739
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27740
+ Processing by ExampleController#this_requires_signin_permission as HTML
27741
+ Authenticating with gds_sso strategy
27742
+ Completed in 0ms
27743
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27744
+ Started GET "/auth/gds/callback?code=f7403dcc74f134a9aca399d9baec2a27b93320018fe4b87fbb411776891cfca7&state=4b55ed5a45cff9d75e7ef380d380cb5c32a64f34db72939a" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27745
+ Processing by AuthenticationsController#callback as HTML
27746
+ Parameters: {"code"=>"f7403dcc74f134a9aca399d9baec2a27b93320018fe4b87fbb411776891cfca7", "state"=>"4b55ed5a45cff9d75e7ef380d380cb5c32a64f34db72939a"}
27747
+ Authenticating with gds_sso strategy
27748
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27749
+  (0.1ms) begin transaction
27750
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27751
+ - signin
27752
+ ' WHERE "users"."id" = 6
27753
+  (9.4ms) commit transaction
27754
+  (0.1ms) begin transaction
27755
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27756
+ - signin
27757
+ ' WHERE "users"."id" = 6
27758
+  (1.8ms) commit transaction
27759
+ Redirected to http://www.example-client.com/this_requires_signin_permission
27760
+ Completed 302 Found in 16ms (ActiveRecord: 12.0ms)
27761
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27762
+ Processing by ExampleController#this_requires_signin_permission as HTML
27763
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27764
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
27765
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27766
+ Processing by ExampleController#restricted as HTML
27767
+ Authenticating with gds_sso strategy
27768
+ Completed in 0ms
27769
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:48 +0000
27770
+ Started GET "/auth/gds/callback?code=b0ef23c9b297480a67099eec2ccbccea9d14c3b24aeaf558ba635a4441c55a2b&state=4dc970d886dbc0bc1d97069e9aa9b10eda2138b7ad563025" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27771
+ Processing by AuthenticationsController#callback as HTML
27772
+ Parameters: {"code"=>"b0ef23c9b297480a67099eec2ccbccea9d14c3b24aeaf558ba635a4441c55a2b", "state"=>"4dc970d886dbc0bc1d97069e9aa9b10eda2138b7ad563025"}
27773
+ Authenticating with gds_sso strategy
27774
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27775
+  (0.1ms) begin transaction
27776
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27777
+ - signin
27778
+ ' WHERE "users"."id" = 6
27779
+  (8.4ms) commit transaction
27780
+  (0.1ms) begin transaction
27781
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27782
+ - signin
27783
+ ' WHERE "users"."id" = 6
27784
+  (1.8ms) commit transaction
27785
+ Redirected to http://www.example-client.com/restricted
27786
+ Completed 302 Found in 17ms (ActiveRecord: 11.2ms)
27787
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27788
+ Processing by ExampleController#restricted as HTML
27789
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27790
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
27791
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27792
+  (0.0ms) begin transaction
27793
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
27794
+ - signin
27795
+ ' WHERE "users"."id" = 6
27796
+  (1.8ms) commit transaction
27797
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27798
+ Processing by ExampleController#restricted as HTML
27799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27800
+ Filter chain halted as :authenticate_user! rendered or redirected
27801
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
27802
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27803
+ Processing by AuthenticationsController#sign_out as HTML
27804
+ Redirected to http://localhost:4567/users/sign_out
27805
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
27806
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27807
+ Processing by ExampleController#restricted as HTML
27808
+ Authenticating with gds_sso strategy
27809
+ Completed in 0ms
27810
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27811
+ Started GET "/auth/gds/callback?code=5fbf5297d7a816577269e81c371025b8825a74d6c2cef126a6be2902d9a30c2f&state=a1b7a9f711167af65a8b375cf3aa07996713571fff2bd763" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27812
+ Processing by AuthenticationsController#callback as HTML
27813
+ Parameters: {"code"=>"5fbf5297d7a816577269e81c371025b8825a74d6c2cef126a6be2902d9a30c2f", "state"=>"a1b7a9f711167af65a8b375cf3aa07996713571fff2bd763"}
27814
+ Authenticating with gds_sso strategy
27815
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27816
+  (0.1ms) begin transaction
27817
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27818
+ - signin
27819
+ ' WHERE "users"."id" = 6
27820
+  (9.6ms) commit transaction
27821
+  (0.0ms) begin transaction
27822
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
27823
+ - signin
27824
+ ' WHERE "users"."id" = 6
27825
+  (1.7ms) commit transaction
27826
+ Redirected to http://www.example-client.com/restricted
27827
+ Completed 302 Found in 16ms (ActiveRecord: 12.1ms)
27828
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27829
+ Processing by ExampleController#restricted as HTML
27830
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27831
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
27832
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27833
+ Processing by ExampleController#restricted as HTML
27834
+ Authenticating with gds_sso strategy
27835
+ Completed in 0ms
27836
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27837
+ Started GET "/auth/gds/callback?code=dbec99f136b77175d60135693ded668607ffbbfc216313ab7b0465d5d65112f4&state=b535984fa7ab71709510a5e4b87925a43e6c477cf60271f1" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27838
+ Processing by AuthenticationsController#callback as HTML
27839
+ Parameters: {"code"=>"dbec99f136b77175d60135693ded668607ffbbfc216313ab7b0465d5d65112f4", "state"=>"b535984fa7ab71709510a5e4b87925a43e6c477cf60271f1"}
27840
+ Authenticating with gds_sso strategy
27841
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27842
+  (0.1ms) begin transaction
27843
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27844
+ - signin
27845
+ ' WHERE "users"."id" = 6
27846
+  (7.0ms) commit transaction
27847
+  (0.1ms) begin transaction
27848
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27849
+ - signin
27850
+ ' WHERE "users"."id" = 6
27851
+  (1.8ms) commit transaction
27852
+ Redirected to http://www.example-client.com/restricted
27853
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
27854
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:49 +0000
27855
+ Processing by ExampleController#restricted as HTML
27856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27857
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
27858
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:45:49 +0000
27859
+ Processing by ExampleController#restricted as HTML
27860
+ Authenticating with gds_sso strategy
27861
+ Completed in 0ms
27862
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-19 09:45:49 +0000
27863
+ Started GET "/auth/gds/callback?code=e583b4edf4e55fd9a664a01780f34dfec8108cc985aa2ab587df20a9ada79abe&state=503dfc452209a3d5e07ec438afd1e571f1016b058f5fe694" for 127.0.0.1 at 2013-04-19 09:45:49 +0000
27864
+ Processing by AuthenticationsController#callback as HTML
27865
+ Parameters: {"code"=>"e583b4edf4e55fd9a664a01780f34dfec8108cc985aa2ab587df20a9ada79abe", "state"=>"503dfc452209a3d5e07ec438afd1e571f1016b058f5fe694"}
27866
+ Authenticating with gds_sso strategy
27867
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27868
+  (0.1ms) begin transaction
27869
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27870
+ - signin
27871
+ ' WHERE "users"."id" = 6
27872
+  (9.7ms) commit transaction
27873
+  (0.1ms) begin transaction
27874
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27875
+ - signin
27876
+ ' WHERE "users"."id" = 6
27877
+  (1.8ms) commit transaction
27878
+ Redirected to http://www.example-client.com/restricted
27879
+ Completed 302 Found in 17ms (ActiveRecord: 12.5ms)
27880
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:45:49 +0000
27881
+ Processing by ExampleController#restricted as HTML
27882
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27883
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
27884
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27885
+ Processing by ExampleController#restricted as HTML
27886
+ Authenticating with gds_sso strategy
27887
+ Completed in 0ms
27888
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27889
+ Started GET "/auth/gds/callback?code=68fff88f8886c5cb6ba3df359aea787d7bc8834819d5a8bfe14f496d027e4510&state=99be1e5d3f9a172c546202e7b28091e2d52280d7c54a440d" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27890
+ Processing by AuthenticationsController#callback as HTML
27891
+ Parameters: {"code"=>"68fff88f8886c5cb6ba3df359aea787d7bc8834819d5a8bfe14f496d027e4510", "state"=>"99be1e5d3f9a172c546202e7b28091e2d52280d7c54a440d"}
27892
+ Authenticating with gds_sso strategy
27893
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27894
+  (0.1ms) begin transaction
27895
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27896
+ - signin
27897
+ ' WHERE "users"."id" = 6
27898
+  (8.0ms) commit transaction
27899
+  (0.0ms) begin transaction
27900
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27901
+ - signin
27902
+ ' WHERE "users"."id" = 6
27903
+  (2.7ms) commit transaction
27904
+ Redirected to http://www.example-client.com/restricted
27905
+ Completed 302 Found in 17ms (ActiveRecord: 11.6ms)
27906
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27907
+ Processing by ExampleController#restricted as HTML
27908
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27909
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
27910
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-19 09:35:50 +0000
27911
+ Processing by ExampleController#restricted as HTML
27912
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27913
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
27914
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27915
+ Processing by ExampleController#restricted as JSON
27916
+ Authenticating with gds_sso_api_access strategy
27917
+ Completed in 14ms
27918
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27919
+ Processing by ExampleController#restricted as JSON
27920
+ Authenticating with gds_sso_api_access strategy
27921
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
27922
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27923
+ Processing by ExampleController#this_requires_signin_permission as JSON
27924
+ Authenticating with gds_sso_api_access strategy
27925
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
27926
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27927
+ Processing by ExampleController#restricted as JSON
27928
+ Authenticating with gds_bearer_token strategy
27929
+ Completed in 10ms
27930
+ Started GET "/restricted" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27931
+ Processing by ExampleController#restricted as JSON
27932
+ Authenticating with gds_bearer_token strategy
27933
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27934
+  (0.1ms) begin transaction
27935
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27936
+ - signin
27937
+ ' WHERE "users"."id" = 6
27938
+  (9.9ms) commit transaction
27939
+  (0.1ms) begin transaction
27940
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27941
+ - signin
27942
+ ' WHERE "users"."id" = 6
27943
+  (2.6ms) commit transaction
27944
+ Completed 200 OK in 57ms (Views: 0.6ms | ActiveRecord: 13.4ms)
27945
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-04-18 13:40:50 +0000
27946
+ Processing by ExampleController#this_requires_signin_permission as JSON
27947
+ Authenticating with gds_bearer_token strategy
27948
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
27949
+  (0.1ms) begin transaction
27950
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27951
+ - signin
27952
+ ' WHERE "users"."id" = 6
27953
+  (9.6ms) commit transaction
27954
+  (0.1ms) begin transaction
27955
+  (0.3ms) UPDATE "users" SET "permissions" = '---
27956
+ - signin
27957
+ ' WHERE "users"."id" = 6
27958
+  (2.4ms) commit transaction
27959
+ Completed 200 OK in 57ms (Views: 0.6ms | ActiveRecord: 13.0ms)