gds-sso 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
- class Api::UserController < ApplicationController
1
+ class Api::UserController < ActionController::Base
2
+ include GDS::SSO::ControllerMethods
3
+
2
4
  skip_before_filter :verify_authenticity_token
3
5
  before_filter :authenticate_user!
4
6
  before_filter :require_user_update_permission
@@ -1,4 +1,6 @@
1
- class AuthenticationsController < ApplicationController
1
+ class AuthenticationsController < ActionController::Base
2
+ include GDS::SSO::ControllerMethods
3
+
2
4
  before_filter :authenticate_user!, :only => :callback
3
5
  skip_before_filter :require_signin_permission!
4
6
  layout false
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "7.0.0"
3
+ VERSION = "8.0.0"
4
4
  end
5
5
  end
@@ -10479,3 +10479,385 @@ Authenticating with gds_bearer_token strategy
10479
10479
  ' WHERE "users"."id" = 11
10480
10480
   (5.4ms) commit transaction
10481
10481
  Completed 200 OK in 59.7ms (Views: 0.2ms | ActiveRecord: 14.3ms)
10482
+ Connecting to database specified by database.yml
10483
+  (0.8ms) select sqlite_version(*)
10484
+  (9.1ms) DROP TABLE "users"
10485
+  (3.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255)) 
10486
+  (0.1ms) begin transaction
10487
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d30"]]
10488
+  (4.3ms) commit transaction
10489
+  (0.1ms) begin transaction
10490
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33399"]]
10491
+  (3.3ms) commit transaction
10492
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10493
+ Processing by Api::UserController#update as HTML
10494
+ Parameters: {"uid"=>"a1s2d30"}
10495
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
10496
+ Completed 403 Forbidden in 7.3ms (Views: 6.7ms | ActiveRecord: 0.0ms)
10497
+  (0.1ms) begin transaction
10498
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38521"]]
10499
+  (3.7ms) commit transaction
10500
+  (0.0ms) begin transaction
10501
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35691"]]
10502
+  (5.6ms) commit transaction
10503
+ Processing by Api::UserController#update as HTML
10504
+ Parameters: {"uid"=>"a1s2d38521"}
10505
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38521' LIMIT 1
10506
+  (0.1ms) begin transaction
10507
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
10508
+ - signin
10509
+ - new permission
10510
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
10511
+  (5.1ms) commit transaction
10512
+ Completed 200 OK in 13.7ms (ActiveRecord: 5.6ms)
10513
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10514
+  (0.1ms) begin transaction
10515
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33671"]]
10516
+  (4.9ms) commit transaction
10517
+  (0.0ms) begin transaction
10518
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32493"]]
10519
+  (3.7ms) commit transaction
10520
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10521
+ Processing by Api::UserController#reauth as HTML
10522
+ Parameters: {"uid"=>"a1s2d33671"}
10523
+ Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
10524
+  (0.1ms) begin transaction
10525
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35466"]]
10526
+  (4.0ms) commit transaction
10527
+  (0.0ms) begin transaction
10528
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35920"]]
10529
+  (3.8ms) commit transaction
10530
+ Processing by Api::UserController#reauth as HTML
10531
+ Parameters: {"uid"=>"nonexistent-user"}
10532
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
10533
+ Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
10534
+  (0.0ms) begin transaction
10535
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37861"]]
10536
+  (3.2ms) commit transaction
10537
+  (0.0ms) begin transaction
10538
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39982"]]
10539
+  (3.7ms) commit transaction
10540
+ Processing by Api::UserController#reauth as HTML
10541
+ Parameters: {"uid"=>"a1s2d37861"}
10542
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37861' LIMIT 1
10543
+  (0.0ms) begin transaction
10544
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
10545
+ - signin
10546
+ ' WHERE "users"."id" = 9
10547
+  (2.8ms) commit transaction
10548
+ Completed 200 OK in 7.0ms (ActiveRecord: 3.2ms)
10549
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
10550
+ Started GET "/" for 127.0.0.1 at 2013-11-20 14:30:54 +0000
10551
+ Processing by ExampleController#index as HTML
10552
+ Completed 200 OK in 2.0ms (Views: 1.6ms | ActiveRecord: 0.0ms)
10553
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:54 +0000
10554
+ Processing by ExampleController#restricted as HTML
10555
+ Authenticating with gds_sso strategy
10556
+ Completed in 2.5ms
10557
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:54 +0000
10558
+ Started GET "/auth/gds/callback?code=94b49da83ee8c04736957844427d13597b8d95e4467a2f62c1cca8b7b3e2d958&state=d50fb63941cae6102dcca09f21637cf363b2a7d34691668f" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10559
+ Processing by AuthenticationsController#callback as HTML
10560
+ Parameters: {"code"=>"94b49da83ee8c04736957844427d13597b8d95e4467a2f62c1cca8b7b3e2d958", "state"=>"d50fb63941cae6102dcca09f21637cf363b2a7d34691668f"}
10561
+ Authenticating with gds_sso strategy
10562
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10563
+  (0.1ms) begin transaction
10564
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
10565
+  (8.3ms) commit transaction
10566
+  (0.1ms) begin transaction
10567
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
10568
+ - signin
10569
+ ' WHERE "users"."id" = 11
10570
+  (4.6ms) commit transaction
10571
+ Redirected to http://www.example-client.com/restricted
10572
+ Completed 302 Found in 52.7ms (ActiveRecord: 13.6ms)
10573
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10574
+ Processing by ExampleController#restricted as HTML
10575
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10576
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10577
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10578
+ Processing by ExampleController#restricted as HTML
10579
+ Authenticating with gds_sso strategy
10580
+ Completed in 0.3ms
10581
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10582
+ Started GET "/auth/gds/callback?code=f2b470e4474e0181a0d85640e7828557f309da794e20e0d6abc192506752b00e&state=c689f6cf3ec2f43f3a049b488355be3040c299fb675218e8" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10583
+ Processing by AuthenticationsController#callback as HTML
10584
+ Parameters: {"code"=>"f2b470e4474e0181a0d85640e7828557f309da794e20e0d6abc192506752b00e", "state"=>"c689f6cf3ec2f43f3a049b488355be3040c299fb675218e8"}
10585
+ Authenticating with gds_sso strategy
10586
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10587
+  (0.2ms) begin transaction
10588
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10589
+ - signin
10590
+ ' WHERE "users"."id" = 11
10591
+  (5.9ms) commit transaction
10592
+  (0.0ms) begin transaction
10593
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10594
+ - signin
10595
+ ' WHERE "users"."id" = 11
10596
+  (4.5ms) commit transaction
10597
+ Redirected to http://www.example-client.com/restricted
10598
+ Completed 302 Found in 18.5ms (ActiveRecord: 11.0ms)
10599
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10600
+ Processing by ExampleController#restricted as HTML
10601
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10602
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10603
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10604
+ Processing by ExampleController#restricted as HTML
10605
+ Authenticating with gds_sso strategy
10606
+ Completed in 0.1ms
10607
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:55 +0000
10608
+ Started GET "/auth/gds/callback?code=a195d299fe7d3e4025a61bf323f93fa58883c1630541fe5809a467b273cbad8c&state=0d3fe1d91f57fe9c22ff7171434307e4f7e1d147510abd35" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10609
+ Processing by AuthenticationsController#callback as HTML
10610
+ Parameters: {"code"=>"a195d299fe7d3e4025a61bf323f93fa58883c1630541fe5809a467b273cbad8c", "state"=>"0d3fe1d91f57fe9c22ff7171434307e4f7e1d147510abd35"}
10611
+ Authenticating with gds_sso strategy
10612
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10613
+  (0.0ms) begin transaction
10614
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10615
+ - signin
10616
+ ' WHERE "users"."id" = 11
10617
+  (4.9ms) commit transaction
10618
+  (0.0ms) begin transaction
10619
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10620
+ - signin
10621
+ ' WHERE "users"."id" = 11
10622
+  (3.3ms) commit transaction
10623
+ Redirected to http://www.example-client.com/restricted
10624
+ Completed 302 Found in 15.9ms (ActiveRecord: 8.8ms)
10625
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10626
+ Processing by ExampleController#restricted as HTML
10627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10628
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10629
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10630
+ Processing by ExampleController#this_requires_signin_permission as HTML
10631
+ Authenticating with gds_sso strategy
10632
+ Completed in 0.6ms
10633
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10634
+ Started GET "/auth/gds/callback?code=d58c2e091aa4ec965597c72cbeceede0f1af55e812553a504d38a0835ad0265f&state=1bd40a98ca256e04b18b341bdc66136aaa4da75ae9d67239" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10635
+ Processing by AuthenticationsController#callback as HTML
10636
+ Parameters: {"code"=>"d58c2e091aa4ec965597c72cbeceede0f1af55e812553a504d38a0835ad0265f", "state"=>"1bd40a98ca256e04b18b341bdc66136aaa4da75ae9d67239"}
10637
+ Authenticating with gds_sso strategy
10638
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10639
+  (0.1ms) begin transaction
10640
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10641
+ - signin
10642
+ ' WHERE "users"."id" = 11
10643
+  (4.0ms) commit transaction
10644
+  (0.0ms) begin transaction
10645
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10646
+ - signin
10647
+ ' WHERE "users"."id" = 11
10648
+  (3.9ms) commit transaction
10649
+ Redirected to http://www.example-client.com/this_requires_signin_permission
10650
+ Completed 302 Found in 16.4ms (ActiveRecord: 8.5ms)
10651
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10652
+ Processing by ExampleController#this_requires_signin_permission as HTML
10653
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10654
+ Completed 200 OK in 3.0ms (Views: 0.4ms | ActiveRecord: 0.1ms)
10655
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10656
+ Processing by ExampleController#this_requires_signin_permission as HTML
10657
+ Authenticating with gds_sso strategy
10658
+ Completed in 0.2ms
10659
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10660
+ Started GET "/auth/gds/callback?code=b342dd186aa423d41e9879699f944a60e8300db31c4f233636fbccc67c1f43c6&state=12b16eac46d26a58dc292961bf8cc5da00393bc2f6f9a158" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10661
+ Processing by AuthenticationsController#callback as HTML
10662
+ Parameters: {"code"=>"b342dd186aa423d41e9879699f944a60e8300db31c4f233636fbccc67c1f43c6", "state"=>"12b16eac46d26a58dc292961bf8cc5da00393bc2f6f9a158"}
10663
+ Authenticating with gds_sso strategy
10664
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10665
+  (0.0ms) begin transaction
10666
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10667
+ - signin
10668
+ ' WHERE "users"."id" = 11
10669
+  (4.3ms) commit transaction
10670
+  (0.0ms) begin transaction
10671
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10672
+ - signin
10673
+ ' WHERE "users"."id" = 11
10674
+  (3.4ms) commit transaction
10675
+ Redirected to http://www.example-client.com/this_requires_signin_permission
10676
+ Completed 302 Found in 15.2ms (ActiveRecord: 8.2ms)
10677
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10678
+ Processing by ExampleController#this_requires_signin_permission as HTML
10679
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10680
+ Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10681
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10682
+ Processing by ExampleController#restricted as HTML
10683
+ Authenticating with gds_sso strategy
10684
+ Completed in 0.2ms
10685
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:56 +0000
10686
+ Started GET "/auth/gds/callback?code=e5757e3e1de4fb1bd706b7c8fe06dfea4ce87e71439ec2cc07187ca2d26510c8&state=ab2367a1ec78cbda089f19d9e838ce40effc7d861db5270e" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10687
+ Processing by AuthenticationsController#callback as HTML
10688
+ Parameters: {"code"=>"e5757e3e1de4fb1bd706b7c8fe06dfea4ce87e71439ec2cc07187ca2d26510c8", "state"=>"ab2367a1ec78cbda089f19d9e838ce40effc7d861db5270e"}
10689
+ Authenticating with gds_sso strategy
10690
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10691
+  (0.1ms) begin transaction
10692
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10693
+ - signin
10694
+ ' WHERE "users"."id" = 11
10695
+  (3.7ms) commit transaction
10696
+  (0.0ms) begin transaction
10697
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10698
+ - signin
10699
+ ' WHERE "users"."id" = 11
10700
+  (2.8ms) commit transaction
10701
+ Redirected to http://www.example-client.com/restricted
10702
+ Completed 302 Found in 14.5ms (ActiveRecord: 7.0ms)
10703
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10704
+ Processing by ExampleController#restricted as HTML
10705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10706
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10708
+  (0.0ms) begin transaction
10709
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
10710
+ - signin
10711
+ ' WHERE "users"."id" = 11
10712
+  (2.8ms) commit transaction
10713
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10714
+ Processing by ExampleController#restricted as HTML
10715
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10716
+ Filter chain halted as :authenticate_user! rendered or redirected
10717
+ Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
10718
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10719
+ Processing by AuthenticationsController#sign_out as HTML
10720
+ Redirected to http://localhost:4567/users/sign_out
10721
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
10722
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10723
+ Processing by ExampleController#restricted as HTML
10724
+ Authenticating with gds_sso strategy
10725
+ Completed in 0.2ms
10726
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10727
+ Started GET "/auth/gds/callback?code=7d342ff8a9c155f28d5e0055b72e5b56a7b63719a844a4d1fa5b58c54862500f&state=7b3cb1f8e1ae130e198767fed75b4931fc33c9e892c400c1" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10728
+ Processing by AuthenticationsController#callback as HTML
10729
+ Parameters: {"code"=>"7d342ff8a9c155f28d5e0055b72e5b56a7b63719a844a4d1fa5b58c54862500f", "state"=>"7b3cb1f8e1ae130e198767fed75b4931fc33c9e892c400c1"}
10730
+ Authenticating with gds_sso strategy
10731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10732
+  (0.0ms) begin transaction
10733
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10734
+ - signin
10735
+ ' WHERE "users"."id" = 11
10736
+  (5.5ms) commit transaction
10737
+  (0.1ms) begin transaction
10738
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
10739
+ - signin
10740
+ ' WHERE "users"."id" = 11
10741
+  (3.2ms) commit transaction
10742
+ Redirected to http://www.example-client.com/restricted
10743
+ Completed 302 Found in 17.0ms (ActiveRecord: 9.2ms)
10744
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10745
+ Processing by ExampleController#restricted as HTML
10746
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10747
+ Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
10748
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10749
+ Processing by ExampleController#restricted as HTML
10750
+ Authenticating with gds_sso strategy
10751
+ Completed in 0.2ms
10752
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10753
+ Started GET "/auth/gds/callback?code=d203fea4883f3cc90956568ba3f44e28c92f6640a534de4f98275457a5d2611b&state=9d4ba4ac0610ae4fdda47787dd1c0ae695600e37ac8f2838" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10754
+ Processing by AuthenticationsController#callback as HTML
10755
+ Parameters: {"code"=>"d203fea4883f3cc90956568ba3f44e28c92f6640a534de4f98275457a5d2611b", "state"=>"9d4ba4ac0610ae4fdda47787dd1c0ae695600e37ac8f2838"}
10756
+ Authenticating with gds_sso strategy
10757
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10758
+  (0.1ms) begin transaction
10759
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10760
+ - signin
10761
+ ' WHERE "users"."id" = 11
10762
+  (4.1ms) commit transaction
10763
+  (0.0ms) begin transaction
10764
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10765
+ - signin
10766
+ ' WHERE "users"."id" = 11
10767
+  (3.7ms) commit transaction
10768
+ Redirected to http://www.example-client.com/restricted
10769
+ Completed 302 Found in 16.1ms (ActiveRecord: 8.4ms)
10770
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10771
+ Processing by ExampleController#restricted as HTML
10772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10773
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10774
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-21 10:35:57 +0000
10775
+ Processing by ExampleController#restricted as HTML
10776
+ Authenticating with gds_sso strategy
10777
+ Completed in 0.2ms
10778
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-21 10:35:57 +0000
10779
+ Started GET "/auth/gds/callback?code=5d74961a5fcc8c4db4c1b8edb21df757906519f007d6d62a34aa4632f27a3fdc&state=559a10b186a8b7176ce23ce560574add41b0edc44f8bf837" for 127.0.0.1 at 2013-11-21 10:35:57 +0000
10780
+ Processing by AuthenticationsController#callback as HTML
10781
+ Parameters: {"code"=>"5d74961a5fcc8c4db4c1b8edb21df757906519f007d6d62a34aa4632f27a3fdc", "state"=>"559a10b186a8b7176ce23ce560574add41b0edc44f8bf837"}
10782
+ Authenticating with gds_sso strategy
10783
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10784
+  (0.1ms) begin transaction
10785
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10786
+ - signin
10787
+ ' WHERE "users"."id" = 11
10788
+  (3.6ms) commit transaction
10789
+  (0.0ms) begin transaction
10790
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10791
+ - signin
10792
+ ' WHERE "users"."id" = 11
10793
+  (3.4ms) commit transaction
10794
+ Redirected to http://www.example-client.com/restricted
10795
+ Completed 302 Found in 14.2ms (ActiveRecord: 7.6ms)
10796
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-21 10:35:57 +0000
10797
+ Processing by ExampleController#restricted as HTML
10798
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10799
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
10800
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10801
+ Processing by ExampleController#restricted as HTML
10802
+ Authenticating with gds_sso strategy
10803
+ Completed in 0.2ms
10804
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-20 14:30:57 +0000
10805
+ Started GET "/auth/gds/callback?code=8ac161ec2542dfe691ea22b445915eb149a3921d25b988acdca09eaa4f2e9031&state=22e4d483aa076cdf22ea178d8c1b94e761671d2f0ad0c16c" for 127.0.0.1 at 2013-11-20 14:30:58 +0000
10806
+ Processing by AuthenticationsController#callback as HTML
10807
+ Parameters: {"code"=>"8ac161ec2542dfe691ea22b445915eb149a3921d25b988acdca09eaa4f2e9031", "state"=>"22e4d483aa076cdf22ea178d8c1b94e761671d2f0ad0c16c"}
10808
+ Authenticating with gds_sso strategy
10809
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10810
+  (0.1ms) begin transaction
10811
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10812
+ - signin
10813
+ ' WHERE "users"."id" = 11
10814
+  (4.7ms) commit transaction
10815
+  (0.0ms) begin transaction
10816
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10817
+ - signin
10818
+ ' WHERE "users"."id" = 11
10819
+  (3.0ms) commit transaction
10820
+ Redirected to http://www.example-client.com/restricted
10821
+ Completed 302 Found in 16.0ms (ActiveRecord: 8.2ms)
10822
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:58 +0000
10823
+ Processing by ExampleController#restricted as HTML
10824
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10825
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10826
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-21 10:25:58 +0000
10827
+ Processing by ExampleController#restricted as HTML
10828
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10829
+ Completed 200 OK in 0.9ms (Views: 0.1ms | ActiveRecord: 0.1ms)
10830
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:58 +0000
10831
+ Processing by ExampleController#restricted as JSON
10832
+ Authenticating with gds_bearer_token strategy
10833
+ Completed in 7.0ms
10834
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-20 14:30:58 +0000
10835
+ Processing by ExampleController#restricted as JSON
10836
+ Authenticating with gds_bearer_token strategy
10837
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10838
+  (0.0ms) begin transaction
10839
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10840
+ - signin
10841
+ ' WHERE "users"."id" = 11
10842
+  (3.8ms) commit transaction
10843
+  (0.0ms) begin transaction
10844
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10845
+ - signin
10846
+ ' WHERE "users"."id" = 11
10847
+  (3.7ms) commit transaction
10848
+ Completed 200 OK in 35.4ms (Views: 0.2ms | ActiveRecord: 8.0ms)
10849
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-20 14:30:58 +0000
10850
+ Processing by ExampleController#this_requires_signin_permission as JSON
10851
+ Authenticating with gds_bearer_token strategy
10852
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10853
+  (0.0ms) begin transaction
10854
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10855
+ - signin
10856
+ ' WHERE "users"."id" = 11
10857
+  (4.6ms) commit transaction
10858
+  (0.0ms) begin transaction
10859
+  (0.1ms) UPDATE "users" SET "permissions" = '---
10860
+ - signin
10861
+ ' WHERE "users"."id" = 11
10862
+  (4.2ms) commit transaction
10863
+ Completed 200 OK in 40.8ms (Views: 0.2ms | ActiveRecord: 9.3ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-08 00:00:00.000000000 Z
13
+ date: 2013-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -172,6 +172,22 @@ dependencies:
172
172
  - - '='
173
173
  - !ruby/object:Gem::Version
174
174
  version: 0.3.0
175
+ - !ruby/object:Gem::Dependency
176
+ name: mechanize
177
+ requirement: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - '='
181
+ - !ruby/object:Gem::Version
182
+ version: 2.6.0
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - '='
189
+ - !ruby/object:Gem::Version
190
+ version: 2.6.0
175
191
  - !ruby/object:Gem::Dependency
176
192
  name: combustion
177
193
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +332,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
332
  version: '0'
317
333
  segments:
318
334
  - 0
319
- hash: 784448743188679554
335
+ hash: -3993035806094094543
320
336
  required_rubygems_version: !ruby/object:Gem::Requirement
321
337
  none: false
322
338
  requirements:
@@ -325,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
341
  version: '0'
326
342
  segments:
327
343
  - 0
328
- hash: 784448743188679554
344
+ hash: -3993035806094094543
329
345
  requirements: []
330
346
  rubyforge_project: gds-sso
331
347
  rubygems_version: 1.8.23