gds-sso 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,13 +26,14 @@ module GDS
|
|
26
26
|
def require_signin_permission!
|
27
27
|
authorise_user!(GDS::SSO::Config.default_scope, 'signin')
|
28
28
|
rescue PermissionDeniedException
|
29
|
-
|
29
|
+
skip_slimmer
|
30
30
|
render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden
|
31
31
|
end
|
32
32
|
|
33
33
|
def authenticate_user!
|
34
34
|
if current_user && current_user.remotely_signed_out?
|
35
35
|
message = "You have been remotely signed out."
|
36
|
+
skip_slimmer
|
36
37
|
render "authorisations/unauthorised", layout: "unauthorised", status: :forbidden, locals: { message: message }
|
37
38
|
end
|
38
39
|
warden.authenticate!
|
@@ -53,6 +54,11 @@ module GDS
|
|
53
54
|
def warden
|
54
55
|
request.env['warden']
|
55
56
|
end
|
57
|
+
|
58
|
+
def skip_slimmer
|
59
|
+
# If slimmer used, without this you would see a generic 400 error page
|
60
|
+
headers["X-Slimmer-Skip"] = "1"
|
61
|
+
end
|
56
62
|
end
|
57
63
|
end
|
58
64
|
end
|
data/lib/gds-sso/version.rb
CHANGED
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -5590,3 +5590,683 @@ GDS_SSO integration test:
|
|
5590
5590
|
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
5591
5591
|
Completed 200 OK in 4ms (ActiveRecord: 1.7ms)
|
5592
5592
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
5593
|
+
Connecting to database specified by database.yml
|
5594
|
+
[1m[36m (3.2ms)[0m [1mselect sqlite_version(*)[0m
|
5595
|
+
[1m[35m (30.0ms)[0m DROP TABLE "users"
|
5596
|
+
[1m[36m (1.6ms)[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) [0m
|
5597
|
+
|
5598
|
+
|
5599
|
+
Started GET "/" for 127.0.0.1 at 2012-07-25 14:58:36 +0000
|
5600
|
+
Processing by ExampleController#index as HTML
|
5601
|
+
Rendered text template (0.0ms)
|
5602
|
+
Completed 200 OK in 54ms (Views: 53.7ms | ActiveRecord: 0.0ms)
|
5603
|
+
|
5604
|
+
|
5605
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:36 +0000
|
5606
|
+
Processing by ExampleController#restricted as HTML
|
5607
|
+
Authenticating with gds_sso strategy
|
5608
|
+
Completed in 62ms
|
5609
|
+
|
5610
|
+
|
5611
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:36 +0000
|
5612
|
+
|
5613
|
+
|
5614
|
+
Started GET "/auth/gds/callback?code=aa01d7043eaaaec08ce7d0019486d8bd8f7377ceef8c51ec7ff1ea6c812c3ae7&state=56203722a4bb93f86db04be2529945c297d7a5d93a846abc" for 127.0.0.1 at 2012-07-25 14:58:37 +0000
|
5615
|
+
Processing by AuthenticationsController#callback as HTML
|
5616
|
+
Parameters: {"code"=>"aa01d7043eaaaec08ce7d0019486d8bd8f7377ceef8c51ec7ff1ea6c812c3ae7", "state"=>"56203722a4bb93f86db04be2529945c297d7a5d93a846abc"}
|
5617
|
+
Authenticating with gds_sso strategy
|
5618
|
+
[1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5620
|
+
[1m[35mSQL (48.9ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
5621
|
+
[1m[36m (12.0ms)[0m [1mcommit transaction[0m
|
5622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5623
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
5624
|
+
GDS_SSO integration test:
|
5625
|
+
- signin
|
5626
|
+
' WHERE "users"."id" = 1[0m
|
5627
|
+
[1m[35m (4.7ms)[0m commit transaction
|
5628
|
+
Redirected to http://www.example-client.com/restricted
|
5629
|
+
Completed 302 Found in 118ms (ActiveRecord: 67.1ms)
|
5630
|
+
|
5631
|
+
|
5632
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5633
|
+
Processing by ExampleController#restricted as HTML
|
5634
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5635
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
5636
|
+
|
5637
|
+
|
5638
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5639
|
+
Processing by ExampleController#restricted as HTML
|
5640
|
+
Authenticating with gds_sso strategy
|
5641
|
+
Completed in 0ms
|
5642
|
+
|
5643
|
+
|
5644
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5645
|
+
|
5646
|
+
|
5647
|
+
Started GET "/auth/gds/callback?code=469c43cb089529a3c01b0663eca13f84367ddd3995d40204d9795d25981d7fc5&state=73b1bbedc5d3fbd495fea43971ca81dee586911631a19c5d" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5648
|
+
Processing by AuthenticationsController#callback as HTML
|
5649
|
+
Parameters: {"code"=>"469c43cb089529a3c01b0663eca13f84367ddd3995d40204d9795d25981d7fc5", "state"=>"73b1bbedc5d3fbd495fea43971ca81dee586911631a19c5d"}
|
5650
|
+
Authenticating with gds_sso strategy
|
5651
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5652
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5653
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
5654
|
+
GDS_SSO integration test:
|
5655
|
+
- signin
|
5656
|
+
' WHERE "users"."id" = 1
|
5657
|
+
[1m[36m (8.6ms)[0m [1mcommit transaction[0m
|
5658
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5659
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5660
|
+
GDS_SSO integration test:
|
5661
|
+
- signin
|
5662
|
+
' WHERE "users"."id" = 1[0m
|
5663
|
+
[1m[35m (1.9ms)[0m commit transaction
|
5664
|
+
Redirected to http://www.example-client.com/restricted
|
5665
|
+
Completed 302 Found in 17ms (ActiveRecord: 11.3ms)
|
5666
|
+
|
5667
|
+
|
5668
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5669
|
+
Processing by ExampleController#restricted as HTML
|
5670
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5671
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
5672
|
+
|
5673
|
+
|
5674
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5675
|
+
Processing by ExampleController#restricted as HTML
|
5676
|
+
Authenticating with gds_sso strategy
|
5677
|
+
Completed in 0ms
|
5678
|
+
|
5679
|
+
|
5680
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5681
|
+
|
5682
|
+
|
5683
|
+
Started GET "/auth/gds/callback?code=16dc1777a28417b36f490be1a1dcb29300d2988063ea96a477030963558cd042&state=ffa2726bdf755698ca27a1fb8dfbedbbfd2feececfff47bf" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5684
|
+
Processing by AuthenticationsController#callback as HTML
|
5685
|
+
Parameters: {"code"=>"16dc1777a28417b36f490be1a1dcb29300d2988063ea96a477030963558cd042", "state"=>"ffa2726bdf755698ca27a1fb8dfbedbbfd2feececfff47bf"}
|
5686
|
+
Authenticating with gds_sso strategy
|
5687
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5688
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5689
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
5690
|
+
GDS_SSO integration test:
|
5691
|
+
- signin
|
5692
|
+
' WHERE "users"."id" = 1
|
5693
|
+
[1m[36m (10.7ms)[0m [1mcommit transaction[0m
|
5694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5695
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5696
|
+
GDS_SSO integration test:
|
5697
|
+
- signin
|
5698
|
+
' WHERE "users"."id" = 1[0m
|
5699
|
+
[1m[35m (7.8ms)[0m commit transaction
|
5700
|
+
Redirected to http://www.example-client.com/restricted
|
5701
|
+
Completed 302 Found in 24ms (ActiveRecord: 19.3ms)
|
5702
|
+
|
5703
|
+
|
5704
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5705
|
+
Processing by ExampleController#restricted as HTML
|
5706
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5707
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5708
|
+
|
5709
|
+
|
5710
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5711
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5712
|
+
Authenticating with gds_sso strategy
|
5713
|
+
Completed in 1ms
|
5714
|
+
|
5715
|
+
|
5716
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:38 +0000
|
5717
|
+
|
5718
|
+
|
5719
|
+
Started GET "/auth/gds/callback?code=ae498a182100b8004d80059b69d5cd23081bd2ae2e712c45140bbc1d13c3eb86&state=2273f9695939cecd665838bdb71a8a6b141aaa5e4fb4f911" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5720
|
+
Processing by AuthenticationsController#callback as HTML
|
5721
|
+
Parameters: {"code"=>"ae498a182100b8004d80059b69d5cd23081bd2ae2e712c45140bbc1d13c3eb86", "state"=>"2273f9695939cecd665838bdb71a8a6b141aaa5e4fb4f911"}
|
5722
|
+
Authenticating with gds_sso strategy
|
5723
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5725
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
5726
|
+
GDS_SSO integration test:
|
5727
|
+
- signin
|
5728
|
+
' WHERE "users"."id" = 1
|
5729
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
5730
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5731
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5732
|
+
GDS_SSO integration test:
|
5733
|
+
- signin
|
5734
|
+
' WHERE "users"."id" = 1[0m
|
5735
|
+
[1m[35m (1.4ms)[0m commit transaction
|
5736
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
5737
|
+
Completed 302 Found in 12ms (ActiveRecord: 7.2ms)
|
5738
|
+
|
5739
|
+
|
5740
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5741
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5742
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5743
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
5744
|
+
|
5745
|
+
|
5746
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5747
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5748
|
+
Authenticating with gds_sso strategy
|
5749
|
+
Completed in 0ms
|
5750
|
+
|
5751
|
+
|
5752
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5753
|
+
|
5754
|
+
|
5755
|
+
Started GET "/auth/gds/callback?code=09ce562298b15567c039fb386488b5056249cfac64de1fd560b5b8cb615a5fcb&state=0f89d35062762f2f34652ac7677cf25d42e5511af656c5e1" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5756
|
+
Processing by AuthenticationsController#callback as HTML
|
5757
|
+
Parameters: {"code"=>"09ce562298b15567c039fb386488b5056249cfac64de1fd560b5b8cb615a5fcb", "state"=>"0f89d35062762f2f34652ac7677cf25d42e5511af656c5e1"}
|
5758
|
+
Authenticating with gds_sso strategy
|
5759
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5760
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5761
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
5762
|
+
GDS_SSO integration test:
|
5763
|
+
- signin
|
5764
|
+
' WHERE "users"."id" = 1
|
5765
|
+
[1m[36m (33.3ms)[0m [1mcommit transaction[0m
|
5766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5767
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5768
|
+
GDS_SSO integration test:
|
5769
|
+
- signin
|
5770
|
+
' WHERE "users"."id" = 1[0m
|
5771
|
+
[1m[35m (1.4ms)[0m commit transaction
|
5772
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
5773
|
+
Completed 302 Found in 40ms (ActiveRecord: 35.5ms)
|
5774
|
+
|
5775
|
+
|
5776
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5777
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5778
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5779
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5780
|
+
|
5781
|
+
|
5782
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5783
|
+
Processing by ExampleController#restricted as HTML
|
5784
|
+
Authenticating with gds_sso strategy
|
5785
|
+
Completed in 0ms
|
5786
|
+
|
5787
|
+
|
5788
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5789
|
+
|
5790
|
+
|
5791
|
+
Started GET "/auth/gds/callback?code=174d4f4126a78b030d4e6b93bb9fecc15ac86d5ab05abc8f99ef724f24f2e516&state=5b49f4ba34272a69617de4a89464edb3909e78aaf5ad069b" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5792
|
+
Processing by AuthenticationsController#callback as HTML
|
5793
|
+
Parameters: {"code"=>"174d4f4126a78b030d4e6b93bb9fecc15ac86d5ab05abc8f99ef724f24f2e516", "state"=>"5b49f4ba34272a69617de4a89464edb3909e78aaf5ad069b"}
|
5794
|
+
Authenticating with gds_sso strategy
|
5795
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5797
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
5798
|
+
GDS_SSO integration test:
|
5799
|
+
- signin
|
5800
|
+
' WHERE "users"."id" = 1
|
5801
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
5802
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5803
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5804
|
+
GDS_SSO integration test:
|
5805
|
+
- signin
|
5806
|
+
' WHERE "users"."id" = 1[0m
|
5807
|
+
[1m[35m (1.4ms)[0m commit transaction
|
5808
|
+
Redirected to http://www.example-client.com/restricted
|
5809
|
+
Completed 302 Found in 11ms (ActiveRecord: 5.1ms)
|
5810
|
+
|
5811
|
+
|
5812
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5813
|
+
Processing by ExampleController#restricted as HTML
|
5814
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5815
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
5816
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5818
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
5819
|
+
GDS_SSO integration test:
|
5820
|
+
- signin
|
5821
|
+
' WHERE "users"."id" = 1
|
5822
|
+
[1m[36m (19.6ms)[0m [1mcommit transaction[0m
|
5823
|
+
|
5824
|
+
|
5825
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:39 +0000
|
5826
|
+
Processing by ExampleController#restricted as HTML
|
5827
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5828
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
5829
|
+
Completed 403 Forbidden in 104ms (Views: 102.3ms | ActiveRecord: 0.1ms)
|
5830
|
+
|
5831
|
+
|
5832
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5833
|
+
Processing by AuthenticationsController#sign_out as HTML
|
5834
|
+
Redirected to http://localhost:4567/users/sign_out
|
5835
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
5836
|
+
|
5837
|
+
|
5838
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5839
|
+
Processing by ExampleController#restricted as HTML
|
5840
|
+
Authenticating with gds_sso strategy
|
5841
|
+
Completed in 0ms
|
5842
|
+
|
5843
|
+
|
5844
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5845
|
+
|
5846
|
+
|
5847
|
+
Started GET "/auth/gds/callback?code=c4640b8ac4769968f13a1a8f0c11f0aa1a4500a685fd36c07e964388733520c2&state=c85e1f74d918939fad731d07b717e190763066cf8af44c04" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5848
|
+
Processing by AuthenticationsController#callback as HTML
|
5849
|
+
Parameters: {"code"=>"c4640b8ac4769968f13a1a8f0c11f0aa1a4500a685fd36c07e964388733520c2", "state"=>"c85e1f74d918939fad731d07b717e190763066cf8af44c04"}
|
5850
|
+
Authenticating with gds_sso strategy
|
5851
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5852
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5853
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5854
|
+
GDS_SSO integration test:
|
5855
|
+
- signin
|
5856
|
+
' WHERE "users"."id" = 1[0m
|
5857
|
+
[1m[35m (4.5ms)[0m commit transaction
|
5858
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5859
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
5860
|
+
GDS_SSO integration test:
|
5861
|
+
- signin
|
5862
|
+
' WHERE "users"."id" = 1
|
5863
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
5864
|
+
Redirected to http://www.example-client.com/restricted
|
5865
|
+
Completed 302 Found in 14ms (ActiveRecord: 9.7ms)
|
5866
|
+
|
5867
|
+
|
5868
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5869
|
+
Processing by ExampleController#restricted as HTML
|
5870
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5871
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
5872
|
+
|
5873
|
+
|
5874
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5875
|
+
Processing by ExampleController#restricted as JSON
|
5876
|
+
Authenticating with gds_sso_api_access strategy
|
5877
|
+
Completed in 35ms
|
5878
|
+
|
5879
|
+
|
5880
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5881
|
+
Processing by ExampleController#restricted as JSON
|
5882
|
+
Authenticating with gds_sso_api_access strategy
|
5883
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
5884
|
+
|
5885
|
+
|
5886
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 14:58:40 +0000
|
5887
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
5888
|
+
Authenticating with gds_sso_api_access strategy
|
5889
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
5890
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
5891
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31081"]]
|
5892
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
5893
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
5894
|
+
Processing by Api::UserController#update as HTML
|
5895
|
+
Parameters: {"uid"=>"a1s2d31081"}
|
5896
|
+
Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
5897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5898
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37927"]]
|
5899
|
+
[1m[35m (1.7ms)[0m commit transaction
|
5900
|
+
Processing by Api::UserController#update as HTML
|
5901
|
+
Parameters: {"uid"=>"a1s2d37927"}
|
5902
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37927' LIMIT 1[0m
|
5903
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5904
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
5905
|
+
GDS_SSO integration test:
|
5906
|
+
- signin
|
5907
|
+
- new permission
|
5908
|
+
' WHERE "users"."id" = 3[0m
|
5909
|
+
[1m[35m (2.0ms)[0m commit transaction
|
5910
|
+
Completed 200 OK in 6ms (ActiveRecord: 2.5ms)
|
5911
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5912
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5913
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3972"]]
|
5914
|
+
[1m[35m (4.2ms)[0m commit transaction
|
5915
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
5916
|
+
Processing by Api::UserController#reauth as HTML
|
5917
|
+
Parameters: {"uid"=>"a1s2d3972"}
|
5918
|
+
Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
5919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5920
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33256"]]
|
5921
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
5922
|
+
Processing by Api::UserController#reauth as HTML
|
5923
|
+
Parameters: {"uid"=>"a1s2d33256"}
|
5924
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33256' LIMIT 1
|
5925
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5926
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
5927
|
+
GDS_SSO integration test:
|
5928
|
+
- signin
|
5929
|
+
' WHERE "users"."id" = 5
|
5930
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
5931
|
+
Completed 200 OK in 6ms (ActiveRecord: 3.9ms)
|
5932
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
5933
|
+
Connecting to database specified by database.yml
|
5934
|
+
[1m[36m (2.8ms)[0m [1mselect sqlite_version(*)[0m
|
5935
|
+
[1m[35m (33.0ms)[0m DROP TABLE "users"
|
5936
|
+
[1m[36m (1.9ms)[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) [0m
|
5937
|
+
|
5938
|
+
|
5939
|
+
Started GET "/" for 127.0.0.1 at 2012-07-25 15:01:46 +0000
|
5940
|
+
Processing by ExampleController#index as HTML
|
5941
|
+
Rendered text template (0.0ms)
|
5942
|
+
Completed 200 OK in 57ms (Views: 56.8ms | ActiveRecord: 0.0ms)
|
5943
|
+
|
5944
|
+
|
5945
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:46 +0000
|
5946
|
+
Processing by ExampleController#restricted as HTML
|
5947
|
+
Authenticating with gds_sso strategy
|
5948
|
+
Completed in 65ms
|
5949
|
+
|
5950
|
+
|
5951
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:46 +0000
|
5952
|
+
|
5953
|
+
|
5954
|
+
Started GET "/auth/gds/callback?code=377d050cf1e2ae4c1436961eca2ebfa4be34ff7eef0dd294db302cd52b03cb2d&state=020c2bfb3c1897ea74f0a39847286ebcf7a6ddb22ee0ea8d" for 127.0.0.1 at 2012-07-25 15:01:47 +0000
|
5955
|
+
Processing by AuthenticationsController#callback as HTML
|
5956
|
+
Parameters: {"code"=>"377d050cf1e2ae4c1436961eca2ebfa4be34ff7eef0dd294db302cd52b03cb2d", "state"=>"020c2bfb3c1897ea74f0a39847286ebcf7a6ddb22ee0ea8d"}
|
5957
|
+
Authenticating with gds_sso strategy
|
5958
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5959
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5960
|
+
[1m[35mSQL (48.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
5961
|
+
[1m[36m (26.2ms)[0m [1mcommit transaction[0m
|
5962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5963
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
5964
|
+
GDS_SSO integration test:
|
5965
|
+
- signin
|
5966
|
+
' WHERE "users"."id" = 1[0m
|
5967
|
+
[1m[35m (3.1ms)[0m commit transaction
|
5968
|
+
Redirected to http://www.example-client.com/restricted
|
5969
|
+
Completed 302 Found in 109ms (ActiveRecord: 78.7ms)
|
5970
|
+
|
5971
|
+
|
5972
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
5973
|
+
Processing by ExampleController#restricted as HTML
|
5974
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5975
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
5976
|
+
|
5977
|
+
|
5978
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
5979
|
+
Processing by ExampleController#restricted as HTML
|
5980
|
+
Authenticating with gds_sso strategy
|
5981
|
+
Completed in 1ms
|
5982
|
+
|
5983
|
+
|
5984
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
5985
|
+
|
5986
|
+
|
5987
|
+
Started GET "/auth/gds/callback?code=c68498679d394f8863ef481f1d52a6348f772be2c1e163ef057610a3cb7e86ea&state=2d0ff415a6871126573b44f5c736eac0e431abb00f5b44ad" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
5988
|
+
Processing by AuthenticationsController#callback as HTML
|
5989
|
+
Parameters: {"code"=>"c68498679d394f8863ef481f1d52a6348f772be2c1e163ef057610a3cb7e86ea", "state"=>"2d0ff415a6871126573b44f5c736eac0e431abb00f5b44ad"}
|
5990
|
+
Authenticating with gds_sso strategy
|
5991
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5992
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5993
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
5994
|
+
GDS_SSO integration test:
|
5995
|
+
- signin
|
5996
|
+
' WHERE "users"."id" = 1
|
5997
|
+
[1m[36m (19.9ms)[0m [1mcommit transaction[0m
|
5998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5999
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6000
|
+
GDS_SSO integration test:
|
6001
|
+
- signin
|
6002
|
+
' WHERE "users"."id" = 1[0m
|
6003
|
+
[1m[35m (1.5ms)[0m commit transaction
|
6004
|
+
Redirected to http://www.example-client.com/restricted
|
6005
|
+
Completed 302 Found in 29ms (ActiveRecord: 22.4ms)
|
6006
|
+
|
6007
|
+
|
6008
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
6009
|
+
Processing by ExampleController#restricted as HTML
|
6010
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6011
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
6012
|
+
|
6013
|
+
|
6014
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
6015
|
+
Processing by ExampleController#restricted as HTML
|
6016
|
+
Authenticating with gds_sso strategy
|
6017
|
+
Completed in 0ms
|
6018
|
+
|
6019
|
+
|
6020
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
6021
|
+
|
6022
|
+
|
6023
|
+
Started GET "/auth/gds/callback?code=9d4a86d42e04801ca337773f706436181fba093e934da75a471876fc452e33bd&state=27259dd098862407ee6a71530faef6dd8e6dc291d9e8da97" for 127.0.0.1 at 2012-07-25 15:01:48 +0000
|
6024
|
+
Processing by AuthenticationsController#callback as HTML
|
6025
|
+
Parameters: {"code"=>"9d4a86d42e04801ca337773f706436181fba093e934da75a471876fc452e33bd", "state"=>"27259dd098862407ee6a71530faef6dd8e6dc291d9e8da97"}
|
6026
|
+
Authenticating with gds_sso strategy
|
6027
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6029
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6030
|
+
GDS_SSO integration test:
|
6031
|
+
- signin
|
6032
|
+
' WHERE "users"."id" = 1
|
6033
|
+
[1m[36m (10.6ms)[0m [1mcommit transaction[0m
|
6034
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6035
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6036
|
+
GDS_SSO integration test:
|
6037
|
+
- signin
|
6038
|
+
' WHERE "users"."id" = 1[0m
|
6039
|
+
[1m[35m (1.4ms)[0m commit transaction
|
6040
|
+
Redirected to http://www.example-client.com/restricted
|
6041
|
+
Completed 302 Found in 17ms (ActiveRecord: 12.8ms)
|
6042
|
+
|
6043
|
+
|
6044
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6045
|
+
Processing by ExampleController#restricted as HTML
|
6046
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6047
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6048
|
+
|
6049
|
+
|
6050
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6051
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6052
|
+
Authenticating with gds_sso strategy
|
6053
|
+
Completed in 1ms
|
6054
|
+
|
6055
|
+
|
6056
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6057
|
+
|
6058
|
+
|
6059
|
+
Started GET "/auth/gds/callback?code=9617c48224c11899d6e5a1a6423cebecb64545c71bb8f3b532ce1e69ee6cf520&state=69ec73133bb0ef487acaf98d98fc76440d9a3ff36b74f62a" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6060
|
+
Processing by AuthenticationsController#callback as HTML
|
6061
|
+
Parameters: {"code"=>"9617c48224c11899d6e5a1a6423cebecb64545c71bb8f3b532ce1e69ee6cf520", "state"=>"69ec73133bb0ef487acaf98d98fc76440d9a3ff36b74f62a"}
|
6062
|
+
Authenticating with gds_sso strategy
|
6063
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6064
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6065
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6066
|
+
GDS_SSO integration test:
|
6067
|
+
- signin
|
6068
|
+
' WHERE "users"."id" = 1
|
6069
|
+
[1m[36m (7.0ms)[0m [1mcommit transaction[0m
|
6070
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6071
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6072
|
+
GDS_SSO integration test:
|
6073
|
+
- signin
|
6074
|
+
' WHERE "users"."id" = 1[0m
|
6075
|
+
[1m[35m (4.1ms)[0m commit transaction
|
6076
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6077
|
+
Completed 302 Found in 18ms (ActiveRecord: 12.0ms)
|
6078
|
+
|
6079
|
+
|
6080
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6081
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6082
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6083
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
|
6084
|
+
|
6085
|
+
|
6086
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6087
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6088
|
+
Authenticating with gds_sso strategy
|
6089
|
+
Completed in 0ms
|
6090
|
+
|
6091
|
+
|
6092
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6093
|
+
|
6094
|
+
|
6095
|
+
Started GET "/auth/gds/callback?code=147139bc222243b09406437dcfbe219d03e90c29444e396050fb782e84c0ad05&state=8829fe4ab1ad79350c9ee7e9d0d4d73dbd53f87cf180c385" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6096
|
+
Processing by AuthenticationsController#callback as HTML
|
6097
|
+
Parameters: {"code"=>"147139bc222243b09406437dcfbe219d03e90c29444e396050fb782e84c0ad05", "state"=>"8829fe4ab1ad79350c9ee7e9d0d4d73dbd53f87cf180c385"}
|
6098
|
+
Authenticating with gds_sso strategy
|
6099
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6101
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6102
|
+
GDS_SSO integration test:
|
6103
|
+
- signin
|
6104
|
+
' WHERE "users"."id" = 1
|
6105
|
+
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
6106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6107
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6108
|
+
GDS_SSO integration test:
|
6109
|
+
- signin
|
6110
|
+
' WHERE "users"."id" = 1[0m
|
6111
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6112
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6113
|
+
Completed 302 Found in 19ms (ActiveRecord: 13.9ms)
|
6114
|
+
|
6115
|
+
|
6116
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6117
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6118
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6119
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6120
|
+
|
6121
|
+
|
6122
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6123
|
+
Processing by ExampleController#restricted as HTML
|
6124
|
+
Authenticating with gds_sso strategy
|
6125
|
+
Completed in 0ms
|
6126
|
+
|
6127
|
+
|
6128
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:49 +0000
|
6129
|
+
|
6130
|
+
|
6131
|
+
Started GET "/auth/gds/callback?code=cc896fedfc7a941965aa3a4730ab328ecaeea30e6437753ea9830877b26fe415&state=e88cb6f488686f4b7c6cc43f28baa3695d0f5112dd84421a" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6132
|
+
Processing by AuthenticationsController#callback as HTML
|
6133
|
+
Parameters: {"code"=>"cc896fedfc7a941965aa3a4730ab328ecaeea30e6437753ea9830877b26fe415", "state"=>"e88cb6f488686f4b7c6cc43f28baa3695d0f5112dd84421a"}
|
6134
|
+
Authenticating with gds_sso strategy
|
6135
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6137
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6138
|
+
GDS_SSO integration test:
|
6139
|
+
- signin
|
6140
|
+
' WHERE "users"."id" = 1
|
6141
|
+
[1m[36m (37.8ms)[0m [1mcommit transaction[0m
|
6142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6143
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6144
|
+
GDS_SSO integration test:
|
6145
|
+
- signin
|
6146
|
+
' WHERE "users"."id" = 1[0m
|
6147
|
+
[1m[35m (3.6ms)[0m commit transaction
|
6148
|
+
Redirected to http://www.example-client.com/restricted
|
6149
|
+
Completed 302 Found in 49ms (ActiveRecord: 42.4ms)
|
6150
|
+
|
6151
|
+
|
6152
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6153
|
+
Processing by ExampleController#restricted as HTML
|
6154
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6155
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
6156
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6158
|
+
[1m[35m (1.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6159
|
+
GDS_SSO integration test:
|
6160
|
+
- signin
|
6161
|
+
' WHERE "users"."id" = 1
|
6162
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
6163
|
+
|
6164
|
+
|
6165
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6166
|
+
Processing by ExampleController#restricted as HTML
|
6167
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6168
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6169
|
+
Completed 403 Forbidden in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
|
6170
|
+
|
6171
|
+
|
6172
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6173
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6174
|
+
Redirected to http://localhost:4567/users/sign_out
|
6175
|
+
Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
|
6176
|
+
|
6177
|
+
|
6178
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6179
|
+
Processing by ExampleController#restricted as HTML
|
6180
|
+
Authenticating with gds_sso strategy
|
6181
|
+
Completed in 0ms
|
6182
|
+
|
6183
|
+
|
6184
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-25 15:01:50 +0000
|
6185
|
+
|
6186
|
+
|
6187
|
+
Started GET "/auth/gds/callback?code=102a2cbbb16ff4b2c06f6c1f0849cfe2e0042d7af75dd713137cf9e321c98300&state=2730f3347a63616a407034c1a593af073c32a3b7725e0409" for 127.0.0.1 at 2012-07-25 15:01:51 +0000
|
6188
|
+
Processing by AuthenticationsController#callback as HTML
|
6189
|
+
Parameters: {"code"=>"102a2cbbb16ff4b2c06f6c1f0849cfe2e0042d7af75dd713137cf9e321c98300", "state"=>"2730f3347a63616a407034c1a593af073c32a3b7725e0409"}
|
6190
|
+
Authenticating with gds_sso strategy
|
6191
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6193
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6194
|
+
GDS_SSO integration test:
|
6195
|
+
- signin
|
6196
|
+
' WHERE "users"."id" = 1[0m
|
6197
|
+
[1m[35m (43.6ms)[0m commit transaction
|
6198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6199
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6200
|
+
GDS_SSO integration test:
|
6201
|
+
- signin
|
6202
|
+
' WHERE "users"."id" = 1
|
6203
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
6204
|
+
Redirected to http://www.example-client.com/restricted
|
6205
|
+
Completed 302 Found in 53ms (ActiveRecord: 48.0ms)
|
6206
|
+
|
6207
|
+
|
6208
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:51 +0000
|
6209
|
+
Processing by ExampleController#restricted as HTML
|
6210
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6211
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6212
|
+
|
6213
|
+
|
6214
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:51 +0000
|
6215
|
+
Processing by ExampleController#restricted as JSON
|
6216
|
+
Authenticating with gds_sso_api_access strategy
|
6217
|
+
Completed in 15ms
|
6218
|
+
|
6219
|
+
|
6220
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-25 15:01:51 +0000
|
6221
|
+
Processing by ExampleController#restricted as JSON
|
6222
|
+
Authenticating with gds_sso_api_access strategy
|
6223
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
6224
|
+
|
6225
|
+
|
6226
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-25 15:01:51 +0000
|
6227
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
6228
|
+
Authenticating with gds_sso_api_access strategy
|
6229
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
6230
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6231
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38574"]]
|
6232
|
+
[1m[36m (20.2ms)[0m [1mcommit transaction[0m
|
6233
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6234
|
+
Processing by Api::UserController#update as HTML
|
6235
|
+
Parameters: {"uid"=>"a1s2d38574"}
|
6236
|
+
Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
6237
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6238
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32453"]]
|
6239
|
+
[1m[35m (13.1ms)[0m commit transaction
|
6240
|
+
Processing by Api::UserController#update as HTML
|
6241
|
+
Parameters: {"uid"=>"a1s2d32453"}
|
6242
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32453' LIMIT 1[0m
|
6243
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6244
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
6245
|
+
GDS_SSO integration test:
|
6246
|
+
- signin
|
6247
|
+
- new permission
|
6248
|
+
' WHERE "users"."id" = 3[0m
|
6249
|
+
[1m[35m (7.1ms)[0m commit transaction
|
6250
|
+
Completed 200 OK in 11ms (ActiveRecord: 7.6ms)
|
6251
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6252
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6253
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3809"]]
|
6254
|
+
[1m[35m (4.6ms)[0m commit transaction
|
6255
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6256
|
+
Processing by Api::UserController#reauth as HTML
|
6257
|
+
Parameters: {"uid"=>"a1s2d3809"}
|
6258
|
+
Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
6259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6260
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3371"]]
|
6261
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6262
|
+
Processing by Api::UserController#reauth as HTML
|
6263
|
+
Parameters: {"uid"=>"a1s2d3371"}
|
6264
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3371' LIMIT 1
|
6265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6266
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6267
|
+
GDS_SSO integration test:
|
6268
|
+
- signin
|
6269
|
+
' WHERE "users"."id" = 5
|
6270
|
+
[1m[36m (20.5ms)[0m [1mcommit transaction[0m
|
6271
|
+
Completed 200 OK in 24ms (ActiveRecord: 21.0ms)
|
6272
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matt Patterson
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2012-07-
|
14
|
+
date: 2012-07-25 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -219,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
hash:
|
222
|
+
hash: 914790435544343871
|
223
223
|
segments:
|
224
224
|
- 0
|
225
225
|
version: "0"
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
requirements:
|
229
229
|
- - ">="
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
hash:
|
231
|
+
hash: 914790435544343871
|
232
232
|
segments:
|
233
233
|
- 0
|
234
234
|
version: "0"
|