gds-sso 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gds-sso/user.rb CHANGED
@@ -37,7 +37,7 @@ module GDS
37
37
  raise "GDS::SSO no longer supports a Hash for permissions. Array expected. Maybe you need to migrate?"
38
38
  end
39
39
 
40
- permissions.include?(permission) || permissions.include?("admin")
40
+ permissions.include?(permission)
41
41
  end
42
42
  end
43
43
 
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "3.0.1"
3
+ VERSION = "3.0.2"
4
4
  end
5
5
  end
@@ -192,7 +192,7 @@ Warden::Strategies.add(:mock_gds_sso) do
192
192
  # Brute force ensure test user has correct perms to signin
193
193
  if ! test_user.has_permission?("signin")
194
194
  permissions = test_user.permissions || []
195
- test_user.update_attribute(:permissions, permissions << ["signin"])
195
+ test_user.update_attribute(:permissions, permissions << "signin")
196
196
  end
197
197
  success!(test_user)
198
198
  else
@@ -7,8 +7,8 @@ DELETE FROM `users`;
7
7
 
8
8
  -- Setup fixture data
9
9
  INSERT INTO `oauth_applications` VALUES (1,'GDS_SSO integration test','gds-sso-test','secret','http://www.example-client.com/auth/gds/callback','2012-04-19 13:26:54','2012-04-19 13:26:54', 'http://home.com', 'GDS_SSO integration test');
