gds-sso 5.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -3
- data/app/controllers/api/user_controller.rb +1 -1
- data/lib/gds-sso/user.rb +2 -2
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +1 -1
- data/spec/controller/api_user_controller_spec.rb +3 -3
- data/spec/internal/app/models/user.rb +1 -2
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +1 -1
- data/spec/internal/log/test.log +2384 -0
- data/test/user_test.rb +2 -2
- metadata +8 -7
data/README.md
CHANGED
@@ -38,16 +38,15 @@ It should have the following fields:
|
|
38
38
|
string "name"
|
39
39
|
string "email"
|
40
40
|
string "uid"
|
41
|
+
string "organisation"
|
41
42
|
array "permissions"
|
42
|
-
array "organisations"
|
43
43
|
boolean "remotely_signed_out", :default => false
|
44
44
|
|
45
45
|
You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController
|
46
46
|
|
47
|
-
For ActiveRecord, you probably want to declare permissions
|
47
|
+
For ActiveRecord, you probably want to declare permissions as "serialized" like this:
|
48
48
|
|
49
49
|
serialize :permissions, Array
|
50
|
-
serialize :organisations, Array
|
51
50
|
|
52
51
|
|
53
52
|
## Use in development mode
|
data/lib/gds-sso/user.rb
CHANGED
@@ -4,7 +4,7 @@ module GDS
|
|
4
4
|
module SSO
|
5
5
|
module User
|
6
6
|
def included(base)
|
7
|
-
attr_accessible :uid, :email, :name, :permissions, :
|
7
|
+
attr_accessible :uid, :email, :name, :permissions, :organisation, as: :oauth
|
8
8
|
end
|
9
9
|
|
10
10
|
def has_permission?(permission)
|
@@ -19,7 +19,7 @@ module GDS
|
|
19
19
|
'email' => auth_hash['info']['email'],
|
20
20
|
'name' => auth_hash['info']['name'],
|
21
21
|
'permissions' => auth_hash['extra']['user']['permissions'],
|
22
|
-
'
|
22
|
+
'organisation' => auth_hash['extra']['user']['organisation'],
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
data/lib/gds-sso/version.rb
CHANGED
@@ -7,7 +7,7 @@ def user_update_json
|
|
7
7
|
"name" => "Joshua Marshall",
|
8
8
|
"email" => "user@domain.com",
|
9
9
|
"permissions" => ["signin", "new permission"],
|
10
|
-
"
|
10
|
+
"organisation" => "justice-league"
|
11
11
|
}
|
12
12
|
}.to_json
|
13
13
|
end
|
@@ -60,8 +60,8 @@ describe Api::UserController, type: :controller do
|
|
60
60
|
assert_equal "user@domain.com", @user_to_update.email
|
61
61
|
expected_permissions = ["signin", "new permission"]
|
62
62
|
assert_equal expected_permissions, @user_to_update.permissions
|
63
|
-
|
64
|
-
assert_equal
|
63
|
+
expected_organisation = "justice-league"
|
64
|
+
assert_equal expected_organisation, @user_to_update.organisation
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -2,7 +2,6 @@ class User < ActiveRecord::Base
|
|
2
2
|
include GDS::SSO::User
|
3
3
|
|
4
4
|
serialize :permissions, Array
|
5
|
-
serialize :organisations, Array
|
6
5
|
|
7
|
-
attr_accessible :uid, :email, :name, :permissions, :
|
6
|
+
attr_accessible :uid, :email, :name, :permissions, :organisation, as: :oauth
|
8
7
|
end
|
Binary file
|
data/spec/internal/db/schema.rb
CHANGED
data/spec/internal/log/test.log
CHANGED
@@ -5803,3 +5803,2387 @@ Authenticating with gds_bearer_token strategy
|
|
5803
5803
|
' WHERE "users"."id" = 11[0m
|
5804
5804
|
[1m[35m (3.2ms)[0m commit transaction
|
5805
5805
|
Completed 200 OK in 52.9ms (Views: 0.2ms | ActiveRecord: 15.2ms)
|
5806
|
+
Connecting to database specified by database.yml
|
5807
|
+
[1m[36m (0.7ms)[0m [1mselect sqlite_version(*)[0m
|
5808
|
+
[1m[35m (5.4ms)[0m DROP TABLE "users"
|
5809
|
+
[1m[36m (2.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, "organisations" text) [0m
|
5810
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5811
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37997"]]
|
5812
|
+
[1m[35m (5.0ms)[0m commit transaction
|
5813
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38980"]]
|
5815
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
5816
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
5817
|
+
Processing by Api::UserController#update as HTML
|
5818
|
+
Parameters: {"uid"=>"a1s2d37997"}
|
5819
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms)
|
5820
|
+
Completed 403 Forbidden in 6.7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
5821
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5822
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38131"]]
|
5823
|
+
[1m[35m (4.1ms)[0m commit transaction
|
5824
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5825
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37630"]]
|
5826
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
5827
|
+
Processing by Api::UserController#update as HTML
|
5828
|
+
Parameters: {"uid"=>"a1s2d38131"}
|
5829
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38131' LIMIT 1
|
5830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5831
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
5832
|
+
- signin
|
5833
|
+
- new permission
|
5834
|
+
', "organisations" = '---
|
5835
|
+
- justice-league
|
5836
|
+
' WHERE "users"."id" = 3
|
5837
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
5838
|
+
Completed 200 OK in 14.4ms (ActiveRecord: 4.3ms)
|
5839
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5840
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37589"]]
|
5842
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
5843
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5844
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37011"]]
|
5845
|
+
[1m[35m (3.4ms)[0m commit transaction
|
5846
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
5847
|
+
Processing by Api::UserController#reauth as HTML
|
5848
|
+
Parameters: {"uid"=>"a1s2d37589"}
|
5849
|
+
Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
5850
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5851
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39992"]]
|
5852
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
5853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5854
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34549"]]
|
5855
|
+
[1m[35m (4.5ms)[0m commit transaction
|
5856
|
+
Processing by Api::UserController#reauth as HTML
|
5857
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
5858
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
5859
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
5860
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5861
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38686"]]
|
5862
|
+
[1m[35m (4.2ms)[0m commit transaction
|
5863
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5864
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36824"]]
|
5865
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
5866
|
+
Processing by Api::UserController#reauth as HTML
|
5867
|
+
Parameters: {"uid"=>"a1s2d38686"}
|
5868
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38686' LIMIT 1
|
5869
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5870
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
5871
|
+
- signin
|
5872
|
+
', "organisations" = '--- []
|
5873
|
+
' WHERE "users"."id" = 9
|
5874
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
5875
|
+
Completed 200 OK in 8.2ms (ActiveRecord: 4.2ms)
|
5876
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
5877
|
+
Started GET "/" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
|
5878
|
+
Processing by ExampleController#index as HTML
|
5879
|
+
Completed 200 OK in 2.1ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
5880
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
|
5881
|
+
Processing by ExampleController#restricted as HTML
|
5882
|
+
Authenticating with gds_sso strategy
|
5883
|
+
Completed in 2.5ms
|
5884
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
|
5885
|
+
Started GET "/auth/gds/callback?code=19cef20cb286a2ff7b4de41c4a2856936a71efcfe97f62b74d1ac15b4fbd8a47&state=6b736556fc2c41f6d0bebcc1aeb10410b1415e756f9731b0" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
|
5886
|
+
Processing by AuthenticationsController#callback as HTML
|
5887
|
+
Parameters: {"code"=>"19cef20cb286a2ff7b4de41c4a2856936a71efcfe97f62b74d1ac15b4fbd8a47", "state"=>"6b736556fc2c41f6d0bebcc1aeb10410b1415e756f9731b0"}
|
5888
|
+
Authenticating with gds_sso strategy
|
5889
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5891
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- []\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
5892
|
+
[1m[35m (4.8ms)[0m commit transaction
|
5893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5894
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
5895
|
+
- signin
|
5896
|
+
', "organisations" = '--- []
|
5897
|
+
' WHERE "users"."id" = 11
|
5898
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
5899
|
+
Redirected to http://www.example-client.com/restricted
|
5900
|
+
Completed 302 Found in 16.2ms (ActiveRecord: 8.2ms)
|
5901
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
|
5902
|
+
Processing by ExampleController#restricted as HTML
|
5903
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5904
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5905
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
|
5906
|
+
Processing by ExampleController#restricted as HTML
|
5907
|
+
Authenticating with gds_sso strategy
|
5908
|
+
Completed in 0.2ms
|
5909
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
|
5910
|
+
Started GET "/auth/gds/callback?code=3d3b93cfc9d21d02de05eabbf2b4202b18ec4cba473467c7a8899b44cb61a3ce&state=f24a2ec7e37c4511cc52e566a067a06125e84040b06e3ede" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5911
|
+
Processing by AuthenticationsController#callback as HTML
|
5912
|
+
Parameters: {"code"=>"3d3b93cfc9d21d02de05eabbf2b4202b18ec4cba473467c7a8899b44cb61a3ce", "state"=>"f24a2ec7e37c4511cc52e566a067a06125e84040b06e3ede"}
|
5913
|
+
Authenticating with gds_sso strategy
|
5914
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5916
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5917
|
+
- signin
|
5918
|
+
', "organisations" = '--- []
|
5919
|
+
' WHERE "users"."id" = 11[0m
|
5920
|
+
[1m[35m (4.7ms)[0m commit transaction
|
5921
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5922
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
5923
|
+
- signin
|
5924
|
+
', "organisations" = '--- []
|
5925
|
+
' WHERE "users"."id" = 11
|
5926
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
5927
|
+
Redirected to http://www.example-client.com/restricted
|
5928
|
+
Completed 302 Found in 19.1ms (ActiveRecord: 8.0ms)
|
5929
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5930
|
+
Processing by ExampleController#restricted as HTML
|
5931
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5932
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5933
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5934
|
+
Processing by ExampleController#restricted as HTML
|
5935
|
+
Authenticating with gds_sso strategy
|
5936
|
+
Completed in 0.1ms
|
5937
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5938
|
+
Started GET "/auth/gds/callback?code=59aabfa79506ddc2bee2274974b612be2d4009de0e20b612c51e1e60128468f5&state=4944aac86f8eaecf0b17135970c398f11d140ca6d78b87f3" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5939
|
+
Processing by AuthenticationsController#callback as HTML
|
5940
|
+
Parameters: {"code"=>"59aabfa79506ddc2bee2274974b612be2d4009de0e20b612c51e1e60128468f5", "state"=>"4944aac86f8eaecf0b17135970c398f11d140ca6d78b87f3"}
|
5941
|
+
Authenticating with gds_sso strategy
|
5942
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5943
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5944
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5945
|
+
- signin
|
5946
|
+
', "organisations" = '--- []
|
5947
|
+
' WHERE "users"."id" = 11[0m
|
5948
|
+
[1m[35m (3.6ms)[0m commit transaction
|
5949
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5950
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
5951
|
+
- signin
|
5952
|
+
', "organisations" = '--- []
|
5953
|
+
' WHERE "users"."id" = 11
|
5954
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
5955
|
+
Redirected to http://www.example-client.com/restricted
|
5956
|
+
Completed 302 Found in 17.7ms (ActiveRecord: 7.5ms)
|
5957
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5958
|
+
Processing by ExampleController#restricted as HTML
|
5959
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5960
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5961
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5962
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5963
|
+
Authenticating with gds_sso strategy
|
5964
|
+
Completed in 0.6ms
|
5965
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5966
|
+
Started GET "/auth/gds/callback?code=f49cd39986b224f1c5a27707a75477cdfbc7d26ebc3599af0adb40905ab22fbf&state=9037843d24c2e9f4c1f6790829cd43c6da24d79a8ddef812" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5967
|
+
Processing by AuthenticationsController#callback as HTML
|
5968
|
+
Parameters: {"code"=>"f49cd39986b224f1c5a27707a75477cdfbc7d26ebc3599af0adb40905ab22fbf", "state"=>"9037843d24c2e9f4c1f6790829cd43c6da24d79a8ddef812"}
|
5969
|
+
Authenticating with gds_sso strategy
|
5970
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5971
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5972
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
5973
|
+
- signin
|
5974
|
+
', "organisations" = '--- []
|
5975
|
+
' WHERE "users"."id" = 11[0m
|
5976
|
+
[1m[35m (4.1ms)[0m commit transaction
|
5977
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5978
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
5979
|
+
- signin
|
5980
|
+
', "organisations" = '--- []
|
5981
|
+
' WHERE "users"."id" = 11
|
5982
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
5983
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
5984
|
+
Completed 302 Found in 18.4ms (ActiveRecord: 7.9ms)
|
5985
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5986
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5987
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
5988
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
5989
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5990
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
5991
|
+
Authenticating with gds_sso strategy
|
5992
|
+
Completed in 0.1ms
|
5993
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5994
|
+
Started GET "/auth/gds/callback?code=08386c1211961032856d3e5acef34fbb4a52155a0d8893341417b60cc4b54924&state=6c66bcb259de8ac93d6bdc30eb50c90e024cb4a414612719" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
|
5995
|
+
Processing by AuthenticationsController#callback as HTML
|
5996
|
+
Parameters: {"code"=>"08386c1211961032856d3e5acef34fbb4a52155a0d8893341417b60cc4b54924", "state"=>"6c66bcb259de8ac93d6bdc30eb50c90e024cb4a414612719"}
|
5997
|
+
Authenticating with gds_sso strategy
|
5998
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
5999
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6000
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6001
|
+
- signin
|
6002
|
+
', "organisations" = '--- []
|
6003
|
+
' WHERE "users"."id" = 11[0m
|
6004
|
+
[1m[35m (3.9ms)[0m commit transaction
|
6005
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6006
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6007
|
+
- signin
|
6008
|
+
', "organisations" = '--- []
|
6009
|
+
' WHERE "users"."id" = 11
|
6010
|
+
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
6011
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6012
|
+
Completed 302 Found in 26.3ms (ActiveRecord: 16.0ms)
|
6013
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6014
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6015
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6016
|
+
Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6017
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6018
|
+
Processing by ExampleController#restricted as HTML
|
6019
|
+
Authenticating with gds_sso strategy
|
6020
|
+
Completed in 0.2ms
|
6021
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6022
|
+
Started GET "/auth/gds/callback?code=59c38590490837d6a2d48b1a0ba2b464aed00a17e9bf25972ed1f73fb5040a91&state=d28cf0af4aad3eeab77870f6973633d8a7574983119703cd" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6023
|
+
Processing by AuthenticationsController#callback as HTML
|
6024
|
+
Parameters: {"code"=>"59c38590490837d6a2d48b1a0ba2b464aed00a17e9bf25972ed1f73fb5040a91", "state"=>"d28cf0af4aad3eeab77870f6973633d8a7574983119703cd"}
|
6025
|
+
Authenticating with gds_sso strategy
|
6026
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6028
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6029
|
+
- signin
|
6030
|
+
', "organisations" = '--- []
|
6031
|
+
' WHERE "users"."id" = 11[0m
|
6032
|
+
[1m[35m (4.7ms)[0m commit transaction
|
6033
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6034
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6035
|
+
- signin
|
6036
|
+
', "organisations" = '--- []
|
6037
|
+
' WHERE "users"."id" = 11
|
6038
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
6039
|
+
Redirected to http://www.example-client.com/restricted
|
6040
|
+
Completed 302 Found in 19.7ms (ActiveRecord: 9.0ms)
|
6041
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6042
|
+
Processing by ExampleController#restricted as HTML
|
6043
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6044
|
+
Completed 200 OK in 1.1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6045
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6046
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6047
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6048
|
+
- signin
|
6049
|
+
', "organisations" = '--- []
|
6050
|
+
' WHERE "users"."id" = 11[0m
|
6051
|
+
[1m[35m (2.9ms)[0m commit transaction
|
6052
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6053
|
+
Processing by ExampleController#restricted as HTML
|
6054
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6055
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6056
|
+
Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
6057
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6058
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6059
|
+
Redirected to http://localhost:4567/users/sign_out
|
6060
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
6061
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6062
|
+
Processing by ExampleController#restricted as HTML
|
6063
|
+
Authenticating with gds_sso strategy
|
6064
|
+
Completed in 0.2ms
|
6065
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6066
|
+
Started GET "/auth/gds/callback?code=5d37a488b73eb055168e88714076e408407f6d15ad9fc67404c24e4d3cd98962&state=d21d673b2fa4350c231a7c68d19d89a9b2aa24bd1cac7721" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6067
|
+
Processing by AuthenticationsController#callback as HTML
|
6068
|
+
Parameters: {"code"=>"5d37a488b73eb055168e88714076e408407f6d15ad9fc67404c24e4d3cd98962", "state"=>"d21d673b2fa4350c231a7c68d19d89a9b2aa24bd1cac7721"}
|
6069
|
+
Authenticating with gds_sso strategy
|
6070
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6072
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6073
|
+
- signin
|
6074
|
+
', "organisations" = '--- []
|
6075
|
+
' WHERE "users"."id" = 11
|
6076
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
6077
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6078
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6079
|
+
- signin
|
6080
|
+
', "organisations" = '--- []
|
6081
|
+
' WHERE "users"."id" = 11[0m
|
6082
|
+
[1m[35m (3.2ms)[0m commit transaction
|
6083
|
+
Redirected to http://www.example-client.com/restricted
|
6084
|
+
Completed 302 Found in 17.9ms (ActiveRecord: 7.6ms)
|
6085
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6086
|
+
Processing by ExampleController#restricted as HTML
|
6087
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6088
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6089
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6090
|
+
Processing by ExampleController#restricted as HTML
|
6091
|
+
Authenticating with gds_sso strategy
|
6092
|
+
Completed in 0.2ms
|
6093
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6094
|
+
Started GET "/auth/gds/callback?code=52d0ff9b3efe8abde60d3e9e6dfae8f04d67e78818c088bdc0dde0d75f0ba8c2&state=42d5515d89d93bcdc9f7f1c9487dc3749d448d91b8009d06" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
|
6095
|
+
Processing by AuthenticationsController#callback as HTML
|
6096
|
+
Parameters: {"code"=>"52d0ff9b3efe8abde60d3e9e6dfae8f04d67e78818c088bdc0dde0d75f0ba8c2", "state"=>"42d5515d89d93bcdc9f7f1c9487dc3749d448d91b8009d06"}
|
6097
|
+
Authenticating with gds_sso strategy
|
6098
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6100
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6101
|
+
- signin
|
6102
|
+
', "organisations" = '--- []
|
6103
|
+
' WHERE "users"."id" = 11
|
6104
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
6105
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6106
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6107
|
+
- signin
|
6108
|
+
', "organisations" = '--- []
|
6109
|
+
' WHERE "users"."id" = 11[0m
|
6110
|
+
[1m[35m (2.5ms)[0m commit transaction
|
6111
|
+
Redirected to http://www.example-client.com/restricted
|
6112
|
+
Completed 302 Found in 19.0ms (ActiveRecord: 7.1ms)
|
6113
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6114
|
+
Processing by ExampleController#restricted as HTML
|
6115
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6116
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6117
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
|
6118
|
+
Processing by ExampleController#restricted as HTML
|
6119
|
+
Authenticating with gds_sso strategy
|
6120
|
+
Completed in 0.2ms
|
6121
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
|
6122
|
+
Started GET "/auth/gds/callback?code=902097aabfd85b3c61d45350c2878d9528eb09549a158bf85134e0b64cad5ad0&state=879f144564d8bb18e8639558df153002f84db8e2a2f5098c" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
|
6123
|
+
Processing by AuthenticationsController#callback as HTML
|
6124
|
+
Parameters: {"code"=>"902097aabfd85b3c61d45350c2878d9528eb09549a158bf85134e0b64cad5ad0", "state"=>"879f144564d8bb18e8639558df153002f84db8e2a2f5098c"}
|
6125
|
+
Authenticating with gds_sso strategy
|
6126
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6128
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6129
|
+
- signin
|
6130
|
+
', "organisations" = '--- []
|
6131
|
+
' WHERE "users"."id" = 11
|
6132
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
6133
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6134
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6135
|
+
- signin
|
6136
|
+
', "organisations" = '--- []
|
6137
|
+
' WHERE "users"."id" = 11[0m
|
6138
|
+
[1m[35m (3.1ms)[0m commit transaction
|
6139
|
+
Redirected to http://www.example-client.com/restricted
|
6140
|
+
Completed 302 Found in 16.9ms (ActiveRecord: 7.0ms)
|
6141
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
|
6142
|
+
Processing by ExampleController#restricted as HTML
|
6143
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6144
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
6145
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6146
|
+
Processing by ExampleController#restricted as HTML
|
6147
|
+
Authenticating with gds_sso strategy
|
6148
|
+
Completed in 0.2ms
|
6149
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6150
|
+
Started GET "/auth/gds/callback?code=851fe8f0c7f5481b3e0a01a84fa76ab1690bf2d819941467a9bc3e2b95bfe84e&state=8e3d6b258ad1e3b1865946ad1042d688376e8b370124cec5" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6151
|
+
Processing by AuthenticationsController#callback as HTML
|
6152
|
+
Parameters: {"code"=>"851fe8f0c7f5481b3e0a01a84fa76ab1690bf2d819941467a9bc3e2b95bfe84e", "state"=>"8e3d6b258ad1e3b1865946ad1042d688376e8b370124cec5"}
|
6153
|
+
Authenticating with gds_sso strategy
|
6154
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6156
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6157
|
+
- signin
|
6158
|
+
', "organisations" = '--- []
|
6159
|
+
' WHERE "users"."id" = 11
|
6160
|
+
[1m[36m (4.6ms)[0m [1mcommit transaction[0m
|
6161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6162
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6163
|
+
- signin
|
6164
|
+
', "organisations" = '--- []
|
6165
|
+
' WHERE "users"."id" = 11[0m
|
6166
|
+
[1m[35m (3.4ms)[0m commit transaction
|
6167
|
+
Redirected to http://www.example-client.com/restricted
|
6168
|
+
Completed 302 Found in 19.7ms (ActiveRecord: 8.6ms)
|
6169
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6170
|
+
Processing by ExampleController#restricted as HTML
|
6171
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6172
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6173
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:17:48 +0000
|
6174
|
+
Processing by ExampleController#restricted as HTML
|
6175
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6176
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
6177
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6178
|
+
Processing by ExampleController#restricted as JSON
|
6179
|
+
Authenticating with gds_bearer_token strategy
|
6180
|
+
Completed in 7.3ms
|
6181
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6182
|
+
Processing by ExampleController#restricted as JSON
|
6183
|
+
Authenticating with gds_bearer_token strategy
|
6184
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6186
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6187
|
+
- signin
|
6188
|
+
', "organisations" = '--- []
|
6189
|
+
' WHERE "users"."id" = 11[0m
|
6190
|
+
[1m[35m (4.1ms)[0m commit transaction
|
6191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6192
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6193
|
+
- signin
|
6194
|
+
', "organisations" = '--- []
|
6195
|
+
' WHERE "users"."id" = 11
|
6196
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
6197
|
+
Completed 200 OK in 41.6ms (Views: 0.2ms | ActiveRecord: 7.5ms)
|
6198
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
|
6199
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
6200
|
+
Authenticating with gds_bearer_token strategy
|
6201
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6203
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6204
|
+
- signin
|
6205
|
+
', "organisations" = '--- []
|
6206
|
+
' WHERE "users"."id" = 11
|
6207
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
6208
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6209
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6210
|
+
- signin
|
6211
|
+
', "organisations" = '--- []
|
6212
|
+
' WHERE "users"."id" = 11[0m
|
6213
|
+
[1m[35m (2.8ms)[0m commit transaction
|
6214
|
+
Completed 200 OK in 43.1ms (Views: 0.2ms | ActiveRecord: 7.7ms)
|
6215
|
+
Connecting to database specified by database.yml
|
6216
|
+
[1m[36m (0.7ms)[0m [1mselect sqlite_version(*)[0m
|
6217
|
+
[1m[35m (28.4ms)[0m DROP TABLE "users"
|
6218
|
+
[1m[36m (13.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, "organisations" text) [0m
|
6219
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6220
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39893"]]
|
6221
|
+
[1m[35m (20.2ms)[0m commit transaction
|
6222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6223
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35649"]]
|
6224
|
+
[1m[36m (48.1ms)[0m [1mcommit transaction[0m
|
6225
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6226
|
+
Processing by Api::UserController#update as HTML
|
6227
|
+
Parameters: {"uid"=>"a1s2d39893"}
|
6228
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
6229
|
+
Completed 403 Forbidden in 16.4ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
6230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6231
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31171"]]
|
6232
|
+
[1m[35m (16.8ms)[0m commit transaction
|
6233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6234
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37785"]]
|
6235
|
+
[1m[36m (20.1ms)[0m [1mcommit transaction[0m
|
6236
|
+
Processing by Api::UserController#update as HTML
|
6237
|
+
Parameters: {"uid"=>"a1s2d31171"}
|
6238
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31171' LIMIT 1
|
6239
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6240
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
6241
|
+
- signin
|
6242
|
+
- new permission
|
6243
|
+
', "organisations" = '---
|
6244
|
+
- justice-league
|
6245
|
+
' WHERE "users"."id" = 3
|
6246
|
+
[1m[36m (16.1ms)[0m [1mcommit transaction[0m
|
6247
|
+
Completed 200 OK in 35.8ms (ActiveRecord: 16.5ms)
|
6248
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6250
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38789"]]
|
6251
|
+
[1m[36m (17.4ms)[0m [1mcommit transaction[0m
|
6252
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32212"]]
|
6254
|
+
[1m[35m (13.2ms)[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"=>"a1s2d38789"}
|
6258
|
+
Completed 403 Forbidden in 1.9ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
6259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6260
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3419"]]
|
6261
|
+
[1m[36m (16.7ms)[0m [1mcommit transaction[0m
|
6262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6263
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38493"]]
|
6264
|
+
[1m[35m (26.4ms)[0m commit transaction
|
6265
|
+
Processing by Api::UserController#reauth as HTML
|
6266
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
6267
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
6268
|
+
Completed 200 OK in 1.7ms (ActiveRecord: 0.2ms)
|
6269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6270
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31001"]]
|
6271
|
+
[1m[35m (20.9ms)[0m commit transaction
|
6272
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6273
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33036"]]
|
6274
|
+
[1m[36m (11.9ms)[0m [1mcommit transaction[0m
|
6275
|
+
Processing by Api::UserController#reauth as HTML
|
6276
|
+
Parameters: {"uid"=>"a1s2d31001"}
|
6277
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31001' LIMIT 1
|
6278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6279
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6280
|
+
- signin
|
6281
|
+
', "organisations" = '--- []
|
6282
|
+
' WHERE "users"."id" = 9
|
6283
|
+
[1m[36m (21.4ms)[0m [1mcommit transaction[0m
|
6284
|
+
Completed 200 OK in 53.9ms (ActiveRecord: 21.8ms)
|
6285
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
6286
|
+
Started GET "/" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
|
6287
|
+
Processing by ExampleController#index as HTML
|
6288
|
+
Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
6289
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
|
6290
|
+
Processing by ExampleController#restricted as HTML
|
6291
|
+
Authenticating with gds_sso strategy
|
6292
|
+
Completed in 2.4ms
|
6293
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
|
6294
|
+
Started GET "/auth/gds/callback?code=783e3b3d0a3ddb2cc1adbf81a4c5577d3151c5dfd5430c93ea92e11c41db39d0&state=d002c1df400ea2ab8550b77b474c5ab2727b475fdcd45a0c" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
|
6295
|
+
Processing by AuthenticationsController#callback as HTML
|
6296
|
+
Parameters: {"code"=>"783e3b3d0a3ddb2cc1adbf81a4c5577d3151c5dfd5430c93ea92e11c41db39d0", "state"=>"d002c1df400ea2ab8550b77b474c5ab2727b475fdcd45a0c"}
|
6297
|
+
Authenticating with gds_sso strategy
|
6298
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6300
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- []\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
6301
|
+
[1m[35m (11.4ms)[0m commit transaction
|
6302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6303
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6304
|
+
- signin
|
6305
|
+
', "organisations" = '--- []
|
6306
|
+
' WHERE "users"."id" = 11
|
6307
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
6308
|
+
Redirected to http://www.example-client.com/restricted
|
6309
|
+
Completed 302 Found in 22.2ms (ActiveRecord: 14.6ms)
|
6310
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
|
6311
|
+
Processing by ExampleController#restricted as HTML
|
6312
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6313
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6314
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
|
6315
|
+
Processing by ExampleController#restricted as HTML
|
6316
|
+
Authenticating with gds_sso strategy
|
6317
|
+
Completed in 0.2ms
|
6318
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
|
6319
|
+
Started GET "/auth/gds/callback?code=73f1527c59d3efcac3eb14321cea19b5307e50feeb12e5348bf2732fe6f2d4a0&state=afe2ab60b511ef06e29654ad6cccdf7366254dd87003d5e0" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6320
|
+
Processing by AuthenticationsController#callback as HTML
|
6321
|
+
Parameters: {"code"=>"73f1527c59d3efcac3eb14321cea19b5307e50feeb12e5348bf2732fe6f2d4a0", "state"=>"afe2ab60b511ef06e29654ad6cccdf7366254dd87003d5e0"}
|
6322
|
+
Authenticating with gds_sso strategy
|
6323
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6325
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6326
|
+
- signin
|
6327
|
+
', "organisations" = '--- []
|
6328
|
+
' WHERE "users"."id" = 11[0m
|
6329
|
+
[1m[35m (5.4ms)[0m commit transaction
|
6330
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6331
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6332
|
+
- signin
|
6333
|
+
', "organisations" = '--- []
|
6334
|
+
' WHERE "users"."id" = 11
|
6335
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
6336
|
+
Redirected to http://www.example-client.com/restricted
|
6337
|
+
Completed 302 Found in 22.0ms (ActiveRecord: 10.7ms)
|
6338
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6339
|
+
Processing by ExampleController#restricted as HTML
|
6340
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6341
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6342
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6343
|
+
Processing by ExampleController#restricted as HTML
|
6344
|
+
Authenticating with gds_sso strategy
|
6345
|
+
Completed in 0.1ms
|
6346
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6347
|
+
Started GET "/auth/gds/callback?code=b58c58c80f8dbc7f27635cd17034fc7d8dd713c3b215f8527e4a3a1df9fd3f3d&state=5b700227a2439edeaf116c502d3f18c7a52a75a53410eeb5" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6348
|
+
Processing by AuthenticationsController#callback as HTML
|
6349
|
+
Parameters: {"code"=>"b58c58c80f8dbc7f27635cd17034fc7d8dd713c3b215f8527e4a3a1df9fd3f3d", "state"=>"5b700227a2439edeaf116c502d3f18c7a52a75a53410eeb5"}
|
6350
|
+
Authenticating with gds_sso strategy
|
6351
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6353
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6354
|
+
- signin
|
6355
|
+
', "organisations" = '--- []
|
6356
|
+
' WHERE "users"."id" = 11[0m
|
6357
|
+
[1m[35m (14.8ms)[0m commit transaction
|
6358
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6359
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6360
|
+
- signin
|
6361
|
+
', "organisations" = '--- []
|
6362
|
+
' WHERE "users"."id" = 11
|
6363
|
+
[1m[36m (12.6ms)[0m [1mcommit transaction[0m
|
6364
|
+
Redirected to http://www.example-client.com/restricted
|
6365
|
+
Completed 302 Found in 37.8ms (ActiveRecord: 27.9ms)
|
6366
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6367
|
+
Processing by ExampleController#restricted as HTML
|
6368
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6369
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
6370
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6371
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6372
|
+
Authenticating with gds_sso strategy
|
6373
|
+
Completed in 0.5ms
|
6374
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
|
6375
|
+
Started GET "/auth/gds/callback?code=5561e9afe84d3e4c8ef3538e547cf682cb9fcf7278e7bd3635966a1dbe1262f6&state=902086e3bdfcad9629273f070fd8ff5a9ddc763ffee127d1" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6376
|
+
Processing by AuthenticationsController#callback as HTML
|
6377
|
+
Parameters: {"code"=>"5561e9afe84d3e4c8ef3538e547cf682cb9fcf7278e7bd3635966a1dbe1262f6", "state"=>"902086e3bdfcad9629273f070fd8ff5a9ddc763ffee127d1"}
|
6378
|
+
Authenticating with gds_sso strategy
|
6379
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6380
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6381
|
+
[1m[36m (2.6ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6382
|
+
- signin
|
6383
|
+
', "organisations" = '--- []
|
6384
|
+
' WHERE "users"."id" = 11[0m
|
6385
|
+
[1m[35m (13.8ms)[0m commit transaction
|
6386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6387
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6388
|
+
- signin
|
6389
|
+
', "organisations" = '--- []
|
6390
|
+
' WHERE "users"."id" = 11
|
6391
|
+
[1m[36m (12.1ms)[0m [1mcommit transaction[0m
|
6392
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6393
|
+
Completed 302 Found in 45.3ms (ActiveRecord: 28.9ms)
|
6394
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6395
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6396
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6397
|
+
Completed 200 OK in 2.5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6398
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6399
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6400
|
+
Authenticating with gds_sso strategy
|
6401
|
+
Completed in 0.1ms
|
6402
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6403
|
+
Started GET "/auth/gds/callback?code=dbd272eb65fb3376d60373f9f25bc0f61b3dfe5d0f4a9d3cf708ece5c7fc2048&state=eb61df8ff7f3a508d16a83447e73dda12a11c423fb0a22ac" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6404
|
+
Processing by AuthenticationsController#callback as HTML
|
6405
|
+
Parameters: {"code"=>"dbd272eb65fb3376d60373f9f25bc0f61b3dfe5d0f4a9d3cf708ece5c7fc2048", "state"=>"eb61df8ff7f3a508d16a83447e73dda12a11c423fb0a22ac"}
|
6406
|
+
Authenticating with gds_sso strategy
|
6407
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6409
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6410
|
+
- signin
|
6411
|
+
', "organisations" = '--- []
|
6412
|
+
' WHERE "users"."id" = 11[0m
|
6413
|
+
[1m[35m (13.0ms)[0m commit transaction
|
6414
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6415
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6416
|
+
- signin
|
6417
|
+
', "organisations" = '--- []
|
6418
|
+
' WHERE "users"."id" = 11
|
6419
|
+
[1m[36m (10.2ms)[0m [1mcommit transaction[0m
|
6420
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6421
|
+
Completed 302 Found in 33.8ms (ActiveRecord: 23.7ms)
|
6422
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6423
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6424
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6425
|
+
Completed 200 OK in 2.5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6426
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6427
|
+
Processing by ExampleController#restricted as HTML
|
6428
|
+
Authenticating with gds_sso strategy
|
6429
|
+
Completed in 0.2ms
|
6430
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6431
|
+
Started GET "/auth/gds/callback?code=f6c5de21f80bb0e6cb0b9ed3de22e27c53bf23cd06d409cfd16e3603a9bda6ed&state=da77b372e42e46ee3203caa239e4a5a0741496628b8d2d86" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6432
|
+
Processing by AuthenticationsController#callback as HTML
|
6433
|
+
Parameters: {"code"=>"f6c5de21f80bb0e6cb0b9ed3de22e27c53bf23cd06d409cfd16e3603a9bda6ed", "state"=>"da77b372e42e46ee3203caa239e4a5a0741496628b8d2d86"}
|
6434
|
+
Authenticating with gds_sso strategy
|
6435
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6437
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6438
|
+
- signin
|
6439
|
+
', "organisations" = '--- []
|
6440
|
+
' WHERE "users"."id" = 11[0m
|
6441
|
+
[1m[35m (11.7ms)[0m commit transaction
|
6442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6443
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6444
|
+
- signin
|
6445
|
+
', "organisations" = '--- []
|
6446
|
+
' WHERE "users"."id" = 11
|
6447
|
+
[1m[36m (11.1ms)[0m [1mcommit transaction[0m
|
6448
|
+
Redirected to http://www.example-client.com/restricted
|
6449
|
+
Completed 302 Found in 34.9ms (ActiveRecord: 23.3ms)
|
6450
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6451
|
+
Processing by ExampleController#restricted as HTML
|
6452
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6453
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6454
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6455
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6456
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6457
|
+
- signin
|
6458
|
+
', "organisations" = '--- []
|
6459
|
+
' WHERE "users"."id" = 11[0m
|
6460
|
+
[1m[35m (8.7ms)[0m commit transaction
|
6461
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6462
|
+
Processing by ExampleController#restricted as HTML
|
6463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6464
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6465
|
+
Completed 403 Forbidden in 2.8ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
6466
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
|
6467
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6468
|
+
Redirected to http://localhost:4567/users/sign_out
|
6469
|
+
Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
|
6470
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6471
|
+
Processing by ExampleController#restricted as HTML
|
6472
|
+
Authenticating with gds_sso strategy
|
6473
|
+
Completed in 0.4ms
|
6474
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6475
|
+
Started GET "/auth/gds/callback?code=10dea31bf59fc792dd100e38bc02e9e2917e319fe52ee5adc3b07a952c27176d&state=cb5c1358cdf199402249d647eb86b62fcb3fc76e4c880be2" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6476
|
+
Processing by AuthenticationsController#callback as HTML
|
6477
|
+
Parameters: {"code"=>"10dea31bf59fc792dd100e38bc02e9e2917e319fe52ee5adc3b07a952c27176d", "state"=>"cb5c1358cdf199402249d647eb86b62fcb3fc76e4c880be2"}
|
6478
|
+
Authenticating with gds_sso strategy
|
6479
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6480
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6481
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6482
|
+
- signin
|
6483
|
+
', "organisations" = '--- []
|
6484
|
+
' WHERE "users"."id" = 11
|
6485
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
6486
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6487
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6488
|
+
- signin
|
6489
|
+
', "organisations" = '--- []
|
6490
|
+
' WHERE "users"."id" = 11[0m
|
6491
|
+
[1m[35m (5.9ms)[0m commit transaction
|
6492
|
+
Redirected to http://www.example-client.com/restricted
|
6493
|
+
Completed 302 Found in 25.5ms (ActiveRecord: 15.2ms)
|
6494
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6495
|
+
Processing by ExampleController#restricted as HTML
|
6496
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6497
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6498
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6499
|
+
Processing by ExampleController#restricted as HTML
|
6500
|
+
Authenticating with gds_sso strategy
|
6501
|
+
Completed in 0.2ms
|
6502
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6503
|
+
Started GET "/auth/gds/callback?code=5970f14d47f292a3ffb28f516a506a2f17431fb50ccacc770bd49fc78591639f&state=4ef9e2e606da002f74837fccd49404d83d2ffddb31bdf082" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6504
|
+
Processing by AuthenticationsController#callback as HTML
|
6505
|
+
Parameters: {"code"=>"5970f14d47f292a3ffb28f516a506a2f17431fb50ccacc770bd49fc78591639f", "state"=>"4ef9e2e606da002f74837fccd49404d83d2ffddb31bdf082"}
|
6506
|
+
Authenticating with gds_sso strategy
|
6507
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6508
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6509
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6510
|
+
- signin
|
6511
|
+
', "organisations" = '--- []
|
6512
|
+
' WHERE "users"."id" = 11
|
6513
|
+
[1m[36m (12.1ms)[0m [1mcommit transaction[0m
|
6514
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6515
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6516
|
+
- signin
|
6517
|
+
', "organisations" = '--- []
|
6518
|
+
' WHERE "users"."id" = 11[0m
|
6519
|
+
[1m[35m (9.0ms)[0m commit transaction
|
6520
|
+
Redirected to http://www.example-client.com/restricted
|
6521
|
+
Completed 302 Found in 32.5ms (ActiveRecord: 21.7ms)
|
6522
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
|
6523
|
+
Processing by ExampleController#restricted as HTML
|
6524
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6525
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6526
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
|
6527
|
+
Processing by ExampleController#restricted as HTML
|
6528
|
+
Authenticating with gds_sso strategy
|
6529
|
+
Completed in 0.2ms
|
6530
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
|
6531
|
+
Started GET "/auth/gds/callback?code=42e2cfed4ab7e8da0a33599bfd4cdcf757a96db59dd6ade5b15e50f05de4e4c7&state=34242a3bc5f857bcc3bb3628da94e405293e67b01fa3bd8c" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
|
6532
|
+
Processing by AuthenticationsController#callback as HTML
|
6533
|
+
Parameters: {"code"=>"42e2cfed4ab7e8da0a33599bfd4cdcf757a96db59dd6ade5b15e50f05de4e4c7", "state"=>"34242a3bc5f857bcc3bb3628da94e405293e67b01fa3bd8c"}
|
6534
|
+
Authenticating with gds_sso strategy
|
6535
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6537
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6538
|
+
- signin
|
6539
|
+
', "organisations" = '--- []
|
6540
|
+
' WHERE "users"."id" = 11
|
6541
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
6542
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6543
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6544
|
+
- signin
|
6545
|
+
', "organisations" = '--- []
|
6546
|
+
' WHERE "users"."id" = 11[0m
|
6547
|
+
[1m[35m (9.2ms)[0m commit transaction
|
6548
|
+
Redirected to http://www.example-client.com/restricted
|
6549
|
+
Completed 302 Found in 28.5ms (ActiveRecord: 18.6ms)
|
6550
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
|
6551
|
+
Processing by ExampleController#restricted as HTML
|
6552
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6553
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
6554
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6555
|
+
Processing by ExampleController#restricted as HTML
|
6556
|
+
Authenticating with gds_sso strategy
|
6557
|
+
Completed in 0.2ms
|
6558
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6559
|
+
Started GET "/auth/gds/callback?code=7ef5aca29251a16e126031031bcca28cbbeda5d8d0a706cc838aa3969437c26c&state=cad5120c1e3a7966ef53334f646da574bbfb57123a3bc51d" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6560
|
+
Processing by AuthenticationsController#callback as HTML
|
6561
|
+
Parameters: {"code"=>"7ef5aca29251a16e126031031bcca28cbbeda5d8d0a706cc838aa3969437c26c", "state"=>"cad5120c1e3a7966ef53334f646da574bbfb57123a3bc51d"}
|
6562
|
+
Authenticating with gds_sso strategy
|
6563
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6564
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6565
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6566
|
+
- signin
|
6567
|
+
', "organisations" = '--- []
|
6568
|
+
' WHERE "users"."id" = 11
|
6569
|
+
[1m[36m (17.4ms)[0m [1mcommit transaction[0m
|
6570
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6571
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6572
|
+
- signin
|
6573
|
+
', "organisations" = '--- []
|
6574
|
+
' WHERE "users"."id" = 11[0m
|
6575
|
+
[1m[35m (43.2ms)[0m commit transaction
|
6576
|
+
Redirected to http://www.example-client.com/restricted
|
6577
|
+
Completed 302 Found in 71.6ms (ActiveRecord: 61.4ms)
|
6578
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6579
|
+
Processing by ExampleController#restricted as HTML
|
6580
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6581
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6582
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-02 12:59:01 +0000
|
6583
|
+
Processing by ExampleController#restricted as HTML
|
6584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6585
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
6586
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6587
|
+
Processing by ExampleController#restricted as JSON
|
6588
|
+
Authenticating with gds_bearer_token strategy
|
6589
|
+
Completed in 7.3ms
|
6590
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6591
|
+
Processing by ExampleController#restricted as JSON
|
6592
|
+
Authenticating with gds_bearer_token strategy
|
6593
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6595
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6596
|
+
- signin
|
6597
|
+
', "organisations" = '--- []
|
6598
|
+
' WHERE "users"."id" = 11[0m
|
6599
|
+
[1m[35m (13.2ms)[0m commit transaction
|
6600
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6601
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6602
|
+
- signin
|
6603
|
+
', "organisations" = '--- []
|
6604
|
+
' WHERE "users"."id" = 11
|
6605
|
+
[1m[36m (10.7ms)[0m [1mcommit transaction[0m
|
6606
|
+
Completed 200 OK in 65.7ms (Views: 0.2ms | ActiveRecord: 24.5ms)
|
6607
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
|
6608
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
6609
|
+
Authenticating with gds_bearer_token strategy
|
6610
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6611
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6612
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6613
|
+
- signin
|
6614
|
+
', "organisations" = '--- []
|
6615
|
+
' WHERE "users"."id" = 11
|
6616
|
+
[1m[36m (28.3ms)[0m [1mcommit transaction[0m
|
6617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6618
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6619
|
+
- signin
|
6620
|
+
', "organisations" = '--- []
|
6621
|
+
' WHERE "users"."id" = 11[0m
|
6622
|
+
[1m[35m (12.9ms)[0m commit transaction
|
6623
|
+
Completed 200 OK in 86.5ms (Views: 0.3ms | ActiveRecord: 41.8ms)
|
6624
|
+
Connecting to database specified by database.yml
|
6625
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
6626
|
+
[1m[35m (27.9ms)[0m DROP TABLE "users"
|
6627
|
+
[1m[36m (25.8ms)[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, "organisations" text) [0m
|
6628
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6629
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33803"]]
|
6630
|
+
[1m[35m (55.1ms)[0m commit transaction
|
6631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6632
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37045"]]
|
6633
|
+
[1m[36m (10.9ms)[0m [1mcommit transaction[0m
|
6634
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6635
|
+
Processing by Api::UserController#update as HTML
|
6636
|
+
Parameters: {"uid"=>"a1s2d33803"}
|
6637
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms)
|
6638
|
+
Completed 403 Forbidden in 11.9ms (Views: 11.0ms | ActiveRecord: 0.0ms)
|
6639
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6640
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33573"]]
|
6641
|
+
[1m[35m (19.6ms)[0m commit transaction
|
6642
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6643
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32330"]]
|
6644
|
+
[1m[36m (18.6ms)[0m [1mcommit transaction[0m
|
6645
|
+
Processing by Api::UserController#update as HTML
|
6646
|
+
Parameters: {"uid"=>"a1s2d33573"}
|
6647
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33573' LIMIT 1
|
6648
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6649
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
6650
|
+
- signin
|
6651
|
+
- new permission
|
6652
|
+
', "organisations" = '---
|
6653
|
+
- justice-league
|
6654
|
+
' WHERE "users"."id" = 3
|
6655
|
+
[1m[36m (28.3ms)[0m [1mcommit transaction[0m
|
6656
|
+
Completed 200 OK in 81.1ms (ActiveRecord: 28.9ms)
|
6657
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6659
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32740"]]
|
6660
|
+
[1m[36m (41.3ms)[0m [1mcommit transaction[0m
|
6661
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6662
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36164"]]
|
6663
|
+
[1m[35m (4.0ms)[0m commit transaction
|
6664
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6665
|
+
Processing by Api::UserController#reauth as HTML
|
6666
|
+
Parameters: {"uid"=>"a1s2d32740"}
|
6667
|
+
Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
6668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6669
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33633"]]
|
6670
|
+
[1m[36m (7.0ms)[0m [1mcommit transaction[0m
|
6671
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6672
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38848"]]
|
6673
|
+
[1m[35m (10.7ms)[0m commit transaction
|
6674
|
+
Processing by Api::UserController#reauth as HTML
|
6675
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
6676
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
6677
|
+
Completed 200 OK in 41.5ms (ActiveRecord: 0.3ms)
|
6678
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6679
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3284"]]
|
6680
|
+
[1m[35m (13.2ms)[0m commit transaction
|
6681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6682
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34514"]]
|
6683
|
+
[1m[36m (13.2ms)[0m [1mcommit transaction[0m
|
6684
|
+
Processing by Api::UserController#reauth as HTML
|
6685
|
+
Parameters: {"uid"=>"a1s2d3284"}
|
6686
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3284' LIMIT 1
|
6687
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6688
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6689
|
+
- signin
|
6690
|
+
', "organisations" = '--- []
|
6691
|
+
' WHERE "users"."id" = 9
|
6692
|
+
[1m[36m (21.2ms)[0m [1mcommit transaction[0m
|
6693
|
+
Completed 200 OK in 38.6ms (ActiveRecord: 22.0ms)
|
6694
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
6695
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
|
6696
|
+
Processing by ExampleController#index as HTML
|
6697
|
+
Completed 200 OK in 2.2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
6698
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
|
6699
|
+
Processing by ExampleController#restricted as HTML
|
6700
|
+
Authenticating with gds_sso strategy
|
6701
|
+
Completed in 3.0ms
|
6702
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
|
6703
|
+
Started GET "/auth/gds/callback?code=c924c344f013ac3797688378590a04ba1ae9e2535aa518175936391a25c4ac96&state=bf5e8ac85b6f4e19a6220542feed27e0c0f6feaf9ff2d540" for 127.0.0.1 at 2013-11-04 13:35:37 +0000
|
6704
|
+
Processing by AuthenticationsController#callback as HTML
|
6705
|
+
Parameters: {"code"=>"c924c344f013ac3797688378590a04ba1ae9e2535aa518175936391a25c4ac96", "state"=>"bf5e8ac85b6f4e19a6220542feed27e0c0f6feaf9ff2d540"}
|
6706
|
+
Authenticating with gds_sso strategy
|
6707
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6708
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6709
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- \n...\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
6710
|
+
[1m[35m (11.9ms)[0m commit transaction
|
6711
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6712
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6713
|
+
- signin
|
6714
|
+
', "organisations" = '--- []
|
6715
|
+
' WHERE "users"."id" = 11
|
6716
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
6717
|
+
Redirected to http://www.example-client.com/restricted
|
6718
|
+
Completed 302 Found in 32.0ms (ActiveRecord: 22.0ms)
|
6719
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6720
|
+
Processing by ExampleController#restricted as HTML
|
6721
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6722
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6723
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6724
|
+
Processing by ExampleController#restricted as HTML
|
6725
|
+
Authenticating with gds_sso strategy
|
6726
|
+
Completed in 0.4ms
|
6727
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6728
|
+
Started GET "/auth/gds/callback?code=5149176e9f78cec19aa81c9ac198ce84cee8d96cfd4998df9b55408636975691&state=eff59d764e0b66133a525e95067b7b1913d40dcadb9c59c6" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6729
|
+
Processing by AuthenticationsController#callback as HTML
|
6730
|
+
Parameters: {"code"=>"5149176e9f78cec19aa81c9ac198ce84cee8d96cfd4998df9b55408636975691", "state"=>"eff59d764e0b66133a525e95067b7b1913d40dcadb9c59c6"}
|
6731
|
+
Authenticating with gds_sso strategy
|
6732
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6733
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6734
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
6735
|
+
...
|
6736
|
+
', "permissions" = '---
|
6737
|
+
- signin
|
6738
|
+
' WHERE "users"."id" = 11[0m
|
6739
|
+
[1m[35m (5.3ms)[0m commit transaction
|
6740
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6741
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6742
|
+
- signin
|
6743
|
+
', "organisations" = '--- []
|
6744
|
+
' WHERE "users"."id" = 11
|
6745
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
6746
|
+
Redirected to http://www.example-client.com/restricted
|
6747
|
+
Completed 302 Found in 23.6ms (ActiveRecord: 9.4ms)
|
6748
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6749
|
+
Processing by ExampleController#restricted as HTML
|
6750
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6751
|
+
Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6752
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6753
|
+
Processing by ExampleController#restricted as HTML
|
6754
|
+
Authenticating with gds_sso strategy
|
6755
|
+
Completed in 0.2ms
|
6756
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6757
|
+
Started GET "/auth/gds/callback?code=f5cbae037a6fcb5df817ba1efd0149b6b4bb8dcbfa385be7392b63fa1468e5e2&state=28c0e8113f6630b03ba8129a04d9cb967a135143533537d6" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6758
|
+
Processing by AuthenticationsController#callback as HTML
|
6759
|
+
Parameters: {"code"=>"f5cbae037a6fcb5df817ba1efd0149b6b4bb8dcbfa385be7392b63fa1468e5e2", "state"=>"28c0e8113f6630b03ba8129a04d9cb967a135143533537d6"}
|
6760
|
+
Authenticating with gds_sso strategy
|
6761
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6762
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6763
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
6764
|
+
...
|
6765
|
+
', "permissions" = '---
|
6766
|
+
- signin
|
6767
|
+
' WHERE "users"."id" = 11[0m
|
6768
|
+
[1m[35m (10.5ms)[0m commit transaction
|
6769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6770
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6771
|
+
- signin
|
6772
|
+
', "organisations" = '--- []
|
6773
|
+
' WHERE "users"."id" = 11
|
6774
|
+
[1m[36m (8.6ms)[0m [1mcommit transaction[0m
|
6775
|
+
Redirected to http://www.example-client.com/restricted
|
6776
|
+
Completed 302 Found in 32.3ms (ActiveRecord: 19.7ms)
|
6777
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
|
6778
|
+
Processing by ExampleController#restricted as HTML
|
6779
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6780
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
6781
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6782
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6783
|
+
Authenticating with gds_sso strategy
|
6784
|
+
Completed in 0.9ms
|
6785
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6786
|
+
Started GET "/auth/gds/callback?code=db845a35036e072dc94380573da97d77ccfc53fcdee56ec85522aafc858fa697&state=5ad21eef2d1fdf156d367783f02edfde0e539cb1b1fd8856" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6787
|
+
Processing by AuthenticationsController#callback as HTML
|
6788
|
+
Parameters: {"code"=>"db845a35036e072dc94380573da97d77ccfc53fcdee56ec85522aafc858fa697", "state"=>"5ad21eef2d1fdf156d367783f02edfde0e539cb1b1fd8856"}
|
6789
|
+
Authenticating with gds_sso strategy
|
6790
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6791
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6792
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
6793
|
+
...
|
6794
|
+
', "permissions" = '---
|
6795
|
+
- signin
|
6796
|
+
' WHERE "users"."id" = 11[0m
|
6797
|
+
[1m[35m (15.5ms)[0m commit transaction
|
6798
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6799
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6800
|
+
- signin
|
6801
|
+
', "organisations" = '--- []
|
6802
|
+
' WHERE "users"."id" = 11
|
6803
|
+
[1m[36m (10.3ms)[0m [1mcommit transaction[0m
|
6804
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6805
|
+
Completed 302 Found in 82.1ms (ActiveRecord: 26.8ms)
|
6806
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6807
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6808
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6809
|
+
Completed 200 OK in 3.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
6810
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6811
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6812
|
+
Authenticating with gds_sso strategy
|
6813
|
+
Completed in 0.2ms
|
6814
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6815
|
+
Started GET "/auth/gds/callback?code=46977a946d0f03f12a04708b5be78f8466e950fb5fbb165746b78419eb3bccd1&state=5cf8b2dacc6ad26554852baf90d6c58bf2bf98f06eba17e3" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6816
|
+
Processing by AuthenticationsController#callback as HTML
|
6817
|
+
Parameters: {"code"=>"46977a946d0f03f12a04708b5be78f8466e950fb5fbb165746b78419eb3bccd1", "state"=>"5cf8b2dacc6ad26554852baf90d6c58bf2bf98f06eba17e3"}
|
6818
|
+
Authenticating with gds_sso strategy
|
6819
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6820
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6821
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
6822
|
+
...
|
6823
|
+
', "permissions" = '---
|
6824
|
+
- signin
|
6825
|
+
' WHERE "users"."id" = 11[0m
|
6826
|
+
[1m[35m (12.1ms)[0m commit transaction
|
6827
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6828
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6829
|
+
- signin
|
6830
|
+
', "organisations" = '--- []
|
6831
|
+
' WHERE "users"."id" = 11
|
6832
|
+
[1m[36m (11.0ms)[0m [1mcommit transaction[0m
|
6833
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6834
|
+
Completed 302 Found in 38.8ms (ActiveRecord: 23.9ms)
|
6835
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6836
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6837
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6838
|
+
Completed 200 OK in 3.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6839
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6840
|
+
Processing by ExampleController#restricted as HTML
|
6841
|
+
Authenticating with gds_sso strategy
|
6842
|
+
Completed in 0.3ms
|
6843
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
|
6844
|
+
Started GET "/auth/gds/callback?code=5304ce7d9ae885a8717df3df14a9fcde3edd44aa45a86fcf7d1834631b66ec0c&state=b850762192cd08f0e41161d3d74af73b1467fb89e82b3890" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6845
|
+
Processing by AuthenticationsController#callback as HTML
|
6846
|
+
Parameters: {"code"=>"5304ce7d9ae885a8717df3df14a9fcde3edd44aa45a86fcf7d1834631b66ec0c", "state"=>"b850762192cd08f0e41161d3d74af73b1467fb89e82b3890"}
|
6847
|
+
Authenticating with gds_sso strategy
|
6848
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6849
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6850
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
6851
|
+
...
|
6852
|
+
', "permissions" = '---
|
6853
|
+
- signin
|
6854
|
+
' WHERE "users"."id" = 11[0m
|
6855
|
+
[1m[35m (4.1ms)[0m commit transaction
|
6856
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6857
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
6858
|
+
- signin
|
6859
|
+
', "organisations" = '--- []
|
6860
|
+
' WHERE "users"."id" = 11
|
6861
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
6862
|
+
Redirected to http://www.example-client.com/restricted
|
6863
|
+
Completed 302 Found in 21.5ms (ActiveRecord: 7.5ms)
|
6864
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6865
|
+
Processing by ExampleController#restricted as HTML
|
6866
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6867
|
+
Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6868
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6869
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6870
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6871
|
+
- signin
|
6872
|
+
', "organisations" = '--- []
|
6873
|
+
' WHERE "users"."id" = 11[0m
|
6874
|
+
[1m[35m (3.5ms)[0m commit transaction
|
6875
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6876
|
+
Processing by ExampleController#restricted as HTML
|
6877
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6878
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6879
|
+
Completed 403 Forbidden in 3.5ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
6880
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6881
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6882
|
+
Redirected to http://localhost:4567/users/sign_out
|
6883
|
+
Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
|
6884
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6885
|
+
Processing by ExampleController#restricted as HTML
|
6886
|
+
Authenticating with gds_sso strategy
|
6887
|
+
Completed in 0.2ms
|
6888
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6889
|
+
Started GET "/auth/gds/callback?code=5100a93cc32eab9e5e894b0e3d13b3f1bcb9c7b44152ae5de207f63bd6e31c01&state=f7adfa7f325a9164b7e6967889c9b8b1ccf465d266980501" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6890
|
+
Processing by AuthenticationsController#callback as HTML
|
6891
|
+
Parameters: {"code"=>"5100a93cc32eab9e5e894b0e3d13b3f1bcb9c7b44152ae5de207f63bd6e31c01", "state"=>"f7adfa7f325a9164b7e6967889c9b8b1ccf465d266980501"}
|
6892
|
+
Authenticating with gds_sso strategy
|
6893
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6895
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "organisations" = '---
|
6896
|
+
...
|
6897
|
+
', "permissions" = '---
|
6898
|
+
- signin
|
6899
|
+
' WHERE "users"."id" = 11
|
6900
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
6901
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6902
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6903
|
+
- signin
|
6904
|
+
', "organisations" = '--- []
|
6905
|
+
' WHERE "users"."id" = 11[0m
|
6906
|
+
[1m[35m (2.7ms)[0m commit transaction
|
6907
|
+
Redirected to http://www.example-client.com/restricted
|
6908
|
+
Completed 302 Found in 19.6ms (ActiveRecord: 7.2ms)
|
6909
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6910
|
+
Processing by ExampleController#restricted as HTML
|
6911
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6912
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6913
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6914
|
+
Processing by ExampleController#restricted as HTML
|
6915
|
+
Authenticating with gds_sso strategy
|
6916
|
+
Completed in 0.3ms
|
6917
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
|
6918
|
+
Started GET "/auth/gds/callback?code=ad65be581d1ab8a638a5057bd5f7a70cbc31e7205f9091a35890c32474eb2ff7&state=ccd2d6677c3bcd6f57a37131b6ef0383d6a2d3ef1ab3bfef" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6919
|
+
Processing by AuthenticationsController#callback as HTML
|
6920
|
+
Parameters: {"code"=>"ad65be581d1ab8a638a5057bd5f7a70cbc31e7205f9091a35890c32474eb2ff7", "state"=>"ccd2d6677c3bcd6f57a37131b6ef0383d6a2d3ef1ab3bfef"}
|
6921
|
+
Authenticating with gds_sso strategy
|
6922
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6924
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "organisations" = '---
|
6925
|
+
...
|
6926
|
+
', "permissions" = '---
|
6927
|
+
- signin
|
6928
|
+
' WHERE "users"."id" = 11
|
6929
|
+
[1m[36m (12.1ms)[0m [1mcommit transaction[0m
|
6930
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6931
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6932
|
+
- signin
|
6933
|
+
', "organisations" = '--- []
|
6934
|
+
' WHERE "users"."id" = 11[0m
|
6935
|
+
[1m[35m (21.4ms)[0m commit transaction
|
6936
|
+
Redirected to http://www.example-client.com/restricted
|
6937
|
+
Completed 302 Found in 49.0ms (ActiveRecord: 34.3ms)
|
6938
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6939
|
+
Processing by ExampleController#restricted as HTML
|
6940
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6941
|
+
Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6942
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
|
6943
|
+
Processing by ExampleController#restricted as HTML
|
6944
|
+
Authenticating with gds_sso strategy
|
6945
|
+
Completed in 0.3ms
|
6946
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
|
6947
|
+
Started GET "/auth/gds/callback?code=905ab228cd06f1d95893d1181cc714485e08ad20487804643a9d0d2b76c0982f&state=df4a40e9724487352946017ef3f2d81ec8f97ef3afa0cf8e" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
|
6948
|
+
Processing by AuthenticationsController#callback as HTML
|
6949
|
+
Parameters: {"code"=>"905ab228cd06f1d95893d1181cc714485e08ad20487804643a9d0d2b76c0982f", "state"=>"df4a40e9724487352946017ef3f2d81ec8f97ef3afa0cf8e"}
|
6950
|
+
Authenticating with gds_sso strategy
|
6951
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6953
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "organisations" = '---
|
6954
|
+
...
|
6955
|
+
', "permissions" = '---
|
6956
|
+
- signin
|
6957
|
+
' WHERE "users"."id" = 11
|
6958
|
+
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
6959
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6960
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6961
|
+
- signin
|
6962
|
+
', "organisations" = '--- []
|
6963
|
+
' WHERE "users"."id" = 11[0m
|
6964
|
+
[1m[35m (3.6ms)[0m commit transaction
|
6965
|
+
Redirected to http://www.example-client.com/restricted
|
6966
|
+
Completed 302 Found in 22.1ms (ActiveRecord: 9.8ms)
|
6967
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
|
6968
|
+
Processing by ExampleController#restricted as HTML
|
6969
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6970
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
6971
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6972
|
+
Processing by ExampleController#restricted as HTML
|
6973
|
+
Authenticating with gds_sso strategy
|
6974
|
+
Completed in 0.3ms
|
6975
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6976
|
+
Started GET "/auth/gds/callback?code=2ae6829fccff7ea7f3bcb1d30ac4a3184e863b28f841574197ce2c6be87ef384&state=aae51d3ec744ed1b721da7e44270017e30deb4470dba4ec5" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6977
|
+
Processing by AuthenticationsController#callback as HTML
|
6978
|
+
Parameters: {"code"=>"2ae6829fccff7ea7f3bcb1d30ac4a3184e863b28f841574197ce2c6be87ef384", "state"=>"aae51d3ec744ed1b721da7e44270017e30deb4470dba4ec5"}
|
6979
|
+
Authenticating with gds_sso strategy
|
6980
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6982
|
+
[1m[35m (0.5ms)[0m UPDATE "users" SET "organisations" = '---
|
6983
|
+
...
|
6984
|
+
', "permissions" = '---
|
6985
|
+
- signin
|
6986
|
+
' WHERE "users"."id" = 11
|
6987
|
+
[1m[36m (14.0ms)[0m [1mcommit transaction[0m
|
6988
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6989
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6990
|
+
- signin
|
6991
|
+
', "organisations" = '--- []
|
6992
|
+
' WHERE "users"."id" = 11[0m
|
6993
|
+
[1m[35m (11.5ms)[0m commit transaction
|
6994
|
+
Redirected to http://www.example-client.com/restricted
|
6995
|
+
Completed 302 Found in 104.1ms (ActiveRecord: 26.6ms)
|
6996
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
6997
|
+
Processing by ExampleController#restricted as HTML
|
6998
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6999
|
+
Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
7000
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:30:41 +0000
|
7001
|
+
Processing by ExampleController#restricted as HTML
|
7002
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7003
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7004
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
|
7005
|
+
Processing by ExampleController#restricted as JSON
|
7006
|
+
Authenticating with gds_bearer_token strategy
|
7007
|
+
Completed in 9.5ms
|
7008
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:42 +0000
|
7009
|
+
Processing by ExampleController#restricted as JSON
|
7010
|
+
Authenticating with gds_bearer_token strategy
|
7011
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7013
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "organisations" = '---
|
7014
|
+
...
|
7015
|
+
', "permissions" = '---
|
7016
|
+
- signin
|
7017
|
+
' WHERE "users"."id" = 11[0m
|
7018
|
+
[1m[35m (4.3ms)[0m commit transaction
|
7019
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7020
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
7021
|
+
- signin
|
7022
|
+
', "organisations" = '--- []
|
7023
|
+
' WHERE "users"."id" = 11
|
7024
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
7025
|
+
Completed 200 OK in 93.0ms (Views: 0.3ms | ActiveRecord: 8.5ms)
|
7026
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:42 +0000
|
7027
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
7028
|
+
Authenticating with gds_bearer_token strategy
|
7029
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7030
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7031
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "organisations" = '---
|
7032
|
+
...
|
7033
|
+
', "permissions" = '---
|
7034
|
+
- signin
|
7035
|
+
' WHERE "users"."id" = 11
|
7036
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
7037
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7038
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7039
|
+
- signin
|
7040
|
+
', "organisations" = '--- []
|
7041
|
+
' WHERE "users"."id" = 11[0m
|
7042
|
+
[1m[35m (3.0ms)[0m commit transaction
|
7043
|
+
Completed 200 OK in 64.6ms (Views: 0.3ms | ActiveRecord: 8.1ms)
|
7044
|
+
Connecting to database specified by database.yml
|
7045
|
+
[1m[36m (9.4ms)[0m [1mselect sqlite_version(*)[0m
|
7046
|
+
[1m[35m (18.4ms)[0m DROP TABLE "users"
|
7047
|
+
[1m[36m (22.4ms)[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" varchar(255)) [0m
|
7048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7049
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33738"]]
|
7050
|
+
[1m[35m (15.6ms)[0m commit transaction
|
7051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7052
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38282"]]
|
7053
|
+
[1m[36m (36.1ms)[0m [1mcommit transaction[0m
|
7054
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7055
|
+
Processing by Api::UserController#update as HTML
|
7056
|
+
Parameters: {"uid"=>"a1s2d33738"}
|
7057
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
7058
|
+
Completed 403 Forbidden in 6.5ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
7059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7060
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37717"]]
|
7061
|
+
[1m[35m (30.0ms)[0m commit transaction
|
7062
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7063
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35830"]]
|
7064
|
+
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
|
7065
|
+
Processing by Api::UserController#update as HTML
|
7066
|
+
Parameters: {"uid"=>"a1s2d37717"}
|
7067
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37717' LIMIT 1
|
7068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7069
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
7070
|
+
- signin
|
7071
|
+
- new permission
|
7072
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
7073
|
+
[1m[36m (49.3ms)[0m [1mcommit transaction[0m
|
7074
|
+
Completed 200 OK in 68.0ms (ActiveRecord: 49.7ms)
|
7075
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
7076
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7077
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37217"]]
|
7078
|
+
[1m[36m (17.6ms)[0m [1mcommit transaction[0m
|
7079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7080
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38341"]]
|
7081
|
+
[1m[35m (13.0ms)[0m commit transaction
|
7082
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7083
|
+
Processing by Api::UserController#reauth as HTML
|
7084
|
+
Parameters: {"uid"=>"a1s2d37217"}
|
7085
|
+
Completed 403 Forbidden in 47.2ms (Views: 46.5ms | ActiveRecord: 0.0ms)
|
7086
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7087
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32075"]]
|
7088
|
+
[1m[36m (12.9ms)[0m [1mcommit transaction[0m
|
7089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7090
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37620"]]
|
7091
|
+
[1m[35m (13.2ms)[0m commit transaction
|
7092
|
+
Processing by Api::UserController#reauth as HTML
|
7093
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
7094
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
7095
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
7096
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7097
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32086"]]
|
7098
|
+
[1m[35m (19.1ms)[0m commit transaction
|
7099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7100
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37436"]]
|
7101
|
+
[1m[36m (9.8ms)[0m [1mcommit transaction[0m
|
7102
|
+
Processing by Api::UserController#reauth as HTML
|
7103
|
+
Parameters: {"uid"=>"a1s2d32086"}
|
7104
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32086' LIMIT 1
|
7105
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7106
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7107
|
+
- signin
|
7108
|
+
' WHERE "users"."id" = 9
|
7109
|
+
[1m[36m (11.0ms)[0m [1mcommit transaction[0m
|
7110
|
+
Completed 200 OK in 38.7ms (ActiveRecord: 11.5ms)
|
7111
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
7112
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
|
7113
|
+
Processing by ExampleController#index as HTML
|
7114
|
+
Completed 200 OK in 1.7ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
7115
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
|
7116
|
+
Processing by ExampleController#restricted as HTML
|
7117
|
+
Authenticating with gds_sso strategy
|
7118
|
+
Completed in 2.5ms
|
7119
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
|
7120
|
+
Started GET "/auth/gds/callback?code=da384a83b3a6568061805b1947fb87be96e8d711b420bc3b3c23b37dacccc0e8&state=8b6cacbd94812266a8bb4f3bb07fdeb88ea5716f6b41632f" for 127.0.0.1 at 2013-11-04 14:23:22 +0000
|
7121
|
+
Processing by AuthenticationsController#callback as HTML
|
7122
|
+
Parameters: {"code"=>"da384a83b3a6568061805b1947fb87be96e8d711b420bc3b3c23b37dacccc0e8", "state"=>"8b6cacbd94812266a8bb4f3bb07fdeb88ea5716f6b41632f"}
|
7123
|
+
Authenticating with gds_sso strategy
|
7124
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7126
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
7127
|
+
[1m[35m (14.0ms)[0m commit transaction
|
7128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7129
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7130
|
+
- signin
|
7131
|
+
' WHERE "users"."id" = 11
|
7132
|
+
[1m[36m (32.6ms)[0m [1mcommit transaction[0m
|
7133
|
+
Redirected to http://www.example-client.com/restricted
|
7134
|
+
Completed 302 Found in 53.4ms (ActiveRecord: 47.3ms)
|
7135
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7136
|
+
Processing by ExampleController#restricted as HTML
|
7137
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7138
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7139
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7140
|
+
Processing by ExampleController#restricted as HTML
|
7141
|
+
Authenticating with gds_sso strategy
|
7142
|
+
Completed in 0.3ms
|
7143
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7144
|
+
Started GET "/auth/gds/callback?code=247818afb618c42c890acf505dbc83052d563755822ae81615b282b13ed33f4b&state=c31cc2876a5a4a9d57be33616d0e0493868a5f3d62913c5c" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7145
|
+
Processing by AuthenticationsController#callback as HTML
|
7146
|
+
Parameters: {"code"=>"247818afb618c42c890acf505dbc83052d563755822ae81615b282b13ed33f4b", "state"=>"c31cc2876a5a4a9d57be33616d0e0493868a5f3d62913c5c"}
|
7147
|
+
Authenticating with gds_sso strategy
|
7148
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7150
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7151
|
+
- signin
|
7152
|
+
' WHERE "users"."id" = 11[0m
|
7153
|
+
[1m[35m (20.3ms)[0m commit transaction
|
7154
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7155
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7156
|
+
- signin
|
7157
|
+
' WHERE "users"."id" = 11
|
7158
|
+
[1m[36m (28.2ms)[0m [1mcommit transaction[0m
|
7159
|
+
Redirected to http://www.example-client.com/restricted
|
7160
|
+
Completed 302 Found in 56.7ms (ActiveRecord: 49.0ms)
|
7161
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7162
|
+
Processing by ExampleController#restricted as HTML
|
7163
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7164
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
7165
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7166
|
+
Processing by ExampleController#restricted as HTML
|
7167
|
+
Authenticating with gds_sso strategy
|
7168
|
+
Completed in 0.2ms
|
7169
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
|
7170
|
+
Started GET "/auth/gds/callback?code=daca9d6df42699141cc6665c2458b028c34abc52a7e2dcae192d0d7cc3158e70&state=88ba47da9f4b0e4465d99f06725693a78355167162261edd" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7171
|
+
Processing by AuthenticationsController#callback as HTML
|
7172
|
+
Parameters: {"code"=>"daca9d6df42699141cc6665c2458b028c34abc52a7e2dcae192d0d7cc3158e70", "state"=>"88ba47da9f4b0e4465d99f06725693a78355167162261edd"}
|
7173
|
+
Authenticating with gds_sso strategy
|
7174
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7176
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7177
|
+
- signin
|
7178
|
+
' WHERE "users"."id" = 11[0m
|
7179
|
+
[1m[35m (9.5ms)[0m commit transaction
|
7180
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7181
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7182
|
+
- signin
|
7183
|
+
' WHERE "users"."id" = 11
|
7184
|
+
[1m[36m (4.1ms)[0m [1mcommit transaction[0m
|
7185
|
+
Redirected to http://www.example-client.com/restricted
|
7186
|
+
Completed 302 Found in 21.0ms (ActiveRecord: 14.1ms)
|
7187
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7188
|
+
Processing by ExampleController#restricted as HTML
|
7189
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7190
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7191
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7192
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7193
|
+
Authenticating with gds_sso strategy
|
7194
|
+
Completed in 0.6ms
|
7195
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7196
|
+
Started GET "/auth/gds/callback?code=864332b280784a1ef4ed023971a5c8a1dd779eec99d413c5a9aaf761a84be0d9&state=7ea9cf955c5b3dfc549eb228c874a65d58d8d6d737d3ad7f" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7197
|
+
Processing by AuthenticationsController#callback as HTML
|
7198
|
+
Parameters: {"code"=>"864332b280784a1ef4ed023971a5c8a1dd779eec99d413c5a9aaf761a84be0d9", "state"=>"7ea9cf955c5b3dfc549eb228c874a65d58d8d6d737d3ad7f"}
|
7199
|
+
Authenticating with gds_sso strategy
|
7200
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7202
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7203
|
+
- signin
|
7204
|
+
' WHERE "users"."id" = 11[0m
|
7205
|
+
[1m[35m (6.0ms)[0m commit transaction
|
7206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7207
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7208
|
+
- signin
|
7209
|
+
' WHERE "users"."id" = 11
|
7210
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
7211
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7212
|
+
Completed 302 Found in 18.7ms (ActiveRecord: 11.3ms)
|
7213
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7214
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7215
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7216
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7217
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7218
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7219
|
+
Authenticating with gds_sso strategy
|
7220
|
+
Completed in 0.1ms
|
7221
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7222
|
+
Started GET "/auth/gds/callback?code=9951b87914ada58bdd252f5f14a0efbdae3827be977054f5110f4a12445fa3c0&state=6f069f6bbc4e38517ae69ae5bfbe1c4ade501f221ff552b0" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7223
|
+
Processing by AuthenticationsController#callback as HTML
|
7224
|
+
Parameters: {"code"=>"9951b87914ada58bdd252f5f14a0efbdae3827be977054f5110f4a12445fa3c0", "state"=>"6f069f6bbc4e38517ae69ae5bfbe1c4ade501f221ff552b0"}
|
7225
|
+
Authenticating with gds_sso strategy
|
7226
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7228
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7229
|
+
- signin
|
7230
|
+
' WHERE "users"."id" = 11[0m
|
7231
|
+
[1m[35m (5.2ms)[0m commit transaction
|
7232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7233
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7234
|
+
- signin
|
7235
|
+
' WHERE "users"."id" = 11
|
7236
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
7237
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7238
|
+
Completed 302 Found in 16.1ms (ActiveRecord: 9.1ms)
|
7239
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7240
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7241
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7242
|
+
Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7243
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7244
|
+
Processing by ExampleController#restricted as HTML
|
7245
|
+
Authenticating with gds_sso strategy
|
7246
|
+
Completed in 0.4ms
|
7247
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
|
7248
|
+
Started GET "/auth/gds/callback?code=210a8e074512d55eee47fea15f4b6c612256fec897b90c1a30ef75dc965baa35&state=8fb1a5502e6fe5c4f6787f234c1d2b0eae7712ed0c0ae778" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7249
|
+
Processing by AuthenticationsController#callback as HTML
|
7250
|
+
Parameters: {"code"=>"210a8e074512d55eee47fea15f4b6c612256fec897b90c1a30ef75dc965baa35", "state"=>"8fb1a5502e6fe5c4f6787f234c1d2b0eae7712ed0c0ae778"}
|
7251
|
+
Authenticating with gds_sso strategy
|
7252
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7253
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7254
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7255
|
+
- signin
|
7256
|
+
' WHERE "users"."id" = 11[0m
|
7257
|
+
[1m[35m (28.5ms)[0m commit transaction
|
7258
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7259
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7260
|
+
- signin
|
7261
|
+
' WHERE "users"."id" = 11
|
7262
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
7263
|
+
Redirected to http://www.example-client.com/restricted
|
7264
|
+
Completed 302 Found in 39.4ms (ActiveRecord: 31.9ms)
|
7265
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7266
|
+
Processing by ExampleController#restricted as HTML
|
7267
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7268
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
7269
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7270
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7271
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7272
|
+
- signin
|
7273
|
+
' WHERE "users"."id" = 11[0m
|
7274
|
+
[1m[35m (3.4ms)[0m commit transaction
|
7275
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7276
|
+
Processing by ExampleController#restricted as HTML
|
7277
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7278
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
7279
|
+
Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
7280
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7281
|
+
Processing by AuthenticationsController#sign_out as HTML
|
7282
|
+
Redirected to http://localhost:4567/users/sign_out
|
7283
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
7284
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7285
|
+
Processing by ExampleController#restricted as HTML
|
7286
|
+
Authenticating with gds_sso strategy
|
7287
|
+
Completed in 0.3ms
|
7288
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7289
|
+
Started GET "/auth/gds/callback?code=2761bd4479a57e1217615dfd4c28e36cde7aa992997e995c9bda84ada2e6cd6f&state=4a6dd02c3b775097004818347ab9500ff47899d4bb0488a7" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7290
|
+
Processing by AuthenticationsController#callback as HTML
|
7291
|
+
Parameters: {"code"=>"2761bd4479a57e1217615dfd4c28e36cde7aa992997e995c9bda84ada2e6cd6f", "state"=>"4a6dd02c3b775097004818347ab9500ff47899d4bb0488a7"}
|
7292
|
+
Authenticating with gds_sso strategy
|
7293
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7295
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7296
|
+
- signin
|
7297
|
+
' WHERE "users"."id" = 11
|
7298
|
+
[1m[36m (10.2ms)[0m [1mcommit transaction[0m
|
7299
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7300
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7301
|
+
- signin
|
7302
|
+
' WHERE "users"."id" = 11[0m
|
7303
|
+
[1m[35m (9.2ms)[0m commit transaction
|
7304
|
+
Redirected to http://www.example-client.com/restricted
|
7305
|
+
Completed 302 Found in 26.8ms (ActiveRecord: 20.0ms)
|
7306
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7307
|
+
Processing by ExampleController#restricted as HTML
|
7308
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7309
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7310
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7311
|
+
Processing by ExampleController#restricted as HTML
|
7312
|
+
Authenticating with gds_sso strategy
|
7313
|
+
Completed in 0.2ms
|
7314
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
|
7315
|
+
Started GET "/auth/gds/callback?code=21b7e3cae3a2a8b24fdec3280ffc7327db7936ada9cceb3c7e5c4f4822efe121&state=96bfe5894629a149f4e37707ed7375e46ecd945783011233" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7316
|
+
Processing by AuthenticationsController#callback as HTML
|
7317
|
+
Parameters: {"code"=>"21b7e3cae3a2a8b24fdec3280ffc7327db7936ada9cceb3c7e5c4f4822efe121", "state"=>"96bfe5894629a149f4e37707ed7375e46ecd945783011233"}
|
7318
|
+
Authenticating with gds_sso strategy
|
7319
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7321
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7322
|
+
- signin
|
7323
|
+
' WHERE "users"."id" = 11
|
7324
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
7325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7326
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7327
|
+
- signin
|
7328
|
+
' WHERE "users"."id" = 11[0m
|
7329
|
+
[1m[35m (3.5ms)[0m commit transaction
|
7330
|
+
Redirected to http://www.example-client.com/restricted
|
7331
|
+
Completed 302 Found in 15.5ms (ActiveRecord: 8.1ms)
|
7332
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7333
|
+
Processing by ExampleController#restricted as HTML
|
7334
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7335
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7336
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
|
7337
|
+
Processing by ExampleController#restricted as HTML
|
7338
|
+
Authenticating with gds_sso strategy
|
7339
|
+
Completed in 0.2ms
|
7340
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
|
7341
|
+
Started GET "/auth/gds/callback?code=b44b70a671e88bd1373c5534014182b88e68f7934ca2c3cda825e0d2d98ba9db&state=6cfd3f8babc973e1d0a71334ab45cf033260745449163083" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
|
7342
|
+
Processing by AuthenticationsController#callback as HTML
|
7343
|
+
Parameters: {"code"=>"b44b70a671e88bd1373c5534014182b88e68f7934ca2c3cda825e0d2d98ba9db", "state"=>"6cfd3f8babc973e1d0a71334ab45cf033260745449163083"}
|
7344
|
+
Authenticating with gds_sso strategy
|
7345
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7347
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7348
|
+
- signin
|
7349
|
+
' WHERE "users"."id" = 11
|
7350
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
7351
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7352
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7353
|
+
- signin
|
7354
|
+
' WHERE "users"."id" = 11[0m
|
7355
|
+
[1m[35m (3.5ms)[0m commit transaction
|
7356
|
+
Redirected to http://www.example-client.com/restricted
|
7357
|
+
Completed 302 Found in 15.6ms (ActiveRecord: 8.9ms)
|
7358
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
|
7359
|
+
Processing by ExampleController#restricted as HTML
|
7360
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7361
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7362
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7363
|
+
Processing by ExampleController#restricted as HTML
|
7364
|
+
Authenticating with gds_sso strategy
|
7365
|
+
Completed in 0.2ms
|
7366
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7367
|
+
Started GET "/auth/gds/callback?code=ab5ba2021af36a6305da1ad78d21b1b82d6d2dcfe7eb1379305c6ea87d0b1a01&state=07e9222d213b0674a99b9fcc0fb181e92617cda41884df7b" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7368
|
+
Processing by AuthenticationsController#callback as HTML
|
7369
|
+
Parameters: {"code"=>"ab5ba2021af36a6305da1ad78d21b1b82d6d2dcfe7eb1379305c6ea87d0b1a01", "state"=>"07e9222d213b0674a99b9fcc0fb181e92617cda41884df7b"}
|
7370
|
+
Authenticating with gds_sso strategy
|
7371
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7372
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7373
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7374
|
+
- signin
|
7375
|
+
' WHERE "users"."id" = 11
|
7376
|
+
[1m[36m (12.9ms)[0m [1mcommit transaction[0m
|
7377
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7378
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7379
|
+
- signin
|
7380
|
+
' WHERE "users"."id" = 11[0m
|
7381
|
+
[1m[35m (9.1ms)[0m commit transaction
|
7382
|
+
Redirected to http://www.example-client.com/restricted
|
7383
|
+
Completed 302 Found in 30.0ms (ActiveRecord: 22.5ms)
|
7384
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7385
|
+
Processing by ExampleController#restricted as HTML
|
7386
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7387
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
7388
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:18:26 +0000
|
7389
|
+
Processing by ExampleController#restricted as HTML
|
7390
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7391
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7392
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7393
|
+
Processing by ExampleController#restricted as JSON
|
7394
|
+
Authenticating with gds_bearer_token strategy
|
7395
|
+
Completed in 6.7ms
|
7396
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
|
7397
|
+
Processing by ExampleController#restricted as JSON
|
7398
|
+
Authenticating with gds_bearer_token strategy
|
7399
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7400
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7401
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7402
|
+
- signin
|
7403
|
+
' WHERE "users"."id" = 11[0m
|
7404
|
+
[1m[35m (5.1ms)[0m commit transaction
|
7405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7406
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7407
|
+
- signin
|
7408
|
+
' WHERE "users"."id" = 11
|
7409
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
7410
|
+
Completed 200 OK in 39.0ms (Views: 0.2ms | ActiveRecord: 9.0ms)
|
7411
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:27 +0000
|
7412
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
7413
|
+
Authenticating with gds_bearer_token strategy
|
7414
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7415
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7416
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7417
|
+
- signin
|
7418
|
+
' WHERE "users"."id" = 11
|
7419
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
7420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7421
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7422
|
+
- signin
|
7423
|
+
' WHERE "users"."id" = 11[0m
|
7424
|
+
[1m[35m (42.8ms)[0m commit transaction
|
7425
|
+
Completed 200 OK in 80.4ms (Views: 0.4ms | ActiveRecord: 47.7ms)
|
7426
|
+
Connecting to database specified by database.yml
|
7427
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
7428
|
+
[1m[35m (18.3ms)[0m DROP TABLE "users"
|
7429
|
+
[1m[36m (21.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, "organisation" varchar(255)) [0m
|
7430
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7431
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39346"]]
|
7432
|
+
[1m[35m (20.3ms)[0m commit transaction
|
7433
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7434
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37064"]]
|
7435
|
+
[1m[36m (16.2ms)[0m [1mcommit transaction[0m
|
7436
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7437
|
+
Processing by Api::UserController#update as HTML
|
7438
|
+
Parameters: {"uid"=>"a1s2d39346"}
|
7439
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
7440
|
+
Completed 403 Forbidden in 16.5ms (Views: 15.8ms | ActiveRecord: 0.0ms)
|
7441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7442
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38640"]]
|
7443
|
+
[1m[35m (17.6ms)[0m commit transaction
|
7444
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7445
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3740"]]
|
7446
|
+
[1m[36m (38.9ms)[0m [1mcommit transaction[0m
|
7447
|
+
Processing by Api::UserController#update as HTML
|
7448
|
+
Parameters: {"uid"=>"a1s2d38640"}
|
7449
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38640' LIMIT 1
|
7450
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7451
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
7452
|
+
- signin
|
7453
|
+
- new permission
|
7454
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
7455
|
+
[1m[36m (21.4ms)[0m [1mcommit transaction[0m
|
7456
|
+
Completed 200 OK in 29.8ms (ActiveRecord: 21.9ms)
|
7457
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
7458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7459
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39093"]]
|
7460
|
+
[1m[36m (49.8ms)[0m [1mcommit transaction[0m
|
7461
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7462
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34529"]]
|
7463
|
+
[1m[35m (16.8ms)[0m commit transaction
|
7464
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7465
|
+
Processing by Api::UserController#reauth as HTML
|
7466
|
+
Parameters: {"uid"=>"a1s2d39093"}
|
7467
|
+
Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
7468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7469
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34274"]]
|
7470
|
+
[1m[36m (19.6ms)[0m [1mcommit transaction[0m
|
7471
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7472
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37696"]]
|
7473
|
+
[1m[35m (11.2ms)[0m commit transaction
|
7474
|
+
Processing by Api::UserController#reauth as HTML
|
7475
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
7476
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
7477
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
7478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7479
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3396"]]
|
7480
|
+
[1m[35m (16.4ms)[0m commit transaction
|
7481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7482
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32083"]]
|
7483
|
+
[1m[36m (42.6ms)[0m [1mcommit transaction[0m
|
7484
|
+
Processing by Api::UserController#reauth as HTML
|
7485
|
+
Parameters: {"uid"=>"a1s2d3396"}
|
7486
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3396' LIMIT 1
|
7487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7488
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7489
|
+
- signin
|
7490
|
+
' WHERE "users"."id" = 9
|
7491
|
+
[1m[36m (11.8ms)[0m [1mcommit transaction[0m
|
7492
|
+
Completed 200 OK in 16.2ms (ActiveRecord: 12.2ms)
|
7493
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
7494
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 14:24:12 +0000
|
7495
|
+
Processing by ExampleController#index as HTML
|
7496
|
+
Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
7497
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:12 +0000
|
7498
|
+
Processing by ExampleController#restricted as HTML
|
7499
|
+
Authenticating with gds_sso strategy
|
7500
|
+
Completed in 2.4ms
|
7501
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:13 +0000
|
7502
|
+
Started GET "/auth/gds/callback?code=219c381b0dd7dcc72d8b94f4953d71fad898e19ae9d90e5301b3c61d00257e61&state=e03254afa893379eba7af9b7067aa707d54f5c724bb3a717" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7503
|
+
Processing by AuthenticationsController#callback as HTML
|
7504
|
+
Parameters: {"code"=>"219c381b0dd7dcc72d8b94f4953d71fad898e19ae9d90e5301b3c61d00257e61", "state"=>"e03254afa893379eba7af9b7067aa707d54f5c724bb3a717"}
|
7505
|
+
Authenticating with gds_sso strategy
|
7506
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7508
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
7509
|
+
[1m[35m (11.9ms)[0m commit transaction
|
7510
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7511
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7512
|
+
- signin
|
7513
|
+
' WHERE "users"."id" = 11
|
7514
|
+
[1m[36m (7.2ms)[0m [1mcommit transaction[0m
|
7515
|
+
Redirected to http://www.example-client.com/restricted
|
7516
|
+
Completed 302 Found in 25.8ms (ActiveRecord: 19.7ms)
|
7517
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7518
|
+
Processing by ExampleController#restricted as HTML
|
7519
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7520
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7521
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7522
|
+
Processing by ExampleController#restricted as HTML
|
7523
|
+
Authenticating with gds_sso strategy
|
7524
|
+
Completed in 0.4ms
|
7525
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7526
|
+
Started GET "/auth/gds/callback?code=fc2a55617dfe4c3206bbd851a6caf1fa38b6ef9cb2827be0443339deb244460d&state=87b5d514f91bf94f732b54325bcfbc28d1b84052467a8b8b" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7527
|
+
Processing by AuthenticationsController#callback as HTML
|
7528
|
+
Parameters: {"code"=>"fc2a55617dfe4c3206bbd851a6caf1fa38b6ef9cb2827be0443339deb244460d", "state"=>"87b5d514f91bf94f732b54325bcfbc28d1b84052467a8b8b"}
|
7529
|
+
Authenticating with gds_sso strategy
|
7530
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7531
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7532
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7533
|
+
- signin
|
7534
|
+
' WHERE "users"."id" = 11[0m
|
7535
|
+
[1m[35m (6.7ms)[0m commit transaction
|
7536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7537
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7538
|
+
- signin
|
7539
|
+
' WHERE "users"."id" = 11
|
7540
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
7541
|
+
Redirected to http://www.example-client.com/restricted
|
7542
|
+
Completed 302 Found in 18.5ms (ActiveRecord: 11.1ms)
|
7543
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7544
|
+
Processing by ExampleController#restricted as HTML
|
7545
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7546
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7547
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7548
|
+
Processing by ExampleController#restricted as HTML
|
7549
|
+
Authenticating with gds_sso strategy
|
7550
|
+
Completed in 0.1ms
|
7551
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
|
7552
|
+
Started GET "/auth/gds/callback?code=d595be836241aa90bc659966e950280f6e8eee76a8846175d37f34741495e586&state=f9954eae5503c4ab937f1d633a67d8c09dfefb6f332cb9f9" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7553
|
+
Processing by AuthenticationsController#callback as HTML
|
7554
|
+
Parameters: {"code"=>"d595be836241aa90bc659966e950280f6e8eee76a8846175d37f34741495e586", "state"=>"f9954eae5503c4ab937f1d633a67d8c09dfefb6f332cb9f9"}
|
7555
|
+
Authenticating with gds_sso strategy
|
7556
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7557
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7558
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7559
|
+
- signin
|
7560
|
+
' WHERE "users"."id" = 11[0m
|
7561
|
+
[1m[35m (12.5ms)[0m commit transaction
|
7562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7563
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7564
|
+
- signin
|
7565
|
+
' WHERE "users"."id" = 11
|
7566
|
+
[1m[36m (14.5ms)[0m [1mcommit transaction[0m
|
7567
|
+
Redirected to http://www.example-client.com/restricted
|
7568
|
+
Completed 302 Found in 54.1ms (ActiveRecord: 27.6ms)
|
7569
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7570
|
+
Processing by ExampleController#restricted as HTML
|
7571
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7572
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
7573
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7574
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7575
|
+
Authenticating with gds_sso strategy
|
7576
|
+
Completed in 0.6ms
|
7577
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7578
|
+
Started GET "/auth/gds/callback?code=af11401593acbe2836a7f30ed7091a19ac4c452f16cb5d5af6ba6c14d3908aa2&state=11cc137198feb6cc9164d3398a2ae1b8021ef2f202b4e8bf" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7579
|
+
Processing by AuthenticationsController#callback as HTML
|
7580
|
+
Parameters: {"code"=>"af11401593acbe2836a7f30ed7091a19ac4c452f16cb5d5af6ba6c14d3908aa2", "state"=>"11cc137198feb6cc9164d3398a2ae1b8021ef2f202b4e8bf"}
|
7581
|
+
Authenticating with gds_sso strategy
|
7582
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7583
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7584
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7585
|
+
- signin
|
7586
|
+
' WHERE "users"."id" = 11[0m
|
7587
|
+
[1m[35m (6.4ms)[0m commit transaction
|
7588
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7589
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7590
|
+
- signin
|
7591
|
+
' WHERE "users"."id" = 11
|
7592
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
7593
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7594
|
+
Completed 302 Found in 18.2ms (ActiveRecord: 10.9ms)
|
7595
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7596
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7597
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7598
|
+
Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7599
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7600
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7601
|
+
Authenticating with gds_sso strategy
|
7602
|
+
Completed in 0.1ms
|
7603
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
|
7604
|
+
Started GET "/auth/gds/callback?code=f8992fda1490a2052aadd3c723f40012ae84b99a4cd05606421b3c02a4f347b2&state=2f4776f9fdd2dd9b81d40782e9bf450b748b84b20de9d522" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7605
|
+
Processing by AuthenticationsController#callback as HTML
|
7606
|
+
Parameters: {"code"=>"f8992fda1490a2052aadd3c723f40012ae84b99a4cd05606421b3c02a4f347b2", "state"=>"2f4776f9fdd2dd9b81d40782e9bf450b748b84b20de9d522"}
|
7607
|
+
Authenticating with gds_sso strategy
|
7608
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7609
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7610
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7611
|
+
- signin
|
7612
|
+
' WHERE "users"."id" = 11[0m
|
7613
|
+
[1m[35m (5.3ms)[0m commit transaction
|
7614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7615
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7616
|
+
- signin
|
7617
|
+
' WHERE "users"."id" = 11
|
7618
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
7619
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7620
|
+
Completed 302 Found in 16.5ms (ActiveRecord: 9.2ms)
|
7621
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7622
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7623
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7624
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7625
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7626
|
+
Processing by ExampleController#restricted as HTML
|
7627
|
+
Authenticating with gds_sso strategy
|
7628
|
+
Completed in 0.2ms
|
7629
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7630
|
+
Started GET "/auth/gds/callback?code=7689fcb22b3bd01f5de29ec4d599bf80e429ce99dbe5b5456d0d14c42f9a09cd&state=6a5f8bd6163c9a71e94ce109f821ada439a2c203973568bf" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7631
|
+
Processing by AuthenticationsController#callback as HTML
|
7632
|
+
Parameters: {"code"=>"7689fcb22b3bd01f5de29ec4d599bf80e429ce99dbe5b5456d0d14c42f9a09cd", "state"=>"6a5f8bd6163c9a71e94ce109f821ada439a2c203973568bf"}
|
7633
|
+
Authenticating with gds_sso strategy
|
7634
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7636
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7637
|
+
- signin
|
7638
|
+
' WHERE "users"."id" = 11[0m
|
7639
|
+
[1m[35m (5.2ms)[0m commit transaction
|
7640
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7641
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7642
|
+
- signin
|
7643
|
+
' WHERE "users"."id" = 11
|
7644
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
7645
|
+
Redirected to http://www.example-client.com/restricted
|
7646
|
+
Completed 302 Found in 17.2ms (ActiveRecord: 9.6ms)
|
7647
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7648
|
+
Processing by ExampleController#restricted as HTML
|
7649
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7650
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
7651
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7652
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7653
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7654
|
+
- signin
|
7655
|
+
' WHERE "users"."id" = 11[0m
|
7656
|
+
[1m[35m (3.5ms)[0m commit transaction
|
7657
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7658
|
+
Processing by ExampleController#restricted as HTML
|
7659
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7660
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
7661
|
+
Completed 403 Forbidden in 3.1ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
7662
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7663
|
+
Processing by AuthenticationsController#sign_out as HTML
|
7664
|
+
Redirected to http://localhost:4567/users/sign_out
|
7665
|
+
Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
|
7666
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7667
|
+
Processing by ExampleController#restricted as HTML
|
7668
|
+
Authenticating with gds_sso strategy
|
7669
|
+
Completed in 0.2ms
|
7670
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7671
|
+
Started GET "/auth/gds/callback?code=8711c02afc7af6dc96b9571a0dc66013be7218a0d04f1d2715284faa2fe22a8a&state=76202f0df8abf11b94352d0a43d8f155f168ec547137df2d" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7672
|
+
Processing by AuthenticationsController#callback as HTML
|
7673
|
+
Parameters: {"code"=>"8711c02afc7af6dc96b9571a0dc66013be7218a0d04f1d2715284faa2fe22a8a", "state"=>"76202f0df8abf11b94352d0a43d8f155f168ec547137df2d"}
|
7674
|
+
Authenticating with gds_sso strategy
|
7675
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7676
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7677
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7678
|
+
- signin
|
7679
|
+
' WHERE "users"."id" = 11
|
7680
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
7681
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7682
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7683
|
+
- signin
|
7684
|
+
' WHERE "users"."id" = 11[0m
|
7685
|
+
[1m[35m (3.1ms)[0m commit transaction
|
7686
|
+
Redirected to http://www.example-client.com/restricted
|
7687
|
+
Completed 302 Found in 15.6ms (ActiveRecord: 7.9ms)
|
7688
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7689
|
+
Processing by ExampleController#restricted as HTML
|
7690
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7691
|
+
Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
7692
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7693
|
+
Processing by ExampleController#restricted as HTML
|
7694
|
+
Authenticating with gds_sso strategy
|
7695
|
+
Completed in 0.2ms
|
7696
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
|
7697
|
+
Started GET "/auth/gds/callback?code=2b6503f62e0d66f9d1f7170db46b11f1108d935438a6d4adf592ec2188219390&state=31502692a82b4a13360950ce8f8dc19d6e92192a5e4963d2" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7698
|
+
Processing by AuthenticationsController#callback as HTML
|
7699
|
+
Parameters: {"code"=>"2b6503f62e0d66f9d1f7170db46b11f1108d935438a6d4adf592ec2188219390", "state"=>"31502692a82b4a13360950ce8f8dc19d6e92192a5e4963d2"}
|
7700
|
+
Authenticating with gds_sso strategy
|
7701
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7702
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7703
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7704
|
+
- signin
|
7705
|
+
' WHERE "users"."id" = 11
|
7706
|
+
[1m[36m (6.1ms)[0m [1mcommit transaction[0m
|
7707
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7708
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7709
|
+
- signin
|
7710
|
+
' WHERE "users"."id" = 11[0m
|
7711
|
+
[1m[35m (3.5ms)[0m commit transaction
|
7712
|
+
Redirected to http://www.example-client.com/restricted
|
7713
|
+
Completed 302 Found in 17.9ms (ActiveRecord: 10.1ms)
|
7714
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7715
|
+
Processing by ExampleController#restricted as HTML
|
7716
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7717
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7718
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
|
7719
|
+
Processing by ExampleController#restricted as HTML
|
7720
|
+
Authenticating with gds_sso strategy
|
7721
|
+
Completed in 0.2ms
|
7722
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
|
7723
|
+
Started GET "/auth/gds/callback?code=984a073012994ba86b45e73b612d34a30ecea3ec2c6dc3e7a308879077190748&state=7439342f1afd76e73924095793c10d514af78213e2a10d21" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
|
7724
|
+
Processing by AuthenticationsController#callback as HTML
|
7725
|
+
Parameters: {"code"=>"984a073012994ba86b45e73b612d34a30ecea3ec2c6dc3e7a308879077190748", "state"=>"7439342f1afd76e73924095793c10d514af78213e2a10d21"}
|
7726
|
+
Authenticating with gds_sso strategy
|
7727
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7729
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7730
|
+
- signin
|
7731
|
+
' WHERE "users"."id" = 11
|
7732
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
7733
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7734
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7735
|
+
- signin
|
7736
|
+
' WHERE "users"."id" = 11[0m
|
7737
|
+
[1m[35m (3.0ms)[0m commit transaction
|
7738
|
+
Redirected to http://www.example-client.com/restricted
|
7739
|
+
Completed 302 Found in 14.1ms (ActiveRecord: 7.4ms)
|
7740
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
|
7741
|
+
Processing by ExampleController#restricted as HTML
|
7742
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7743
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7744
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7745
|
+
Processing by ExampleController#restricted as HTML
|
7746
|
+
Authenticating with gds_sso strategy
|
7747
|
+
Completed in 0.2ms
|
7748
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7749
|
+
Started GET "/auth/gds/callback?code=c4bfb4d4fe26e2ff3df2e8832fc26cbd9608f0dd53d145b81fd2633307d71911&state=1a557cb732e8355c3c458dae7fe83075a6f588cffe583f0a" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7750
|
+
Processing by AuthenticationsController#callback as HTML
|
7751
|
+
Parameters: {"code"=>"c4bfb4d4fe26e2ff3df2e8832fc26cbd9608f0dd53d145b81fd2633307d71911", "state"=>"1a557cb732e8355c3c458dae7fe83075a6f588cffe583f0a"}
|
7752
|
+
Authenticating with gds_sso strategy
|
7753
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7755
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7756
|
+
- signin
|
7757
|
+
' WHERE "users"."id" = 11
|
7758
|
+
[1m[36m (15.7ms)[0m [1mcommit transaction[0m
|
7759
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7760
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7761
|
+
- signin
|
7762
|
+
' WHERE "users"."id" = 11[0m
|
7763
|
+
[1m[35m (11.0ms)[0m commit transaction
|
7764
|
+
Redirected to http://www.example-client.com/restricted
|
7765
|
+
Completed 302 Found in 35.2ms (ActiveRecord: 27.2ms)
|
7766
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7767
|
+
Processing by ExampleController#restricted as HTML
|
7768
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7769
|
+
Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
7770
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:19:17 +0000
|
7771
|
+
Processing by ExampleController#restricted as HTML
|
7772
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7773
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7774
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7775
|
+
Processing by ExampleController#restricted as JSON
|
7776
|
+
Authenticating with gds_bearer_token strategy
|
7777
|
+
Completed in 7.8ms
|
7778
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
|
7779
|
+
Processing by ExampleController#restricted as JSON
|
7780
|
+
Authenticating with gds_bearer_token strategy
|
7781
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7783
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7784
|
+
- signin
|
7785
|
+
' WHERE "users"."id" = 11[0m
|
7786
|
+
[1m[35m (13.2ms)[0m commit transaction
|
7787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7788
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7789
|
+
- signin
|
7790
|
+
' WHERE "users"."id" = 11
|
7791
|
+
[1m[36m (11.3ms)[0m [1mcommit transaction[0m
|
7792
|
+
Completed 200 OK in 60.2ms (Views: 0.2ms | ActiveRecord: 25.0ms)
|
7793
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:18 +0000
|
7794
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
7795
|
+
Authenticating with gds_bearer_token strategy
|
7796
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7798
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7799
|
+
- signin
|
7800
|
+
' WHERE "users"."id" = 11
|
7801
|
+
[1m[36m (41.2ms)[0m [1mcommit transaction[0m
|
7802
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7803
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7804
|
+
- signin
|
7805
|
+
' WHERE "users"."id" = 11[0m
|
7806
|
+
[1m[35m (2.6ms)[0m commit transaction
|
7807
|
+
Completed 200 OK in 75.8ms (Views: 0.2ms | ActiveRecord: 44.3ms)
|
7808
|
+
Connecting to database specified by database.yml
|
7809
|
+
[1m[36m (0.7ms)[0m [1mselect sqlite_version(*)[0m
|
7810
|
+
[1m[35m (45.6ms)[0m DROP TABLE "users"
|
7811
|
+
[1m[36m (15.5ms)[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" varchar(255)) [0m
|
7812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7813
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33091"]]
|
7814
|
+
[1m[35m (22.5ms)[0m commit transaction
|
7815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7816
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39462"]]
|
7817
|
+
[1m[36m (10.9ms)[0m [1mcommit transaction[0m
|
7818
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7819
|
+
Processing by Api::UserController#update as HTML
|
7820
|
+
Parameters: {"uid"=>"a1s2d33091"}
|
7821
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
|
7822
|
+
Completed 403 Forbidden in 6.3ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
7823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7824
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34490"]]
|
7825
|
+
[1m[35m (52.8ms)[0m commit transaction
|
7826
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7827
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33757"]]
|
7828
|
+
[1m[36m (30.8ms)[0m [1mcommit transaction[0m
|
7829
|
+
Processing by Api::UserController#update as HTML
|
7830
|
+
Parameters: {"uid"=>"a1s2d34490"}
|
7831
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34490' LIMIT 1
|
7832
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7833
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
7834
|
+
- signin
|
7835
|
+
- new permission
|
7836
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
7837
|
+
[1m[36m (11.5ms)[0m [1mcommit transaction[0m
|
7838
|
+
Completed 200 OK in 93.5ms (ActiveRecord: 12.0ms)
|
7839
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
7840
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3369"]]
|
7842
|
+
[1m[36m (21.4ms)[0m [1mcommit transaction[0m
|
7843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7844
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31828"]]
|
7845
|
+
[1m[35m (13.7ms)[0m commit transaction
|
7846
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7847
|
+
Processing by Api::UserController#reauth as HTML
|
7848
|
+
Parameters: {"uid"=>"a1s2d3369"}
|
7849
|
+
Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
7850
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7851
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39171"]]
|
7852
|
+
[1m[36m (13.9ms)[0m [1mcommit transaction[0m
|
7853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7854
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31827"]]
|
7855
|
+
[1m[35m (12.5ms)[0m commit transaction
|
7856
|
+
Processing by Api::UserController#reauth as HTML
|
7857
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
7858
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
7859
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
7860
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7861
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3327"]]
|
7862
|
+
[1m[35m (12.3ms)[0m commit transaction
|
7863
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7864
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3756"]]
|
7865
|
+
[1m[36m (9.5ms)[0m [1mcommit transaction[0m
|
7866
|
+
Processing by Api::UserController#reauth as HTML
|
7867
|
+
Parameters: {"uid"=>"a1s2d3327"}
|
7868
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3327' LIMIT 1
|
7869
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7870
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7871
|
+
- signin
|
7872
|
+
' WHERE "users"."id" = 9
|
7873
|
+
[1m[36m (37.3ms)[0m [1mcommit transaction[0m
|
7874
|
+
Completed 200 OK in 41.8ms (ActiveRecord: 37.7ms)
|
7875
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
7876
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
|
7877
|
+
Processing by ExampleController#index as HTML
|
7878
|
+
Completed 200 OK in 1.7ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
7879
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
|
7880
|
+
Processing by ExampleController#restricted as HTML
|
7881
|
+
Authenticating with gds_sso strategy
|
7882
|
+
Completed in 2.4ms
|
7883
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
|
7884
|
+
Started GET "/auth/gds/callback?code=195daa2c352cfb52b5e2363712f46cb744afb25a89bf2d657af3ff306e17abbb&state=d9c168d36fd143c46ec076ad1f4b7ca9e2665ef3a786a337" for 127.0.0.1 at 2013-11-04 14:25:11 +0000
|
7885
|
+
Processing by AuthenticationsController#callback as HTML
|
7886
|
+
Parameters: {"code"=>"195daa2c352cfb52b5e2363712f46cb744afb25a89bf2d657af3ff306e17abbb", "state"=>"d9c168d36fd143c46ec076ad1f4b7ca9e2665ef3a786a337"}
|
7887
|
+
Authenticating with gds_sso strategy
|
7888
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7889
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7890
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
7891
|
+
[1m[35m (90.3ms)[0m commit transaction
|
7892
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7893
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7894
|
+
- signin
|
7895
|
+
' WHERE "users"."id" = 11
|
7896
|
+
[1m[36m (66.3ms)[0m [1mcommit transaction[0m
|
7897
|
+
Redirected to http://www.example-client.com/restricted
|
7898
|
+
Completed 302 Found in 164.2ms (ActiveRecord: 157.3ms)
|
7899
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:11 +0000
|
7900
|
+
Processing by ExampleController#restricted as HTML
|
7901
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7902
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
7903
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7904
|
+
Processing by ExampleController#restricted as HTML
|
7905
|
+
Authenticating with gds_sso strategy
|
7906
|
+
Completed in 0.3ms
|
7907
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7908
|
+
Started GET "/auth/gds/callback?code=418a64021bdea90743bbc15f4dbde9e85ab3a481abd22cef768bf2e02db454ad&state=07f1b3019b1b460802eef4bcf44f1085ee4ecab541dd0cb7" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7909
|
+
Processing by AuthenticationsController#callback as HTML
|
7910
|
+
Parameters: {"code"=>"418a64021bdea90743bbc15f4dbde9e85ab3a481abd22cef768bf2e02db454ad", "state"=>"07f1b3019b1b460802eef4bcf44f1085ee4ecab541dd0cb7"}
|
7911
|
+
Authenticating with gds_sso strategy
|
7912
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7913
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7914
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7915
|
+
- signin
|
7916
|
+
' WHERE "users"."id" = 11[0m
|
7917
|
+
[1m[35m (14.5ms)[0m commit transaction
|
7918
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7919
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7920
|
+
- signin
|
7921
|
+
' WHERE "users"."id" = 11
|
7922
|
+
[1m[36m (12.8ms)[0m [1mcommit transaction[0m
|
7923
|
+
Redirected to http://www.example-client.com/restricted
|
7924
|
+
Completed 302 Found in 35.3ms (ActiveRecord: 27.8ms)
|
7925
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7926
|
+
Processing by ExampleController#restricted as HTML
|
7927
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7928
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7929
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7930
|
+
Processing by ExampleController#restricted as HTML
|
7931
|
+
Authenticating with gds_sso strategy
|
7932
|
+
Completed in 0.1ms
|
7933
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7934
|
+
Started GET "/auth/gds/callback?code=1b6c2e84095fbf1ee2cf4dc1602b0410927ee58b0d527371522946b9551b5676&state=e51c8ee2d9f788920ff81837b5528c8473cd2a478695af9f" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7935
|
+
Processing by AuthenticationsController#callback as HTML
|
7936
|
+
Parameters: {"code"=>"1b6c2e84095fbf1ee2cf4dc1602b0410927ee58b0d527371522946b9551b5676", "state"=>"e51c8ee2d9f788920ff81837b5528c8473cd2a478695af9f"}
|
7937
|
+
Authenticating with gds_sso strategy
|
7938
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7939
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7940
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7941
|
+
- signin
|
7942
|
+
' WHERE "users"."id" = 11[0m
|
7943
|
+
[1m[35m (9.3ms)[0m commit transaction
|
7944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7945
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7946
|
+
- signin
|
7947
|
+
' WHERE "users"."id" = 11
|
7948
|
+
[1m[36m (10.1ms)[0m [1mcommit transaction[0m
|
7949
|
+
Redirected to http://www.example-client.com/restricted
|
7950
|
+
Completed 302 Found in 26.7ms (ActiveRecord: 19.8ms)
|
7951
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7952
|
+
Processing by ExampleController#restricted as HTML
|
7953
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7954
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7955
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7956
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7957
|
+
Authenticating with gds_sso strategy
|
7958
|
+
Completed in 0.6ms
|
7959
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
|
7960
|
+
Started GET "/auth/gds/callback?code=3ee1805861eccebbf41264289d92581823668d617880925a5603ac8bf56b67b2&state=488a7d046b1c964ede5d26bbb75df49eb27d255f5da2151a" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
7961
|
+
Processing by AuthenticationsController#callback as HTML
|
7962
|
+
Parameters: {"code"=>"3ee1805861eccebbf41264289d92581823668d617880925a5603ac8bf56b67b2", "state"=>"488a7d046b1c964ede5d26bbb75df49eb27d255f5da2151a"}
|
7963
|
+
Authenticating with gds_sso strategy
|
7964
|
+
[1m[36mUser Load (13.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7965
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7966
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7967
|
+
- signin
|
7968
|
+
' WHERE "users"."id" = 11[0m
|
7969
|
+
[1m[35m (8.8ms)[0m commit transaction
|
7970
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7971
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7972
|
+
- signin
|
7973
|
+
' WHERE "users"."id" = 11
|
7974
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
7975
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7976
|
+
Completed 302 Found in 32.4ms (ActiveRecord: 25.1ms)
|
7977
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
7978
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7979
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7980
|
+
Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7981
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
7982
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7983
|
+
Authenticating with gds_sso strategy
|
7984
|
+
Completed in 0.2ms
|
7985
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
7986
|
+
Started GET "/auth/gds/callback?code=7443bac33f0a3d0ac195e532111bce7fe0dba5c155a161cb477ab19d577c1302&state=d7f5341425edae58d9420ac8036c06eeac54debe414665e1" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
7987
|
+
Processing by AuthenticationsController#callback as HTML
|
7988
|
+
Parameters: {"code"=>"7443bac33f0a3d0ac195e532111bce7fe0dba5c155a161cb477ab19d577c1302", "state"=>"d7f5341425edae58d9420ac8036c06eeac54debe414665e1"}
|
7989
|
+
Authenticating with gds_sso strategy
|
7990
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7991
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7992
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7993
|
+
- signin
|
7994
|
+
' WHERE "users"."id" = 11[0m
|
7995
|
+
[1m[35m (4.2ms)[0m commit transaction
|
7996
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7997
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
7998
|
+
- signin
|
7999
|
+
' WHERE "users"."id" = 11
|
8000
|
+
[1m[36m (21.8ms)[0m [1mcommit transaction[0m
|
8001
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
8002
|
+
Completed 302 Found in 33.4ms (ActiveRecord: 26.5ms)
|
8003
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
8004
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8005
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8006
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8007
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
8008
|
+
Processing by ExampleController#restricted as HTML
|
8009
|
+
Authenticating with gds_sso strategy
|
8010
|
+
Completed in 0.2ms
|
8011
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
8012
|
+
Started GET "/auth/gds/callback?code=5b7bc32cc87b781101e06881b833ebf9af55a8ef017be9f0b5abbd763b690fe5&state=4a3d5484b0d9e338c299d20dc972e7ade3d2ad6ae6f84b5b" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
|
8013
|
+
Processing by AuthenticationsController#callback as HTML
|
8014
|
+
Parameters: {"code"=>"5b7bc32cc87b781101e06881b833ebf9af55a8ef017be9f0b5abbd763b690fe5", "state"=>"4a3d5484b0d9e338c299d20dc972e7ade3d2ad6ae6f84b5b"}
|
8015
|
+
Authenticating with gds_sso strategy
|
8016
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8017
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8018
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8019
|
+
- signin
|
8020
|
+
' WHERE "users"."id" = 11[0m
|
8021
|
+
[1m[35m (26.7ms)[0m commit transaction
|
8022
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8023
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
8024
|
+
- signin
|
8025
|
+
' WHERE "users"."id" = 11
|
8026
|
+
[1m[36m (10.7ms)[0m [1mcommit transaction[0m
|
8027
|
+
Redirected to http://www.example-client.com/restricted
|
8028
|
+
Completed 302 Found in 46.2ms (ActiveRecord: 38.0ms)
|
8029
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8030
|
+
Processing by ExampleController#restricted as HTML
|
8031
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8032
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8033
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8034
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8035
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
8036
|
+
- signin
|
8037
|
+
' WHERE "users"."id" = 11[0m
|
8038
|
+
[1m[35m (10.0ms)[0m commit transaction
|
8039
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8040
|
+
Processing by ExampleController#restricted as HTML
|
8041
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8042
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
8043
|
+
Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
8044
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8045
|
+
Processing by AuthenticationsController#sign_out as HTML
|
8046
|
+
Redirected to http://localhost:4567/users/sign_out
|
8047
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
8048
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8049
|
+
Processing by ExampleController#restricted as HTML
|
8050
|
+
Authenticating with gds_sso strategy
|
8051
|
+
Completed in 0.2ms
|
8052
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8053
|
+
Started GET "/auth/gds/callback?code=324df068451e6d2c448759a59b92b39c5f65f48c77e694214d86e867b3cf4659&state=9425790bb76ea873961afb695285d44280f1a1d082a4e0d8" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8054
|
+
Processing by AuthenticationsController#callback as HTML
|
8055
|
+
Parameters: {"code"=>"324df068451e6d2c448759a59b92b39c5f65f48c77e694214d86e867b3cf4659", "state"=>"9425790bb76ea873961afb695285d44280f1a1d082a4e0d8"}
|
8056
|
+
Authenticating with gds_sso strategy
|
8057
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8058
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8059
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8060
|
+
- signin
|
8061
|
+
' WHERE "users"."id" = 11
|
8062
|
+
[1m[36m (14.2ms)[0m [1mcommit transaction[0m
|
8063
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8064
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
8065
|
+
- signin
|
8066
|
+
' WHERE "users"."id" = 11[0m
|
8067
|
+
[1m[35m (7.1ms)[0m commit transaction
|
8068
|
+
Redirected to http://www.example-client.com/restricted
|
8069
|
+
Completed 302 Found in 28.9ms (ActiveRecord: 21.8ms)
|
8070
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8071
|
+
Processing by ExampleController#restricted as HTML
|
8072
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8073
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8074
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8075
|
+
Processing by ExampleController#restricted as HTML
|
8076
|
+
Authenticating with gds_sso strategy
|
8077
|
+
Completed in 0.2ms
|
8078
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8079
|
+
Started GET "/auth/gds/callback?code=ab614bba8928fb33c709a64dbd786af4cbb82c9f0297fdadbfcaf35fb19d6cce&state=b2451a53b894bcac260ca119c19bb213e803a4d50d498216" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
|
8080
|
+
Processing by AuthenticationsController#callback as HTML
|
8081
|
+
Parameters: {"code"=>"ab614bba8928fb33c709a64dbd786af4cbb82c9f0297fdadbfcaf35fb19d6cce", "state"=>"b2451a53b894bcac260ca119c19bb213e803a4d50d498216"}
|
8082
|
+
Authenticating with gds_sso strategy
|
8083
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8084
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8085
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
8086
|
+
- signin
|
8087
|
+
' WHERE "users"."id" = 11
|
8088
|
+
[1m[36m (16.8ms)[0m [1mcommit transaction[0m
|
8089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8090
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8091
|
+
- signin
|
8092
|
+
' WHERE "users"."id" = 11[0m
|
8093
|
+
[1m[35m (13.1ms)[0m commit transaction
|
8094
|
+
Redirected to http://www.example-client.com/restricted
|
8095
|
+
Completed 302 Found in 38.3ms (ActiveRecord: 30.4ms)
|
8096
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8097
|
+
Processing by ExampleController#restricted as HTML
|
8098
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8099
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8100
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
|
8101
|
+
Processing by ExampleController#restricted as HTML
|
8102
|
+
Authenticating with gds_sso strategy
|
8103
|
+
Completed in 0.2ms
|
8104
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
|
8105
|
+
Started GET "/auth/gds/callback?code=7f6f4e8b7a424b719314c333f47355b079d19dd961c2075ebd14ffad3589b697&state=cb4fd205ee3c9793db3faa693e9401de0650eaf7b5eafb2c" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
|
8106
|
+
Processing by AuthenticationsController#callback as HTML
|
8107
|
+
Parameters: {"code"=>"7f6f4e8b7a424b719314c333f47355b079d19dd961c2075ebd14ffad3589b697", "state"=>"cb4fd205ee3c9793db3faa693e9401de0650eaf7b5eafb2c"}
|
8108
|
+
Authenticating with gds_sso strategy
|
8109
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8110
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8111
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8112
|
+
- signin
|
8113
|
+
' WHERE "users"."id" = 11
|
8114
|
+
[1m[36m (25.4ms)[0m [1mcommit transaction[0m
|
8115
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8116
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8117
|
+
- signin
|
8118
|
+
' WHERE "users"."id" = 11[0m
|
8119
|
+
[1m[35m (10.8ms)[0m commit transaction
|
8120
|
+
Redirected to http://www.example-client.com/restricted
|
8121
|
+
Completed 302 Found in 43.5ms (ActiveRecord: 36.8ms)
|
8122
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
|
8123
|
+
Processing by ExampleController#restricted as HTML
|
8124
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8125
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8126
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8127
|
+
Processing by ExampleController#restricted as HTML
|
8128
|
+
Authenticating with gds_sso strategy
|
8129
|
+
Completed in 0.2ms
|
8130
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8131
|
+
Started GET "/auth/gds/callback?code=5daab3185d524d158668bdda6867cba393f7b0c013fb446985a9137e5eb67e92&state=d05cc105225eabc67158e6d525b91c45530f3ebecb4ab7e2" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8132
|
+
Processing by AuthenticationsController#callback as HTML
|
8133
|
+
Parameters: {"code"=>"5daab3185d524d158668bdda6867cba393f7b0c013fb446985a9137e5eb67e92", "state"=>"d05cc105225eabc67158e6d525b91c45530f3ebecb4ab7e2"}
|
8134
|
+
Authenticating with gds_sso strategy
|
8135
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8137
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8138
|
+
- signin
|
8139
|
+
' WHERE "users"."id" = 11
|
8140
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
8141
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8142
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8143
|
+
- signin
|
8144
|
+
' WHERE "users"."id" = 11[0m
|
8145
|
+
[1m[35m (4.5ms)[0m commit transaction
|
8146
|
+
Redirected to http://www.example-client.com/restricted
|
8147
|
+
Completed 302 Found in 17.1ms (ActiveRecord: 9.4ms)
|
8148
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8149
|
+
Processing by ExampleController#restricted as HTML
|
8150
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8151
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8152
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:20:15 +0000
|
8153
|
+
Processing by ExampleController#restricted as HTML
|
8154
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8155
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
8156
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8157
|
+
Processing by ExampleController#restricted as JSON
|
8158
|
+
Authenticating with gds_bearer_token strategy
|
8159
|
+
Completed in 6.5ms
|
8160
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
|
8161
|
+
Processing by ExampleController#restricted as JSON
|
8162
|
+
Authenticating with gds_bearer_token strategy
|
8163
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8164
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8165
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8166
|
+
- signin
|
8167
|
+
' WHERE "users"."id" = 11[0m
|
8168
|
+
[1m[35m (14.6ms)[0m commit transaction
|
8169
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8170
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8171
|
+
- signin
|
8172
|
+
' WHERE "users"."id" = 11
|
8173
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
8174
|
+
Completed 200 OK in 73.9ms (Views: 0.2ms | ActiveRecord: 24.1ms)
|
8175
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:16 +0000
|
8176
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
8177
|
+
Authenticating with gds_bearer_token strategy
|
8178
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8180
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
8181
|
+
- signin
|
8182
|
+
' WHERE "users"."id" = 11
|
8183
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
8184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8185
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8186
|
+
- signin
|
8187
|
+
' WHERE "users"."id" = 11[0m
|
8188
|
+
[1m[35m (13.3ms)[0m commit transaction
|
8189
|
+
Completed 200 OK in 91.9ms (Views: 0.2ms | ActiveRecord: 28.7ms)
|