gds-sso 7.0.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
|
|
1
|
-
class Api::UserController <
|
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 <
|
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
|
data/lib/gds-sso/version.rb
CHANGED
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -10479,3 +10479,385 @@ Authenticating with gds_bearer_token strategy
|
|
10479
10479
|
' WHERE "users"."id" = 11[0m
|
10480
10480
|
[1m[35m (5.4ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
10484
|
+
[1m[35m (9.1ms)[0m DROP TABLE "users"
|
10485
|
+
[1m[36m (3.7ms)[0m [1mCREATE 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)) [0m
|
10486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10487
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d30"]]
|
10488
|
+
[1m[35m (4.3ms)[0m commit transaction
|
10489
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10490
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10498
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38521"]]
|
10499
|
+
[1m[35m (3.7ms)[0m commit transaction
|
10500
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10501
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
10503
|
+
Processing by Api::UserController#update as HTML
|
10504
|
+
Parameters: {"uid"=>"a1s2d38521"}
|
10505
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38521' LIMIT 1
|
10506
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10507
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
10512
|
+
Completed 200 OK in 13.7ms (ActiveRecord: 5.6ms)
|
10513
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
10514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10515
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (4.9ms)[0m [1mcommit transaction[0m
|
10517
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10518
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10525
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
10527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10528
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (3.8ms)[0m commit transaction
|
10530
|
+
Processing by Api::UserController#reauth as HTML
|
10531
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
10532
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
10533
|
+
Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
|
10534
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10535
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37861"]]
|
10536
|
+
[1m[35m (3.2ms)[0m commit transaction
|
10537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10538
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
10540
|
+
Processing by Api::UserController#reauth as HTML
|
10541
|
+
Parameters: {"uid"=>"a1s2d37861"}
|
10542
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37861' LIMIT 1
|
10543
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10544
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
10545
|
+
- signin
|
10546
|
+
' WHERE "users"."id" = 9
|
10547
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
10548
|
+
Completed 200 OK in 7.0ms (ActiveRecord: 3.2ms)
|
10549
|
+
[1m[35mUser Load (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10564
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
10565
|
+
[1m[35m (8.3ms)[0m commit transaction
|
10566
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10567
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
10568
|
+
- signin
|
10569
|
+
' WHERE "users"."id" = 11
|
10570
|
+
[1m[36m (4.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10587
|
+
[1m[35m (0.2ms)[0m begin transaction
|
10588
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10589
|
+
- signin
|
10590
|
+
' WHERE "users"."id" = 11[0m
|
10591
|
+
[1m[35m (5.9ms)[0m commit transaction
|
10592
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10593
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10594
|
+
- signin
|
10595
|
+
' WHERE "users"."id" = 11
|
10596
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10613
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10614
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10615
|
+
- signin
|
10616
|
+
' WHERE "users"."id" = 11[0m
|
10617
|
+
[1m[35m (4.9ms)[0m commit transaction
|
10618
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10619
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10620
|
+
- signin
|
10621
|
+
' WHERE "users"."id" = 11
|
10622
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10639
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10640
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10641
|
+
- signin
|
10642
|
+
' WHERE "users"."id" = 11[0m
|
10643
|
+
[1m[35m (4.0ms)[0m commit transaction
|
10644
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10645
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10646
|
+
- signin
|
10647
|
+
' WHERE "users"."id" = 11
|
10648
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10666
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10667
|
+
- signin
|
10668
|
+
' WHERE "users"."id" = 11[0m
|
10669
|
+
[1m[35m (4.3ms)[0m commit transaction
|
10670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10671
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10672
|
+
- signin
|
10673
|
+
' WHERE "users"."id" = 11
|
10674
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10691
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10692
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10693
|
+
- signin
|
10694
|
+
' WHERE "users"."id" = 11[0m
|
10695
|
+
[1m[35m (3.7ms)[0m commit transaction
|
10696
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10697
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10698
|
+
- signin
|
10699
|
+
' WHERE "users"."id" = 11
|
10700
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10708
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10709
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
10710
|
+
- signin
|
10711
|
+
' WHERE "users"."id" = 11[0m
|
10712
|
+
[1m[35m (2.8ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10732
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10733
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10734
|
+
- signin
|
10735
|
+
' WHERE "users"."id" = 11
|
10736
|
+
[1m[36m (5.5ms)[0m [1mcommit transaction[0m
|
10737
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10738
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
10739
|
+
- signin
|
10740
|
+
' WHERE "users"."id" = 11[0m
|
10741
|
+
[1m[35m (3.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10758
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10759
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10760
|
+
- signin
|
10761
|
+
' WHERE "users"."id" = 11
|
10762
|
+
[1m[36m (4.1ms)[0m [1mcommit transaction[0m
|
10763
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10764
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10765
|
+
- signin
|
10766
|
+
' WHERE "users"."id" = 11[0m
|
10767
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10785
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10786
|
+
- signin
|
10787
|
+
' WHERE "users"."id" = 11
|
10788
|
+
[1m[36m (3.6ms)[0m [1mcommit transaction[0m
|
10789
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10790
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10791
|
+
- signin
|
10792
|
+
' WHERE "users"."id" = 11[0m
|
10793
|
+
[1m[35m (3.4ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10810
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10811
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10812
|
+
- signin
|
10813
|
+
' WHERE "users"."id" = 11
|
10814
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
10815
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10816
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10817
|
+
- signin
|
10818
|
+
' WHERE "users"."id" = 11[0m
|
10819
|
+
[1m[35m (3.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10838
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10839
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10840
|
+
- signin
|
10841
|
+
' WHERE "users"."id" = 11[0m
|
10842
|
+
[1m[35m (3.8ms)[0m commit transaction
|
10843
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10844
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10845
|
+
- signin
|
10846
|
+
' WHERE "users"."id" = 11
|
10847
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10853
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10854
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10855
|
+
- signin
|
10856
|
+
' WHERE "users"."id" = 11
|
10857
|
+
[1m[36m (4.6ms)[0m [1mcommit transaction[0m
|
10858
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10859
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10860
|
+
- signin
|
10861
|
+
' WHERE "users"."id" = 11[0m
|
10862
|
+
[1m[35m (4.2ms)[0m 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:
|
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-
|
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:
|
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:
|
344
|
+
hash: -3993035806094094543
|
329
345
|
requirements: []
|
330
346
|
rubyforge_project: gds-sso
|
331
347
|
rubygems_version: 1.8.23
|