10
- INSERT INTO `users` (id, email, encrypted_password, created_at, updated_at, confirmed_at, name, uid, is_admin)
11
- VALUES (1,'test@example-client.com','$2a$04$MdMkVFwTq5GLJJkHS8GLIe6dK1.C4ozzba5ZS5Ks2b/NenVsMGGRW','2012-04-19 13:26:54','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', 0);
10
+ INSERT INTO `users` (id, email, encrypted_password, created_at, updated_at, confirmed_at, name, uid, role)
11
+ VALUES (1,'test@example-client.com','$2a$04$MdMkVFwTq5GLJJkHS8GLIe6dK1.C4ozzba5ZS5Ks2b/NenVsMGGRW','2012-04-19 13:26:54','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', "normal");
12
12
  INSERT INTO `permissions` (id, user_id, application_id, permissions) VALUES (1,1,1,"---
13
13
  - signin
14
14
  ");
@@ -11481,3 +11481,3811 @@ Authenticating with gds_bearer_token strategy
11481
11481
  ' WHERE "users"."id" = 6
11482
11482
   (2.5ms) commit transaction
11483
11483
  Completed 200 OK in 57ms (Views: 0.7ms | ActiveRecord: 11.8ms)
11484
+ Connecting to database specified by database.yml
11485
+  (3.3ms) select sqlite_version(*)
11486
+  (36.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)
11487
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
11488
+  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11489
+  (0.1ms) begin transaction
11490
+ SQL (84.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", "a1s2d3170"]]
11491
+  (19.2ms) commit transaction
11492
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11493
+ Processing by Api::UserController#update as HTML
11494
+ Parameters: {"uid"=>"a1s2d3170"}
11495
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.1ms)
11496
+ Completed 403 Forbidden in 118ms (Views: 116.6ms | ActiveRecord: 0.0ms)
11497
+  (0.1ms) begin transaction
11498
+ 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", "a1s2d3442"]]
11499
+  (6.5ms) commit transaction
11500
+ Processing by Api::UserController#update as HTML
11501
+ Parameters: {"uid"=>"a1s2d3442"}
11502
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3442' LIMIT 1
11503
+  (0.1ms) begin transaction
11504
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11505
+ - signin
11506
+ - new permission
11507
+ ' WHERE "users"."id" = 2
11508
+  (5.2ms) commit transaction
11509
+ Completed 200 OK in 38ms (ActiveRecord: 5.9ms)
11510
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
11511
+  (0.1ms) begin transaction
11512
+ 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", "a1s2d34929"]]
11513
+  (13.5ms) commit transaction
11514
+ Processing by Api::UserController#update as HTML
11515
+ Parameters: {"uid"=>"a1s2d34929"}
11516
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34929' LIMIT 1
11517
+  (0.1ms) begin transaction
11518
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11519
+ - signin
11520
+ - new permission
11521
+ ' WHERE "users"."id" = 3
11522
+  (13.3ms) commit transaction
11523
+ Completed 200 OK in 17ms (ActiveRecord: 14.0ms)
11524
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
11525
+  (0.1ms) begin transaction
11526
+ 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", "a1s2d38640"]]
11527
+  (6.3ms) commit transaction
11528
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11529
+ Processing by Api::UserController#reauth as HTML
11530
+ Parameters: {"uid"=>"a1s2d38640"}
11531
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
11532
+  (0.1ms) begin transaction
11533
+ 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", "a1s2d37523"]]
11534
+  (9.2ms) commit transaction
11535
+ Processing by Api::UserController#reauth as HTML
11536
+ Parameters: {"uid"=>"a1s2d37523"}
11537
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37523' LIMIT 1
11538
+  (0.0ms) begin transaction
11539
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11540
+ - signin
11541
+ ' WHERE "users"."id" = 5
11542
+  (4.2ms) commit transaction
11543
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
11544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
11545
+ Started GET "/" for 127.0.0.1 at 2013-01-15 10:06:11 +0000
11546
+ Processing by ExampleController#index as HTML
11547
+ Completed 200 OK in 17ms (Views: 6.1ms | ActiveRecord: 0.0ms)
11548
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:11 +0000
11549
+ Processing by ExampleController#restricted as HTML
11550
+ Authenticating with gds_sso strategy
11551
+ Completed in 141ms
11552
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:11 +0000
11553
+ Started GET "/auth/gds/callback?code=c9127e96126b414fc29cdff874a1b3af011a94bfcfbe13e780c72e99f1ad402d&state=e35faf9179339c0012851808d8c221a70bfecd8e71649082" for 127.0.0.1 at 2013-01-15 10:06:14 +0000
11554
+ Processing by AuthenticationsController#callback as HTML
11555
+ Parameters: {"code"=>"c9127e96126b414fc29cdff874a1b3af011a94bfcfbe13e780c72e99f1ad402d", "state"=>"e35faf9179339c0012851808d8c221a70bfecd8e71649082"}
11556
+ Authenticating with gds_sso strategy
11557
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11558
+  (0.1ms) begin transaction
11559
+ 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"]]
11560
+  (24.2ms) commit transaction
11561
+  (0.0ms) begin transaction
11562
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11563
+ - signin
11564
+ ' WHERE "users"."id" = 6
11565
+  (1.8ms) commit transaction
11566
+ Redirected to http://www.example-client.com/restricted
11567
+ Completed 302 Found in 33ms (ActiveRecord: 26.9ms)
11568
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:14 +0000
11569
+ Processing by ExampleController#restricted as HTML
11570
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11571
+ Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms)
11572
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:14 +0000
11573
+ Processing by ExampleController#restricted as HTML
11574
+ Authenticating with gds_sso strategy
11575
+ Completed in 0ms
11576
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:14 +0000
11577
+ Started GET "/auth/gds/callback?code=e2df405c66dadf7c2a5d00aaf078c1cc4a66c92a0c7665f15a16c2562a1aaa77&state=f7a2ae9407e921a45d723428741ed658cfd30733b990adbe" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11578
+ Processing by AuthenticationsController#callback as HTML
11579
+ Parameters: {"code"=>"e2df405c66dadf7c2a5d00aaf078c1cc4a66c92a0c7665f15a16c2562a1aaa77", "state"=>"f7a2ae9407e921a45d723428741ed658cfd30733b990adbe"}
11580
+ Authenticating with gds_sso strategy
11581
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11582
+  (0.1ms) begin transaction
11583
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11584
+ - signin
11585
+ ' WHERE "users"."id" = 6
11586
+  (24.3ms) commit transaction
11587
+  (0.1ms) begin transaction
11588
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11589
+ - signin
11590
+ ' WHERE "users"."id" = 6
11591
+  (2.6ms) commit transaction
11592
+ Redirected to http://www.example-client.com/restricted
11593
+ Completed 302 Found in 34ms (ActiveRecord: 27.8ms)
11594
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11595
+ Processing by ExampleController#restricted as HTML
11596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11597
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11598
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11599
+ Processing by ExampleController#restricted as HTML
11600
+ Authenticating with gds_sso strategy
11601
+ Completed in 0ms
11602
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11603
+ Started GET "/auth/gds/callback?code=971f2e7184e59d70bc5f63ae43f3b3158cf52214a5bb17dd3ccd0a36148e9df8&state=d1ab5b50ff98c13d3e0a139a6bbee85387c87bbcf3592b52" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11604
+ Processing by AuthenticationsController#callback as HTML
11605
+ Parameters: {"code"=>"971f2e7184e59d70bc5f63ae43f3b3158cf52214a5bb17dd3ccd0a36148e9df8", "state"=>"d1ab5b50ff98c13d3e0a139a6bbee85387c87bbcf3592b52"}
11606
+ Authenticating with gds_sso strategy
11607
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11608
+  (0.1ms) begin transaction
11609
+  (10.1ms) UPDATE "users" SET "permissions" = '---
11610
+ - signin
11611
+ ' WHERE "users"."id" = 6
11612
+  (5.4ms) commit transaction
11613
+  (0.1ms) begin transaction
11614
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11615
+ - signin
11616
+ ' WHERE "users"."id" = 6
11617
+  (1.8ms) commit transaction
11618
+ Redirected to http://www.example-client.com/restricted
11619
+ Completed 302 Found in 23ms (ActiveRecord: 18.0ms)
11620
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11621
+ Processing by ExampleController#restricted as HTML
11622
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11623
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11624
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11625
+ Processing by ExampleController#this_requires_signin_permission as HTML
11626
+ Authenticating with gds_sso strategy
11627
+ Completed in 1ms
11628
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:15 +0000
11629
+ Started GET "/auth/gds/callback?code=f35444aa8a495a34c7b916afce7c022fcf7e7e8a3f8ab5950687fc1efe9e42d4&state=88aa48f135941befa8733aaab7ec654d5e75a876341e34c9" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11630
+ Processing by AuthenticationsController#callback as HTML
11631
+ Parameters: {"code"=>"f35444aa8a495a34c7b916afce7c022fcf7e7e8a3f8ab5950687fc1efe9e42d4", "state"=>"88aa48f135941befa8733aaab7ec654d5e75a876341e34c9"}
11632
+ Authenticating with gds_sso strategy
11633
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11634
+  (0.1ms) begin transaction
11635
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11636
+ - signin
11637
+ ' WHERE "users"."id" = 6
11638
+  (14.9ms) commit transaction
11639
+  (0.0ms) begin transaction
11640
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11641
+ - signin
11642
+ ' WHERE "users"."id" = 6
11643
+  (2.3ms) commit transaction
11644
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11645
+ Completed 302 Found in 23ms (ActiveRecord: 18.2ms)
11646
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11647
+ Processing by ExampleController#this_requires_signin_permission as HTML
11648
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11649
+ Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.2ms)
11650
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11651
+ Processing by ExampleController#this_requires_signin_permission as HTML
11652
+ Authenticating with gds_sso strategy
11653
+ Completed in 0ms
11654
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11655
+ Started GET "/auth/gds/callback?code=951d56fea7c14cd32a29247fe86fed23b0175ebe475720a8bd788cfb8e534a8a&state=71b01099d0834ea669da64c4a55dd552b08b16d4cad6bb86" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11656
+ Processing by AuthenticationsController#callback as HTML
11657
+ Parameters: {"code"=>"951d56fea7c14cd32a29247fe86fed23b0175ebe475720a8bd788cfb8e534a8a", "state"=>"71b01099d0834ea669da64c4a55dd552b08b16d4cad6bb86"}
11658
+ Authenticating with gds_sso strategy
11659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11660
+  (0.1ms) begin transaction
11661
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11662
+ - signin
11663
+ ' WHERE "users"."id" = 6
11664
+  (16.4ms) commit transaction
11665
+  (0.0ms) begin transaction
11666
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11667
+ - signin
11668
+ ' WHERE "users"."id" = 6
11669
+  (1.8ms) commit transaction
11670
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11671
+ Completed 302 Found in 23ms (ActiveRecord: 19.1ms)
11672
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:16 +0000
11673
+ Processing by ExampleController#this_requires_signin_permission as HTML
11674
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11675
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11676
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11677
+ Processing by ExampleController#restricted as HTML
11678
+ Authenticating with gds_sso strategy
11679
+ Completed in 0ms
11680
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11681
+ Started GET "/auth/gds/callback?code=c1982ce2b64bdf8444788983867f1db75b3acac6de3a56fdfa4337312ed3be8e&state=5373993b9742da5587ced3893c95b8235e06f7cac644edec" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11682
+ Processing by AuthenticationsController#callback as HTML
11683
+ Parameters: {"code"=>"c1982ce2b64bdf8444788983867f1db75b3acac6de3a56fdfa4337312ed3be8e", "state"=>"5373993b9742da5587ced3893c95b8235e06f7cac644edec"}
11684
+ Authenticating with gds_sso strategy
11685
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11686
+  (0.1ms) begin transaction
11687
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11688
+ - signin
11689
+ ' WHERE "users"."id" = 6
11690
+  (23.9ms) commit transaction
11691
+  (0.1ms) begin transaction
11692
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11693
+ - signin
11694
+ ' WHERE "users"."id" = 6
11695
+  (2.9ms) commit transaction
11696
+ Redirected to http://www.example-client.com/restricted
11697
+ Completed 302 Found in 34ms (ActiveRecord: 27.9ms)
11698
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11699
+ Processing by ExampleController#restricted as HTML
11700
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11701
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11702
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11703
+  (0.1ms) begin transaction
11704
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11705
+ - signin
11706
+ ' WHERE "users"."id" = 6
11707
+  (15.9ms) commit transaction
11708
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11709
+ Processing by ExampleController#restricted as HTML
11710
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11711
+ Filter chain halted as :authenticate_user! rendered or redirected
11712
+ Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
11713
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-15 10:06:17 +0000
11714
+ Processing by AuthenticationsController#sign_out as HTML
11715
+ Redirected to http://localhost:4567/users/sign_out
11716
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11717
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11718
+ Processing by ExampleController#restricted as HTML
11719
+ Authenticating with gds_sso strategy
11720
+ Completed in 0ms
11721
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11722
+ Started GET "/auth/gds/callback?code=378468224f6fd66341f1b527fe2e86c764d763d504152905b3ebb5653e57a1c9&state=4c46806c023648f3816cc706fcb3c5572d28efba45497d4e" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11723
+ Processing by AuthenticationsController#callback as HTML
11724
+ Parameters: {"code"=>"378468224f6fd66341f1b527fe2e86c764d763d504152905b3ebb5653e57a1c9", "state"=>"4c46806c023648f3816cc706fcb3c5572d28efba45497d4e"}
11725
+ Authenticating with gds_sso strategy
11726
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11727
+  (0.1ms) begin transaction
11728
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11729
+ - signin
11730
+ ' WHERE "users"."id" = 6
11731
+  (14.5ms) commit transaction
11732
+  (0.1ms) begin transaction
11733
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11734
+ - signin
11735
+ ' WHERE "users"."id" = 6
11736
+  (1.9ms) commit transaction
11737
+ Redirected to http://www.example-client.com/restricted
11738
+ Completed 302 Found in 22ms (ActiveRecord: 17.2ms)
11739
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11740
+ Processing by ExampleController#restricted as HTML
11741
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11742
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11743
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11744
+ Processing by ExampleController#restricted as HTML
11745
+ Authenticating with gds_sso strategy
11746
+ Completed in 0ms
11747
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11748
+ Started GET "/auth/gds/callback?code=55bb8fa59d133b8a67a0cb99117ba1ad899ca51a29bf0fb21a4fb8924e295847&state=49e2301286900397343348f6a6a923b75a5024f25b6d955d" for 127.0.0.1 at 2013-01-15 10:06:18 +0000
11749
+ Processing by AuthenticationsController#callback as HTML
11750
+ Parameters: {"code"=>"55bb8fa59d133b8a67a0cb99117ba1ad899ca51a29bf0fb21a4fb8924e295847", "state"=>"49e2301286900397343348f6a6a923b75a5024f25b6d955d"}
11751
+ Authenticating with gds_sso strategy
11752
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11753
+  (0.1ms) begin transaction
11754
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11755
+ - signin
11756
+ ' WHERE "users"."id" = 6
11757
+  (17.5ms) commit transaction
11758
+  (0.0ms) begin transaction
11759
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11760
+ - signin
11761
+ ' WHERE "users"."id" = 6
11762
+  (2.1ms) commit transaction
11763
+ Redirected to http://www.example-client.com/restricted
11764
+ Completed 302 Found in 26ms (ActiveRecord: 20.6ms)
11765
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11766
+ Processing by ExampleController#restricted as HTML
11767
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11768
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
11769
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 06:11:19 +0000
11770
+ Processing by ExampleController#restricted as HTML
11771
+ Authenticating with gds_sso strategy
11772
+ Completed in 0ms
11773
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 06:11:19 +0000
11774
+ Started GET "/auth/gds/callback?code=99df2339ed7f8a19b34e403127d794e92d41851d78db6d38bb42ffca3e8cfc7d&state=d240b64b0dc50abd7fe96f12f0a8e53945de24854ab37b40" for 127.0.0.1 at 2013-01-16 06:11:19 +0000
11775
+ Processing by AuthenticationsController#callback as HTML
11776
+ Parameters: {"code"=>"99df2339ed7f8a19b34e403127d794e92d41851d78db6d38bb42ffca3e8cfc7d", "state"=>"d240b64b0dc50abd7fe96f12f0a8e53945de24854ab37b40"}
11777
+ Authenticating with gds_sso strategy
11778
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11779
+  (0.1ms) begin transaction
11780
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11781
+ - signin
11782
+ ' WHERE "users"."id" = 6
11783
+  (14.0ms) commit transaction
11784
+  (0.1ms) begin transaction
11785
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11786
+ - signin
11787
+ ' WHERE "users"."id" = 6
11788
+  (1.9ms) commit transaction
11789
+ Redirected to http://www.example-client.com/restricted
11790
+ Completed 302 Found in 21ms (ActiveRecord: 16.7ms)
11791
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 06:11:19 +0000
11792
+ Processing by ExampleController#restricted as HTML
11793
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11794
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11795
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11796
+ Processing by ExampleController#restricted as HTML
11797
+ Authenticating with gds_sso strategy
11798
+ Completed in 0ms
11799
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11800
+ Started GET "/auth/gds/callback?code=75acbd742ab0323147c510ec04ee5a77ed14f50c54598b9df9e7fa2e66074182&state=01e43f552e15675fa7e06a07f37ab2a5666b2afb22d6fc45" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11801
+ Processing by AuthenticationsController#callback as HTML
11802
+ Parameters: {"code"=>"75acbd742ab0323147c510ec04ee5a77ed14f50c54598b9df9e7fa2e66074182", "state"=>"01e43f552e15675fa7e06a07f37ab2a5666b2afb22d6fc45"}
11803
+ Authenticating with gds_sso strategy
11804
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11805
+  (0.1ms) begin transaction
11806
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11807
+ - signin
11808
+ ' WHERE "users"."id" = 6
11809
+  (7.1ms) commit transaction
11810
+  (0.1ms) begin transaction
11811
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11812
+ - signin
11813
+ ' WHERE "users"."id" = 6
11814
+  (2.1ms) commit transaction
11815
+ Redirected to http://www.example-client.com/restricted
11816
+ Completed 302 Found in 16ms (ActiveRecord: 10.2ms)
11817
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11818
+ Processing by ExampleController#restricted as HTML
11819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11820
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
11821
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 06:01:19 +0000
11822
+ Processing by ExampleController#restricted as HTML
11823
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11824
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
11825
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11826
+ Processing by ExampleController#restricted as JSON
11827
+ Authenticating with gds_sso_api_access strategy
11828
+ Completed in 66ms
11829
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11830
+ Processing by ExampleController#restricted as JSON
11831
+ Authenticating with gds_sso_api_access strategy
11832
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
11833
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:19 +0000
11834
+ Processing by ExampleController#this_requires_signin_permission as JSON
11835
+ Authenticating with gds_sso_api_access strategy
11836
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11837
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:20 +0000
11838
+ Processing by ExampleController#restricted as JSON
11839
+ Authenticating with gds_bearer_token strategy
11840
+ Completed in 9ms
11841
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 10:06:20 +0000
11842
+ Processing by ExampleController#restricted as JSON
11843
+ Authenticating with gds_bearer_token strategy
11844
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11845
+  (0.1ms) begin transaction
11846
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11847
+ - signin
11848
+ ' WHERE "users"."id" = 6
11849
+  (8.8ms) commit transaction
11850
+  (0.1ms) begin transaction
11851
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11852
+ - signin
11853
+ ' WHERE "users"."id" = 6
11854
+  (1.9ms) commit transaction
11855
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 11.6ms)
11856
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 10:06:20 +0000
11857
+ Processing by ExampleController#this_requires_signin_permission as JSON
11858
+ Authenticating with gds_bearer_token strategy
11859
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11860
+  (0.1ms) begin transaction
11861
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11862
+ - signin
11863
+ ' WHERE "users"."id" = 6
11864
+  (8.7ms) commit transaction
11865
+  (0.1ms) begin transaction
11866
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11867
+ - signin
11868
+ ' WHERE "users"."id" = 6
11869
+  (1.9ms) commit transaction
11870
+ Completed 200 OK in 57ms (Views: 0.7ms | ActiveRecord: 11.5ms)
11871
+ Connecting to database specified by database.yml
11872
+  (3.5ms) select sqlite_version(*)
11873
+  (16.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)
11874
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
11875
+  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11876
+  (0.1ms) begin transaction
11877
+ SQL (82.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", "a1s2d38272"]]
11878
+  (16.7ms) commit transaction
11879
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11880
+ Processing by Api::UserController#update as HTML
11881
+ Parameters: {"uid"=>"a1s2d38272"}
11882
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.1ms)
11883
+ Completed 403 Forbidden in 117ms (Views: 116.3ms | ActiveRecord: 0.0ms)
11884
+  (0.1ms) begin transaction
11885
+ 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", "a1s2d39730"]]
11886
+  (4.8ms) commit transaction
11887
+ Processing by Api::UserController#update as HTML
11888
+ Parameters: {"uid"=>"a1s2d39730"}
11889
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39730' LIMIT 1
11890
+  (0.1ms) begin transaction
11891
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11892
+ - signin
11893
+ - new permission
11894
+ ' WHERE "users"."id" = 2
11895
+  (2.2ms) commit transaction
11896
+ Completed 200 OK in 40ms (ActiveRecord: 2.9ms)
11897
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
11898
+  (0.1ms) begin transaction
11899
+ 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", "a1s2d32044"]]
11900
+  (11.4ms) commit transaction
11901
+ Processing by Api::UserController#update as HTML
11902
+ Parameters: {"uid"=>"a1s2d32044"}
11903
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32044' LIMIT 1
11904
+  (0.0ms) begin transaction
11905
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11906
+ - signin
11907
+ - new permission
11908
+ ' WHERE "users"."id" = 3
11909
+  (5.6ms) commit transaction
11910
+ Completed 200 OK in 9ms (ActiveRecord: 6.0ms)
11911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
11912
+  (0.1ms) begin transaction
11913
+ 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", "a1s2d34268"]]
11914
+  (6.2ms) commit transaction
11915
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11916
+ Processing by Api::UserController#reauth as HTML
11917
+ Parameters: {"uid"=>"a1s2d34268"}
11918
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
11919
+  (0.1ms) begin transaction
11920
+ 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", "a1s2d32801"]]
11921
+  (13.2ms) commit transaction
11922
+ Processing by Api::UserController#reauth as HTML
11923
+ Parameters: {"uid"=>"a1s2d32801"}
11924
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32801' LIMIT 1
11925
+  (0.1ms) begin transaction
11926
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11927
+ - signin
11928
+ ' WHERE "users"."id" = 5
11929
+  (4.2ms) commit transaction
11930
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
11931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
11932
+ Started GET "/" for 127.0.0.1 at 2013-01-15 15:45:17 +0000
11933
+ Processing by ExampleController#index as HTML
11934
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
11935
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:17 +0000
11936
+ Processing by ExampleController#restricted as HTML
11937
+ Authenticating with gds_sso strategy
11938
+ Completed in 62ms
11939
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:17 +0000
11940
+ Started GET "/auth/gds/callback?code=964674a7a671d3b57d1093454792b72eae0ab3c5a73c1a47ca9302ecd3023367&state=a078e263ba2ba39683038b7b41d384127708ceb96445dfbf" for 127.0.0.1 at 2013-01-15 15:45:18 +0000
11941
+ Processing by AuthenticationsController#callback as HTML
11942
+ Parameters: {"code"=>"964674a7a671d3b57d1093454792b72eae0ab3c5a73c1a47ca9302ecd3023367", "state"=>"a078e263ba2ba39683038b7b41d384127708ceb96445dfbf"}
11943
+ Authenticating with gds_sso strategy
11944
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11945
+  (0.1ms) begin transaction
11946
+ 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"]]
11947
+  (5.5ms) commit transaction
11948
+  (0.0ms) begin transaction
11949
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11950
+ - signin
11951
+ ' WHERE "users"."id" = 6
11952
+  (1.9ms) commit transaction
11953
+ Redirected to http://www.example-client.com/restricted
11954
+ Completed 302 Found in 14ms (ActiveRecord: 8.3ms)
11955
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:18 +0000
11956
+ Processing by ExampleController#restricted as HTML
11957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11958
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
11959
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11960
+ Processing by ExampleController#restricted as HTML
11961
+ Authenticating with gds_sso strategy
11962
+ Completed in 0ms
11963
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11964
+ Started GET "/auth/gds/callback?code=f6dc04ae272ee8b8556da97afe70b9111c89ef6a0d0c589493b24b708125bd52&state=132fa31e9127d44fda9e6673a84c9c2e9998e3d6f554d0d6" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11965
+ Processing by AuthenticationsController#callback as HTML
11966
+ Parameters: {"code"=>"f6dc04ae272ee8b8556da97afe70b9111c89ef6a0d0c589493b24b708125bd52", "state"=>"132fa31e9127d44fda9e6673a84c9c2e9998e3d6f554d0d6"}
11967
+ Authenticating with gds_sso strategy
11968
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11969
+  (0.1ms) begin transaction
11970
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11971
+ - signin
11972
+ ' WHERE "users"."id" = 6
11973
+  (6.4ms) commit transaction
11974
+  (0.0ms) begin transaction
11975
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11976
+ - signin
11977
+ ' WHERE "users"."id" = 6
11978
+  (2.0ms) commit transaction
11979
+ Redirected to http://www.example-client.com/restricted
11980
+ Completed 302 Found in 15ms (ActiveRecord: 9.3ms)
11981
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11982
+ Processing by ExampleController#restricted as HTML
11983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11984
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
11985
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11986
+ Processing by ExampleController#restricted as HTML
11987
+ Authenticating with gds_sso strategy
11988
+ Completed in 0ms
11989
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11990
+ Started GET "/auth/gds/callback?code=44fdb045b8925a2441be383f58b7f7212fc80a67944aeee7bbef7170fd807bc9&state=769723fea18b450ba6ffcd27505dbcb12b2e8b0448aa06c0" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
11991
+ Processing by AuthenticationsController#callback as HTML
11992
+ Parameters: {"code"=>"44fdb045b8925a2441be383f58b7f7212fc80a67944aeee7bbef7170fd807bc9", "state"=>"769723fea18b450ba6ffcd27505dbcb12b2e8b0448aa06c0"}
11993
+ Authenticating with gds_sso strategy
11994
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11995
+  (0.1ms) begin transaction
11996
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11997
+ - signin
11998
+ ' WHERE "users"."id" = 6
11999
+  (4.1ms) commit transaction
12000
+  (0.0ms) begin transaction
12001
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12002
+ - signin
12003
+ ' WHERE "users"."id" = 6
12004
+  (1.8ms) commit transaction
12005
+ Redirected to http://www.example-client.com/restricted
12006
+ Completed 302 Found in 11ms (ActiveRecord: 6.7ms)
12007
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
12008
+ Processing by ExampleController#restricted as HTML
12009
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12010
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
12011
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
12012
+ Processing by ExampleController#this_requires_signin_permission as HTML
12013
+ Authenticating with gds_sso strategy
12014
+ Completed in 1ms
12015
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:19 +0000
12016
+ Started GET "/auth/gds/callback?code=b4a29fb05af806510573e21af029a697b5c9ca8f339f98d85a7a912d5d0b0efb&state=e9ac046f9fea96d74655282c2203170cde580ef975935d3d" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12017
+ Processing by AuthenticationsController#callback as HTML
12018
+ Parameters: {"code"=>"b4a29fb05af806510573e21af029a697b5c9ca8f339f98d85a7a912d5d0b0efb", "state"=>"e9ac046f9fea96d74655282c2203170cde580ef975935d3d"}
12019
+ Authenticating with gds_sso strategy
12020
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12021
+  (0.1ms) begin transaction
12022
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12023
+ - signin
12024
+ ' WHERE "users"."id" = 6
12025
+  (7.5ms) commit transaction
12026
+  (0.0ms) begin transaction
12027
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12028
+ - signin
12029
+ ' WHERE "users"."id" = 6
12030
+  (2.0ms) commit transaction
12031
+ Redirected to http://www.example-client.com/this_requires_signin_permission
12032
+ Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
12033
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12034
+ Processing by ExampleController#this_requires_signin_permission as HTML
12035
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12036
+ Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
12037
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12038
+ Processing by ExampleController#this_requires_signin_permission as HTML
12039
+ Authenticating with gds_sso strategy
12040
+ Completed in 0ms
12041
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12042
+ Started GET "/auth/gds/callback?code=70331f4138546044d021a48dbb778ef607d6abdc22935d6096f11a7a5751425e&state=648dc2b39fcd0fc59f4e17a6edce987cabc778095648adfc" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12043
+ Processing by AuthenticationsController#callback as HTML
12044
+ Parameters: {"code"=>"70331f4138546044d021a48dbb778ef607d6abdc22935d6096f11a7a5751425e", "state"=>"648dc2b39fcd0fc59f4e17a6edce987cabc778095648adfc"}
12045
+ Authenticating with gds_sso strategy
12046
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12047
+  (0.1ms) begin transaction
12048
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12049
+ - signin
12050
+ ' WHERE "users"."id" = 6
12051
+  (9.2ms) commit transaction
12052
+  (0.0ms) begin transaction
12053
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12054
+ - signin
12055
+ ' WHERE "users"."id" = 6
12056
+  (1.8ms) commit transaction
12057
+ Redirected to http://www.example-client.com/this_requires_signin_permission
12058
+ Completed 302 Found in 16ms (ActiveRecord: 11.8ms)
12059
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12060
+ Processing by ExampleController#this_requires_signin_permission as HTML
12061
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12062
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
12063
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12064
+ Processing by ExampleController#restricted as HTML
12065
+ Authenticating with gds_sso strategy
12066
+ Completed in 0ms
12067
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12068
+ Started GET "/auth/gds/callback?code=21a4f4f9397868fc752459f5af9ec173e9214f49eacad87de64a0992ae645e57&state=53ce958ea950edc9e5c842961b44e350ba8fdf132557a3c1" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12069
+ Processing by AuthenticationsController#callback as HTML
12070
+ Parameters: {"code"=>"21a4f4f9397868fc752459f5af9ec173e9214f49eacad87de64a0992ae645e57", "state"=>"53ce958ea950edc9e5c842961b44e350ba8fdf132557a3c1"}
12071
+ Authenticating with gds_sso strategy
12072
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12073
+  (0.1ms) begin transaction
12074
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12075
+ - signin
12076
+ ' WHERE "users"."id" = 6
12077
+  (6.8ms) commit transaction
12078
+  (0.1ms) begin transaction
12079
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12080
+ - signin
12081
+ ' WHERE "users"."id" = 6
12082
+  (1.9ms) commit transaction
12083
+ Redirected to http://www.example-client.com/restricted
12084
+ Completed 302 Found in 15ms (ActiveRecord: 9.6ms)
12085
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12086
+ Processing by ExampleController#restricted as HTML
12087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12088
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
12089
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12090
+  (0.1ms) begin transaction
12091
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12092
+ - signin
12093
+ ' WHERE "users"."id" = 6
12094
+  (2.0ms) commit transaction
12095
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12096
+ Processing by ExampleController#restricted as HTML
12097
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12098
+ Filter chain halted as :authenticate_user! rendered or redirected
12099
+ Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
12100
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-15 15:45:20 +0000
12101
+ Processing by AuthenticationsController#sign_out as HTML
12102
+ Redirected to http://localhost:4567/users/sign_out
12103
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
12104
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12105
+ Processing by ExampleController#restricted as HTML
12106
+ Authenticating with gds_sso strategy
12107
+ Completed in 0ms
12108
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12109
+ Started GET "/auth/gds/callback?code=e458d4234cf1545952a49a6c3e712ca00a429177711cc4784fb23a478c51c1a0&state=6c14cd8e3ada1e6e6a403ffe3a2ff0ac6b928a7299327462" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12110
+ Processing by AuthenticationsController#callback as HTML
12111
+ Parameters: {"code"=>"e458d4234cf1545952a49a6c3e712ca00a429177711cc4784fb23a478c51c1a0", "state"=>"6c14cd8e3ada1e6e6a403ffe3a2ff0ac6b928a7299327462"}
12112
+ Authenticating with gds_sso strategy
12113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12114
+  (0.1ms) begin transaction
12115
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12116
+ - signin
12117
+ ' WHERE "users"."id" = 6
12118
+  (8.0ms) commit transaction
12119
+  (0.0ms) begin transaction
12120
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12121
+ - signin
12122
+ ' WHERE "users"."id" = 6
12123
+  (1.9ms) commit transaction
12124
+ Redirected to http://www.example-client.com/restricted
12125
+ Completed 302 Found in 15ms (ActiveRecord: 10.8ms)
12126
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12127
+ Processing by ExampleController#restricted as HTML
12128
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12129
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
12130
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12131
+ Processing by ExampleController#restricted as HTML
12132
+ Authenticating with gds_sso strategy
12133
+ Completed in 0ms
12134
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12135
+ Started GET "/auth/gds/callback?code=866791456d72fb5dc677433c1e09228f2253e54eb7560614de5748cced8990fd&state=26fcdfeb03bef574ef7b04f7adaa08717b24c1a7f56faa41" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12136
+ Processing by AuthenticationsController#callback as HTML
12137
+ Parameters: {"code"=>"866791456d72fb5dc677433c1e09228f2253e54eb7560614de5748cced8990fd", "state"=>"26fcdfeb03bef574ef7b04f7adaa08717b24c1a7f56faa41"}
12138
+ Authenticating with gds_sso strategy
12139
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12140
+  (0.1ms) begin transaction
12141
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12142
+ - signin
12143
+ ' WHERE "users"."id" = 6
12144
+  (5.9ms) commit transaction
12145
+  (0.1ms) begin transaction
12146
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12147
+ - signin
12148
+ ' WHERE "users"."id" = 6
12149
+  (2.0ms) commit transaction
12150
+ Redirected to http://www.example-client.com/restricted
12151
+ Completed 302 Found in 14ms (ActiveRecord: 8.9ms)
12152
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:21 +0000
12153
+ Processing by ExampleController#restricted as HTML
12154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12155
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
12156
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 11:50:21 +0000
12157
+ Processing by ExampleController#restricted as HTML
12158
+ Authenticating with gds_sso strategy
12159
+ Completed in 0ms
12160
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 11:50:21 +0000
12161
+ Started GET "/auth/gds/callback?code=f83f42f835e6474ca1b0c3b045753d7fb375202f645d88170861487702128371&state=c43ab66d70163e34aad4492d353da978ce24a73822e0f9b5" for 127.0.0.1 at 2013-01-16 11:50:21 +0000
12162
+ Processing by AuthenticationsController#callback as HTML
12163
+ Parameters: {"code"=>"f83f42f835e6474ca1b0c3b045753d7fb375202f645d88170861487702128371", "state"=>"c43ab66d70163e34aad4492d353da978ce24a73822e0f9b5"}
12164
+ Authenticating with gds_sso strategy
12165
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12166
+  (0.1ms) begin transaction
12167
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12168
+ - signin
12169
+ ' WHERE "users"."id" = 6
12170
+  (7.9ms) commit transaction
12171
+  (0.1ms) begin transaction
12172
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12173
+ - signin
12174
+ ' WHERE "users"."id" = 6
12175
+  (2.8ms) commit transaction
12176
+ Redirected to http://www.example-client.com/restricted
12177
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
12178
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 11:50:22 +0000
12179
+ Processing by ExampleController#restricted as HTML
12180
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12181
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
12182
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12183
+ Processing by ExampleController#restricted as HTML
12184
+ Authenticating with gds_sso strategy
12185
+ Completed in 0ms
12186
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12187
+ Started GET "/auth/gds/callback?code=15222b600a8b92f20ed4ea85293b17081a8c5a21aba52271ea4174f50c6b231d&state=78262c2673d2c95a232fcf99dc098be717c6d25cf5189174" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12188
+ Processing by AuthenticationsController#callback as HTML
12189
+ Parameters: {"code"=>"15222b600a8b92f20ed4ea85293b17081a8c5a21aba52271ea4174f50c6b231d", "state"=>"78262c2673d2c95a232fcf99dc098be717c6d25cf5189174"}
12190
+ Authenticating with gds_sso strategy
12191
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12192
+  (0.1ms) begin transaction
12193
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12194
+ - signin
12195
+ ' WHERE "users"."id" = 6
12196
+  (7.0ms) commit transaction
12197
+  (0.0ms) begin transaction
12198
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12199
+ - signin
12200
+ ' WHERE "users"."id" = 6
12201
+  (1.8ms) commit transaction
12202
+ Redirected to http://www.example-client.com/restricted
12203
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
12204
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12205
+ Processing by ExampleController#restricted as HTML
12206
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12207
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
12208
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 11:40:22 +0000
12209
+ Processing by ExampleController#restricted as HTML
12210
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12211
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
12212
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12213
+ Processing by ExampleController#restricted as JSON
12214
+ Authenticating with gds_sso_api_access strategy
12215
+ Completed in 65ms
12216
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12217
+ Processing by ExampleController#restricted as JSON
12218
+ Authenticating with gds_sso_api_access strategy
12219
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12220
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12221
+ Processing by ExampleController#this_requires_signin_permission as JSON
12222
+ Authenticating with gds_sso_api_access strategy
12223
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
12224
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12225
+ Processing by ExampleController#restricted as JSON
12226
+ Authenticating with gds_bearer_token strategy
12227
+ Completed in 9ms
12228
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12229
+ Processing by ExampleController#restricted as JSON
12230
+ Authenticating with gds_bearer_token strategy
12231
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12232
+  (0.1ms) begin transaction
12233
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12234
+ - signin
12235
+ ' WHERE "users"."id" = 6
12236
+  (8.5ms) commit transaction
12237
+  (0.0ms) begin transaction
12238
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12239
+ - signin
12240
+ ' WHERE "users"."id" = 6
12241
+  (1.9ms) commit transaction
12242
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 11.3ms)
12243
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:45:22 +0000
12244
+ Processing by ExampleController#this_requires_signin_permission as JSON
12245
+ Authenticating with gds_bearer_token strategy
12246
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12247
+  (0.1ms) begin transaction
12248
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12249
+ - signin
12250
+ ' WHERE "users"."id" = 6
12251
+  (8.9ms) commit transaction
12252
+  (0.1ms) begin transaction
12253
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12254
+ - signin
12255
+ ' WHERE "users"."id" = 6
12256
+  (1.9ms) commit transaction
12257
+ Completed 200 OK in 57ms (Views: 0.6ms | ActiveRecord: 11.7ms)
12258
+ Connecting to database specified by database.yml
12259
+  (3.0ms) select sqlite_version(*)
12260
+  (25.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)
12261
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
12262
+  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12263
+  (0.1ms) begin transaction
12264
+ SQL (97.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33941"]]
12265
+  (2.3ms) commit transaction
12266
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12267
+ Processing by Api::UserController#update as HTML
12268
+ Parameters: {"uid"=>"a1s2d33941"}
12269
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.4ms)
12270
+ Completed 403 Forbidden in 122ms (Views: 120.6ms | ActiveRecord: 0.0ms)
12271
+  (0.1ms) begin transaction
12272
+ 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", "a1s2d32831"]]
12273
+  (2.2ms) commit transaction
12274
+ Processing by Api::UserController#update as HTML
12275
+ Parameters: {"uid"=>"a1s2d32831"}
12276
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32831' LIMIT 1
12277
+  (0.1ms) begin transaction
12278
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12279
+ - signin
12280
+ - new permission
12281
+ ' WHERE "users"."id" = 2
12282
+  (12.8ms) commit transaction
12283
+ Completed 200 OK in 40ms (ActiveRecord: 13.5ms)
12284
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
12285
+  (0.1ms) begin transaction
12286
+ 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", "a1s2d36216"]]
12287
+  (4.6ms) commit transaction
12288
+ Processing by Api::UserController#update as HTML
12289
+ Parameters: {"uid"=>"a1s2d36216"}
12290
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36216' LIMIT 1
12291
+  (0.1ms) begin transaction
12292
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12293
+ - signin
12294
+ - new permission
12295
+ ' WHERE "users"."id" = 3
12296
+  (13.9ms) commit transaction
12297
+ Completed 200 OK in 18ms (ActiveRecord: 14.6ms)
12298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
12299
+  (0.1ms) begin transaction
12300
+ 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", "a1s2d36866"]]
12301
+  (15.2ms) commit transaction
12302
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12303
+ Processing by Api::UserController#reauth as HTML
12304
+ Parameters: {"uid"=>"a1s2d36866"}
12305
+ Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
12306
+  (0.1ms) begin transaction
12307
+ 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", "a1s2d38542"]]
12308
+  (2.1ms) commit transaction
12309
+ Processing by Api::UserController#reauth as HTML
12310
+ Parameters: {"uid"=>"a1s2d38542"}
12311
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38542' LIMIT 1
12312
+  (0.0ms) begin transaction
12313
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12314
+ - signin
12315
+ ' WHERE "users"."id" = 5
12316
+  (13.3ms) commit transaction
12317
+ Completed 200 OK in 16ms (ActiveRecord: 13.8ms)
12318
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
12319
+ Started GET "/" for 127.0.0.1 at 2013-01-15 15:50:38 +0000
12320
+ Processing by ExampleController#index as HTML
12321
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
12322
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:38 +0000
12323
+ Processing by ExampleController#restricted as HTML
12324
+ Authenticating with gds_sso strategy
12325
+ Completed in 66ms
12326
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:38 +0000
12327
+ Started GET "/auth/gds/callback?code=10b12d7edf544bb7c62c87c73463b26f74b6501f66073c8a106e6a829cdb5bd5&state=d80880c5b76ce130df32047e5d254aec5a9c8165f4310feb" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12328
+ Processing by AuthenticationsController#callback as HTML
12329
+ Parameters: {"code"=>"10b12d7edf544bb7c62c87c73463b26f74b6501f66073c8a106e6a829cdb5bd5", "state"=>"d80880c5b76ce130df32047e5d254aec5a9c8165f4310feb"}
12330
+ Authenticating with gds_sso strategy
12331
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12332
+  (0.1ms) begin transaction
12333
+ 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"]]
12334
+  (6.6ms) commit transaction
12335
+  (0.1ms) begin transaction
12336
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12337
+ - signin
12338
+ ' WHERE "users"."id" = 6
12339
+  (2.6ms) commit transaction
12340
+ Redirected to http://www.example-client.com/restricted
12341
+ Completed 302 Found in 17ms (ActiveRecord: 10.4ms)
12342
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12343
+ Processing by ExampleController#restricted as HTML
12344
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12345
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12346
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12347
+ Processing by ExampleController#restricted as HTML
12348
+ Authenticating with gds_sso strategy
12349
+ Completed in 1ms
12350
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12351
+ Started GET "/auth/gds/callback?code=62fefc9bc8b16dddfe66fee6e91f633b163119fc712cccf760cf6871a753b129&state=71b49bd5a665de45dbe0954e963fa9c72a63c90a63aae823" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12352
+ Processing by AuthenticationsController#callback as HTML
12353
+ Parameters: {"code"=>"62fefc9bc8b16dddfe66fee6e91f633b163119fc712cccf760cf6871a753b129", "state"=>"71b49bd5a665de45dbe0954e963fa9c72a63c90a63aae823"}
12354
+ Authenticating with gds_sso strategy
12355
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12356
+  (0.1ms) begin transaction
12357
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12358
+ - signin
12359
+ ' WHERE "users"."id" = 6
12360
+  (5.3ms) commit transaction
12361
+  (0.1ms) begin transaction
12362
+  (0.4ms) UPDATE "users" SET "permissions" = '---
12363
+ - signin
12364
+ ' WHERE "users"."id" = 6
12365
+  (2.2ms) commit transaction
12366
+ Redirected to http://www.example-client.com/restricted
12367
+ Completed 302 Found in 15ms (ActiveRecord: 8.7ms)
12368
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12369
+ Processing by ExampleController#restricted as HTML
12370
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12371
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12372
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12373
+ Processing by ExampleController#this_requires_signin_permission as HTML
12374
+ Authenticating with gds_sso strategy
12375
+ Completed in 1ms
12376
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:40 +0000
12377
+ Started GET "/auth/gds/callback?code=e1425991d1900ce801ad710c189f7d872cf09512d6633c3f1ccbad072df3f70e&state=4f2714ffa29817888cfc6d17bcac7c67846c32ddf2263ac1" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12378
+ Processing by AuthenticationsController#callback as HTML
12379
+ Parameters: {"code"=>"e1425991d1900ce801ad710c189f7d872cf09512d6633c3f1ccbad072df3f70e", "state"=>"4f2714ffa29817888cfc6d17bcac7c67846c32ddf2263ac1"}
12380
+ Authenticating with gds_sso strategy
12381
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12382
+  (0.1ms) begin transaction
12383
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12384
+ - signin
12385
+ ' WHERE "users"."id" = 6
12386
+  (4.1ms) commit transaction
12387
+  (0.0ms) begin transaction
12388
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12389
+ - signin
12390
+ ' WHERE "users"."id" = 6
12391
+  (2.1ms) commit transaction
12392
+ Redirected to http://www.example-client.com/this_requires_signin_permission
12393
+ Completed 302 Found in 14ms (ActiveRecord: 7.2ms)
12394
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12395
+ Processing by ExampleController#this_requires_signin_permission as HTML
12396
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12397
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12398
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12399
+ Processing by ExampleController#restricted as HTML
12400
+ Authenticating with gds_sso strategy
12401
+ Completed in 0ms
12402
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12403
+ Started GET "/auth/gds/callback?code=58eb3d432e48dc1ccb149cf8c5028c51f78b9130dda25451492562d250c8d6a7&state=4821b3c78774c7570f0c73b2e93ad4e93e0c170906c1731c" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12404
+ Processing by AuthenticationsController#callback as HTML
12405
+ Parameters: {"code"=>"58eb3d432e48dc1ccb149cf8c5028c51f78b9130dda25451492562d250c8d6a7", "state"=>"4821b3c78774c7570f0c73b2e93ad4e93e0c170906c1731c"}
12406
+ Authenticating with gds_sso strategy
12407
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12408
+  (0.1ms) begin transaction
12409
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12410
+ - signin
12411
+ ' WHERE "users"."id" = 6
12412
+  (6.7ms) commit transaction
12413
+  (0.1ms) begin transaction
12414
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12415
+ - signin
12416
+ ' WHERE "users"."id" = 6
12417
+  (2.3ms) commit transaction
12418
+ Redirected to http://www.example-client.com/restricted
12419
+ Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
12420
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12421
+ Processing by ExampleController#restricted as HTML
12422
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12423
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
12424
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12425
+ Processing by ExampleController#restricted as HTML
12426
+ Authenticating with gds_sso strategy
12427
+ Completed in 0ms
12428
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:41 +0000
12429
+ Started GET "/auth/gds/callback?code=5dc77692b20d7b9eb61c56fafbfcc03dc5c6eca7badb6b2b55c554c567df9f74&state=0d8419d83c707a23f87eb913f270452c6010c7879d584e25" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12430
+ Processing by AuthenticationsController#callback as HTML
12431
+ Parameters: {"code"=>"5dc77692b20d7b9eb61c56fafbfcc03dc5c6eca7badb6b2b55c554c567df9f74", "state"=>"0d8419d83c707a23f87eb913f270452c6010c7879d584e25"}
12432
+ Authenticating with gds_sso strategy
12433
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12434
+  (0.1ms) begin transaction
12435
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12436
+ - signin
12437
+ ' WHERE "users"."id" = 6
12438
+  (3.5ms) commit transaction
12439
+  (0.0ms) begin transaction
12440
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12441
+ - signin
12442
+ ' WHERE "users"."id" = 6
12443
+  (1.9ms) commit transaction
12444
+ Redirected to http://www.example-client.com/restricted
12445
+ Completed 302 Found in 15ms (ActiveRecord: 6.3ms)
12446
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12447
+ Processing by ExampleController#restricted as HTML
12448
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12449
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
12450
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12451
+ Processing by ExampleController#restricted as HTML
12452
+ Authenticating with gds_sso strategy
12453
+ Completed in 0ms
12454
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12455
+ Started GET "/auth/gds/callback?code=c9c051e5428d6ca978f5b31d2b11ad86fc5b2fe143b59bb7050b904ec0bb5c57&state=c2dd9f5993ae3b72565307f9bc1fb50b51f7cdfc872bbe58" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12456
+ Processing by AuthenticationsController#callback as HTML
12457
+ Parameters: {"code"=>"c9c051e5428d6ca978f5b31d2b11ad86fc5b2fe143b59bb7050b904ec0bb5c57", "state"=>"c2dd9f5993ae3b72565307f9bc1fb50b51f7cdfc872bbe58"}
12458
+ Authenticating with gds_sso strategy
12459
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12460
+  (0.1ms) begin transaction
12461
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12462
+ - signin
12463
+ ' WHERE "users"."id" = 6
12464
+  (6.2ms) commit transaction
12465
+  (0.1ms) begin transaction
12466
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12467
+ - signin
12468
+ ' WHERE "users"."id" = 6
12469
+  (2.5ms) commit transaction
12470
+ Redirected to http://www.example-client.com/restricted
12471
+ Completed 302 Found in 15ms (ActiveRecord: 9.6ms)
12472
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12473
+ Processing by ExampleController#restricted as HTML
12474
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12475
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12476
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12477
+ Processing by ExampleController#restricted as JSON
12478
+ Authenticating with gds_sso_api_access strategy
12479
+ Completed in 15ms
12480
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12481
+ Processing by ExampleController#restricted as JSON
12482
+ Authenticating with gds_sso_api_access strategy
12483
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
12484
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12485
+ Processing by ExampleController#this_requires_signin_permission as JSON
12486
+ Authenticating with gds_sso_api_access strategy
12487
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
12488
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:42 +0000
12489
+ Processing by ExampleController#restricted as JSON
12490
+ Authenticating with gds_bearer_token strategy
12491
+ Completed in 9ms
12492
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 15:50:43 +0000
12493
+ Processing by ExampleController#restricted as JSON
12494
+ Authenticating with gds_bearer_token strategy
12495
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12496
+  (0.1ms) begin transaction
12497
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12498
+ - signin
12499
+ ' WHERE "users"."id" = 6
12500
+  (8.7ms) commit transaction
12501
+  (0.1ms) begin transaction
12502
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12503
+ - signin
12504
+ ' WHERE "users"."id" = 6
12505
+  (1.8ms) commit transaction
12506
+ Completed 200 OK in 54ms (Views: 0.6ms | ActiveRecord: 11.5ms)
12507
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 15:50:43 +0000
12508
+ Processing by ExampleController#this_requires_signin_permission as JSON
12509
+ Authenticating with gds_bearer_token strategy
12510
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12511
+  (0.1ms) begin transaction
12512
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12513
+ - signin
12514
+ ' WHERE "users"."id" = 6
12515
+  (8.8ms) commit transaction
12516
+  (0.1ms) begin transaction
12517
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12518
+ - signin
12519
+ ' WHERE "users"."id" = 6
12520
+  (1.8ms) commit transaction
12521
+ Completed 200 OK in 76ms (Views: 0.6ms | ActiveRecord: 11.6ms)
12522
+ Connecting to database specified by database.yml
12523
+  (13.1ms) select sqlite_version(*)
12524
+  (17.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)
12525
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
12526
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12527
+  (0.1ms) begin transaction
12528
+ SQL (83.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", "a1s2d3849"]]
12529
+  (7.6ms) commit transaction
12530
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12531
+ Processing by Api::UserController#update as HTML
12532
+ Parameters: {"uid"=>"a1s2d3849"}
12533
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.4ms)
12534
+ Completed 403 Forbidden in 119ms (Views: 117.7ms | ActiveRecord: 0.0ms)
12535
+  (0.1ms) begin transaction
12536
+ 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", "a1s2d3482"]]
12537
+  (13.6ms) commit transaction
12538
+ Processing by Api::UserController#update as HTML
12539
+ Parameters: {"uid"=>"a1s2d3482"}
12540
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3482' LIMIT 1
12541
+  (0.1ms) begin transaction
12542
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12543
+ - signin
12544
+ - new permission
12545
+ ' WHERE "users"."id" = 2
12546
+  (2.3ms) commit transaction
12547
+ Completed 200 OK in 40ms (ActiveRecord: 2.9ms)
12548
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
12549
+  (0.1ms) begin transaction
12550
+ 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", "a1s2d37723"]]
12551
+  (3.6ms) commit transaction
12552
+ Processing by Api::UserController#update as HTML
12553
+ Parameters: {"uid"=>"a1s2d37723"}
12554
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37723' LIMIT 1
12555
+  (0.0ms) begin transaction
12556
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12557
+ - signin
12558
+ - new permission
12559
+ ' WHERE "users"."id" = 3
12560
+  (13.8ms) commit transaction
12561
+ Completed 200 OK in 17ms (ActiveRecord: 14.2ms)
12562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
12563
+  (0.1ms) begin transaction
12564
+ 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", "a1s2d35309"]]
12565
+  (5.7ms) commit transaction
12566
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12567
+ Processing by Api::UserController#reauth as HTML
12568
+ Parameters: {"uid"=>"a1s2d35309"}
12569
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
12570
+  (0.1ms) begin transaction
12571
+ 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", "a1s2d36973"]]
12572
+  (12.9ms) commit transaction
12573
+ Processing by Api::UserController#reauth as HTML
12574
+ Parameters: {"uid"=>"a1s2d36973"}
12575
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36973' LIMIT 1
12576
+  (0.1ms) begin transaction
12577
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12578
+ - signin
12579
+ ' WHERE "users"."id" = 5
12580
+  (13.6ms) commit transaction
12581
+ Completed 200 OK in 17ms (ActiveRecord: 14.1ms)
12582
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
12583
+ Started GET "/" for 127.0.0.1 at 2013-01-15 17:28:13 +0000
12584
+ Processing by ExampleController#index as HTML
12585
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
12586
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:13 +0000
12587
+ Processing by ExampleController#restricted as HTML
12588
+ Authenticating with gds_sso strategy
12589
+ Completed in 63ms
12590
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:14 +0000
12591
+ Started GET "/auth/gds/callback?code=0635975f5f2fdd3bd72378167dd45a85729d83ed09721f0273a38d6f80b83bd7&state=10e396f1aac37660eb0e15e208e3329fb90f5640bc6e0ef2" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12592
+ Processing by AuthenticationsController#callback as HTML
12593
+ Parameters: {"code"=>"0635975f5f2fdd3bd72378167dd45a85729d83ed09721f0273a38d6f80b83bd7", "state"=>"10e396f1aac37660eb0e15e208e3329fb90f5640bc6e0ef2"}
12594
+ Authenticating with gds_sso strategy
12595
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12596
+  (0.1ms) begin transaction
12597
+ 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"]]
12598
+  (12.5ms) commit transaction
12599
+  (0.0ms) begin transaction
12600
+  (5.0ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12601
+ - signin
12602
+ ' WHERE "users"."id" = 6
12603
+  (2.4ms) commit transaction
12604
+ Redirected to http://www.example-client.com/restricted
12605
+ Completed 302 Found in 26ms (ActiveRecord: 20.7ms)
12606
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12607
+ Processing by ExampleController#restricted as HTML
12608
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12609
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
12610
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12611
+ Processing by ExampleController#restricted as HTML
12612
+ Authenticating with gds_sso strategy
12613
+ Completed in 0ms
12614
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12615
+ Started GET "/auth/gds/callback?code=60ee425d7341da8003fc6dda8ceed28278791af6a852d8dc660fd0fdffe8fc28&state=1204e4854abafef026bc96bbc8ec076500b9bc56402338c3" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12616
+ Processing by AuthenticationsController#callback as HTML
12617
+ Parameters: {"code"=>"60ee425d7341da8003fc6dda8ceed28278791af6a852d8dc660fd0fdffe8fc28", "state"=>"1204e4854abafef026bc96bbc8ec076500b9bc56402338c3"}
12618
+ Authenticating with gds_sso strategy
12619
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12620
+  (0.1ms) begin transaction
12621
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12622
+ - signin
12623
+ ' WHERE "users"."id" = 6
12624
+  (5.9ms) commit transaction
12625
+  (0.1ms) begin transaction
12626
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12627
+ - signin
12628
+ ' WHERE "users"."id" = 6
12629
+  (1.9ms) commit transaction
12630
+ Redirected to http://www.example-client.com/restricted
12631
+ Completed 302 Found in 15ms (ActiveRecord: 8.8ms)
12632
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12633
+ Processing by ExampleController#restricted as HTML
12634
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12635
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12636
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12637
+ Processing by ExampleController#restricted as HTML
12638
+ Authenticating with gds_sso strategy
12639
+ Completed in 0ms
12640
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:15 +0000
12641
+ Started GET "/auth/gds/callback?code=49099ea4389c04029c6f5e43e55e47ceab67aa708a959ef2b77dcba8cbdbde12&state=57c75c470a93f9aa6220b72e9eb864ef9e64759db282fc53" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12642
+ Processing by AuthenticationsController#callback as HTML
12643
+ Parameters: {"code"=>"49099ea4389c04029c6f5e43e55e47ceab67aa708a959ef2b77dcba8cbdbde12", "state"=>"57c75c470a93f9aa6220b72e9eb864ef9e64759db282fc53"}
12644
+ Authenticating with gds_sso strategy
12645
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12646
+  (0.1ms) begin transaction
12647
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12648
+ - signin
12649
+ ' WHERE "users"."id" = 6
12650
+  (8.6ms) commit transaction
12651
+  (0.1ms) begin transaction
12652
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12653
+ - signin
12654
+ ' WHERE "users"."id" = 6
12655
+  (2.2ms) commit transaction
12656
+ Redirected to http://www.example-client.com/restricted
12657
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
12658
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12659
+ Processing by ExampleController#restricted as HTML
12660
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12661
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
12662
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12663
+ Processing by ExampleController#this_requires_signin_permission as HTML
12664
+ Authenticating with gds_sso strategy
12665
+ Completed in 1ms
12666
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12667
+ Started GET "/auth/gds/callback?code=6434c8a4ed0d390a1b0c9a3439206175f59b60dd2ead39d4c5a3f77f9064cc01&state=9dcb42595a5d25650e6f948ab6842a696394ddc9e28689e0" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12668
+ Processing by AuthenticationsController#callback as HTML
12669
+ Parameters: {"code"=>"6434c8a4ed0d390a1b0c9a3439206175f59b60dd2ead39d4c5a3f77f9064cc01", "state"=>"9dcb42595a5d25650e6f948ab6842a696394ddc9e28689e0"}
12670
+ Authenticating with gds_sso strategy
12671
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12672
+  (0.1ms) begin transaction
12673
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12674
+ - signin
12675
+ ' WHERE "users"."id" = 6
12676
+  (6.9ms) commit transaction
12677
+  (0.1ms) begin transaction
12678
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12679
+ - signin
12680
+ ' WHERE "users"."id" = 6
12681
+  (2.0ms) commit transaction
12682
+ Redirected to http://www.example-client.com/this_requires_signin_permission
12683
+ Completed 302 Found in 16ms (ActiveRecord: 9.9ms)
12684
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12685
+ Processing by ExampleController#this_requires_signin_permission as HTML
12686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12687
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
12688
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12689
+ Processing by ExampleController#this_requires_signin_permission as HTML
12690
+ Authenticating with gds_sso strategy
12691
+ Completed in 0ms
12692
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12693
+ Started GET "/auth/gds/callback?code=ff1438fbfba320fdd9505734194d2196a99478ccdca902153294d7dc589615ce&state=d267d1b02b83537efbfe0d2552dbdfdf6b250dd57dc58e3c" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12694
+ Processing by AuthenticationsController#callback as HTML
12695
+ Parameters: {"code"=>"ff1438fbfba320fdd9505734194d2196a99478ccdca902153294d7dc589615ce", "state"=>"d267d1b02b83537efbfe0d2552dbdfdf6b250dd57dc58e3c"}
12696
+ Authenticating with gds_sso strategy
12697
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12698
+  (0.1ms) begin transaction
12699
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12700
+ - signin
12701
+ ' WHERE "users"."id" = 6
12702
+  (8.7ms) commit transaction
12703
+  (0.0ms) begin transaction
12704
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12705
+ - signin
12706
+ ' WHERE "users"."id" = 6
12707
+  (2.6ms) commit transaction
12708
+ Redirected to http://www.example-client.com/this_requires_signin_permission
12709
+ Completed 302 Found in 16ms (ActiveRecord: 12.2ms)
12710
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12711
+ Processing by ExampleController#this_requires_signin_permission as HTML
12712
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12713
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
12714
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12715
+ Processing by ExampleController#restricted as HTML
12716
+ Authenticating with gds_sso strategy
12717
+ Completed in 0ms
12718
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:16 +0000
12719
+ Started GET "/auth/gds/callback?code=d3a8ed7de976c705456f571449f552d9f631a390a29695b454591f5bf058199d&state=795f563cfee75a26e4d4390550b663e339429c6470fc5b8c" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12720
+ Processing by AuthenticationsController#callback as HTML
12721
+ Parameters: {"code"=>"d3a8ed7de976c705456f571449f552d9f631a390a29695b454591f5bf058199d", "state"=>"795f563cfee75a26e4d4390550b663e339429c6470fc5b8c"}
12722
+ Authenticating with gds_sso strategy
12723
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12724
+  (0.1ms) begin transaction
12725
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12726
+ - signin
12727
+ ' WHERE "users"."id" = 6
12728
+  (5.9ms) commit transaction
12729
+  (0.1ms) begin transaction
12730
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12731
+ - signin
12732
+ ' WHERE "users"."id" = 6
12733
+  (1.9ms) commit transaction
12734
+ Redirected to http://www.example-client.com/restricted
12735
+ Completed 302 Found in 15ms (ActiveRecord: 8.8ms)
12736
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12737
+ Processing by ExampleController#restricted as HTML
12738
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12739
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
12740
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12741
+  (0.1ms) begin transaction
12742
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12743
+ - signin
12744
+ ' WHERE "users"."id" = 6
12745
+  (2.0ms) commit transaction
12746
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12747
+ Processing by ExampleController#restricted as HTML
12748
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12749
+ Filter chain halted as :authenticate_user! rendered or redirected
12750
+ Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
12751
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12752
+ Processing by AuthenticationsController#sign_out as HTML
12753
+ Redirected to http://localhost:4567/users/sign_out
12754
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
12755
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12756
+ Processing by ExampleController#restricted as HTML
12757
+ Authenticating with gds_sso strategy
12758
+ Completed in 0ms
12759
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12760
+ Started GET "/auth/gds/callback?code=1daab2a80b39fb7780b8c18af515e2ff9bfa17b5e9dc839d78469b3307200e61&state=dbc0087ea59105e29d12dd30e035cd2db26883a22ceae44f" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12761
+ Processing by AuthenticationsController#callback as HTML
12762
+ Parameters: {"code"=>"1daab2a80b39fb7780b8c18af515e2ff9bfa17b5e9dc839d78469b3307200e61", "state"=>"dbc0087ea59105e29d12dd30e035cd2db26883a22ceae44f"}
12763
+ Authenticating with gds_sso strategy
12764
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12765
+  (0.1ms) begin transaction
12766
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12767
+ - signin
12768
+ ' WHERE "users"."id" = 6
12769
+  (7.8ms) commit transaction
12770
+  (0.1ms) begin transaction
12771
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12772
+ - signin
12773
+ ' WHERE "users"."id" = 6
12774
+  (1.9ms) commit transaction
12775
+ Redirected to http://www.example-client.com/restricted
12776
+ Completed 302 Found in 15ms (ActiveRecord: 10.6ms)
12777
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12778
+ Processing by ExampleController#restricted as HTML
12779
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12780
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
12781
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12782
+ Processing by ExampleController#restricted as HTML
12783
+ Authenticating with gds_sso strategy
12784
+ Completed in 0ms
12785
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:17 +0000
12786
+ Started GET "/auth/gds/callback?code=e52d82d1b904a8c76006004694a278ba2ca1bf3f8b6427ea3969d266bae62993&state=bb95c484ab13a5868bab712485390f3f5466e56dd20859ca" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12787
+ Processing by AuthenticationsController#callback as HTML
12788
+ Parameters: {"code"=>"e52d82d1b904a8c76006004694a278ba2ca1bf3f8b6427ea3969d266bae62993", "state"=>"bb95c484ab13a5868bab712485390f3f5466e56dd20859ca"}
12789
+ Authenticating with gds_sso strategy
12790
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12791
+  (0.1ms) begin transaction
12792
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12793
+ - signin
12794
+ ' WHERE "users"."id" = 6
12795
+  (4.2ms) commit transaction
12796
+  (0.1ms) begin transaction
12797
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12798
+ - signin
12799
+ ' WHERE "users"."id" = 6
12800
+  (1.9ms) commit transaction
12801
+ Redirected to http://www.example-client.com/restricted
12802
+ Completed 302 Found in 13ms (ActiveRecord: 7.0ms)
12803
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12804
+ Processing by ExampleController#restricted as HTML
12805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12806
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
12807
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 13:33:18 +0000
12808
+ Processing by ExampleController#restricted as HTML
12809
+ Authenticating with gds_sso strategy
12810
+ Completed in 0ms
12811
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 13:33:18 +0000
12812
+ Started GET "/auth/gds/callback?code=004d13b9b900e6c4aa03db4f64efa81402173a54a746f1c2e11ae7d8657a71b4&state=99f534475bcb8df0690819337aef71ca2057a6a315fd248b" for 127.0.0.1 at 2013-01-16 13:33:18 +0000
12813
+ Processing by AuthenticationsController#callback as HTML
12814
+ Parameters: {"code"=>"004d13b9b900e6c4aa03db4f64efa81402173a54a746f1c2e11ae7d8657a71b4", "state"=>"99f534475bcb8df0690819337aef71ca2057a6a315fd248b"}
12815
+ Authenticating with gds_sso strategy
12816
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12817
+  (0.1ms) begin transaction
12818
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12819
+ - signin
12820
+ ' WHERE "users"."id" = 6
12821
+  (7.9ms) commit transaction
12822
+  (0.1ms) begin transaction
12823
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12824
+ - signin
12825
+ ' WHERE "users"."id" = 6
12826
+  (1.9ms) commit transaction
12827
+ Redirected to http://www.example-client.com/restricted
12828
+ Completed 302 Found in 16ms (ActiveRecord: 10.8ms)
12829
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 13:33:18 +0000
12830
+ Processing by ExampleController#restricted as HTML
12831
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12832
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
12833
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12834
+ Processing by ExampleController#restricted as HTML
12835
+ Authenticating with gds_sso strategy
12836
+ Completed in 0ms
12837
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12838
+ Started GET "/auth/gds/callback?code=933d5d3f8d65d00d6c9091636b287af18b8045d93db4a3e107e1fbb65d1230fa&state=45c5f5488ee0352edd51c2a10741a8a0ec503b24be79458e" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12839
+ Processing by AuthenticationsController#callback as HTML
12840
+ Parameters: {"code"=>"933d5d3f8d65d00d6c9091636b287af18b8045d93db4a3e107e1fbb65d1230fa", "state"=>"45c5f5488ee0352edd51c2a10741a8a0ec503b24be79458e"}
12841
+ Authenticating with gds_sso strategy
12842
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12843
+  (0.1ms) begin transaction
12844
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12845
+ - signin
12846
+ ' WHERE "users"."id" = 6
12847
+  (6.5ms) commit transaction
12848
+  (0.1ms) begin transaction
12849
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12850
+ - signin
12851
+ ' WHERE "users"."id" = 6
12852
+  (2.2ms) commit transaction
12853
+ Redirected to http://www.example-client.com/restricted
12854
+ Completed 302 Found in 15ms (ActiveRecord: 9.7ms)
12855
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12856
+ Processing by ExampleController#restricted as HTML
12857
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12858
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
12859
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 13:23:18 +0000
12860
+ Processing by ExampleController#restricted as HTML
12861
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12862
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
12863
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12864
+ Processing by ExampleController#restricted as JSON
12865
+ Authenticating with gds_sso_api_access strategy
12866
+ Completed in 15ms
12867
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12868
+ Processing by ExampleController#restricted as JSON
12869
+ Authenticating with gds_sso_api_access strategy
12870
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
12871
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:18 +0000
12872
+ Processing by ExampleController#this_requires_signin_permission as JSON
12873
+ Authenticating with gds_sso_api_access strategy
12874
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
12875
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:19 +0000
12876
+ Processing by ExampleController#restricted as JSON
12877
+ Authenticating with gds_bearer_token strategy
12878
+ Completed in 10ms
12879
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-15 17:28:19 +0000
12880
+ Processing by ExampleController#restricted as JSON
12881
+ Authenticating with gds_bearer_token strategy
12882
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12883
+  (0.1ms) begin transaction
12884
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12885
+ - signin
12886
+ ' WHERE "users"."id" = 6
12887
+  (7.8ms) commit transaction
12888
+  (0.1ms) begin transaction
12889
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12890
+ - signin
12891
+ ' WHERE "users"."id" = 6
12892
+  (2.5ms) commit transaction
12893
+ Completed 200 OK in 57ms (Views: 0.7ms | ActiveRecord: 11.5ms)
12894
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-15 17:28:19 +0000
12895
+ Processing by ExampleController#this_requires_signin_permission as JSON
12896
+ Authenticating with gds_bearer_token strategy
12897
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12898
+  (0.1ms) begin transaction
12899
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12900
+ - signin
12901
+ ' WHERE "users"."id" = 6
12902
+  (8.0ms) commit transaction
12903
+  (0.1ms) begin transaction
12904
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12905
+ - signin
12906
+ ' WHERE "users"."id" = 6
12907
+  (2.3ms) commit transaction
12908
+ Completed 200 OK in 58ms (Views: 0.7ms | ActiveRecord: 11.3ms)
12909
+ Connecting to database specified by database.yml
12910
+  (3.0ms) select sqlite_version(*)
12911
+  (21.9ms) 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)
12912
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
12913
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12914
+  (0.1ms) begin transaction
12915
+ SQL (92.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", "a1s2d39824"]]
12916
+  (10.9ms) commit transaction
12917
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12918
+ Processing by Api::UserController#update as HTML
12919
+ Parameters: {"uid"=>"a1s2d39824"}
12920
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (14.4ms)
12921
+ Completed 403 Forbidden in 118ms (Views: 117.4ms | ActiveRecord: 0.0ms)
12922
+  (0.1ms) begin transaction
12923
+ 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", "a1s2d35967"]]
12924
+  (3.7ms) commit transaction
12925
+ Processing by Api::UserController#update as HTML
12926
+ Parameters: {"uid"=>"a1s2d35967"}
12927
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35967' LIMIT 1
12928
+  (0.1ms) begin transaction
12929
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12930
+ - signin
12931
+ - new permission
12932
+ ' WHERE "users"."id" = 2
12933
+  (2.2ms) commit transaction
12934
+ Completed 200 OK in 40ms (ActiveRecord: 2.9ms)
12935
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
12936
+  (0.1ms) begin transaction
12937
+ 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", "a1s2d33939"]]
12938
+  (12.0ms) commit transaction
12939
+ Processing by Api::UserController#update as HTML
12940
+ Parameters: {"uid"=>"a1s2d33939"}
12941
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33939' LIMIT 1
12942
+  (0.0ms) begin transaction
12943
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12944
+ - signin
12945
+ - new permission
12946
+ ' WHERE "users"."id" = 3
12947
+  (5.6ms) commit transaction
12948
+ Completed 200 OK in 9ms (ActiveRecord: 6.1ms)
12949
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
12950
+  (0.1ms) begin transaction
12951
+ 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", "a1s2d32004"]]
12952
+  (5.8ms) commit transaction
12953
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
12954
+ Processing by Api::UserController#reauth as HTML
12955
+ Parameters: {"uid"=>"a1s2d32004"}
12956
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
12957
+  (0.1ms) begin transaction
12958
+ 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", "a1s2d32044"]]
12959
+  (13.4ms) commit transaction
12960
+ Processing by Api::UserController#reauth as HTML
12961
+ Parameters: {"uid"=>"a1s2d32044"}
12962
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32044' LIMIT 1
12963
+  (0.1ms) begin transaction
12964
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12965
+ - signin
12966
+ ' WHERE "users"."id" = 5
12967
+  (13.2ms) commit transaction
12968
+ Completed 200 OK in 16ms (ActiveRecord: 13.7ms)
12969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
12970
+ Started GET "/" for 127.0.0.1 at 2013-01-16 15:06:15 +0000
12971
+ Processing by ExampleController#index as HTML
12972
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
12973
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:16 +0000
12974
+ Processing by ExampleController#restricted as HTML
12975
+ Authenticating with gds_sso strategy
12976
+ Completed in 63ms
12977
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:16 +0000
12978
+ Started GET "/auth/gds/callback?code=446fca973451b10e9c66feee0ccb05b493366847061c1146a45ea7aa14b75cc9&state=38512acd3c963f73fdb0fbe51597c8273d2f22dd6a500209" for 127.0.0.1 at 2013-01-16 15:06:17 +0000
12979
+ Processing by AuthenticationsController#callback as HTML
12980
+ Parameters: {"code"=>"446fca973451b10e9c66feee0ccb05b493366847061c1146a45ea7aa14b75cc9", "state"=>"38512acd3c963f73fdb0fbe51597c8273d2f22dd6a500209"}
12981
+ Authenticating with gds_sso strategy
12982
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12983
+  (0.1ms) begin transaction
12984
+ 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"]]
12985
+  (13.1ms) commit transaction
12986
+  (0.0ms) begin transaction
12987
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12988
+ - signin
12989
+ ' WHERE "users"."id" = 6
12990
+  (1.8ms) commit transaction
12991
+ Redirected to http://www.example-client.com/restricted
12992
+ Completed 302 Found in 22ms (ActiveRecord: 15.9ms)
12993
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:17 +0000
12994
+ Processing by ExampleController#restricted as HTML
12995
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12996
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
12997
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:17 +0000
12998
+ Processing by ExampleController#restricted as HTML
12999
+ Authenticating with gds_sso strategy
13000
+ Completed in 0ms
13001
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:17 +0000
13002
+ Started GET "/auth/gds/callback?code=d2dccd0f3aa41608ee57f3207556cf1c9e8e02af7fe60bb91e83e7ede937308b&state=50fd70e37df480265fcd32ab73faa389ceaa1bbfd3b5c616" for 127.0.0.1 at 2013-01-16 15:06:17 +0000
13003
+ Processing by AuthenticationsController#callback as HTML
13004
+ Parameters: {"code"=>"d2dccd0f3aa41608ee57f3207556cf1c9e8e02af7fe60bb91e83e7ede937308b", "state"=>"50fd70e37df480265fcd32ab73faa389ceaa1bbfd3b5c616"}
13005
+ Authenticating with gds_sso strategy
13006
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13007
+  (0.1ms) begin transaction
13008
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13009
+ - signin
13010
+ ' WHERE "users"."id" = 6
13011
+  (12.4ms) commit transaction
13012
+  (0.1ms) begin transaction
13013
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13014
+ - signin
13015
+ ' WHERE "users"."id" = 6
13016
+  (2.4ms) commit transaction
13017
+ Redirected to http://www.example-client.com/restricted
13018
+ Completed 302 Found in 22ms (ActiveRecord: 15.9ms)
13019
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13020
+ Processing by ExampleController#restricted as HTML
13021
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13022
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
13023
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13024
+ Processing by ExampleController#restricted as HTML
13025
+ Authenticating with gds_sso strategy
13026
+ Completed in 0ms
13027
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13028
+ Started GET "/auth/gds/callback?code=0fee1027af556c97e8778406b749d0dadfadc5ba9d3f59858d011bb1bf0a73d3&state=c6e71d0143f37d02ba997900c7df5d05854028654488a433" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13029
+ Processing by AuthenticationsController#callback as HTML
13030
+ Parameters: {"code"=>"0fee1027af556c97e8778406b749d0dadfadc5ba9d3f59858d011bb1bf0a73d3", "state"=>"c6e71d0143f37d02ba997900c7df5d05854028654488a433"}
13031
+ Authenticating with gds_sso strategy
13032
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13033
+  (0.1ms) begin transaction
13034
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13035
+ - signin
13036
+ ' WHERE "users"."id" = 6
13037
+  (8.8ms) commit transaction
13038
+  (0.0ms) begin transaction
13039
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13040
+ - signin
13041
+ ' WHERE "users"."id" = 6
13042
+  (1.9ms) commit transaction
13043
+ Redirected to http://www.example-client.com/restricted
13044
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
13045
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13046
+ Processing by ExampleController#restricted as HTML
13047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13048
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
13049
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13050
+ Processing by ExampleController#this_requires_signin_permission as HTML
13051
+ Authenticating with gds_sso strategy
13052
+ Completed in 1ms
13053
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13054
+ Started GET "/auth/gds/callback?code=7fbc54fa627b5498de4f0231d758bb2c92a34582653b9d5888940bf204200fe1&state=6ee6528aad97ba0e3a2c962580eccc270be9a05345e79034" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13055
+ Processing by AuthenticationsController#callback as HTML
13056
+ Parameters: {"code"=>"7fbc54fa627b5498de4f0231d758bb2c92a34582653b9d5888940bf204200fe1", "state"=>"6ee6528aad97ba0e3a2c962580eccc270be9a05345e79034"}
13057
+ Authenticating with gds_sso strategy
13058
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13059
+  (0.1ms) begin transaction
13060
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13061
+ - signin
13062
+ ' WHERE "users"."id" = 6
13063
+  (7.5ms) commit transaction
13064
+  (0.1ms) begin transaction
13065
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13066
+ - signin
13067
+ ' WHERE "users"."id" = 6
13068
+  (1.8ms) commit transaction
13069
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13070
+ Completed 302 Found in 16ms (ActiveRecord: 10.3ms)
13071
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13072
+ Processing by ExampleController#this_requires_signin_permission as HTML
13073
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13074
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
13075
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13076
+ Processing by ExampleController#this_requires_signin_permission as HTML
13077
+ Authenticating with gds_sso strategy
13078
+ Completed in 0ms
13079
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13080
+ Started GET "/auth/gds/callback?code=cd1e884d02b3a0b51b536f810bae1c2fd899be97ffdc33e3311edc87ad55f695&state=17ae4fbb1c9deb739391983b8032c1e2f90a8c96f996ec2f" for 127.0.0.1 at 2013-01-16 15:06:18 +0000
13081
+ Processing by AuthenticationsController#callback as HTML
13082
+ Parameters: {"code"=>"cd1e884d02b3a0b51b536f810bae1c2fd899be97ffdc33e3311edc87ad55f695", "state"=>"17ae4fbb1c9deb739391983b8032c1e2f90a8c96f996ec2f"}
13083
+ Authenticating with gds_sso strategy
13084
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13085
+  (0.1ms) begin transaction
13086
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13087
+ - signin
13088
+ ' WHERE "users"."id" = 6
13089
+  (9.0ms) commit transaction
13090
+  (0.0ms) begin transaction
13091
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13092
+ - signin
13093
+ ' WHERE "users"."id" = 6
13094
+  (1.9ms) commit transaction
13095
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13096
+ Completed 302 Found in 16ms (ActiveRecord: 11.7ms)
13097
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13098
+ Processing by ExampleController#this_requires_signin_permission as HTML
13099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13100
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
13101
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13102
+ Processing by ExampleController#restricted as HTML
13103
+ Authenticating with gds_sso strategy
13104
+ Completed in 0ms
13105
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13106
+ Started GET "/auth/gds/callback?code=c0fbcd7c762b7a0f1e439ff7e39e74c2a1a78526d0642473833d65b25549b684&state=b6ffff171183348e6d8568776207c15cf270277d7b510ff5" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13107
+ Processing by AuthenticationsController#callback as HTML
13108
+ Parameters: {"code"=>"c0fbcd7c762b7a0f1e439ff7e39e74c2a1a78526d0642473833d65b25549b684", "state"=>"b6ffff171183348e6d8568776207c15cf270277d7b510ff5"}
13109
+ Authenticating with gds_sso strategy
13110
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13111
+  (0.1ms) begin transaction
13112
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13113
+ - signin
13114
+ ' WHERE "users"."id" = 6
13115
+  (6.8ms) commit transaction
13116
+  (0.1ms) begin transaction
13117
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13118
+ - signin
13119
+ ' WHERE "users"."id" = 6
13120
+  (2.6ms) commit transaction
13121
+ Redirected to http://www.example-client.com/restricted
13122
+ Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
13123
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13124
+ Processing by ExampleController#restricted as HTML
13125
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13126
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
13127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13128
+  (0.1ms) begin transaction
13129
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
13130
+ - signin
13131
+ ' WHERE "users"."id" = 6
13132
+  (2.4ms) commit transaction
13133
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13134
+ Processing by ExampleController#restricted as HTML
13135
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13136
+ Filter chain halted as :authenticate_user! rendered or redirected
13137
+ Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
13138
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13139
+ Processing by AuthenticationsController#sign_out as HTML
13140
+ Redirected to http://localhost:4567/users/sign_out
13141
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
13142
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13143
+ Processing by ExampleController#restricted as HTML
13144
+ Authenticating with gds_sso strategy
13145
+ Completed in 0ms
13146
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13147
+ Started GET "/auth/gds/callback?code=cd42e54ed1b7b91bc13003e53cec47822e4a9227959dce2bcfc71446dcb1e40d&state=cf46fb43f1c3d8f0dafa6e1bd5d1ba4f9a340195058be373" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13148
+ Processing by AuthenticationsController#callback as HTML
13149
+ Parameters: {"code"=>"cd42e54ed1b7b91bc13003e53cec47822e4a9227959dce2bcfc71446dcb1e40d", "state"=>"cf46fb43f1c3d8f0dafa6e1bd5d1ba4f9a340195058be373"}
13150
+ Authenticating with gds_sso strategy
13151
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13152
+  (0.1ms) begin transaction
13153
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13154
+ - signin
13155
+ ' WHERE "users"."id" = 6
13156
+  (8.2ms) commit transaction
13157
+  (0.1ms) begin transaction
13158
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
13159
+ - signin
13160
+ ' WHERE "users"."id" = 6
13161
+  (1.7ms) commit transaction
13162
+ Redirected to http://www.example-client.com/restricted
13163
+ Completed 302 Found in 15ms (ActiveRecord: 10.8ms)
13164
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13165
+ Processing by ExampleController#restricted as HTML
13166
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13167
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
13168
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13169
+ Processing by ExampleController#restricted as HTML
13170
+ Authenticating with gds_sso strategy
13171
+ Completed in 0ms
13172
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:19 +0000
13173
+ Started GET "/auth/gds/callback?code=5b4ee6d77c3ce6d000b49f6353e48ce9a3f8ac6581dec37a1e62305aad23f8fb&state=7c8c4f2a285b6684aec7f2b3132505442f524095f1484ee1" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13174
+ Processing by AuthenticationsController#callback as HTML
13175
+ Parameters: {"code"=>"5b4ee6d77c3ce6d000b49f6353e48ce9a3f8ac6581dec37a1e62305aad23f8fb", "state"=>"7c8c4f2a285b6684aec7f2b3132505442f524095f1484ee1"}
13176
+ Authenticating with gds_sso strategy
13177
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13178
+  (0.1ms) begin transaction
13179
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13180
+ - signin
13181
+ ' WHERE "users"."id" = 6
13182
+  (5.1ms) commit transaction
13183
+  (0.0ms) begin transaction
13184
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13185
+ - signin
13186
+ ' WHERE "users"."id" = 6
13187
+  (2.5ms) commit transaction
13188
+ Redirected to http://www.example-client.com/restricted
13189
+ Completed 302 Found in 15ms (ActiveRecord: 8.7ms)
13190
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13191
+ Processing by ExampleController#restricted as HTML
13192
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13193
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
13194
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:11:20 +0000
13195
+ Processing by ExampleController#restricted as HTML
13196
+ Authenticating with gds_sso strategy
13197
+ Completed in 1ms
13198
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-17 11:11:20 +0000
13199
+ Started GET "/auth/gds/callback?code=f6cd97c62ad6666ab939dfbc3e5bddb46488b41410bab6a0354f79ad6fd4e61d&state=51ad4118ea5293ec6e57635fda914ed64f9af5dd9e2a8fb2" for 127.0.0.1 at 2013-01-17 11:11:20 +0000
13200
+ Processing by AuthenticationsController#callback as HTML
13201
+ Parameters: {"code"=>"f6cd97c62ad6666ab939dfbc3e5bddb46488b41410bab6a0354f79ad6fd4e61d", "state"=>"51ad4118ea5293ec6e57635fda914ed64f9af5dd9e2a8fb2"}
13202
+ Authenticating with gds_sso strategy
13203
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13204
+  (0.1ms) begin transaction
13205
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13206
+ - signin
13207
+ ' WHERE "users"."id" = 6
13208
+  (8.6ms) commit transaction
13209
+  (0.1ms) begin transaction
13210
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13211
+ - signin
13212
+ ' WHERE "users"."id" = 6
13213
+  (1.8ms) commit transaction
13214
+ Redirected to http://www.example-client.com/restricted
13215
+ Completed 302 Found in 16ms (ActiveRecord: 11.3ms)
13216
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:11:20 +0000
13217
+ Processing by ExampleController#restricted as HTML
13218
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13219
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
13220
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13221
+ Processing by ExampleController#restricted as HTML
13222
+ Authenticating with gds_sso strategy
13223
+ Completed in 0ms
13224
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13225
+ Started GET "/auth/gds/callback?code=9b8000887993a7912fcd63290527539c9319bbad88d215e5184e655b0359c8ed&state=d48f3a49d5de4ad1daf9641733c661debb2f07a04d74e71b" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13226
+ Processing by AuthenticationsController#callback as HTML
13227
+ Parameters: {"code"=>"9b8000887993a7912fcd63290527539c9319bbad88d215e5184e655b0359c8ed", "state"=>"d48f3a49d5de4ad1daf9641733c661debb2f07a04d74e71b"}
13228
+ Authenticating with gds_sso strategy
13229
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13230
+  (0.1ms) begin transaction
13231
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13232
+ - signin
13233
+ ' WHERE "users"."id" = 6
13234
+  (5.9ms) commit transaction
13235
+  (0.1ms) begin transaction
13236
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13237
+ - signin
13238
+ ' WHERE "users"."id" = 6
13239
+  (1.7ms) commit transaction
13240
+ Redirected to http://www.example-client.com/restricted
13241
+ Completed 302 Found in 15ms (ActiveRecord: 8.7ms)
13242
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13243
+ Processing by ExampleController#restricted as HTML
13244
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13245
+ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
13246
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:01:20 +0000
13247
+ Processing by ExampleController#restricted as HTML
13248
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13249
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
13250
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13251
+ Processing by ExampleController#restricted as JSON
13252
+ Authenticating with gds_sso_api_access strategy
13253
+ Completed in 14ms
13254
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13255
+ Processing by ExampleController#restricted as JSON
13256
+ Authenticating with gds_sso_api_access strategy
13257
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
13258
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:20 +0000
13259
+ Processing by ExampleController#this_requires_signin_permission as JSON
13260
+ Authenticating with gds_sso_api_access strategy
13261
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
13262
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:21 +0000
13263
+ Processing by ExampleController#restricted as JSON
13264
+ Authenticating with gds_bearer_token strategy
13265
+ Completed in 9ms
13266
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:06:21 +0000
13267
+ Processing by ExampleController#restricted as JSON
13268
+ Authenticating with gds_bearer_token strategy
13269
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13270
+  (0.1ms) begin transaction
13271
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13272
+ - signin
13273
+ ' WHERE "users"."id" = 6
13274
+  (8.9ms) commit transaction
13275
+  (0.1ms) begin transaction
13276
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13277
+ - signin
13278
+ ' WHERE "users"."id" = 6
13279
+  (2.3ms) commit transaction
13280
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 12.2ms)
13281
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:06:21 +0000
13282
+ Processing by ExampleController#this_requires_signin_permission as JSON
13283
+ Authenticating with gds_bearer_token strategy
13284
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13285
+  (0.1ms) begin transaction
13286
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13287
+ - signin
13288
+ ' WHERE "users"."id" = 6
13289
+  (8.7ms) commit transaction
13290
+  (0.1ms) begin transaction
13291
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13292
+ - signin
13293
+ ' WHERE "users"."id" = 6
13294
+  (2.1ms) commit transaction
13295
+ Completed 200 OK in 47ms (Views: 0.7ms | ActiveRecord: 11.7ms)
13296
+ Connecting to database specified by database.yml
13297
+  (73.9ms) select sqlite_version(*)
13298
+  (18.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)
13299
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13300
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13301
+  (0.1ms) begin transaction
13302
+ SQL (94.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", "a1s2d39985"]]
13303
+  (10.8ms) commit transaction
13304
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
13305
+ Processing by Api::UserController#update as HTML
13306
+ Parameters: {"uid"=>"a1s2d39985"}
13307
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (77.6ms)
13308
+ Completed 403 Forbidden in 181ms (Views: 180.2ms | ActiveRecord: 0.0ms)
13309
+  (0.1ms) begin transaction
13310
+ 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", "a1s2d31421"]]
13311
+  (5.2ms) commit transaction
13312
+ Processing by Api::UserController#update as HTML
13313
+ Parameters: {"uid"=>"a1s2d31421"}
13314
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31421' LIMIT 1
13315
+  (0.1ms) begin transaction
13316
+  (0.5ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
13317
+ - signin
13318
+ - new permission
13319
+ ' WHERE "users"."id" = 2
13320
+  (2.3ms) commit transaction
13321
+ Completed 200 OK in 41ms (ActiveRecord: 3.1ms)
13322
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
13323
+  (0.1ms) begin transaction
13324
+ 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", "a1s2d35356"]]
13325
+  (11.6ms) commit transaction
13326
+ Processing by Api::UserController#update as HTML
13327
+ Parameters: {"uid"=>"a1s2d35356"}
13328
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35356' LIMIT 1
13329
+  (0.1ms) begin transaction
13330
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
13331
+ - signin
13332
+ - new permission
13333
+ ' WHERE "users"."id" = 3
13334
+  (39.3ms) commit transaction
13335
+ Completed 200 OK in 43ms (ActiveRecord: 39.9ms)
13336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
13337
+  (0.1ms) begin transaction
13338
+ 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", "a1s2d38864"]]
13339
+  (9.4ms) commit transaction
13340
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
13341
+ Processing by Api::UserController#reauth as HTML
13342
+ Parameters: {"uid"=>"a1s2d38864"}
13343
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
13344
+  (0.1ms) begin transaction
13345
+ 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", "a1s2d38415"]]
13346
+  (12.2ms) commit transaction
13347
+ Processing by Api::UserController#reauth as HTML
13348
+ Parameters: {"uid"=>"a1s2d38415"}
13349
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38415' LIMIT 1
13350
+  (0.0ms) begin transaction
13351
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
13352
+ - signin
13353
+ ' WHERE "users"."id" = 5
13354
+  (4.7ms) commit transaction
13355
+ Completed 200 OK in 7ms (ActiveRecord: 5.2ms)
13356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
13357
+ Started GET "/" for 127.0.0.1 at 2013-01-16 15:20:42 +0000
13358
+ Processing by ExampleController#index as HTML
13359
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
13360
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:42 +0000
13361
+ Processing by ExampleController#restricted as HTML
13362
+ Authenticating with gds_sso strategy
13363
+ Completed in 62ms
13364
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:42 +0000
13365
+ Started GET "/auth/gds/callback?code=565cc70dece3e2b6e0307ebadb10eac5c81e07a98fc7d863d6bd5ad371aa62f9&state=e1f49a92b6f3ab828142f10559beeede0367f6bce879f327" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13366
+ Processing by AuthenticationsController#callback as HTML
13367
+ Parameters: {"code"=>"565cc70dece3e2b6e0307ebadb10eac5c81e07a98fc7d863d6bd5ad371aa62f9", "state"=>"e1f49a92b6f3ab828142f10559beeede0367f6bce879f327"}
13368
+ Authenticating with gds_sso strategy
13369
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13370
+  (0.1ms) begin transaction
13371
+ 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"]]
13372
+  (5.9ms) commit transaction
13373
+  (0.0ms) begin transaction
13374
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
13375
+ - signin
13376
+ ' WHERE "users"."id" = 6
13377
+  (2.6ms) commit transaction
13378
+ Redirected to http://www.example-client.com/restricted
13379
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
13380
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13381
+ Processing by ExampleController#restricted as HTML
13382
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13383
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13384
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13385
+ Processing by ExampleController#restricted as HTML
13386
+ Authenticating with gds_sso strategy
13387
+ Completed in 0ms
13388
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13389
+ Started GET "/auth/gds/callback?code=ed4d832e30b497e012479c0404fddd78c01acb70f310b4ce17fb828848f8101b&state=b9dc255a101da52b8073f9533edad6891af4b81ea10cceb3" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13390
+ Processing by AuthenticationsController#callback as HTML
13391
+ Parameters: {"code"=>"ed4d832e30b497e012479c0404fddd78c01acb70f310b4ce17fb828848f8101b", "state"=>"b9dc255a101da52b8073f9533edad6891af4b81ea10cceb3"}
13392
+ Authenticating with gds_sso strategy
13393
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13394
+  (0.1ms) begin transaction
13395
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13396
+ - signin
13397
+ ' WHERE "users"."id" = 6
13398
+  (6.5ms) commit transaction
13399
+  (0.0ms) begin transaction
13400
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13401
+ - signin
13402
+ ' WHERE "users"."id" = 6
13403
+  (2.8ms) commit transaction
13404
+ Redirected to http://www.example-client.com/restricted
13405
+ Completed 302 Found in 16ms (ActiveRecord: 10.2ms)
13406
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13407
+ Processing by ExampleController#restricted as HTML
13408
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13409
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
13410
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13411
+ Processing by ExampleController#restricted as HTML
13412
+ Authenticating with gds_sso strategy
13413
+ Completed in 0ms
13414
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13415
+ Started GET "/auth/gds/callback?code=7a68f96c80f8a6f7c49020109c7e5e4754ce752fa7862e4a5dc3b35307cb7df3&state=db019f3892155784886325fa1c9c497a4dad13abcd758b1a" for 127.0.0.1 at 2013-01-16 15:20:44 +0000
13416
+ Processing by AuthenticationsController#callback as HTML
13417
+ Parameters: {"code"=>"7a68f96c80f8a6f7c49020109c7e5e4754ce752fa7862e4a5dc3b35307cb7df3", "state"=>"db019f3892155784886325fa1c9c497a4dad13abcd758b1a"}
13418
+ Authenticating with gds_sso strategy
13419
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13420
+  (0.1ms) begin transaction
13421
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13422
+ - signin
13423
+ ' WHERE "users"."id" = 6
13424
+  (9.1ms) commit transaction
13425
+  (0.0ms) begin transaction
13426
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13427
+ - signin
13428
+ ' WHERE "users"."id" = 6
13429
+  (1.9ms) commit transaction
13430
+ Redirected to http://www.example-client.com/restricted
13431
+ Completed 302 Found in 16ms (ActiveRecord: 11.8ms)
13432
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13433
+ Processing by ExampleController#restricted as HTML
13434
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13435
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
13436
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13437
+ Processing by ExampleController#this_requires_signin_permission as HTML
13438
+ Authenticating with gds_sso strategy
13439
+ Completed in 1ms
13440
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13441
+ Started GET "/auth/gds/callback?code=982d046bd35b1ff5f6065d72d3040d70cb7d943ef7ea18ca49e7c751c6feff1c&state=541b19ce8cbdb0fb7b8ac7c7c9acde04e7cdf1d00c70de74" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13442
+ Processing by AuthenticationsController#callback as HTML
13443
+ Parameters: {"code"=>"982d046bd35b1ff5f6065d72d3040d70cb7d943ef7ea18ca49e7c751c6feff1c", "state"=>"541b19ce8cbdb0fb7b8ac7c7c9acde04e7cdf1d00c70de74"}
13444
+ Authenticating with gds_sso strategy
13445
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13446
+  (0.1ms) begin transaction
13447
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13448
+ - signin
13449
+ ' WHERE "users"."id" = 6
13450
+  (7.2ms) commit transaction
13451
+  (0.1ms) begin transaction
13452
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13453
+ - signin
13454
+ ' WHERE "users"."id" = 6
13455
+  (2.4ms) commit transaction
13456
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13457
+ Completed 302 Found in 16ms (ActiveRecord: 10.6ms)
13458
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13459
+ Processing by ExampleController#this_requires_signin_permission as HTML
13460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13461
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13462
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13463
+ Processing by ExampleController#this_requires_signin_permission as HTML
13464
+ Authenticating with gds_sso strategy
13465
+ Completed in 0ms
13466
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13467
+ Started GET "/auth/gds/callback?code=1bc6c08adb1eab2083a56907a2aeeeb394b1b367fb6075eb0812dee1e36581d7&state=6edf89cdbd94b2e8b7a6e7f5bc735887295d977789efafb8" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13468
+ Processing by AuthenticationsController#callback as HTML
13469
+ Parameters: {"code"=>"1bc6c08adb1eab2083a56907a2aeeeb394b1b367fb6075eb0812dee1e36581d7", "state"=>"6edf89cdbd94b2e8b7a6e7f5bc735887295d977789efafb8"}
13470
+ Authenticating with gds_sso strategy
13471
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13472
+  (0.1ms) begin transaction
13473
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13474
+ - signin
13475
+ ' WHERE "users"."id" = 6
13476
+  (8.7ms) commit transaction
13477
+  (0.0ms) begin transaction
13478
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13479
+ - signin
13480
+ ' WHERE "users"."id" = 6
13481
+  (1.7ms) commit transaction
13482
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13483
+ Completed 302 Found in 16ms (ActiveRecord: 11.3ms)
13484
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13485
+ Processing by ExampleController#this_requires_signin_permission as HTML
13486
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13487
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
13488
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13489
+ Processing by ExampleController#restricted as HTML
13490
+ Authenticating with gds_sso strategy
13491
+ Completed in 0ms
13492
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:45 +0000
13493
+ Started GET "/auth/gds/callback?code=fcf120b959b8bb2e670d9bbc292a64820c372dd357fd4448017d2f5957b6b3ce&state=46489f2b4a8f34af0fb7dd1de3e17a37ca0e541d9082cbcb" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13494
+ Processing by AuthenticationsController#callback as HTML
13495
+ Parameters: {"code"=>"fcf120b959b8bb2e670d9bbc292a64820c372dd357fd4448017d2f5957b6b3ce", "state"=>"46489f2b4a8f34af0fb7dd1de3e17a37ca0e541d9082cbcb"}
13496
+ Authenticating with gds_sso strategy
13497
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13498
+  (0.1ms) begin transaction
13499
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13500
+ - signin
13501
+ ' WHERE "users"."id" = 6
13502
+  (6.4ms) commit transaction
13503
+  (0.0ms) begin transaction
13504
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13505
+ - signin
13506
+ ' WHERE "users"."id" = 6
13507
+  (1.7ms) commit transaction
13508
+ Redirected to http://www.example-client.com/restricted
13509
+ Completed 302 Found in 14ms (ActiveRecord: 9.0ms)
13510
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13511
+ Processing by ExampleController#restricted as HTML
13512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13513
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13514
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13515
+  (0.0ms) begin transaction
13516
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
13517
+ - signin
13518
+ ' WHERE "users"."id" = 6
13519
+  (1.8ms) commit transaction
13520
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13521
+ Processing by ExampleController#restricted as HTML
13522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13523
+ Filter chain halted as :authenticate_user! rendered or redirected
13524
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
13525
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13526
+ Processing by AuthenticationsController#sign_out as HTML
13527
+ Redirected to http://localhost:4567/users/sign_out
13528
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
13529
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13530
+ Processing by ExampleController#restricted as HTML
13531
+ Authenticating with gds_sso strategy
13532
+ Completed in 0ms
13533
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13534
+ Started GET "/auth/gds/callback?code=2810a5163604bfafb053187781bc621f5321a6ba3e6ce7a29831a75b56205ccb&state=bf1655ff7ec72be2e0f19988a19d97ec6fcf37b2ba56829a" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13535
+ Processing by AuthenticationsController#callback as HTML
13536
+ Parameters: {"code"=>"2810a5163604bfafb053187781bc621f5321a6ba3e6ce7a29831a75b56205ccb", "state"=>"bf1655ff7ec72be2e0f19988a19d97ec6fcf37b2ba56829a"}
13537
+ Authenticating with gds_sso strategy
13538
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13539
+  (0.1ms) begin transaction
13540
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13541
+ - signin
13542
+ ' WHERE "users"."id" = 6
13543
+  (7.9ms) commit transaction
13544
+  (0.0ms) begin transaction
13545
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
13546
+ - signin
13547
+ ' WHERE "users"."id" = 6
13548
+  (2.6ms) commit transaction
13549
+ Redirected to http://www.example-client.com/restricted
13550
+ Completed 302 Found in 15ms (ActiveRecord: 11.2ms)
13551
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13552
+ Processing by ExampleController#restricted as HTML
13553
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13554
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
13555
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13556
+ Processing by ExampleController#restricted as HTML
13557
+ Authenticating with gds_sso strategy
13558
+ Completed in 0ms
13559
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13560
+ Started GET "/auth/gds/callback?code=3a554bc238856861f74ed873c9f30e2a9162ef8510d52e87f21a92b16a35c019&state=71780f7a407e2724fc7a01694016e24481e50681c8cc6da7" for 127.0.0.1 at 2013-01-16 15:20:46 +0000
13561
+ Processing by AuthenticationsController#callback as HTML
13562
+ Parameters: {"code"=>"3a554bc238856861f74ed873c9f30e2a9162ef8510d52e87f21a92b16a35c019", "state"=>"71780f7a407e2724fc7a01694016e24481e50681c8cc6da7"}
13563
+ Authenticating with gds_sso strategy
13564
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13565
+  (0.1ms) begin transaction
13566
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13567
+ - signin
13568
+ ' WHERE "users"."id" = 6
13569
+  (6.4ms) commit transaction
13570
+  (0.1ms) begin transaction
13571
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13572
+ - signin
13573
+ ' WHERE "users"."id" = 6
13574
+  (1.8ms) commit transaction
13575
+ Redirected to http://www.example-client.com/restricted
13576
+ Completed 302 Found in 15ms (ActiveRecord: 9.2ms)
13577
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13578
+ Processing by ExampleController#restricted as HTML
13579
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13580
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
13581
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:25:47 +0000
13582
+ Processing by ExampleController#restricted as HTML
13583
+ Authenticating with gds_sso strategy
13584
+ Completed in 0ms
13585
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-17 11:25:47 +0000
13586
+ Started GET "/auth/gds/callback?code=8bcf8fdd0c3f1072f7af3c649b988248d7e580a38fb6ed4b9c24fbb7e83095f0&state=ecc133bba04bed8c224b0a353896fe347358a633c59ad5b7" for 127.0.0.1 at 2013-01-17 11:25:47 +0000
13587
+ Processing by AuthenticationsController#callback as HTML
13588
+ Parameters: {"code"=>"8bcf8fdd0c3f1072f7af3c649b988248d7e580a38fb6ed4b9c24fbb7e83095f0", "state"=>"ecc133bba04bed8c224b0a353896fe347358a633c59ad5b7"}
13589
+ Authenticating with gds_sso strategy
13590
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13591
+  (0.1ms) begin transaction
13592
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13593
+ - signin
13594
+ ' WHERE "users"."id" = 6
13595
+  (7.8ms) commit transaction
13596
+  (0.1ms) begin transaction
13597
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13598
+ - signin
13599
+ ' WHERE "users"."id" = 6
13600
+  (1.7ms) commit transaction
13601
+ Redirected to http://www.example-client.com/restricted
13602
+ Completed 302 Found in 16ms (ActiveRecord: 10.5ms)
13603
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:25:47 +0000
13604
+ Processing by ExampleController#restricted as HTML
13605
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13606
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
13607
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13608
+ Processing by ExampleController#restricted as HTML
13609
+ Authenticating with gds_sso strategy
13610
+ Completed in 0ms
13611
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13612
+ Started GET "/auth/gds/callback?code=a7d943e399888be0175d7a5617c90a10395c2b4d63cf066688f0e1b845c0c358&state=65638440682f327ca117b6a7dbeb7ad744b052956db337ab" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13613
+ Processing by AuthenticationsController#callback as HTML
13614
+ Parameters: {"code"=>"a7d943e399888be0175d7a5617c90a10395c2b4d63cf066688f0e1b845c0c358", "state"=>"65638440682f327ca117b6a7dbeb7ad744b052956db337ab"}
13615
+ Authenticating with gds_sso strategy
13616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13617
+  (0.1ms) begin transaction
13618
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13619
+ - signin
13620
+ ' WHERE "users"."id" = 6
13621
+  (7.3ms) commit transaction
13622
+  (0.0ms) begin transaction
13623
+  (0.2ms) UPDATE "users" SET "permissions" = '---
13624
+ - signin
13625
+ ' WHERE "users"."id" = 6
13626
+  (1.7ms) commit transaction
13627
+ Redirected to http://www.example-client.com/restricted
13628
+ Completed 302 Found in 15ms (ActiveRecord: 9.9ms)
13629
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13630
+ Processing by ExampleController#restricted as HTML
13631
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13632
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13633
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-17 11:15:47 +0000
13634
+ Processing by ExampleController#restricted as HTML
13635
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13636
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
13637
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13638
+ Processing by ExampleController#restricted as JSON
13639
+ Authenticating with gds_sso_api_access strategy
13640
+ Completed in 15ms
13641
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13642
+ Processing by ExampleController#restricted as JSON
13643
+ Authenticating with gds_sso_api_access strategy
13644
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
13645
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13646
+ Processing by ExampleController#this_requires_signin_permission as JSON
13647
+ Authenticating with gds_sso_api_access strategy
13648
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
13649
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13650
+ Processing by ExampleController#restricted as JSON
13651
+ Authenticating with gds_bearer_token strategy
13652
+ Completed in 9ms
13653
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13654
+ Processing by ExampleController#restricted as JSON
13655
+ Authenticating with gds_bearer_token strategy
13656
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13657
+  (0.1ms) begin transaction
13658
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13659
+ - signin
13660
+ ' WHERE "users"."id" = 6
13661
+  (8.5ms) commit transaction
13662
+  (0.1ms) begin transaction
13663
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13664
+ - signin
13665
+ ' WHERE "users"."id" = 6
13666
+  (2.4ms) commit transaction
13667
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 11.8ms)
13668
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-16 15:20:47 +0000
13669
+ Processing by ExampleController#this_requires_signin_permission as JSON
13670
+ Authenticating with gds_bearer_token strategy
13671
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13672
+  (0.1ms) begin transaction
13673
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13674
+ - signin
13675
+ ' WHERE "users"."id" = 6
13676
+  (8.3ms) commit transaction
13677
+  (0.1ms) begin transaction
13678
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13679
+ - signin
13680
+ ' WHERE "users"."id" = 6
13681
+  (1.8ms) commit transaction
13682
+ Completed 200 OK in 57ms (Views: 0.6ms | ActiveRecord: 11.0ms)
13683
+ Connecting to database specified by database.yml
13684
+  (83.0ms) select sqlite_version(*)
13685
+  (19.9ms) 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)
13686
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13687
+  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13688
+  (0.1ms) begin transaction
13689
+ SQL (82.8ms) 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", "a1s2d36126"]]
13690
+  (7.8ms) commit transaction
13691
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
13692
+ Processing by Api::UserController#update as HTML
13693
+ Parameters: {"uid"=>"a1s2d36126"}
13694
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (35.3ms)
13695
+ Completed 403 Forbidden in 88ms (Views: 87.3ms | ActiveRecord: 0.0ms)
13696
+  (0.1ms) begin transaction
13697
+ 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", "a1s2d36762"]]
13698
+  (2.2ms) commit transaction
13699
+ Processing by Api::UserController#update as HTML
13700
+ Parameters: {"uid"=>"a1s2d36762"}
13701
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36762' LIMIT 1
13702
+  (0.1ms) begin transaction
13703
+  (10.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
13704
+ - signin
13705
+ - new permission
13706
+ ' WHERE "users"."id" = 2
13707
+  (2.4ms) commit transaction
13708
+ Completed 200 OK in 39ms (ActiveRecord: 13.1ms)
13709
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
13710
+  (0.1ms) begin transaction
13711
+ 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", "a1s2d361"]]
13712
+  (14.4ms) commit transaction
13713
+ Processing by Api::UserController#update as HTML
13714
+ Parameters: {"uid"=>"a1s2d361"}
13715
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d361' LIMIT 1
13716
+  (0.0ms) begin transaction
13717
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
13718
+ - signin
13719
+ - new permission
13720
+ ' WHERE "users"."id" = 3
13721
+  (4.3ms) commit transaction
13722
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
13723
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
13724
+  (0.1ms) begin transaction
13725
+ 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", "a1s2d36277"]]
13726
+  (5.6ms) commit transaction
13727
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
13728
+ Processing by Api::UserController#reauth as HTML
13729
+ Parameters: {"uid"=>"a1s2d36277"}
13730
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
13731
+  (0.1ms) begin transaction
13732
+ SQL (10.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", "a1s2d37143"]]
13733
+  (1.9ms) commit transaction
13734
+ Processing by Api::UserController#reauth as HTML
13735
+ Parameters: {"uid"=>"a1s2d37143"}
13736
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37143' LIMIT 1
13737
+  (0.0ms) begin transaction
13738
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
13739
+ - signin
13740
+ ' WHERE "users"."id" = 5
13741
+  (1.9ms) commit transaction
13742
+ Completed 200 OK in 5ms (ActiveRecord: 2.4ms)
13743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
13744
+ Started GET "/" for 127.0.0.1 at 2013-01-21 11:16:08 +0000
13745
+ Processing by ExampleController#index as HTML
13746
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
13747
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:09 +0000
13748
+ Processing by ExampleController#restricted as HTML
13749
+ Authenticating with gds_sso strategy
13750
+ Completed in 110ms
13751
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:09 +0000
13752
+ Started GET "/auth/gds/callback?code=5f614621d6f792b52ea178a81fbe81d629f5c22cde63e776a68ff8c68ce7d013&state=a3d9b4505421d3b8c7a1cc9c7e8335eb239d979669712cb2" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13753
+ Processing by AuthenticationsController#callback as HTML
13754
+ Parameters: {"code"=>"5f614621d6f792b52ea178a81fbe81d629f5c22cde63e776a68ff8c68ce7d013", "state"=>"a3d9b4505421d3b8c7a1cc9c7e8335eb239d979669712cb2"}
13755
+ Authenticating with gds_sso strategy
13756
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13757
+  (0.1ms) begin transaction
13758
+ 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"]]
13759
+  (6.0ms) commit transaction
13760
+  (0.0ms) begin transaction
13761
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
13762
+ - signin
13763
+ ' WHERE "users"."id" = 6
13764
+  (2.5ms) commit transaction
13765
+ Redirected to http://www.example-client.com/restricted
13766
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
13767
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13768
+ Processing by ExampleController#restricted as HTML
13769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13770
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13771
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13772
+ Processing by ExampleController#restricted as HTML
13773
+ Authenticating with gds_sso strategy
13774
+ Completed in 0ms
13775
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13776
+ Started GET "/auth/gds/callback?code=3a882a7b680e16b0e4b661dce6767a0511078518b5f50d78a817a408cfaed8b6&state=a426786ac466a82a4a24a905d643f35dbdb86a269481330f" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13777
+ Processing by AuthenticationsController#callback as HTML
13778
+ Parameters: {"code"=>"3a882a7b680e16b0e4b661dce6767a0511078518b5f50d78a817a408cfaed8b6", "state"=>"a426786ac466a82a4a24a905d643f35dbdb86a269481330f"}
13779
+ Authenticating with gds_sso strategy
13780
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13781
+  (0.1ms) begin transaction
13782
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13783
+ - signin
13784
+ ' WHERE "users"."id" = 6
13785
+  (6.7ms) commit transaction
13786
+  (0.1ms) begin transaction
13787
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13788
+ - signin
13789
+ ' WHERE "users"."id" = 6
13790
+  (1.8ms) commit transaction
13791
+ Redirected to http://www.example-client.com/restricted
13792
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
13793
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13794
+ Processing by ExampleController#restricted as HTML
13795
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13796
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
13797
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13798
+ Processing by ExampleController#restricted as HTML
13799
+ Authenticating with gds_sso strategy
13800
+ Completed in 0ms
13801
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:11 +0000
13802
+ Started GET "/auth/gds/callback?code=c8591c45a85522fddca345fbc77b4dcd6c5bca801c1c3dd87c313fb0e5a86e2b&state=ba2e54754f6ac9f09f40ee87770faedb91ac40c33e73182a" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13803
+ Processing by AuthenticationsController#callback as HTML
13804
+ Parameters: {"code"=>"c8591c45a85522fddca345fbc77b4dcd6c5bca801c1c3dd87c313fb0e5a86e2b", "state"=>"ba2e54754f6ac9f09f40ee87770faedb91ac40c33e73182a"}
13805
+ Authenticating with gds_sso strategy
13806
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13807
+  (0.1ms) begin transaction
13808
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13809
+ - signin
13810
+ ' WHERE "users"."id" = 6
13811
+  (7.7ms) commit transaction
13812
+  (0.0ms) begin transaction
13813
+  (0.2ms) UPDATE "users" SET "permissions" = '---
13814
+ - signin
13815
+ ' WHERE "users"."id" = 6
13816
+  (1.7ms) commit transaction
13817
+ Redirected to http://www.example-client.com/restricted
13818
+ Completed 302 Found in 15ms (ActiveRecord: 10.3ms)
13819
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13820
+ Processing by ExampleController#restricted as HTML
13821
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13822
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
13823
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13824
+ Processing by ExampleController#this_requires_signin_permission as HTML
13825
+ Authenticating with gds_sso strategy
13826
+ Completed in 1ms
13827
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13828
+ Started GET "/auth/gds/callback?code=91086f1c9470a521e3f21de1e6774b16f14c83f98a1050c97f20d10cec726d33&state=8182ac1171ac0f992f782958daca0668c5417ebac9e00752" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13829
+ Processing by AuthenticationsController#callback as HTML
13830
+ Parameters: {"code"=>"91086f1c9470a521e3f21de1e6774b16f14c83f98a1050c97f20d10cec726d33", "state"=>"8182ac1171ac0f992f782958daca0668c5417ebac9e00752"}
13831
+ Authenticating with gds_sso strategy
13832
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13833
+  (0.1ms) begin transaction
13834
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13835
+ - signin
13836
+ ' WHERE "users"."id" = 6
13837
+  (6.8ms) commit transaction
13838
+  (0.1ms) begin transaction
13839
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13840
+ - signin
13841
+ ' WHERE "users"."id" = 6
13842
+  (1.9ms) commit transaction
13843
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13844
+ Completed 302 Found in 15ms (ActiveRecord: 9.7ms)
13845
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13846
+ Processing by ExampleController#this_requires_signin_permission as HTML
13847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13848
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
13849
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13850
+ Processing by ExampleController#this_requires_signin_permission as HTML
13851
+ Authenticating with gds_sso strategy
13852
+ Completed in 0ms
13853
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13854
+ Started GET "/auth/gds/callback?code=b180a2b7ba2e22ce4d9076ad52b5e5860bcf618102c19489a8ec494e20e92609&state=8a4697a13d5b7b9641819aaddc744f3dad7f1d24e2e1d1b3" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13855
+ Processing by AuthenticationsController#callback as HTML
13856
+ Parameters: {"code"=>"b180a2b7ba2e22ce4d9076ad52b5e5860bcf618102c19489a8ec494e20e92609", "state"=>"8a4697a13d5b7b9641819aaddc744f3dad7f1d24e2e1d1b3"}
13857
+ Authenticating with gds_sso strategy
13858
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13859
+  (0.1ms) begin transaction
13860
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13861
+ - signin
13862
+ ' WHERE "users"."id" = 6
13863
+  (8.9ms) commit transaction
13864
+  (0.0ms) begin transaction
13865
+  (0.2ms) UPDATE "users" SET "permissions" = '---
13866
+ - signin
13867
+ ' WHERE "users"."id" = 6
13868
+  (1.8ms) commit transaction
13869
+ Redirected to http://www.example-client.com/this_requires_signin_permission
13870
+ Completed 302 Found in 16ms (ActiveRecord: 11.7ms)
13871
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13872
+ Processing by ExampleController#this_requires_signin_permission as HTML
13873
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13874
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
13875
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13876
+ Processing by ExampleController#restricted as HTML
13877
+ Authenticating with gds_sso strategy
13878
+ Completed in 0ms
13879
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:12 +0000
13880
+ Started GET "/auth/gds/callback?code=1d539617b6029d57ec0a6bb4cba79d9c1dfe12218e7bfce39cdb1784539d00ab&state=4458b87e6cb77bbc1c7068632192970182f420765bb227a8" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13881
+ Processing by AuthenticationsController#callback as HTML
13882
+ Parameters: {"code"=>"1d539617b6029d57ec0a6bb4cba79d9c1dfe12218e7bfce39cdb1784539d00ab", "state"=>"4458b87e6cb77bbc1c7068632192970182f420765bb227a8"}
13883
+ Authenticating with gds_sso strategy
13884
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13885
+  (0.1ms) begin transaction
13886
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13887
+ - signin
13888
+ ' WHERE "users"."id" = 6
13889
+  (7.2ms) commit transaction
13890
+  (0.0ms) begin transaction
13891
+  (0.2ms) UPDATE "users" SET "permissions" = '---
13892
+ - signin
13893
+ ' WHERE "users"."id" = 6
13894
+  (1.9ms) commit transaction
13895
+ Redirected to http://www.example-client.com/restricted
13896
+ Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
13897
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13898
+ Processing by ExampleController#restricted as HTML
13899
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13900
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
13901
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13902
+  (0.0ms) begin transaction
13903
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
13904
+ - signin
13905
+ ' WHERE "users"."id" = 6
13906
+  (2.5ms) commit transaction
13907
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13908
+ Processing by ExampleController#restricted as HTML
13909
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13910
+ Filter chain halted as :authenticate_user! rendered or redirected
13911
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
13912
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13913
+ Processing by AuthenticationsController#sign_out as HTML
13914
+ Redirected to http://localhost:4567/users/sign_out
13915
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
13916
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13917
+ Processing by ExampleController#restricted as HTML
13918
+ Authenticating with gds_sso strategy
13919
+ Completed in 0ms
13920
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13921
+ Started GET "/auth/gds/callback?code=b9f6b6048d29ce9037fcb354447bbd0766c17effe3693465aacf4775f9df8024&state=c47264b1f33cfa9029a92d81eaa4638870011d2d01f9a82b" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13922
+ Processing by AuthenticationsController#callback as HTML
13923
+ Parameters: {"code"=>"b9f6b6048d29ce9037fcb354447bbd0766c17effe3693465aacf4775f9df8024", "state"=>"c47264b1f33cfa9029a92d81eaa4638870011d2d01f9a82b"}
13924
+ Authenticating with gds_sso strategy
13925
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13926
+  (0.1ms) begin transaction
13927
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13928
+ - signin
13929
+ ' WHERE "users"."id" = 6
13930
+  (9.9ms) commit transaction
13931
+  (0.0ms) begin transaction
13932
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
13933
+ - signin
13934
+ ' WHERE "users"."id" = 6
13935
+  (1.9ms) commit transaction
13936
+ Redirected to http://www.example-client.com/restricted
13937
+ Completed 302 Found in 17ms (ActiveRecord: 12.6ms)
13938
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13939
+ Processing by ExampleController#restricted as HTML
13940
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13941
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
13942
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13943
+ Processing by ExampleController#restricted as HTML
13944
+ Authenticating with gds_sso strategy
13945
+ Completed in 0ms
13946
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:13 +0000
13947
+ Started GET "/auth/gds/callback?code=ba690f3c571911a39a3960d401f3d8ec092b4e0122f642b883f9a2ab8ad8d8cf&state=11c2541e3e960276e5a93a4b1d96a1370e08343b87185855" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
13948
+ Processing by AuthenticationsController#callback as HTML
13949
+ Parameters: {"code"=>"ba690f3c571911a39a3960d401f3d8ec092b4e0122f642b883f9a2ab8ad8d8cf", "state"=>"11c2541e3e960276e5a93a4b1d96a1370e08343b87185855"}
13950
+ Authenticating with gds_sso strategy
13951
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13952
+  (0.1ms) begin transaction
13953
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13954
+ - signin
13955
+ ' WHERE "users"."id" = 6
13956
+  (6.8ms) commit transaction
13957
+  (0.1ms) begin transaction
13958
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13959
+ - signin
13960
+ ' WHERE "users"."id" = 6
13961
+  (1.8ms) commit transaction
13962
+ Redirected to http://www.example-client.com/restricted
13963
+ Completed 302 Found in 15ms (ActiveRecord: 9.6ms)
13964
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
13965
+ Processing by ExampleController#restricted as HTML
13966
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13967
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
13968
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 07:21:14 +0000
13969
+ Processing by ExampleController#restricted as HTML
13970
+ Authenticating with gds_sso strategy
13971
+ Completed in 0ms
13972
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-22 07:21:14 +0000
13973
+ Started GET "/auth/gds/callback?code=e3d51fc521a522fce44a11795c15b6d97f27c2f604401bcc7b267d65c6fbbf81&state=6e5d4e991ee95b86438f4cdce5f2509027d008defbedccad" for 127.0.0.1 at 2013-01-22 07:21:14 +0000
13974
+ Processing by AuthenticationsController#callback as HTML
13975
+ Parameters: {"code"=>"e3d51fc521a522fce44a11795c15b6d97f27c2f604401bcc7b267d65c6fbbf81", "state"=>"6e5d4e991ee95b86438f4cdce5f2509027d008defbedccad"}
13976
+ Authenticating with gds_sso strategy
13977
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13978
+  (0.1ms) begin transaction
13979
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13980
+ - signin
13981
+ ' WHERE "users"."id" = 6
13982
+  (8.0ms) commit transaction
13983
+  (0.1ms) begin transaction
13984
+  (0.3ms) UPDATE "users" SET "permissions" = '---
13985
+ - signin
13986
+ ' WHERE "users"."id" = 6
13987
+  (1.8ms) commit transaction
13988
+ Redirected to http://www.example-client.com/restricted
13989
+ Completed 302 Found in 16ms (ActiveRecord: 10.7ms)
13990
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 07:21:14 +0000
13991
+ Processing by ExampleController#restricted as HTML
13992
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
13993
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
13994
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
13995
+ Processing by ExampleController#restricted as HTML
13996
+ Authenticating with gds_sso strategy
13997
+ Completed in 0ms
13998
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
13999
+ Started GET "/auth/gds/callback?code=f16fec56884b5dc783fb8488b2e85db911a1ee953e5e69ef4c1fae25557918c3&state=c03271c8e2a7f0a6260d5241b3207637047aee099256e0ce" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
14000
+ Processing by AuthenticationsController#callback as HTML
14001
+ Parameters: {"code"=>"f16fec56884b5dc783fb8488b2e85db911a1ee953e5e69ef4c1fae25557918c3", "state"=>"c03271c8e2a7f0a6260d5241b3207637047aee099256e0ce"}
14002
+ Authenticating with gds_sso strategy
14003
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14004
+  (0.1ms) begin transaction
14005
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14006
+ - signin
14007
+ ' WHERE "users"."id" = 6
14008
+  (7.2ms) commit transaction
14009
+  (0.0ms) begin transaction
14010
+  (0.2ms) UPDATE "users" SET "permissions" = '---
14011
+ - signin
14012
+ ' WHERE "users"."id" = 6
14013
+  (2.1ms) commit transaction
14014
+ Redirected to http://www.example-client.com/restricted
14015
+ Completed 302 Found in 16ms (ActiveRecord: 10.2ms)
14016
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
14017
+ Processing by ExampleController#restricted as HTML
14018
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14019
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14020
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 07:11:14 +0000
14021
+ Processing by ExampleController#restricted as HTML
14022
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14023
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
14024
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
14025
+ Processing by ExampleController#restricted as JSON
14026
+ Authenticating with gds_sso_api_access strategy
14027
+ Completed in 15ms
14028
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
14029
+ Processing by ExampleController#restricted as JSON
14030
+ Authenticating with gds_sso_api_access strategy
14031
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
14032
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:14 +0000
14033
+ Processing by ExampleController#this_requires_signin_permission as JSON
14034
+ Authenticating with gds_sso_api_access strategy
14035
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
14036
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:15 +0000
14037
+ Processing by ExampleController#restricted as JSON
14038
+ Authenticating with gds_bearer_token strategy
14039
+ Completed in 9ms
14040
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 11:16:15 +0000
14041
+ Processing by ExampleController#restricted as JSON
14042
+ Authenticating with gds_bearer_token strategy
14043
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14044
+  (0.1ms) begin transaction
14045
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14046
+ - signin
14047
+ ' WHERE "users"."id" = 6
14048
+  (8.6ms) commit transaction
14049
+  (0.1ms) begin transaction
14050
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14051
+ - signin
14052
+ ' WHERE "users"."id" = 6
14053
+  (1.9ms) commit transaction
14054
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 11.5ms)
14055
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 11:16:15 +0000
14056
+ Processing by ExampleController#this_requires_signin_permission as JSON
14057
+ Authenticating with gds_bearer_token strategy
14058
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14059
+  (0.1ms) begin transaction
14060
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14061
+ - signin
14062
+ ' WHERE "users"."id" = 6
14063
+  (8.7ms) commit transaction
14064
+  (0.1ms) begin transaction
14065
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14066
+ - signin
14067
+ ' WHERE "users"."id" = 6
14068
+  (2.4ms) commit transaction
14069
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 12.0ms)
14070
+ Connecting to database specified by database.yml
14071
+  (33.4ms) select sqlite_version(*)
14072
+  (4.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)
14073
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14074
+  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14075
+  (0.1ms) begin transaction
14076
+ SQL (41.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", "a1s2d35361"]]
14077
+  (9.7ms) commit transaction
14078
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14079
+ Processing by Api::UserController#update as HTML
14080
+ Parameters: {"uid"=>"a1s2d35361"}
14081
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (66.7ms)
14082
+ Completed 403 Forbidden in 168ms (Views: 167.6ms | ActiveRecord: 0.0ms)
14083
+  (0.1ms) begin transaction
14084
+ 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", "a1s2d35340"]]
14085
+  (5.5ms) commit transaction
14086
+ Processing by Api::UserController#update as HTML
14087
+ Parameters: {"uid"=>"a1s2d35340"}
14088
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35340' LIMIT 1
14089
+  (0.1ms) begin transaction
14090
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14091
+ - signin
14092
+ - new permission
14093
+ ' WHERE "users"."id" = 2
14094
+  (2.1ms) commit transaction
14095
+ Completed 200 OK in 39ms (ActiveRecord: 2.7ms)
14096
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
14097
+  (0.1ms) begin transaction
14098
+ 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", "a1s2d33904"]]
14099
+  (3.9ms) commit transaction
14100
+ Processing by Api::UserController#update as HTML
14101
+ Parameters: {"uid"=>"a1s2d33904"}
14102
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33904' LIMIT 1
14103
+  (0.0ms) begin transaction
14104
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14105
+ - signin
14106
+ - new permission
14107
+ ' WHERE "users"."id" = 3
14108
+  (4.9ms) commit transaction
14109
+ Completed 200 OK in 8ms (ActiveRecord: 5.4ms)
14110
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
14111
+  (0.1ms) begin transaction
14112
+ 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", "a1s2d36351"]]
14113
+  (2.0ms) commit transaction
14114
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14115
+ Processing by Api::UserController#reauth as HTML
14116
+ Parameters: {"uid"=>"a1s2d36351"}
14117
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
14118
+  (0.1ms) begin transaction
14119
+ 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", "a1s2d32572"]]
14120
+  (9.6ms) commit transaction
14121
+ Processing by Api::UserController#reauth as HTML
14122
+ Parameters: {"uid"=>"a1s2d32572"}
14123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32572' LIMIT 1
14124
+  (0.0ms) begin transaction
14125
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14126
+ - signin
14127
+ ' WHERE "users"."id" = 5
14128
+  (5.5ms) commit transaction
14129
+ Completed 200 OK in 8ms (ActiveRecord: 6.0ms)
14130
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
14131
+ Connecting to database specified by database.yml
14132
+  (23.7ms) select sqlite_version(*)
14133
+  (18.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)
14134
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14135
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14136
+  (0.1ms) begin transaction
14137
+ SQL (83.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", "a1s2d37110"]]
14138
+  (11.0ms) commit transaction
14139
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14140
+ Processing by Api::UserController#update as HTML
14141
+ Parameters: {"uid"=>"a1s2d37110"}
14142
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (4.3ms)
14143
+ Completed 403 Forbidden in 184ms (Views: 183.1ms | ActiveRecord: 0.0ms)
14144
+  (0.1ms) begin transaction
14145
+ 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", "a1s2d39116"]]
14146
+  (9.7ms) commit transaction
14147
+ Processing by Api::UserController#update as HTML
14148
+ Parameters: {"uid"=>"a1s2d39116"}
14149
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39116' LIMIT 1
14150
+  (0.1ms) begin transaction
14151
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14152
+ - signin
14153
+ - new permission
14154
+ ' WHERE "users"."id" = 2
14155
+  (7.5ms) commit transaction
14156
+ Completed 200 OK in 46ms (ActiveRecord: 8.2ms)
14157
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
14158
+  (0.1ms) begin transaction
14159
+ 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", "a1s2d37656"]]
14160
+  (5.0ms) commit transaction
14161
+ Processing by Api::UserController#update as HTML
14162
+ Parameters: {"uid"=>"a1s2d37656"}
14163
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37656' LIMIT 1
14164
+  (0.0ms) begin transaction
14165
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14166
+ - signin
14167
+ - new permission
14168
+ ' WHERE "users"."id" = 3
14169
+  (4.8ms) commit transaction
14170
+ Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
14171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
14172
+  (0.1ms) begin transaction
14173
+ 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", "a1s2d39170"]]
14174
+  (2.0ms) commit transaction
14175
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14176
+ Processing by Api::UserController#reauth as HTML
14177
+ Parameters: {"uid"=>"a1s2d39170"}
14178
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
14179
+  (0.1ms) begin transaction
14180
+ 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", "a1s2d31320"]]
14181
+  (2.1ms) commit transaction
14182
+ Processing by Api::UserController#reauth as HTML
14183
+ Parameters: {"uid"=>"a1s2d31320"}
14184
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31320' LIMIT 1
14185
+  (0.0ms) begin transaction
14186
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14187
+ - signin
14188
+ ' WHERE "users"."id" = 5
14189
+  (11.2ms) commit transaction
14190
+ Completed 200 OK in 14ms (ActiveRecord: 11.7ms)
14191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
14192
+ Started GET "/" for 127.0.0.1 at 2013-01-21 17:09:46 +0000
14193
+ Processing by ExampleController#index as HTML
14194
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
14195
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:47 +0000
14196
+ Processing by ExampleController#restricted as HTML
14197
+ Authenticating with gds_sso strategy
14198
+ Completed in 63ms
14199
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:47 +0000
14200
+ Started GET "/auth/gds/callback?code=21cac5fea24439d47de1f783eaaff3ea443a73b561c38935a5a207b9495d2f41&state=e89a8c6200311b2af2a61880c3a78c7d37b57d402b434251" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14201
+ Processing by AuthenticationsController#callback as HTML
14202
+ Parameters: {"code"=>"21cac5fea24439d47de1f783eaaff3ea443a73b561c38935a5a207b9495d2f41", "state"=>"e89a8c6200311b2af2a61880c3a78c7d37b57d402b434251"}
14203
+ Authenticating with gds_sso strategy
14204
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14205
+  (0.1ms) begin transaction
14206
+ 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"]]
14207
+  (6.9ms) commit transaction
14208
+  (0.0ms) begin transaction
14209
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
14210
+ - signin
14211
+ ' WHERE "users"."id" = 6
14212
+  (1.9ms) commit transaction
14213
+ Redirected to http://www.example-client.com/restricted
14214
+ Completed 302 Found in 16ms (ActiveRecord: 9.7ms)
14215
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14216
+ Processing by ExampleController#restricted as HTML
14217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14218
+ Completed 200 OK in 36ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14219
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14220
+ Processing by ExampleController#restricted as HTML
14221
+ Authenticating with gds_sso strategy
14222
+ Completed in 0ms
14223
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14224
+ Started GET "/auth/gds/callback?code=9c63a72738b831ee7dfdb03d1074f5bc2e1bfdae88c8bdd73f3d80408f5cdb3c&state=cd4e6b5e1a65b6b5b391c09ed36941dd51a2cce2a197b2f8" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14225
+ Processing by AuthenticationsController#callback as HTML
14226
+ Parameters: {"code"=>"9c63a72738b831ee7dfdb03d1074f5bc2e1bfdae88c8bdd73f3d80408f5cdb3c", "state"=>"cd4e6b5e1a65b6b5b391c09ed36941dd51a2cce2a197b2f8"}
14227
+ Authenticating with gds_sso strategy
14228
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14229
+  (0.1ms) begin transaction
14230
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14231
+ - signin
14232
+ ' WHERE "users"."id" = 6
14233
+  (12.7ms) commit transaction
14234
+  (0.1ms) begin transaction
14235
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14236
+ - signin
14237
+ ' WHERE "users"."id" = 6
14238
+  (1.8ms) commit transaction
14239
+ Redirected to http://www.example-client.com/restricted
14240
+ Completed 302 Found in 21ms (ActiveRecord: 15.6ms)
14241
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14242
+ Processing by ExampleController#restricted as HTML
14243
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14244
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14245
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14246
+ Processing by ExampleController#restricted as HTML
14247
+ Authenticating with gds_sso strategy
14248
+ Completed in 0ms
14249
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:48 +0000
14250
+ Started GET "/auth/gds/callback?code=011301ee70e73742d5007b217dada2e042eac97d4f3b982c842dd769d6d0157a&state=fe036bd6e613b2aedac495d17201d5032fe23bca7c89bf2a" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14251
+ Processing by AuthenticationsController#callback as HTML
14252
+ Parameters: {"code"=>"011301ee70e73742d5007b217dada2e042eac97d4f3b982c842dd769d6d0157a", "state"=>"fe036bd6e613b2aedac495d17201d5032fe23bca7c89bf2a"}
14253
+ Authenticating with gds_sso strategy
14254
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14255
+  (0.1ms) begin transaction
14256
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14257
+ - signin
14258
+ ' WHERE "users"."id" = 6
14259
+  (8.4ms) commit transaction
14260
+  (0.1ms) begin transaction
14261
+  (0.2ms) UPDATE "users" SET "permissions" = '---
14262
+ - signin
14263
+ ' WHERE "users"."id" = 6
14264
+  (1.9ms) commit transaction
14265
+ Redirected to http://www.example-client.com/restricted
14266
+ Completed 302 Found in 16ms (ActiveRecord: 11.2ms)
14267
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14268
+ Processing by ExampleController#restricted as HTML
14269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14270
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
14271
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14272
+ Processing by ExampleController#this_requires_signin_permission as HTML
14273
+ Authenticating with gds_sso strategy
14274
+ Completed in 1ms
14275
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14276
+ Started GET "/auth/gds/callback?code=bd0477ca57067ce087173bbafe4d02d97bb89187899979a0d7bdf8f94859bb65&state=86535a80b648a8682afd4563b1d6ab7e3eaf1b09bbb86958" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14277
+ Processing by AuthenticationsController#callback as HTML
14278
+ Parameters: {"code"=>"bd0477ca57067ce087173bbafe4d02d97bb89187899979a0d7bdf8f94859bb65", "state"=>"86535a80b648a8682afd4563b1d6ab7e3eaf1b09bbb86958"}
14279
+ Authenticating with gds_sso strategy
14280
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14281
+  (0.1ms) begin transaction
14282
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14283
+ - signin
14284
+ ' WHERE "users"."id" = 6
14285
+  (8.2ms) commit transaction
14286
+  (0.1ms) begin transaction
14287
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14288
+ - signin
14289
+ ' WHERE "users"."id" = 6
14290
+  (2.9ms) commit transaction
14291
+ Redirected to http://www.example-client.com/this_requires_signin_permission
14292
+ Completed 302 Found in 18ms (ActiveRecord: 12.1ms)
14293
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14294
+ Processing by ExampleController#this_requires_signin_permission as HTML
14295
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14296
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14297
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14298
+ Processing by ExampleController#this_requires_signin_permission as HTML
14299
+ Authenticating with gds_sso strategy
14300
+ Completed in 0ms
14301
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14302
+ Started GET "/auth/gds/callback?code=f12f0c2ffb8f3314a21f4ec9939a511a090f19680006217c02ce6a5a637c2592&state=4c722cf9966409bff813f382402075d9efd6d45b095cd9bb" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14303
+ Processing by AuthenticationsController#callback as HTML
14304
+ Parameters: {"code"=>"f12f0c2ffb8f3314a21f4ec9939a511a090f19680006217c02ce6a5a637c2592", "state"=>"4c722cf9966409bff813f382402075d9efd6d45b095cd9bb"}
14305
+ Authenticating with gds_sso strategy
14306
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14307
+  (0.1ms) begin transaction
14308
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14309
+ - signin
14310
+ ' WHERE "users"."id" = 6
14311
+  (8.8ms) commit transaction
14312
+  (0.1ms) begin transaction
14313
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14314
+ - signin
14315
+ ' WHERE "users"."id" = 6
14316
+  (2.1ms) commit transaction
14317
+ Redirected to http://www.example-client.com/this_requires_signin_permission
14318
+ Completed 302 Found in 16ms (ActiveRecord: 11.8ms)
14319
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:49 +0000
14320
+ Processing by ExampleController#this_requires_signin_permission as HTML
14321
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14322
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
14323
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14324
+ Processing by ExampleController#restricted as HTML
14325
+ Authenticating with gds_sso strategy
14326
+ Completed in 1ms
14327
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14328
+ Started GET "/auth/gds/callback?code=f7c709d134e80970261efccfaf4d7693c9afe4c92f98f3235c0398c3c9a09374&state=554879e09ff3fdd034f8d3544940e4c7ce56e3ae498eeb54" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14329
+ Processing by AuthenticationsController#callback as HTML
14330
+ Parameters: {"code"=>"f7c709d134e80970261efccfaf4d7693c9afe4c92f98f3235c0398c3c9a09374", "state"=>"554879e09ff3fdd034f8d3544940e4c7ce56e3ae498eeb54"}
14331
+ Authenticating with gds_sso strategy
14332
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14333
+  (0.1ms) begin transaction
14334
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14335
+ - signin
14336
+ ' WHERE "users"."id" = 6
14337
+  (6.5ms) commit transaction
14338
+  (0.0ms) begin transaction
14339
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14340
+ - signin
14341
+ ' WHERE "users"."id" = 6
14342
+  (2.0ms) commit transaction
14343
+ Redirected to http://www.example-client.com/restricted
14344
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
14345
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14346
+ Processing by ExampleController#restricted as HTML
14347
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14348
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14350
+  (0.0ms) begin transaction
14351
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14352
+ - signin
14353
+ ' WHERE "users"."id" = 6
14354
+  (2.5ms) commit transaction
14355
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14356
+ Processing by ExampleController#restricted as HTML
14357
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14358
+ Filter chain halted as :authenticate_user! rendered or redirected
14359
+ Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
14360
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14361
+ Processing by AuthenticationsController#sign_out as HTML
14362
+ Redirected to http://localhost:4567/users/sign_out
14363
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14364
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14365
+ Processing by ExampleController#restricted as HTML
14366
+ Authenticating with gds_sso strategy
14367
+ Completed in 0ms
14368
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14369
+ Started GET "/auth/gds/callback?code=9011fcf67a0913afdf429e284c4152b965aab6afceb85b411f8fb2d3062eeedf&state=30f80fca05ce641493bcd0c297d653d4e359bd2f4375ea76" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14370
+ Processing by AuthenticationsController#callback as HTML
14371
+ Parameters: {"code"=>"9011fcf67a0913afdf429e284c4152b965aab6afceb85b411f8fb2d3062eeedf", "state"=>"30f80fca05ce641493bcd0c297d653d4e359bd2f4375ea76"}
14372
+ Authenticating with gds_sso strategy
14373
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14374
+  (0.1ms) begin transaction
14375
+  (0.4ms) UPDATE "users" SET "permissions" = '---
14376
+ - signin
14377
+ ' WHERE "users"."id" = 6
14378
+  (6.6ms) commit transaction
14379
+  (0.1ms) begin transaction
14380
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
14381
+ - signin
14382
+ ' WHERE "users"."id" = 6
14383
+  (1.9ms) commit transaction
14384
+ Redirected to http://www.example-client.com/restricted
14385
+ Completed 302 Found in 14ms (ActiveRecord: 9.5ms)
14386
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14387
+ Processing by ExampleController#restricted as HTML
14388
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14389
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
14390
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14391
+ Processing by ExampleController#restricted as HTML
14392
+ Authenticating with gds_sso strategy
14393
+ Completed in 0ms
14394
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:50 +0000
14395
+ Started GET "/auth/gds/callback?code=4e5a51cd3fce8ba9b1291d528325d27b16734c84740f38d368bff8740ac6dc93&state=b92390de8030e903ab4f4925de666df9f19fd9244539006a" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14396
+ Processing by AuthenticationsController#callback as HTML
14397
+ Parameters: {"code"=>"4e5a51cd3fce8ba9b1291d528325d27b16734c84740f38d368bff8740ac6dc93", "state"=>"b92390de8030e903ab4f4925de666df9f19fd9244539006a"}
14398
+ Authenticating with gds_sso strategy
14399
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14400
+  (0.1ms) begin transaction
14401
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14402
+ - signin
14403
+ ' WHERE "users"."id" = 6
14404
+  (7.1ms) commit transaction
14405
+  (0.1ms) begin transaction
14406
+  (0.2ms) UPDATE "users" SET "permissions" = '---
14407
+ - signin
14408
+ ' WHERE "users"."id" = 6
14409
+  (1.8ms) commit transaction
14410
+ Redirected to http://www.example-client.com/restricted
14411
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
14412
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14413
+ Processing by ExampleController#restricted as HTML
14414
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14415
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14416
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:14:51 +0000
14417
+ Processing by ExampleController#restricted as HTML
14418
+ Authenticating with gds_sso strategy
14419
+ Completed in 0ms
14420
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-22 13:14:51 +0000
14421
+ Started GET "/auth/gds/callback?code=4a26ac24ab1cd43c60f124a457cf9cdce20835066ccc85ccdb0a123d5aad2b35&state=e03d3b41352967348d683d8269ea51f8dca5466f246e4127" for 127.0.0.1 at 2013-01-22 13:14:51 +0000
14422
+ Processing by AuthenticationsController#callback as HTML
14423
+ Parameters: {"code"=>"4a26ac24ab1cd43c60f124a457cf9cdce20835066ccc85ccdb0a123d5aad2b35", "state"=>"e03d3b41352967348d683d8269ea51f8dca5466f246e4127"}
14424
+ Authenticating with gds_sso strategy
14425
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14426
+  (0.1ms) begin transaction
14427
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14428
+ - signin
14429
+ ' WHERE "users"."id" = 6
14430
+  (6.9ms) commit transaction
14431
+  (0.1ms) begin transaction
14432
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14433
+ - signin
14434
+ ' WHERE "users"."id" = 6
14435
+  (1.8ms) commit transaction
14436
+ Redirected to http://www.example-client.com/restricted
14437
+ Completed 302 Found in 15ms (ActiveRecord: 9.7ms)
14438
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:14:51 +0000
14439
+ Processing by ExampleController#restricted as HTML
14440
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14441
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
14442
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14443
+ Processing by ExampleController#restricted as HTML
14444
+ Authenticating with gds_sso strategy
14445
+ Completed in 0ms
14446
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14447
+ Started GET "/auth/gds/callback?code=7244b90ac8ed638dcbf15e2ebb73c02e7ef4b7b59ff63de88fc4cc2abc3a5e12&state=336126b864f7d552461b7cd04edb3ffc2ed4e48d3a3d5507" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14448
+ Processing by AuthenticationsController#callback as HTML
14449
+ Parameters: {"code"=>"7244b90ac8ed638dcbf15e2ebb73c02e7ef4b7b59ff63de88fc4cc2abc3a5e12", "state"=>"336126b864f7d552461b7cd04edb3ffc2ed4e48d3a3d5507"}
14450
+ Authenticating with gds_sso strategy
14451
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14452
+  (0.1ms) begin transaction
14453
+  (0.4ms) UPDATE "users" SET "permissions" = '---
14454
+ - signin
14455
+ ' WHERE "users"."id" = 6
14456
+  (5.2ms) commit transaction
14457
+  (0.1ms) begin transaction
14458
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14459
+ - signin
14460
+ ' WHERE "users"."id" = 6
14461
+  (1.9ms) commit transaction
14462
+ Redirected to http://www.example-client.com/restricted
14463
+ Completed 302 Found in 15ms (ActiveRecord: 8.3ms)
14464
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14465
+ Processing by ExampleController#restricted as HTML
14466
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14467
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
14468
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:04:51 +0000
14469
+ Processing by ExampleController#restricted as HTML
14470
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14471
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
14472
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14473
+ Processing by ExampleController#restricted as JSON
14474
+ Authenticating with gds_sso_api_access strategy
14475
+ Completed in 14ms
14476
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14477
+ Processing by ExampleController#restricted as JSON
14478
+ Authenticating with gds_sso_api_access strategy
14479
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
14480
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14481
+ Processing by ExampleController#this_requires_signin_permission as JSON
14482
+ Authenticating with gds_sso_api_access strategy
14483
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
14484
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:51 +0000
14485
+ Processing by ExampleController#restricted as JSON
14486
+ Authenticating with gds_bearer_token strategy
14487
+ Completed in 13ms
14488
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:09:52 +0000
14489
+ Processing by ExampleController#restricted as JSON
14490
+ Authenticating with gds_bearer_token strategy
14491
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14492
+  (0.1ms) begin transaction
14493
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14494
+ - signin
14495
+ ' WHERE "users"."id" = 6
14496
+  (8.7ms) commit transaction
14497
+  (0.1ms) begin transaction
14498
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14499
+ - signin
14500
+ ' WHERE "users"."id" = 6
14501
+  (2.1ms) commit transaction
14502
+ Completed 200 OK in 46ms (Views: 0.6ms | ActiveRecord: 11.8ms)
14503
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:09:52 +0000
14504
+ Processing by ExampleController#this_requires_signin_permission as JSON
14505
+ Authenticating with gds_bearer_token strategy
14506
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14507
+  (0.1ms) begin transaction
14508
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14509
+ - signin
14510
+ ' WHERE "users"."id" = 6
14511
+  (8.9ms) commit transaction
14512
+  (0.1ms) begin transaction
14513
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14514
+ - signin
14515
+ ' WHERE "users"."id" = 6
14516
+  (2.1ms) commit transaction
14517
+ Completed 200 OK in 48ms (Views: 0.7ms | ActiveRecord: 11.9ms)
14518
+ Connecting to database specified by database.yml
14519
+  (32.0ms) select sqlite_version(*)
14520
+  (11.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)
14521
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14522
+  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14523
+  (0.1ms) begin transaction
14524
+ SQL (40.8ms) 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", "a1s2d34495"]]
14525
+  (2.2ms) commit transaction
14526
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14527
+ Processing by Api::UserController#update as HTML
14528
+ Parameters: {"uid"=>"a1s2d34495"}
14529
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (35.0ms)
14530
+ Completed 403 Forbidden in 86ms (Views: 85.2ms | ActiveRecord: 0.0ms)
14531
+  (0.1ms) begin transaction
14532
+ 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", "a1s2d36544"]]
14533
+  (2.1ms) commit transaction
14534
+ Processing by Api::UserController#update as HTML
14535
+ Parameters: {"uid"=>"a1s2d36544"}
14536
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36544' LIMIT 1
14537
+  (0.1ms) begin transaction
14538
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14539
+ - signin
14540
+ - new permission
14541
+ ' WHERE "users"."id" = 2
14542
+  (2.6ms) commit transaction
14543
+ Completed 200 OK in 18ms (ActiveRecord: 3.2ms)
14544
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
14545
+  (0.1ms) begin transaction
14546
+ 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", "a1s2d37474"]]
14547
+  (1.9ms) commit transaction
14548
+ Processing by Api::UserController#update as HTML
14549
+ Parameters: {"uid"=>"a1s2d37474"}
14550
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37474' LIMIT 1
14551
+  (0.0ms) begin transaction
14552
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14553
+ - signin
14554
+ - new permission
14555
+ ' WHERE "users"."id" = 3
14556
+  (2.5ms) commit transaction
14557
+ Completed 200 OK in 6ms (ActiveRecord: 3.0ms)
14558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
14559
+  (0.1ms) begin transaction
14560
+ 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", "a1s2d31419"]]
14561
+  (1.9ms) commit transaction
14562
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14563
+ Processing by Api::UserController#reauth as HTML
14564
+ Parameters: {"uid"=>"a1s2d31419"}
14565
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
14566
+  (0.1ms) begin transaction
14567
+ 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", "a1s2d31323"]]
14568
+  (2.0ms) commit transaction
14569
+ Processing by Api::UserController#reauth as HTML
14570
+ Parameters: {"uid"=>"a1s2d31323"}
14571
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31323' LIMIT 1
14572
+  (0.0ms) begin transaction
14573
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14574
+ - signin
14575
+ ' WHERE "users"."id" = 5
14576
+  (2.3ms) commit transaction
14577
+ Completed 200 OK in 5ms (ActiveRecord: 2.7ms)
14578
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
14579
+ Started GET "/" for 127.0.0.1 at 2013-01-21 17:13:14 +0000
14580
+ Processing by ExampleController#index as HTML
14581
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
14582
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:14 +0000
14583
+ Processing by ExampleController#restricted as HTML
14584
+ Authenticating with gds_sso strategy
14585
+ Completed in 64ms
14586
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:14 +0000
14587
+ Started GET "/auth/gds/callback?code=53747d3e1d5b9647f764584adc7148673705fb5e3087625321632f1e9384c09b&state=53f71ab13f799c7ef89d575c3b0aa1826dfeb0651d899f2d" for 127.0.0.1 at 2013-01-21 17:13:15 +0000
14588
+ Processing by AuthenticationsController#callback as HTML
14589
+ Parameters: {"code"=>"53747d3e1d5b9647f764584adc7148673705fb5e3087625321632f1e9384c09b", "state"=>"53f71ab13f799c7ef89d575c3b0aa1826dfeb0651d899f2d"}
14590
+ Authenticating with gds_sso strategy
14591
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14592
+  (0.1ms) begin transaction
14593
+ 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"]]
14594
+  (17.2ms) commit transaction
14595
+  (0.0ms) begin transaction
14596
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
14597
+ - signin
14598
+ ' WHERE "users"."id" = 6
14599
+  (1.8ms) commit transaction
14600
+ Redirected to http://www.example-client.com/restricted
14601
+ Completed 302 Found in 26ms (ActiveRecord: 19.9ms)
14602
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:15 +0000
14603
+ Processing by ExampleController#restricted as HTML
14604
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14605
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14606
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:15 +0000
14607
+ Processing by ExampleController#restricted as HTML
14608
+ Authenticating with gds_sso strategy
14609
+ Completed in 0ms
14610
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:15 +0000
14611
+ Started GET "/auth/gds/callback?code=49ea66c05f3eeb5c81a9e7965a7083d5af47cbe07a60f75da41e02214f546e79&state=f3cfb195eea1cd9423be6e38a23b6842cffb6d14fc74f1ec" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14612
+ Processing by AuthenticationsController#callback as HTML
14613
+ Parameters: {"code"=>"49ea66c05f3eeb5c81a9e7965a7083d5af47cbe07a60f75da41e02214f546e79", "state"=>"f3cfb195eea1cd9423be6e38a23b6842cffb6d14fc74f1ec"}
14614
+ Authenticating with gds_sso strategy
14615
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14616
+  (0.1ms) begin transaction
14617
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14618
+ - signin
14619
+ ' WHERE "users"."id" = 6
14620
+  (16.0ms) commit transaction
14621
+  (0.0ms) begin transaction
14622
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14623
+ - signin
14624
+ ' WHERE "users"."id" = 6
14625
+  (1.9ms) commit transaction
14626
+ Redirected to http://www.example-client.com/restricted
14627
+ Completed 302 Found in 24ms (ActiveRecord: 18.8ms)
14628
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14629
+ Processing by ExampleController#restricted as HTML
14630
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14631
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14632
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14633
+ Processing by ExampleController#restricted as HTML
14634
+ Authenticating with gds_sso strategy
14635
+ Completed in 0ms
14636
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14637
+ Started GET "/auth/gds/callback?code=555e0df713b3253749e16fa2f82ce7d8a154620a56e314b039779221788fba99&state=04d3366b7e674dcd74ff94ba28401b736469193e2fbb3492" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14638
+ Processing by AuthenticationsController#callback as HTML
14639
+ Parameters: {"code"=>"555e0df713b3253749e16fa2f82ce7d8a154620a56e314b039779221788fba99", "state"=>"04d3366b7e674dcd74ff94ba28401b736469193e2fbb3492"}
14640
+ Authenticating with gds_sso strategy
14641
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14642
+  (0.1ms) begin transaction
14643
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14644
+ - signin
14645
+ ' WHERE "users"."id" = 6
14646
+  (7.9ms) commit transaction
14647
+  (0.0ms) begin transaction
14648
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14649
+ - signin
14650
+ ' WHERE "users"."id" = 6
14651
+  (2.0ms) commit transaction
14652
+ Redirected to http://www.example-client.com/restricted
14653
+ Completed 302 Found in 15ms (ActiveRecord: 10.7ms)
14654
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14655
+ Processing by ExampleController#restricted as HTML
14656
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14657
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
14658
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14659
+ Processing by ExampleController#this_requires_signin_permission as HTML
14660
+ Authenticating with gds_sso strategy
14661
+ Completed in 1ms
14662
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14663
+ Started GET "/auth/gds/callback?code=a5e8ba2177299c69a84e85f70d1919f39f4c97084da3eabc5e159f26d644b5db&state=e17a680d4fc5fefb2ceae743b96655275a083f3db1be6a3d" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14664
+ Processing by AuthenticationsController#callback as HTML
14665
+ Parameters: {"code"=>"a5e8ba2177299c69a84e85f70d1919f39f4c97084da3eabc5e159f26d644b5db", "state"=>"e17a680d4fc5fefb2ceae743b96655275a083f3db1be6a3d"}
14666
+ Authenticating with gds_sso strategy
14667
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14668
+  (0.1ms) begin transaction
14669
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14670
+ - signin
14671
+ ' WHERE "users"."id" = 6
14672
+  (6.3ms) commit transaction
14673
+  (0.1ms) begin transaction
14674
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14675
+ - signin
14676
+ ' WHERE "users"."id" = 6
14677
+  (2.0ms) commit transaction
14678
+ Redirected to http://www.example-client.com/this_requires_signin_permission
14679
+ Completed 302 Found in 15ms (ActiveRecord: 9.3ms)
14680
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14681
+ Processing by ExampleController#this_requires_signin_permission as HTML
14682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14683
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
14684
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14685
+ Processing by ExampleController#this_requires_signin_permission as HTML
14686
+ Authenticating with gds_sso strategy
14687
+ Completed in 0ms
14688
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:16 +0000
14689
+ Started GET "/auth/gds/callback?code=6713816e3cc5d98a5994e42080bfab7364552dcc629360e65d2eb08682e85673&state=15e4827f1546a0f9ca84ca3929acedff7696e253425dcca5" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14690
+ Processing by AuthenticationsController#callback as HTML
14691
+ Parameters: {"code"=>"6713816e3cc5d98a5994e42080bfab7364552dcc629360e65d2eb08682e85673", "state"=>"15e4827f1546a0f9ca84ca3929acedff7696e253425dcca5"}
14692
+ Authenticating with gds_sso strategy
14693
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14694
+  (0.1ms) begin transaction
14695
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14696
+ - signin
14697
+ ' WHERE "users"."id" = 6
14698
+  (8.6ms) commit transaction
14699
+  (0.0ms) begin transaction
14700
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14701
+ - signin
14702
+ ' WHERE "users"."id" = 6
14703
+  (2.0ms) commit transaction
14704
+ Redirected to http://www.example-client.com/this_requires_signin_permission
14705
+ Completed 302 Found in 16ms (ActiveRecord: 11.4ms)
14706
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14707
+ Processing by ExampleController#this_requires_signin_permission as HTML
14708
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14709
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
14710
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14711
+ Processing by ExampleController#restricted as HTML
14712
+ Authenticating with gds_sso strategy
14713
+ Completed in 0ms
14714
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14715
+ Started GET "/auth/gds/callback?code=12072312d5e02286d81cd400282f3c95ec5ba5a4eeeb01407223e6dc2b355e9b&state=5931a92571f312f55d139af9e767b5a9343b68e2e7cf007a" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14716
+ Processing by AuthenticationsController#callback as HTML
14717
+ Parameters: {"code"=>"12072312d5e02286d81cd400282f3c95ec5ba5a4eeeb01407223e6dc2b355e9b", "state"=>"5931a92571f312f55d139af9e767b5a9343b68e2e7cf007a"}
14718
+ Authenticating with gds_sso strategy
14719
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14720
+  (0.1ms) begin transaction
14721
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14722
+ - signin
14723
+ ' WHERE "users"."id" = 6
14724
+  (6.3ms) commit transaction
14725
+  (0.0ms) begin transaction
14726
+  (0.2ms) UPDATE "users" SET "permissions" = '---
14727
+ - signin
14728
+ ' WHERE "users"."id" = 6
14729
+  (2.0ms) commit transaction
14730
+ Redirected to http://www.example-client.com/restricted
14731
+ Completed 302 Found in 15ms (ActiveRecord: 9.2ms)
14732
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14733
+ Processing by ExampleController#restricted as HTML
14734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14735
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14736
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14737
+  (0.0ms) begin transaction
14738
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14739
+ - signin
14740
+ ' WHERE "users"."id" = 6
14741
+  (1.9ms) commit transaction
14742
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14743
+ Processing by ExampleController#restricted as HTML
14744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14745
+ Filter chain halted as :authenticate_user! rendered or redirected
14746
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
14747
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14748
+ Processing by AuthenticationsController#sign_out as HTML
14749
+ Redirected to http://localhost:4567/users/sign_out
14750
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14751
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14752
+ Processing by ExampleController#restricted as HTML
14753
+ Authenticating with gds_sso strategy
14754
+ Completed in 0ms
14755
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14756
+ Started GET "/auth/gds/callback?code=94e6bded4f5b468a7d3fe4ee670e7242cbd15a08daaf5e7fedb361889fbc7b42&state=34587aacdb56a0cae68177bafa31fe6669cf500e43d02875" for 127.0.0.1 at 2013-01-21 17:13:17 +0000
14757
+ Processing by AuthenticationsController#callback as HTML
14758
+ Parameters: {"code"=>"94e6bded4f5b468a7d3fe4ee670e7242cbd15a08daaf5e7fedb361889fbc7b42", "state"=>"34587aacdb56a0cae68177bafa31fe6669cf500e43d02875"}
14759
+ Authenticating with gds_sso strategy
14760
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14761
+  (0.1ms) begin transaction
14762
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14763
+ - signin
14764
+ ' WHERE "users"."id" = 6
14765
+  (8.0ms) commit transaction
14766
+  (0.0ms) begin transaction
14767
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
14768
+ - signin
14769
+ ' WHERE "users"."id" = 6
14770
+  (3.3ms) commit transaction
14771
+ Redirected to http://www.example-client.com/restricted
14772
+ Completed 302 Found in 16ms (ActiveRecord: 12.2ms)
14773
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14774
+ Processing by ExampleController#restricted as HTML
14775
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14776
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14777
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14778
+ Processing by ExampleController#restricted as HTML
14779
+ Authenticating with gds_sso strategy
14780
+ Completed in 0ms
14781
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14782
+ Started GET "/auth/gds/callback?code=18429fab922ed7e4a3725c0a268c58a461eb5bc092f2cd8011852554a62d4434&state=ca482646d78e62d952c108c03bee4f0f53b766ccc3fd659f" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14783
+ Processing by AuthenticationsController#callback as HTML
14784
+ Parameters: {"code"=>"18429fab922ed7e4a3725c0a268c58a461eb5bc092f2cd8011852554a62d4434", "state"=>"ca482646d78e62d952c108c03bee4f0f53b766ccc3fd659f"}
14785
+ Authenticating with gds_sso strategy
14786
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14787
+  (0.1ms) begin transaction
14788
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14789
+ - signin
14790
+ ' WHERE "users"."id" = 6
14791
+  (6.9ms) commit transaction
14792
+  (0.1ms) begin transaction
14793
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14794
+ - signin
14795
+ ' WHERE "users"."id" = 6
14796
+  (1.8ms) commit transaction
14797
+ Redirected to http://www.example-client.com/restricted
14798
+ Completed 302 Found in 15ms (ActiveRecord: 9.7ms)
14799
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14800
+ Processing by ExampleController#restricted as HTML
14801
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14802
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14803
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:18:18 +0000
14804
+ Processing by ExampleController#restricted as HTML
14805
+ Authenticating with gds_sso strategy
14806
+ Completed in 0ms
14807
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-22 13:18:18 +0000
14808
+ Started GET "/auth/gds/callback?code=3d739a11ac05f6cd386058958856997f87b0b13509de6ad14b351fe53f5f76d7&state=d114b6d0f0ed917d86d1248cbd03e5c380707c9804b70c2e" for 127.0.0.1 at 2013-01-22 13:18:18 +0000
14809
+ Processing by AuthenticationsController#callback as HTML
14810
+ Parameters: {"code"=>"3d739a11ac05f6cd386058958856997f87b0b13509de6ad14b351fe53f5f76d7", "state"=>"d114b6d0f0ed917d86d1248cbd03e5c380707c9804b70c2e"}
14811
+ Authenticating with gds_sso strategy
14812
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14813
+  (0.1ms) begin transaction
14814
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14815
+ - signin
14816
+ ' WHERE "users"."id" = 6
14817
+  (8.4ms) commit transaction
14818
+  (0.1ms) begin transaction
14819
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14820
+ - signin
14821
+ ' WHERE "users"."id" = 6
14822
+  (1.8ms) commit transaction
14823
+ Redirected to http://www.example-client.com/restricted
14824
+ Completed 302 Found in 16ms (ActiveRecord: 11.1ms)
14825
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:18:18 +0000
14826
+ Processing by ExampleController#restricted as HTML
14827
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14828
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
14829
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14830
+ Processing by ExampleController#restricted as HTML
14831
+ Authenticating with gds_sso strategy
14832
+ Completed in 0ms
14833
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14834
+ Started GET "/auth/gds/callback?code=7cf7f15b947962c00c6731bceb4661df8db632867743a0c2cfabd3b08591fbc3&state=c29213ddccbf6cd875c767812584ab64e2fc274c0bf3a46e" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14835
+ Processing by AuthenticationsController#callback as HTML
14836
+ Parameters: {"code"=>"7cf7f15b947962c00c6731bceb4661df8db632867743a0c2cfabd3b08591fbc3", "state"=>"c29213ddccbf6cd875c767812584ab64e2fc274c0bf3a46e"}
14837
+ Authenticating with gds_sso strategy
14838
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14839
+  (0.1ms) begin transaction
14840
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14841
+ - signin
14842
+ ' WHERE "users"."id" = 6
14843
+  (7.0ms) commit transaction
14844
+  (0.0ms) begin transaction
14845
+  (0.2ms) UPDATE "users" SET "permissions" = '---
14846
+ - signin
14847
+ ' WHERE "users"."id" = 6
14848
+  (1.9ms) commit transaction
14849
+ Redirected to http://www.example-client.com/restricted
14850
+ Completed 302 Found in 15ms (ActiveRecord: 9.8ms)
14851
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:18 +0000
14852
+ Processing by ExampleController#restricted as HTML
14853
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14854
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
14855
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:08:18 +0000
14856
+ Processing by ExampleController#restricted as HTML
14857
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14858
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
14859
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14860
+ Processing by ExampleController#restricted as JSON
14861
+ Authenticating with gds_sso_api_access strategy
14862
+ Completed in 14ms
14863
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14864
+ Processing by ExampleController#restricted as JSON
14865
+ Authenticating with gds_sso_api_access strategy
14866
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
14867
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14868
+ Processing by ExampleController#this_requires_signin_permission as JSON
14869
+ Authenticating with gds_sso_api_access strategy
14870
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
14871
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14872
+ Processing by ExampleController#restricted as JSON
14873
+ Authenticating with gds_bearer_token strategy
14874
+ Completed in 9ms
14875
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14876
+ Processing by ExampleController#restricted as JSON
14877
+ Authenticating with gds_bearer_token strategy
14878
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14879
+  (0.1ms) begin transaction
14880
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14881
+ - signin
14882
+ ' WHERE "users"."id" = 6
14883
+  (8.5ms) commit transaction
14884
+  (0.1ms) begin transaction
14885
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14886
+ - signin
14887
+ ' WHERE "users"."id" = 6
14888
+  (1.8ms) commit transaction
14889
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 11.3ms)
14890
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:13:19 +0000
14891
+ Processing by ExampleController#this_requires_signin_permission as JSON
14892
+ Authenticating with gds_bearer_token strategy
14893
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14894
+  (0.1ms) begin transaction
14895
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14896
+ - signin
14897
+ ' WHERE "users"."id" = 6
14898
+  (9.0ms) commit transaction
14899
+  (0.1ms) begin transaction
14900
+  (0.3ms) UPDATE "users" SET "permissions" = '---
14901
+ - signin
14902
+ ' WHERE "users"."id" = 6
14903
+  (2.5ms) commit transaction
14904
+ Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 12.5ms)
14905
+ Connecting to database specified by database.yml
14906
+  (3.0ms) select sqlite_version(*)
14907
+  (12.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)
14908
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14909
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14910
+  (0.1ms) begin transaction
14911
+ SQL (40.6ms) 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", "a1s2d35212"]]
14912
+  (2.2ms) commit transaction
14913
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14914
+ Processing by Api::UserController#update as HTML
14915
+ Parameters: {"uid"=>"a1s2d35212"}
14916
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.9ms)
14917
+ Completed 403 Forbidden in 55ms (Views: 54.5ms | ActiveRecord: 0.0ms)
14918
+  (0.1ms) begin transaction
14919
+ 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", "a1s2d3700"]]
14920
+  (2.2ms) commit transaction
14921
+ Processing by Api::UserController#update as HTML
14922
+ Parameters: {"uid"=>"a1s2d3700"}
14923
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3700' LIMIT 1
14924
+  (0.1ms) begin transaction
14925
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14926
+ - signin
14927
+ - new permission
14928
+ ' WHERE "users"."id" = 2
14929
+  (2.5ms) commit transaction
14930
+ Completed 200 OK in 18ms (ActiveRecord: 3.1ms)
14931
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
14932
+  (0.1ms) begin transaction
14933
+ 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", "a1s2d31439"]]
14934
+  (2.1ms) commit transaction
14935
+ Processing by Api::UserController#update as HTML
14936
+ Parameters: {"uid"=>"a1s2d31439"}
14937
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31439' LIMIT 1
14938
+  (0.0ms) begin transaction
14939
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
14940
+ - signin
14941
+ - new permission
14942
+ ' WHERE "users"."id" = 3
14943
+  (2.5ms) commit transaction
14944
+ Completed 200 OK in 5ms (ActiveRecord: 3.0ms)
14945
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
14946
+  (0.1ms) begin transaction
14947
+ 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", "a1s2d32856"]]
14948
+  (2.3ms) commit transaction
14949
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
14950
+ Processing by Api::UserController#reauth as HTML
14951
+ Parameters: {"uid"=>"a1s2d32856"}
14952
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
14953
+  (0.1ms) begin transaction
14954
+ 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", "a1s2d32956"]]
14955
+  (2.4ms) commit transaction
14956
+ Processing by Api::UserController#reauth as HTML
14957
+ Parameters: {"uid"=>"a1s2d32956"}
14958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32956' LIMIT 1
14959
+  (0.0ms) begin transaction
14960
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
14961
+ - signin
14962
+ ' WHERE "users"."id" = 5
14963
+  (2.0ms) commit transaction
14964
+ Completed 200 OK in 4ms (ActiveRecord: 2.4ms)
14965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
14966
+ Started GET "/" for 127.0.0.1 at 2013-01-21 17:14:58 +0000
14967
+ Processing by ExampleController#index as HTML
14968
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
14969
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:14:58 +0000
14970
+ Processing by ExampleController#restricted as HTML
14971
+ Authenticating with gds_sso strategy
14972
+ Completed in 63ms
14973
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:14:58 +0000
14974
+ Started GET "/auth/gds/callback?code=a25c068ed977ce2a4da1b177f81177770cabc32dc19e3a1d13344f5667d37451&state=264b28c8152eabac18d64632d8dde002b3957249f13c4f81" for 127.0.0.1 at 2013-01-21 17:14:59 +0000
14975
+ Processing by AuthenticationsController#callback as HTML
14976
+ Parameters: {"code"=>"a25c068ed977ce2a4da1b177f81177770cabc32dc19e3a1d13344f5667d37451", "state"=>"264b28c8152eabac18d64632d8dde002b3957249f13c4f81"}
14977
+ Authenticating with gds_sso strategy
14978
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14979
+  (0.1ms) begin transaction
14980
+ 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"]]
14981
+  (12.4ms) commit transaction
14982
+  (0.0ms) begin transaction
14983
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
14984
+ - signin
14985
+ ' WHERE "users"."id" = 6
14986
+  (1.8ms) commit transaction
14987
+ Redirected to http://www.example-client.com/restricted
14988
+ Completed 302 Found in 55ms (ActiveRecord: 15.2ms)
14989
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:14:59 +0000
14990
+ Processing by ExampleController#restricted as HTML
14991
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
14992
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
14993
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
14994
+ Processing by ExampleController#restricted as HTML
14995
+ Authenticating with gds_sso strategy
14996
+ Completed in 0ms
14997
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
14998
+ Started GET "/auth/gds/callback?code=563d8a4a2297b5055c8814da0c5c2535fe47dd905c0226a7f378a736bd8f22ee&state=ec8fb2a9dcd82502f475f2f2472c51a4067314bd8e239fa4" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
14999
+ Processing by AuthenticationsController#callback as HTML
15000
+ Parameters: {"code"=>"563d8a4a2297b5055c8814da0c5c2535fe47dd905c0226a7f378a736bd8f22ee", "state"=>"ec8fb2a9dcd82502f475f2f2472c51a4067314bd8e239fa4"}
15001
+ Authenticating with gds_sso strategy
15002
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15003
+  (0.1ms) begin transaction
15004
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15005
+ - signin
15006
+ ' WHERE "users"."id" = 6
15007
+  (5.8ms) commit transaction
15008
+  (0.1ms) begin transaction
15009
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15010
+ - signin
15011
+ ' WHERE "users"."id" = 6
15012
+  (2.3ms) commit transaction
15013
+ Redirected to http://www.example-client.com/restricted
15014
+ Completed 302 Found in 15ms (ActiveRecord: 9.1ms)
15015
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15016
+ Processing by ExampleController#restricted as HTML
15017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15018
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
15019
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15020
+ Processing by ExampleController#restricted as HTML
15021
+ Authenticating with gds_sso strategy
15022
+ Completed in 0ms
15023
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15024
+ Started GET "/auth/gds/callback?code=dcad192014a997c5afee419238cf4be516a1f77bebfd3aa07424010f485cd4e4&state=2326ca9cecf9c0e37ace1ff973f7b4bee0097905b5f577f6" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15025
+ Processing by AuthenticationsController#callback as HTML
15026
+ Parameters: {"code"=>"dcad192014a997c5afee419238cf4be516a1f77bebfd3aa07424010f485cd4e4", "state"=>"2326ca9cecf9c0e37ace1ff973f7b4bee0097905b5f577f6"}
15027
+ Authenticating with gds_sso strategy
15028
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15029
+  (0.1ms) begin transaction
15030
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15031
+ - signin
15032
+ ' WHERE "users"."id" = 6
15033
+  (8.8ms) commit transaction
15034
+  (0.1ms) begin transaction
15035
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15036
+ - signin
15037
+ ' WHERE "users"."id" = 6
15038
+  (2.0ms) commit transaction
15039
+ Redirected to http://www.example-client.com/restricted
15040
+ Completed 302 Found in 16ms (ActiveRecord: 11.7ms)
15041
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15042
+ Processing by ExampleController#restricted as HTML
15043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15044
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
15045
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15046
+ Processing by ExampleController#this_requires_signin_permission as HTML
15047
+ Authenticating with gds_sso strategy
15048
+ Completed in 1ms
15049
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:00 +0000
15050
+ Started GET "/auth/gds/callback?code=52df814b7671367519dd04b583c28c09fd9b4c6d02d91c73babdafdbfb724fe7&state=80252be4d57c2e674adaae4c76c6e60f6bc7205569ba288e" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15051
+ Processing by AuthenticationsController#callback as HTML
15052
+ Parameters: {"code"=>"52df814b7671367519dd04b583c28c09fd9b4c6d02d91c73babdafdbfb724fe7", "state"=>"80252be4d57c2e674adaae4c76c6e60f6bc7205569ba288e"}
15053
+ Authenticating with gds_sso strategy
15054
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15055
+  (0.1ms) begin transaction
15056
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15057
+ - signin
15058
+ ' WHERE "users"."id" = 6
15059
+  (6.7ms) commit transaction
15060
+  (0.1ms) begin transaction
15061
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15062
+ - signin
15063
+ ' WHERE "users"."id" = 6
15064
+  (1.9ms) commit transaction
15065
+ Redirected to http://www.example-client.com/this_requires_signin_permission
15066
+ Completed 302 Found in 15ms (ActiveRecord: 9.6ms)
15067
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15068
+ Processing by ExampleController#this_requires_signin_permission as HTML
15069
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15070
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
15071
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15072
+ Processing by ExampleController#this_requires_signin_permission as HTML
15073
+ Authenticating with gds_sso strategy
15074
+ Completed in 0ms
15075
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15076
+ Started GET "/auth/gds/callback?code=d1ed416d95f6f3d1cf1080615a6b889153a7ed10e25a0a96c83979c798d9c44b&state=cff939eefd214260088fcd4a6e964b812f18f053cacf2dbc" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15077
+ Processing by AuthenticationsController#callback as HTML
15078
+ Parameters: {"code"=>"d1ed416d95f6f3d1cf1080615a6b889153a7ed10e25a0a96c83979c798d9c44b", "state"=>"cff939eefd214260088fcd4a6e964b812f18f053cacf2dbc"}
15079
+ Authenticating with gds_sso strategy
15080
+ User Load (2.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15081
+  (0.1ms) begin transaction
15082
+  (0.4ms) UPDATE "users" SET "permissions" = '---
15083
+ - signin
15084
+ ' WHERE "users"."id" = 6
15085
+  (8.8ms) commit transaction
15086
+  (0.1ms) begin transaction
15087
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15088
+ - signin
15089
+ ' WHERE "users"."id" = 6
15090
+  (3.1ms) commit transaction
15091
+ Redirected to http://www.example-client.com/this_requires_signin_permission
15092
+ Completed 302 Found in 21ms (ActiveRecord: 15.2ms)
15093
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15094
+ Processing by ExampleController#this_requires_signin_permission as HTML
15095
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15096
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
15097
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15098
+ Processing by ExampleController#restricted as HTML
15099
+ Authenticating with gds_sso strategy
15100
+ Completed in 0ms
15101
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15102
+ Started GET "/auth/gds/callback?code=32e6334876b680b0cf60017f5fdfe630c1048fccc9031eba14141ff6a9b749d7&state=72c99324bbd939b06c935a88b8a3608fc053f6f5173ab85c" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15103
+ Processing by AuthenticationsController#callback as HTML
15104
+ Parameters: {"code"=>"32e6334876b680b0cf60017f5fdfe630c1048fccc9031eba14141ff6a9b749d7", "state"=>"72c99324bbd939b06c935a88b8a3608fc053f6f5173ab85c"}
15105
+ Authenticating with gds_sso strategy
15106
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15107
+  (0.1ms) begin transaction
15108
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15109
+ - signin
15110
+ ' WHERE "users"."id" = 6
15111
+  (10.0ms) commit transaction
15112
+  (0.1ms) begin transaction
15113
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15114
+ - signin
15115
+ ' WHERE "users"."id" = 6
15116
+  (2.0ms) commit transaction
15117
+ Redirected to http://www.example-client.com/restricted
15118
+ Completed 302 Found in 20ms (ActiveRecord: 13.0ms)
15119
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15120
+ Processing by ExampleController#restricted as HTML
15121
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15122
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
15123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15124
+  (0.1ms) begin transaction
15125
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
15126
+ - signin
15127
+ ' WHERE "users"."id" = 6
15128
+  (2.0ms) commit transaction
15129
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15130
+ Processing by ExampleController#restricted as HTML
15131
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15132
+ Filter chain halted as :authenticate_user! rendered or redirected
15133
+ Completed 403 Forbidden in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
15134
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-01-21 17:15:01 +0000
15135
+ Processing by AuthenticationsController#sign_out as HTML
15136
+ Redirected to http://localhost:4567/users/sign_out
15137
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
15138
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15139
+ Processing by ExampleController#restricted as HTML
15140
+ Authenticating with gds_sso strategy
15141
+ Completed in 0ms
15142
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15143
+ Started GET "/auth/gds/callback?code=8410a9368ca32527b3dc620ffcc62d292c3e9115bab4783b32383c8a9bf82ca0&state=bb9e892943f3f04fa3fbf35a73d15ae1bc7030ac9c912748" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15144
+ Processing by AuthenticationsController#callback as HTML
15145
+ Parameters: {"code"=>"8410a9368ca32527b3dc620ffcc62d292c3e9115bab4783b32383c8a9bf82ca0", "state"=>"bb9e892943f3f04fa3fbf35a73d15ae1bc7030ac9c912748"}
15146
+ Authenticating with gds_sso strategy
15147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15148
+  (0.1ms) begin transaction
15149
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15150
+ - signin
15151
+ ' WHERE "users"."id" = 6
15152
+  (7.9ms) commit transaction
15153
+  (0.1ms) begin transaction
15154
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
15155
+ - signin
15156
+ ' WHERE "users"."id" = 6
15157
+  (2.0ms) commit transaction
15158
+ Redirected to http://www.example-client.com/restricted
15159
+ Completed 302 Found in 15ms (ActiveRecord: 10.8ms)
15160
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15161
+ Processing by ExampleController#restricted as HTML
15162
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15163
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
15164
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15165
+ Processing by ExampleController#restricted as HTML
15166
+ Authenticating with gds_sso strategy
15167
+ Completed in 0ms
15168
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15169
+ Started GET "/auth/gds/callback?code=277f4a7b0c67feb0d9037500ef78cc8f66e79d46f0e8118b68ce61939ad8931f&state=fd4bbb4f30c4861a4c85a8e76681a0ab7816b5084611daa9" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15170
+ Processing by AuthenticationsController#callback as HTML
15171
+ Parameters: {"code"=>"277f4a7b0c67feb0d9037500ef78cc8f66e79d46f0e8118b68ce61939ad8931f", "state"=>"fd4bbb4f30c4861a4c85a8e76681a0ab7816b5084611daa9"}
15172
+ Authenticating with gds_sso strategy
15173
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15174
+  (0.1ms) begin transaction
15175
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15176
+ - signin
15177
+ ' WHERE "users"."id" = 6
15178
+  (6.4ms) commit transaction
15179
+  (0.1ms) begin transaction
15180
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15181
+ - signin
15182
+ ' WHERE "users"."id" = 6
15183
+  (2.3ms) commit transaction
15184
+ Redirected to http://www.example-client.com/restricted
15185
+ Completed 302 Found in 16ms (ActiveRecord: 9.6ms)
15186
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15187
+ Processing by ExampleController#restricted as HTML
15188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15189
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
15190
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:20:02 +0000
15191
+ Processing by ExampleController#restricted as HTML
15192
+ Authenticating with gds_sso strategy
15193
+ Completed in 0ms
15194
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-22 13:20:02 +0000
15195
+ Started GET "/auth/gds/callback?code=90ea231cc723b01e0b76d44695c39fe3b07285884fc7409ab5d12b1eabb1419c&state=f2d2e24cfa0597b398f1ca4c4339196610c378057c28cd63" for 127.0.0.1 at 2013-01-22 13:20:02 +0000
15196
+ Processing by AuthenticationsController#callback as HTML
15197
+ Parameters: {"code"=>"90ea231cc723b01e0b76d44695c39fe3b07285884fc7409ab5d12b1eabb1419c", "state"=>"f2d2e24cfa0597b398f1ca4c4339196610c378057c28cd63"}
15198
+ Authenticating with gds_sso strategy
15199
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15200
+  (0.1ms) begin transaction
15201
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15202
+ - signin
15203
+ ' WHERE "users"."id" = 6
15204
+  (8.4ms) commit transaction
15205
+  (0.1ms) begin transaction
15206
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15207
+ - signin
15208
+ ' WHERE "users"."id" = 6
15209
+  (1.8ms) commit transaction
15210
+ Redirected to http://www.example-client.com/restricted
15211
+ Completed 302 Found in 16ms (ActiveRecord: 11.3ms)
15212
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:20:02 +0000
15213
+ Processing by ExampleController#restricted as HTML
15214
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15215
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
15216
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15217
+ Processing by ExampleController#restricted as HTML
15218
+ Authenticating with gds_sso strategy
15219
+ Completed in 0ms
15220
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-01-21 17:15:02 +0000
15221
+ Started GET "/auth/gds/callback?code=8f43f8e06bc6f094d042eff8a03b7f9445e2b269bc9c1f79cb828b23cfba39d2&state=3884f167b5dc5dc396ae8de84580561dee5358a9d1c40881" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15222
+ Processing by AuthenticationsController#callback as HTML
15223
+ Parameters: {"code"=>"8f43f8e06bc6f094d042eff8a03b7f9445e2b269bc9c1f79cb828b23cfba39d2", "state"=>"3884f167b5dc5dc396ae8de84580561dee5358a9d1c40881"}
15224
+ Authenticating with gds_sso strategy
15225
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15226
+  (0.1ms) begin transaction
15227
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15228
+ - signin
15229
+ ' WHERE "users"."id" = 6
15230
+  (6.8ms) commit transaction
15231
+  (0.0ms) begin transaction
15232
+  (0.2ms) UPDATE "users" SET "permissions" = '---
15233
+ - signin
15234
+ ' WHERE "users"."id" = 6
15235
+  (1.9ms) commit transaction
15236
+ Redirected to http://www.example-client.com/restricted
15237
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
15238
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15239
+ Processing by ExampleController#restricted as HTML
15240
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15241
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
15242
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-22 13:10:03 +0000
15243
+ Processing by ExampleController#restricted as HTML
15244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15245
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
15246
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15247
+ Processing by ExampleController#restricted as JSON
15248
+ Authenticating with gds_sso_api_access strategy
15249
+ Completed in 14ms
15250
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15251
+ Processing by ExampleController#restricted as JSON
15252
+ Authenticating with gds_sso_api_access strategy
15253
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
15254
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15255
+ Processing by ExampleController#this_requires_signin_permission as JSON
15256
+ Authenticating with gds_sso_api_access strategy
15257
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
15258
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15259
+ Processing by ExampleController#restricted as JSON
15260
+ Authenticating with gds_bearer_token strategy
15261
+ Completed in 9ms
15262
+ Started GET "/restricted" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15263
+ Processing by ExampleController#restricted as JSON
15264
+ Authenticating with gds_bearer_token strategy
15265
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15266
+  (0.1ms) begin transaction
15267
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15268
+ - signin
15269
+ ' WHERE "users"."id" = 6
15270
+  (8.9ms) commit transaction
15271
+  (0.1ms) begin transaction
15272
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15273
+ - signin
15274
+ ' WHERE "users"."id" = 6
15275
+  (1.9ms) commit transaction
15276
+ Completed 200 OK in 48ms (Views: 0.7ms | ActiveRecord: 11.9ms)
15277
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-01-21 17:15:03 +0000
15278
+ Processing by ExampleController#this_requires_signin_permission as JSON
15279
+ Authenticating with gds_bearer_token strategy
15280
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
15281
+  (0.1ms) begin transaction
15282
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15283
+ - signin
15284
+ ' WHERE "users"."id" = 6
15285
+  (8.6ms) commit transaction
15286
+  (0.1ms) begin transaction
15287
+  (0.3ms) UPDATE "users" SET "permissions" = '---
15288
+ - signin
15289
+ ' WHERE "users"."id" = 6
15290
+  (2.0ms) commit transaction
15291
+ Completed 200 OK in 67ms (Views: 0.7ms | ActiveRecord: 11.5ms)