gds-sso 9.2.2 → 9.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds-sso/user.rb +11 -7
- data/lib/gds-sso/version.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +274 -274
- metadata +3 -3
data/lib/gds-sso/user.rb
CHANGED
@@ -5,8 +5,12 @@ module GDS
|
|
5
5
|
module User
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
+
def self.below_rails_4?
|
9
|
+
Gem.loaded_specs['rails'] && Gem.loaded_specs['rails'].version < Gem::Version.new("4.0")
|
10
|
+
end
|
11
|
+
|
8
12
|
included do
|
9
|
-
if
|
13
|
+
if GDS::SSO::User.below_rails_4? && respond_to?(:attr_accessible)
|
10
14
|
attr_accessible :uid, :email, :name, :permissions, :organisation_slug, as: :oauth
|
11
15
|
end
|
12
16
|
end
|
@@ -40,17 +44,17 @@ module GDS
|
|
40
44
|
user_params = GDS::SSO::User.user_params_from_auth_hash(auth_hash.to_hash)
|
41
45
|
|
42
46
|
if user = self.where(:uid => auth_hash["uid"]).first
|
43
|
-
if
|
44
|
-
user.update_attributes(user_params)
|
45
|
-
else
|
47
|
+
if GDS::SSO::User.below_rails_4?
|
46
48
|
user.update_attributes(user_params, as: :oauth)
|
49
|
+
else
|
50
|
+
user.update_attributes(user_params)
|
47
51
|
end
|
48
52
|
user
|
49
53
|
else # Create a new user.
|
50
|
-
if
|
51
|
-
self.create!(user_params)
|
52
|
-
else
|
54
|
+
if GDS::SSO::User.below_rails_4?
|
53
55
|
self.create!(user_params, as: :oauth)
|
56
|
+
else
|
57
|
+
self.create!(user_params)
|
54
58
|
end
|
55
59
|
end
|
56
60
|
end
|
data/lib/gds-sso/version.rb
CHANGED
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -1,375 +1,375 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
2
|
[1m[36m (1.8ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
-
[1m[35m (
|
4
|
-
[1m[36m (9.
|
5
|
-
[1m[35m (
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
[1m[35m (16.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
|
4
|
+
[1m[36m (9.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5
|
+
[1m[35m (11.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:35 +0000
|
7
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
8
|
+
Authenticating with gds_bearer_token strategy
|
9
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9
10
|
[1m[35m (0.1ms)[0m begin transaction
|
10
|
-
[1m[36mSQL (
|
11
|
-
[1m[35m (
|
12
|
-
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
13
|
-
Processing by Api::UserController#update as HTML
|
14
|
-
Parameters: {"uid"=>"a1s2d3660"}
|
15
|
-
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
|
16
|
-
Completed 403 Forbidden in 38.6ms (Views: 37.8ms | ActiveRecord: 0.0ms)
|
11
|
+
[1m[36mSQL (27.5ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
12
|
+
[1m[35m (15.8ms)[0m commit transaction
|
17
13
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
-
[1m[
|
19
|
-
[1m[36m (5.7ms)[0m [1mcommit transaction[0m
|
20
|
-
[1m[35m (0.0ms)[0m begin transaction
|
21
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39966"]]
|
22
|
-
[1m[35m (8.8ms)[0m commit transaction
|
23
|
-
Processing by Api::UserController#update as HTML
|
24
|
-
Parameters: {"uid"=>"a1s2d32268"}
|
25
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32268' LIMIT 1[0m
|
26
|
-
[1m[35m (0.1ms)[0m begin transaction
|
27
|
-
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
14
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
28
15
|
- signin
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
Completed 200 OK in
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
16
|
+
' WHERE "users"."id" = 1
|
17
|
+
[1m[36m (16.0ms)[0m [1mcommit transaction[0m
|
18
|
+
Rendered text template (0.0ms)
|
19
|
+
Completed 200 OK in 636.7ms (Views: 35.3ms | ActiveRecord: 60.1ms)
|
20
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:36 +0000
|
21
|
+
Processing by ExampleController#restricted as JSON
|
22
|
+
Authenticating with gds_bearer_token strategy
|
23
|
+
Completed in 10.0ms
|
24
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:36 +0000
|
25
|
+
Processing by ExampleController#restricted as JSON
|
26
|
+
Authenticating with gds_bearer_token strategy
|
27
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
37
28
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
-
[1m[
|
39
|
-
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
40
|
-
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
41
|
-
Processing by Api::UserController#reauth as HTML
|
42
|
-
Parameters: {"uid"=>"a1s2d36178"}
|
43
|
-
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
44
|
-
[1m[35m (0.1ms)[0m begin transaction
|
45
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35273"]]
|
46
|
-
[1m[35m (7.2ms)[0m commit transaction
|
47
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
48
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34668"]]
|
49
|
-
[1m[36m (7.9ms)[0m [1mcommit transaction[0m
|
50
|
-
Processing by Api::UserController#reauth as HTML
|
51
|
-
Parameters: {"uid"=>"a1s2d35273"}
|
52
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35273' LIMIT 1
|
53
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
54
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
29
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
55
30
|
- signin
|
56
|
-
' WHERE "users"."id" =
|
57
|
-
[1m[36m (
|
58
|
-
|
59
|
-
[1m[
|
60
|
-
|
61
|
-
|
62
|
-
[1m[
|
63
|
-
|
64
|
-
|
65
|
-
[1m[35m (7.4ms)[0m commit transaction
|
66
|
-
Processing by Api::UserController#reauth as HTML
|
67
|
-
Parameters: {"uid"=>"nonexistent-user"}
|
68
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
69
|
-
Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
|
70
|
-
Started GET "/" for 127.0.0.1 at 2014-02-11 14:12:32 +0000
|
71
|
-
Processing by ExampleController#index as HTML
|
72
|
-
Completed 200 OK in 4.0ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
73
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 14:12:32 +0000
|
31
|
+
' WHERE "users"."id" = 1
|
32
|
+
[1m[36m (9.6ms)[0m [1mcommit transaction[0m
|
33
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
35
|
+
- signin
|
36
|
+
' WHERE "users"."id" = 1[0m
|
37
|
+
[1m[35m (6.7ms)[0m commit transaction
|
38
|
+
Completed 200 OK in 55.3ms (Views: 0.5ms | ActiveRecord: 16.9ms)
|
39
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
|
74
40
|
Processing by ExampleController#restricted as HTML
|
75
41
|
Authenticating with gds_sso strategy
|
76
|
-
Completed in 0.
|
77
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
78
|
-
Started GET "/auth/gds/callback?code=
|
42
|
+
Completed in 0.3ms
|
43
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
|
44
|
+
Started GET "/auth/gds/callback?code=9feff442bc8339449747a479149ae50fef26d0bd8930faa3e6eb8e271beed70e&state=e572ef7b148b5abf87c3ec19d2204c8a34cea09625646fbd" for 127.0.0.1 at 2014-02-11 16:09:37 +0000
|
79
45
|
Processing by AuthenticationsController#callback as HTML
|
80
|
-
Parameters: {"code"=>"
|
46
|
+
Parameters: {"code"=>"9feff442bc8339449747a479149ae50fef26d0bd8930faa3e6eb8e271beed70e", "state"=>"e572ef7b148b5abf87c3ec19d2204c8a34cea09625646fbd"}
|
81
47
|
Authenticating with gds_sso strategy
|
82
|
-
[1m[
|
83
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
85
|
-
[1m[36m (7.3ms)[0m [1mcommit transaction[0m
|
48
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
86
49
|
[1m[35m (0.1ms)[0m begin transaction
|
87
|
-
[1m[36m (0.
|
50
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
51
|
+
- signin
|
52
|
+
' WHERE "users"."id" = 1[0m
|
53
|
+
[1m[35m (10.4ms)[0m commit transaction
|
54
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
55
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
88
56
|
- signin
|
89
|
-
' WHERE "users"."id" =
|
90
|
-
[1m[
|
57
|
+
' WHERE "users"."id" = 1
|
58
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
91
59
|
Redirected to http://www.example-client.com/restricted
|
92
|
-
Completed 302 Found in
|
93
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
60
|
+
Completed 302 Found in 23.6ms (ActiveRecord: 19.0ms)
|
61
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
94
62
|
Processing by ExampleController#restricted as HTML
|
95
|
-
[1m[
|
96
|
-
Completed 200 OK in
|
97
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
63
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
64
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
65
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
98
66
|
Processing by ExampleController#restricted as HTML
|
99
67
|
Authenticating with gds_sso strategy
|
100
|
-
Completed in 0.
|
101
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
102
|
-
Started GET "/auth/gds/callback?code=
|
68
|
+
Completed in 0.1ms
|
69
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
70
|
+
Started GET "/auth/gds/callback?code=99d4c3b0203b7793235ba45c61245c05528c23307317089e583185810815203b&state=f917756edf3b78a2270d8a3c763a893084d5e8cc36659d68" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
103
71
|
Processing by AuthenticationsController#callback as HTML
|
104
|
-
Parameters: {"code"=>"
|
72
|
+
Parameters: {"code"=>"99d4c3b0203b7793235ba45c61245c05528c23307317089e583185810815203b", "state"=>"f917756edf3b78a2270d8a3c763a893084d5e8cc36659d68"}
|
105
73
|
Authenticating with gds_sso strategy
|
106
|
-
[1m[
|
107
|
-
[1m[
|
108
|
-
[1m[
|
74
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
75
|
+
[1m[35m (0.0ms)[0m begin transaction
|
76
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
109
77
|
- signin
|
110
|
-
' WHERE "users"."id" =
|
111
|
-
[1m[
|
112
|
-
[1m[
|
113
|
-
[1m[
|
78
|
+
' WHERE "users"."id" = 1[0m
|
79
|
+
[1m[35m (10.7ms)[0m commit transaction
|
80
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
114
82
|
- signin
|
115
|
-
' WHERE "users"."id" =
|
116
|
-
[1m[
|
83
|
+
' WHERE "users"."id" = 1
|
84
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
117
85
|
Redirected to http://www.example-client.com/restricted
|
118
|
-
Completed 302 Found in
|
119
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
86
|
+
Completed 302 Found in 24.7ms (ActiveRecord: 20.7ms)
|
87
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
88
|
+
Processing by ExampleController#restricted as HTML
|
89
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
90
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
91
|
+
Started GET "/" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
92
|
+
Processing by ExampleController#index as HTML
|
93
|
+
Completed 200 OK in 0.8ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
94
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
120
95
|
Processing by ExampleController#restricted as HTML
|
121
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
122
|
-
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
123
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 14:12:34 +0000
|
124
|
-
Processing by ExampleController#this_requires_signin_permission as HTML
|
125
96
|
Authenticating with gds_sso strategy
|
126
|
-
Completed in 0.
|
127
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
128
|
-
Started GET "/auth/gds/callback?code=
|
97
|
+
Completed in 0.3ms
|
98
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
99
|
+
Started GET "/auth/gds/callback?code=8c875aa43472843d2a509b4a2ab9d76ee9a5c48b643739d5cadc07788123564a&state=13756809d8569bc610932a90076f465bc9dce1f98b5fa32a" for 127.0.0.1 at 2014-02-11 16:09:38 +0000
|
129
100
|
Processing by AuthenticationsController#callback as HTML
|
130
|
-
Parameters: {"code"=>"
|
101
|
+
Parameters: {"code"=>"8c875aa43472843d2a509b4a2ab9d76ee9a5c48b643739d5cadc07788123564a", "state"=>"13756809d8569bc610932a90076f465bc9dce1f98b5fa32a"}
|
131
102
|
Authenticating with gds_sso strategy
|
132
|
-
[1m[
|
103
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
105
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
106
|
+
- signin
|
107
|
+
' WHERE "users"."id" = 1[0m
|
108
|
+
[1m[35m (25.0ms)[0m commit transaction
|
133
109
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
134
110
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
135
111
|
- signin
|
136
|
-
' WHERE "users"."id" =
|
137
|
-
[1m[36m (
|
112
|
+
' WHERE "users"."id" = 1
|
113
|
+
[1m[36m (11.4ms)[0m [1mcommit transaction[0m
|
114
|
+
Redirected to http://www.example-client.com/restricted
|
115
|
+
Completed 302 Found in 42.0ms (ActiveRecord: 37.0ms)
|
116
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
117
|
+
Processing by ExampleController#restricted as HTML
|
118
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
119
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
120
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
121
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
122
|
+
Authenticating with gds_sso strategy
|
123
|
+
Completed in 0.5ms
|
124
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
125
|
+
Started GET "/auth/gds/callback?code=725eefce866775f0781951ed5ed2a397284098719e55edad778017078eb99ecb&state=59ecf92e3d80fc4e88211dcd1a3b75d7f9dc29b6888ffa9b" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
126
|
+
Processing by AuthenticationsController#callback as HTML
|
127
|
+
Parameters: {"code"=>"725eefce866775f0781951ed5ed2a397284098719e55edad778017078eb99ecb", "state"=>"59ecf92e3d80fc4e88211dcd1a3b75d7f9dc29b6888ffa9b"}
|
128
|
+
Authenticating with gds_sso strategy
|
129
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
138
130
|
[1m[35m (0.0ms)[0m begin transaction
|
139
131
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
140
132
|
- signin
|
141
|
-
' WHERE "users"."id" =
|
142
|
-
[1m[35m (
|
133
|
+
' WHERE "users"."id" = 1[0m
|
134
|
+
[1m[35m (10.6ms)[0m commit transaction
|
135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
136
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
137
|
+
- signin
|
138
|
+
' WHERE "users"."id" = 1
|
139
|
+
[1m[36m (13.1ms)[0m [1mcommit transaction[0m
|
143
140
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
144
|
-
Completed 302 Found in
|
145
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11
|
141
|
+
Completed 302 Found in 28.8ms (ActiveRecord: 24.3ms)
|
142
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
146
143
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
147
|
-
[1m[
|
148
|
-
Completed 200 OK in 1.
|
149
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11
|
144
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
145
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
146
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
150
147
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
151
148
|
Authenticating with gds_sso strategy
|
152
|
-
Completed in 0.
|
153
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
154
|
-
Started GET "/auth/gds/callback?code=
|
149
|
+
Completed in 0.1ms
|
150
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
151
|
+
Started GET "/auth/gds/callback?code=a035fc66195904f4ad6c03beea2aaf4299b6ec7bd4760cb01cd9beb9f2e51c7b&state=95c02c25e5bee4e8c6bbf72fa65fa1e56d9be0e341433328" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
155
152
|
Processing by AuthenticationsController#callback as HTML
|
156
|
-
Parameters: {"code"=>"
|
153
|
+
Parameters: {"code"=>"a035fc66195904f4ad6c03beea2aaf4299b6ec7bd4760cb01cd9beb9f2e51c7b", "state"=>"95c02c25e5bee4e8c6bbf72fa65fa1e56d9be0e341433328"}
|
157
154
|
Authenticating with gds_sso strategy
|
158
|
-
[1m[
|
159
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
160
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
161
|
-
- signin
|
162
|
-
' WHERE "users"."id" = 11
|
163
|
-
[1m[36m (10.1ms)[0m [1mcommit transaction[0m
|
155
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
164
156
|
[1m[35m (0.0ms)[0m begin transaction
|
165
|
-
[1m[36m (0.
|
157
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
158
|
+
- signin
|
159
|
+
' WHERE "users"."id" = 1[0m
|
160
|
+
[1m[35m (9.6ms)[0m commit transaction
|
161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
162
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
166
163
|
- signin
|
167
|
-
' WHERE "users"."id" =
|
168
|
-
[1m[
|
164
|
+
' WHERE "users"."id" = 1
|
165
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
169
166
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
170
|
-
Completed 302 Found in
|
171
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11
|
167
|
+
Completed 302 Found in 28.9ms (ActiveRecord: 25.0ms)
|
168
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
172
169
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
173
|
-
[1m[
|
174
|
-
Completed 200 OK in 1.
|
175
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
170
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
171
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
172
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
176
173
|
Processing by ExampleController#restricted as HTML
|
177
174
|
Authenticating with gds_sso strategy
|
178
|
-
Completed in 0.
|
179
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
180
|
-
Started GET "/auth/gds/callback?code=
|
175
|
+
Completed in 0.3ms
|
176
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:39 +0000
|
177
|
+
Started GET "/auth/gds/callback?code=001916d13c09db21d52d91dc091304beaba9b6b03c713c52f9c2e8f0c60741a5&state=f856042ec4acb4564e6412022ec9f3afb36cf97e50583e80" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
181
178
|
Processing by AuthenticationsController#callback as HTML
|
182
|
-
Parameters: {"code"=>"
|
179
|
+
Parameters: {"code"=>"001916d13c09db21d52d91dc091304beaba9b6b03c713c52f9c2e8f0c60741a5", "state"=>"f856042ec4acb4564e6412022ec9f3afb36cf97e50583e80"}
|
183
180
|
Authenticating with gds_sso strategy
|
184
|
-
[1m[
|
185
|
-
[1m[
|
186
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
187
|
-
- signin
|
188
|
-
' WHERE "users"."id" = 11
|
189
|
-
[1m[36m (33.2ms)[0m [1mcommit transaction[0m
|
190
|
-
[1m[35m (0.1ms)[0m begin transaction
|
181
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
182
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191
183
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
192
184
|
- signin
|
193
|
-
' WHERE "users"."id" =
|
194
|
-
[1m[35m (
|
185
|
+
' WHERE "users"."id" = 1[0m
|
186
|
+
[1m[35m (13.0ms)[0m commit transaction
|
187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
188
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
189
|
+
- signin
|
190
|
+
' WHERE "users"."id" = 1
|
191
|
+
[1m[36m (10.2ms)[0m [1mcommit transaction[0m
|
195
192
|
Redirected to http://www.example-client.com/restricted
|
196
|
-
Completed 302 Found in
|
197
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
193
|
+
Completed 302 Found in 28.5ms (ActiveRecord: 23.7ms)
|
194
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
198
195
|
Processing by ExampleController#restricted as HTML
|
199
|
-
[1m[
|
200
|
-
Completed 200 OK in 1.
|
201
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-
|
196
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
197
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
198
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:04:40 +0000
|
199
|
+
Processing by ExampleController#restricted as HTML
|
200
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
201
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
202
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
202
203
|
Processing by ExampleController#restricted as HTML
|
203
204
|
Authenticating with gds_sso strategy
|
204
205
|
Completed in 0.3ms
|
205
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
206
|
-
Started GET "/auth/gds/callback?code=
|
206
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
207
|
+
Started GET "/auth/gds/callback?code=8998e825443ae71de2031c0eb03e78ce19abda59c706030fd7fc9f046b0e2bba&state=f0c25a873be39731f2e96cdc4a1b74b89118f92d5c5608f8" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
207
208
|
Processing by AuthenticationsController#callback as HTML
|
208
|
-
Parameters: {"code"=>"
|
209
|
+
Parameters: {"code"=>"8998e825443ae71de2031c0eb03e78ce19abda59c706030fd7fc9f046b0e2bba", "state"=>"f0c25a873be39731f2e96cdc4a1b74b89118f92d5c5608f8"}
|
209
210
|
Authenticating with gds_sso strategy
|
210
211
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
211
212
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
212
213
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
213
214
|
- signin
|
214
|
-
' WHERE "users"."id" =
|
215
|
-
[1m[36m (
|
216
|
-
[1m[35m (0.
|
215
|
+
' WHERE "users"."id" = 1
|
216
|
+
[1m[36m (13.7ms)[0m [1mcommit transaction[0m
|
217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
217
218
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
218
219
|
- signin
|
219
|
-
' WHERE "users"."id" =
|
220
|
-
[1m[35m (
|
220
|
+
' WHERE "users"."id" = 1[0m
|
221
|
+
[1m[35m (11.3ms)[0m commit transaction
|
221
222
|
Redirected to http://www.example-client.com/restricted
|
222
|
-
Completed 302 Found in
|
223
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
223
|
+
Completed 302 Found in 30.4ms (ActiveRecord: 25.6ms)
|
224
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:40 +0000
|
224
225
|
Processing by ExampleController#restricted as HTML
|
225
226
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
226
|
-
Completed 200 OK in 1.
|
227
|
-
|
228
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
230
|
-
- signin
|
231
|
-
' WHERE "users"."id" = 11
|
232
|
-
[1m[36m (8.2ms)[0m [1mcommit transaction[0m
|
233
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 14:12:35 +0000
|
227
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
228
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
|
234
229
|
Processing by ExampleController#restricted as HTML
|
235
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
236
230
|
Authenticating with gds_sso strategy
|
237
|
-
Completed in 0.
|
238
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-
|
239
|
-
Started GET "/auth/gds/callback?code=
|
231
|
+
Completed in 0.2ms
|
232
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
|
233
|
+
Started GET "/auth/gds/callback?code=4c08332b1e307bf282ec9e75a1d9133a547002b29c73419c696026ab58e92f9d&state=30b541b0b7920cdc7e3c6950abf534c0b1271a94e323e40b" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
|
240
234
|
Processing by AuthenticationsController#callback as HTML
|
241
|
-
Parameters: {"code"=>"
|
235
|
+
Parameters: {"code"=>"4c08332b1e307bf282ec9e75a1d9133a547002b29c73419c696026ab58e92f9d", "state"=>"30b541b0b7920cdc7e3c6950abf534c0b1271a94e323e40b"}
|
242
236
|
Authenticating with gds_sso strategy
|
243
|
-
[1m[
|
237
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
238
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
240
|
+
- signin
|
241
|
+
' WHERE "users"."id" = 1
|
242
|
+
[1m[36m (13.3ms)[0m [1mcommit transaction[0m
|
244
243
|
[1m[35m (0.0ms)[0m begin transaction
|
245
244
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
246
245
|
- signin
|
247
|
-
' WHERE "users"."id" =
|
248
|
-
[1m[35m (10.
|
249
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
251
|
-
- signin
|
252
|
-
' WHERE "users"."id" = 11
|
253
|
-
[1m[36m (7.0ms)[0m [1mcommit transaction[0m
|
246
|
+
' WHERE "users"."id" = 1[0m
|
247
|
+
[1m[35m (10.4ms)[0m commit transaction
|
254
248
|
Redirected to http://www.example-client.com/restricted
|
255
|
-
Completed 302 Found in
|
256
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-
|
249
|
+
Completed 302 Found in 28.1ms (ActiveRecord: 24.3ms)
|
250
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-12 12:14:40 +0000
|
257
251
|
Processing by ExampleController#restricted as HTML
|
258
|
-
[1m[
|
259
|
-
Completed 200 OK in 1.1ms (Views: 0.
|
260
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
252
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
253
|
+
Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
254
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
261
255
|
Processing by ExampleController#restricted as HTML
|
262
256
|
Authenticating with gds_sso strategy
|
263
257
|
Completed in 0.3ms
|
264
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
265
|
-
Started GET "/auth/gds/callback?code=
|
258
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
259
|
+
Started GET "/auth/gds/callback?code=709f04e0ec90bab9958bd22031a13e0b9c2ee3d8a2989ccee470614455aa5376&state=cd3f29e4483af0e7ef52b7292e3ef238a55aee5068dbd13d" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
266
260
|
Processing by AuthenticationsController#callback as HTML
|
267
|
-
Parameters: {"code"=>"
|
261
|
+
Parameters: {"code"=>"709f04e0ec90bab9958bd22031a13e0b9c2ee3d8a2989ccee470614455aa5376", "state"=>"cd3f29e4483af0e7ef52b7292e3ef238a55aee5068dbd13d"}
|
268
262
|
Authenticating with gds_sso strategy
|
269
|
-
[1m[
|
263
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
265
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
266
|
+
- signin
|
267
|
+
' WHERE "users"."id" = 1
|
268
|
+
[1m[36m (23.5ms)[0m [1mcommit transaction[0m
|
270
269
|
[1m[35m (0.1ms)[0m begin transaction
|
271
270
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
272
271
|
- signin
|
273
|
-
' WHERE "users"."id" =
|
274
|
-
[1m[35m (
|
275
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
276
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
277
|
-
- signin
|
278
|
-
' WHERE "users"."id" = 11
|
279
|
-
[1m[36m (13.0ms)[0m [1mcommit transaction[0m
|
272
|
+
' WHERE "users"."id" = 1[0m
|
273
|
+
[1m[35m (16.5ms)[0m commit transaction
|
280
274
|
Redirected to http://www.example-client.com/restricted
|
281
|
-
Completed 302 Found in
|
282
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
275
|
+
Completed 302 Found in 46.0ms (ActiveRecord: 40.6ms)
|
276
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
283
277
|
Processing by ExampleController#restricted as HTML
|
284
|
-
[1m[
|
285
|
-
Completed 200 OK in 1.
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
Completed in 0.2ms
|
290
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-12 10:17:36 +0000
|
291
|
-
Started GET "/auth/gds/callback?code=c0ad710d6760f6b0b0e6a557ca4bf2a123ef9d86e975c9258ef2e053b4bbbb97&state=4783df9c49c0b93843c2cd1c772d849e4db46b1b9cae6707" for 127.0.0.1 at 2014-02-12 10:17:36 +0000
|
292
|
-
Processing by AuthenticationsController#callback as HTML
|
293
|
-
Parameters: {"code"=>"c0ad710d6760f6b0b0e6a557ca4bf2a123ef9d86e975c9258ef2e053b4bbbb97", "state"=>"4783df9c49c0b93843c2cd1c772d849e4db46b1b9cae6707"}
|
294
|
-
Authenticating with gds_sso strategy
|
295
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
296
|
-
[1m[35m (0.1ms)[0m begin transaction
|
297
|
-
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
298
|
-
- signin
|
299
|
-
' WHERE "users"."id" = 11[0m
|
300
|
-
[1m[35m (12.1ms)[0m commit transaction
|
301
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
302
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
278
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
279
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
280
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
|
281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
303
283
|
- signin
|
304
|
-
' WHERE "users"."id" =
|
305
|
-
[1m[36m (10.
|
306
|
-
|
307
|
-
Completed 302 Found in 26.9ms (ActiveRecord: 23.2ms)
|
308
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-12 10:17:36 +0000
|
284
|
+
' WHERE "users"."id" = 1
|
285
|
+
[1m[36m (10.1ms)[0m [1mcommit transaction[0m
|
286
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
309
287
|
Processing by ExampleController#restricted as HTML
|
310
288
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
311
|
-
Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
312
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 14:12:37 +0000
|
313
|
-
Processing by ExampleController#restricted as HTML
|
314
289
|
Authenticating with gds_sso strategy
|
315
|
-
Completed in
|
316
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11
|
317
|
-
Started GET "/auth/gds/callback?code=
|
290
|
+
Completed in 1.0ms
|
291
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
292
|
+
Started GET "/auth/gds/callback?code=af1396d0df84f86c9b3a28c1f64e551149c0f62c98203edc5bb2fbed6c929941&state=38955c90d62164e087362f8c7ba0abc2fae2e7c375950ee5" for 127.0.0.1 at 2014-02-11 16:09:41 +0000
|
318
293
|
Processing by AuthenticationsController#callback as HTML
|
319
|
-
Parameters: {"code"=>"
|
294
|
+
Parameters: {"code"=>"af1396d0df84f86c9b3a28c1f64e551149c0f62c98203edc5bb2fbed6c929941", "state"=>"38955c90d62164e087362f8c7ba0abc2fae2e7c375950ee5"}
|
320
295
|
Authenticating with gds_sso strategy
|
321
296
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
322
|
-
[1m[35m (0.
|
323
|
-
[1m[36m (0.
|
297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
298
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
324
299
|
- signin
|
325
|
-
' WHERE "users"."id" =
|
326
|
-
[1m[35m (
|
300
|
+
' WHERE "users"."id" = 1[0m
|
301
|
+
[1m[35m (15.0ms)[0m commit transaction
|
327
302
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
303
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
329
304
|
- signin
|
330
|
-
' WHERE "users"."id" =
|
305
|
+
' WHERE "users"."id" = 1
|
331
306
|
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
332
307
|
Redirected to http://www.example-client.com/restricted
|
333
|
-
Completed 302 Found in
|
334
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-11
|
335
|
-
Processing by ExampleController#restricted as HTML
|
336
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
337
|
-
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
338
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-02-12 10:07:37 +0000
|
308
|
+
Completed 302 Found in 27.6ms (ActiveRecord: 23.5ms)
|
309
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-02-11 16:09:42 +0000
|
339
310
|
Processing by ExampleController#restricted as HTML
|
340
|
-
[1m[
|
341
|
-
Completed 200 OK in
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
Completed in 8.3ms
|
346
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-02-11 14:12:37 +0000
|
347
|
-
Processing by ExampleController#this_requires_signin_permission as JSON
|
348
|
-
Authenticating with gds_bearer_token strategy
|
349
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
350
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
351
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
352
|
-
- signin
|
353
|
-
' WHERE "users"."id" = 11
|
354
|
-
[1m[36m (10.1ms)[0m [1mcommit transaction[0m
|
311
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
312
|
+
Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
313
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
314
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39752"]]
|
315
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
355
316
|
[1m[35m (0.0ms)[0m begin transaction
|
356
|
-
[1m[
|
317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36789"]]
|
318
|
+
[1m[35m (11.1ms)[0m commit transaction
|
319
|
+
Processing by Api::UserController#reauth as HTML
|
320
|
+
Parameters: {"uid"=>"a1s2d39752"}
|
321
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39752' LIMIT 1[0m
|
322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
357
324
|
- signin
|
358
|
-
' WHERE "users"."id" =
|
359
|
-
[1m[35m (10.
|
360
|
-
Completed 200 OK in
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
[1m[
|
325
|
+
' WHERE "users"."id" = 2[0m
|
326
|
+
[1m[35m (10.4ms)[0m commit transaction
|
327
|
+
Completed 200 OK in 13.7ms (ActiveRecord: 10.7ms)
|
328
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
330
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3627"]]
|
331
|
+
[1m[35m (11.1ms)[0m commit transaction
|
332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
333
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33536"]]
|
334
|
+
[1m[36m (11.8ms)[0m [1mcommit transaction[0m
|
335
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
336
|
+
Processing by Api::UserController#reauth as HTML
|
337
|
+
Parameters: {"uid"=>"a1s2d3627"}
|
338
|
+
Completed 403 Forbidden in 3.4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
365
339
|
[1m[35m (0.1ms)[0m begin transaction
|
366
|
-
[1m[
|
367
|
-
|
368
|
-
' WHERE "users"."id" = 11[0m
|
369
|
-
[1m[35m (16.1ms)[0m commit transaction
|
340
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39112"]]
|
341
|
+
[1m[35m (12.0ms)[0m commit transaction
|
370
342
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
371
|
-
[1m[
|
343
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33830"]]
|
344
|
+
[1m[36m (11.3ms)[0m [1mcommit transaction[0m
|
345
|
+
Processing by Api::UserController#reauth as HTML
|
346
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
347
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
348
|
+
Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
|
349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32093"]]
|
351
|
+
[1m[36m (12.4ms)[0m [1mcommit transaction[0m
|
352
|
+
[1m[35m (0.1ms)[0m begin transaction
|
353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38920"]]
|
354
|
+
[1m[35m (14.5ms)[0m commit transaction
|
355
|
+
Processing by Api::UserController#update as HTML
|
356
|
+
Parameters: {"uid"=>"a1s2d32093"}
|
357
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32093' LIMIT 1[0m
|
358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
359
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
372
360
|
- signin
|
373
|
-
|
374
|
-
|
375
|
-
|
361
|
+
- new permission
|
362
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 8[0m
|
363
|
+
[1m[35m (12.5ms)[0m commit transaction
|
364
|
+
Completed 200 OK in 16.0ms (ActiveRecord: 12.9ms)
|
365
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 8]]
|
366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
367
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34687"]]
|
368
|
+
[1m[35m (13.1ms)[0m commit transaction
|
369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
370
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37787"]]
|
371
|
+
[1m[36m (16.6ms)[0m [1mcommit transaction[0m
|
372
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
373
|
+
Processing by Api::UserController#update as HTML
|
374
|
+
Parameters: {"uid"=>"a1s2d34687"}
|
375
|
+
Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.2.
|
4
|
+
version: 9.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -315,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
segments:
|
317
317
|
- 0
|
318
|
-
hash:
|
318
|
+
hash: -3127725874143566220
|
319
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
320
|
none: false
|
321
321
|
requirements:
|
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
version: '0'
|
325
325
|
segments:
|
326
326
|
- 0
|
327
|
-
hash:
|
327
|
+
hash: -3127725874143566220
|
328
328
|
requirements: []
|
329
329
|
rubyforge_project: gds-sso
|
330
330
|
rubygems_version: 1.8.23
|