gds-sso 9.2.3 → 9.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +5 -2
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +239 -239
- metadata +4 -4
data/lib/gds-sso/version.rb
CHANGED
@@ -172,10 +172,13 @@ Warden::Strategies.add(:mock_gds_sso_api_access) do
|
|
172
172
|
dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.where(email: "dummyapiuser@domain.com").first
|
173
173
|
if dummy_api_user.nil?
|
174
174
|
dummy_api_user = GDS::SSO::Config.user_klass.new(
|
175
|
+
{
|
175
176
|
email: "dummyapiuser@domain.com",
|
176
177
|
uid: "#{rand(10000)}",
|
177
|
-
name: "Dummy API user created by gds-sso"
|
178
|
-
|
178
|
+
name: "Dummy API user created by gds-sso"
|
179
|
+
},
|
180
|
+
{as: :oauth}
|
181
|
+
)
|
179
182
|
dummy_api_user.permissions = ["signin"]
|
180
183
|
dummy_api_user.save!
|
181
184
|
end
|
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 (
|
5
|
-
[1m[35m (
|
6
|
-
Started GET "/
|
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
|
10
|
-
[1m[35m (0.1ms)[0m begin transaction
|
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
|
13
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
15
|
-
- signin
|
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
|
28
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
29
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
30
|
-
- signin
|
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
|
3
|
+
[1m[35m (43.0ms)[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 (11.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5
|
+
[1m[35m (10.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:18 +0000
|
40
7
|
Processing by ExampleController#restricted as HTML
|
41
8
|
Authenticating with gds_sso strategy
|
42
|
-
Completed in
|
43
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
44
|
-
Started GET "/auth/gds/callback?code=
|
9
|
+
Completed in 5.5ms
|
10
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:18 +0000
|
11
|
+
Started GET "/auth/gds/callback?code=c17253b2a19713c3b9dbe7915b5d984ec3e7a7cd9c0aa47dc0637d6040b09638&state=2b9b700aa5caa73ff5bf19cd369cb7122700f421e404c0e1" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
|
45
12
|
Processing by AuthenticationsController#callback as HTML
|
46
|
-
Parameters: {"code"=>"
|
13
|
+
Parameters: {"code"=>"c17253b2a19713c3b9dbe7915b5d984ec3e7a7cd9c0aa47dc0637d6040b09638", "state"=>"2b9b700aa5caa73ff5bf19cd369cb7122700f421e404c0e1"}
|
47
14
|
Authenticating with gds_sso strategy
|
48
|
-
[1m[36mUser Load (0.
|
15
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
49
16
|
[1m[35m (0.1ms)[0m begin transaction
|
50
|
-
[1m[
|
51
|
-
|
52
|
-
|
53
|
-
[1m[35m (
|
54
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
55
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
17
|
+
[1m[36mSQL (28.4ms)[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"]]
|
18
|
+
[1m[35m (15.5ms)[0m commit transaction
|
19
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
56
21
|
- signin
|
57
22
|
' WHERE "users"."id" = 1
|
58
|
-
[1m[36m (8.
|
23
|
+
[1m[36m (8.4ms)[0m [1mcommit transaction[0m
|
59
24
|
Redirected to http://www.example-client.com/restricted
|
60
|
-
Completed 302 Found in
|
61
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
25
|
+
Completed 302 Found in 72.9ms (ActiveRecord: 53.0ms)
|
26
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
|
62
27
|
Processing by ExampleController#restricted as HTML
|
63
|
-
[1m[35mUser Load (0.
|
64
|
-
|
65
|
-
|
28
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
29
|
+
Rendered text template (0.0ms)
|
30
|
+
Completed 200 OK in 36.7ms (Views: 35.4ms | ActiveRecord: 0.2ms)
|
31
|
+
Started GET "/" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
|
32
|
+
Processing by ExampleController#index as HTML
|
33
|
+
Completed 200 OK in 0.9ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
34
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
|
66
35
|
Processing by ExampleController#restricted as HTML
|
67
36
|
Authenticating with gds_sso strategy
|
68
|
-
Completed in 0.
|
69
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
70
|
-
Started GET "/auth/gds/callback?code=
|
37
|
+
Completed in 0.3ms
|
38
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:20 +0000
|
39
|
+
Started GET "/auth/gds/callback?code=e7362ce65211ea2b6741694584b57ca545473167d0483975d01314389cb015b2&state=7c50ca72261e2fd14b44e7e2c339c2db7685f04aec2feb5e" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
71
40
|
Processing by AuthenticationsController#callback as HTML
|
72
|
-
Parameters: {"code"=>"
|
41
|
+
Parameters: {"code"=>"e7362ce65211ea2b6741694584b57ca545473167d0483975d01314389cb015b2", "state"=>"7c50ca72261e2fd14b44e7e2c339c2db7685f04aec2feb5e"}
|
73
42
|
Authenticating with gds_sso strategy
|
74
|
-
[1m[36mUser Load (0.
|
43
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
75
44
|
[1m[35m (0.0ms)[0m begin transaction
|
76
|
-
[1m[36m (0.
|
45
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
77
46
|
- signin
|
78
47
|
' WHERE "users"."id" = 1[0m
|
79
|
-
[1m[35m (
|
48
|
+
[1m[35m (19.9ms)[0m commit transaction
|
80
49
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
-
[1m[35m (0.
|
50
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
82
51
|
- signin
|
83
52
|
' WHERE "users"."id" = 1
|
84
|
-
[1m[36m (
|
53
|
+
[1m[36m (17.7ms)[0m [1mcommit transaction[0m
|
85
54
|
Redirected to http://www.example-client.com/restricted
|
86
|
-
Completed 302 Found in
|
87
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
55
|
+
Completed 302 Found in 43.2ms (ActiveRecord: 38.2ms)
|
56
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
88
57
|
Processing by ExampleController#restricted as HTML
|
89
|
-
[1m[35mUser Load (0.
|
90
|
-
Completed 200 OK in 1.
|
91
|
-
Started GET "/" for 127.0.0.1 at 2014-
|
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
|
58
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
59
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
60
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
95
61
|
Processing by ExampleController#restricted as HTML
|
96
62
|
Authenticating with gds_sso strategy
|
97
|
-
Completed in 0.
|
98
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
99
|
-
Started GET "/auth/gds/callback?code=
|
63
|
+
Completed in 0.2ms
|
64
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
65
|
+
Started GET "/auth/gds/callback?code=e6f087298a5ff4f79a6693db2dc77e75592c933ae3d64a693ea04df5f63724e0&state=253ac4815d8c008b0481db3fab51b911dc19313193887d9c" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
100
66
|
Processing by AuthenticationsController#callback as HTML
|
101
|
-
Parameters: {"code"=>"
|
67
|
+
Parameters: {"code"=>"e6f087298a5ff4f79a6693db2dc77e75592c933ae3d64a693ea04df5f63724e0", "state"=>"253ac4815d8c008b0481db3fab51b911dc19313193887d9c"}
|
102
68
|
Authenticating with gds_sso strategy
|
103
69
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
104
|
-
[1m[35m (0.
|
105
|
-
[1m[36m (0.
|
70
|
+
[1m[35m (0.0ms)[0m begin transaction
|
71
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
106
72
|
- signin
|
107
73
|
' WHERE "users"."id" = 1[0m
|
108
|
-
[1m[35m (
|
109
|
-
[1m[36m (0.
|
74
|
+
[1m[35m (17.2ms)[0m commit transaction
|
75
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
110
76
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
111
77
|
- signin
|
112
78
|
' WHERE "users"."id" = 1
|
113
|
-
[1m[36m (
|
79
|
+
[1m[36m (24.3ms)[0m [1mcommit transaction[0m
|
114
80
|
Redirected to http://www.example-client.com/restricted
|
115
|
-
Completed 302 Found in
|
116
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
81
|
+
Completed 302 Found in 47.0ms (ActiveRecord: 42.1ms)
|
82
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
117
83
|
Processing by ExampleController#restricted as HTML
|
118
|
-
[1m[35mUser Load (0.
|
119
|
-
Completed 200 OK in 1.
|
120
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-
|
84
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
85
|
+
Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
86
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
121
87
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
122
88
|
Authenticating with gds_sso strategy
|
123
|
-
Completed in 0.
|
124
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
125
|
-
Started GET "/auth/gds/callback?code=
|
89
|
+
Completed in 0.6ms
|
90
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:21 +0000
|
91
|
+
Started GET "/auth/gds/callback?code=793ad87df95f55d54c27b9653ab3c2ac69abb0d3d73264b5ba4dfe4745e639d6&state=03de4cd002c3a90d7fbe999be3e16a041442da29111673fe" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
126
92
|
Processing by AuthenticationsController#callback as HTML
|
127
|
-
Parameters: {"code"=>"
|
93
|
+
Parameters: {"code"=>"793ad87df95f55d54c27b9653ab3c2ac69abb0d3d73264b5ba4dfe4745e639d6", "state"=>"03de4cd002c3a90d7fbe999be3e16a041442da29111673fe"}
|
128
94
|
Authenticating with gds_sso strategy
|
129
95
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
130
|
-
[1m[35m (0.
|
131
|
-
[1m[36m (0.
|
96
|
+
[1m[35m (0.1ms)[0m begin transaction
|
97
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
132
98
|
- signin
|
133
99
|
' WHERE "users"."id" = 1[0m
|
134
|
-
[1m[35m (
|
135
|
-
[1m[36m (0.
|
136
|
-
[1m[35m (0.
|
100
|
+
[1m[35m (17.9ms)[0m commit transaction
|
101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
102
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
137
103
|
- signin
|
138
104
|
' WHERE "users"."id" = 1
|
139
|
-
[1m[36m (
|
105
|
+
[1m[36m (10.6ms)[0m [1mcommit transaction[0m
|
140
106
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
141
|
-
Completed 302 Found in
|
142
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-
|
107
|
+
Completed 302 Found in 34.4ms (ActiveRecord: 29.2ms)
|
108
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
143
109
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
144
|
-
[1m[35mUser Load (0.
|
145
|
-
Completed 200 OK in
|
146
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-
|
110
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
111
|
+
Completed 200 OK in 2.5ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
112
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
147
113
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
148
114
|
Authenticating with gds_sso strategy
|
149
|
-
Completed in 0.
|
150
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
151
|
-
Started GET "/auth/gds/callback?code=
|
115
|
+
Completed in 0.2ms
|
116
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
117
|
+
Started GET "/auth/gds/callback?code=cd12c3757903f070081a6f8cfe35f6c33c36b026cdc889e6f2f541630fc2c896&state=55f3e34742ca0ff11ee732b228406243c5e12a416f7c473e" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
152
118
|
Processing by AuthenticationsController#callback as HTML
|
153
|
-
Parameters: {"code"=>"
|
119
|
+
Parameters: {"code"=>"cd12c3757903f070081a6f8cfe35f6c33c36b026cdc889e6f2f541630fc2c896", "state"=>"55f3e34742ca0ff11ee732b228406243c5e12a416f7c473e"}
|
154
120
|
Authenticating with gds_sso strategy
|
155
|
-
[1m[36mUser Load (0.
|
121
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
156
122
|
[1m[35m (0.0ms)[0m begin transaction
|
157
|
-
[1m[36m (0.
|
123
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
158
124
|
- signin
|
159
125
|
' WHERE "users"."id" = 1[0m
|
160
|
-
[1m[35m (
|
161
|
-
[1m[36m (0.
|
162
|
-
[1m[35m (0.
|
126
|
+
[1m[35m (16.4ms)[0m commit transaction
|
127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
128
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
163
129
|
- signin
|
164
130
|
' WHERE "users"."id" = 1
|
165
|
-
[1m[36m (
|
131
|
+
[1m[36m (11.3ms)[0m [1mcommit transaction[0m
|
166
132
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
167
|
-
Completed 302 Found in
|
168
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-
|
133
|
+
Completed 302 Found in 33.5ms (ActiveRecord: 28.4ms)
|
134
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
169
135
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
170
|
-
[1m[35mUser Load (0.
|
171
|
-
Completed 200 OK in 1.
|
172
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
136
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
137
|
+
Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
138
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
173
139
|
Processing by ExampleController#restricted as HTML
|
174
140
|
Authenticating with gds_sso strategy
|
175
141
|
Completed in 0.3ms
|
176
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
177
|
-
Started GET "/auth/gds/callback?code=
|
142
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:22 +0000
|
143
|
+
Started GET "/auth/gds/callback?code=7d1a96a2d2ed253fbfe84757cd175c5f7d176fb0e29d2d06c702354d9182fbd9&state=02180ea025a721333327bedcde048668a3a83b58f1114536" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
178
144
|
Processing by AuthenticationsController#callback as HTML
|
179
|
-
Parameters: {"code"=>"
|
145
|
+
Parameters: {"code"=>"7d1a96a2d2ed253fbfe84757cd175c5f7d176fb0e29d2d06c702354d9182fbd9", "state"=>"02180ea025a721333327bedcde048668a3a83b58f1114536"}
|
180
146
|
Authenticating with gds_sso strategy
|
181
147
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
182
|
-
[1m[35m (0.
|
148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
183
149
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
184
150
|
- signin
|
185
151
|
' WHERE "users"."id" = 1[0m
|
186
|
-
[1m[35m (
|
187
|
-
[1m[36m (0.
|
188
|
-
[1m[35m (0.
|
152
|
+
[1m[35m (12.2ms)[0m commit transaction
|
153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
154
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
189
155
|
- signin
|
190
156
|
' WHERE "users"."id" = 1
|
191
|
-
[1m[36m (
|
157
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
192
158
|
Redirected to http://www.example-client.com/restricted
|
193
|
-
Completed 302 Found in
|
194
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
159
|
+
Completed 302 Found in 27.3ms (ActiveRecord: 22.2ms)
|
160
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
195
161
|
Processing by ExampleController#restricted as HTML
|
196
162
|
[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.
|
198
|
-
|
163
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
164
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
166
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
167
|
+
- signin
|
168
|
+
' WHERE "users"."id" = 1[0m
|
169
|
+
[1m[35m (7.9ms)[0m commit transaction
|
170
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
199
171
|
Processing by ExampleController#restricted as HTML
|
200
172
|
[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
|
203
|
-
Processing by ExampleController#restricted as HTML
|
204
173
|
Authenticating with gds_sso strategy
|
205
|
-
Completed in 0.
|
206
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
207
|
-
Started GET "/auth/gds/callback?code=
|
174
|
+
Completed in 0.8ms
|
175
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
176
|
+
Started GET "/auth/gds/callback?code=56eb3dffd12a8953bf2f6d1049faff0d5ddfc1600e806396e2ffdd6fbc71dcf0&state=12c077925373e4fa6b6a3b99be6b9ace4493c4e4390757c4" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
208
177
|
Processing by AuthenticationsController#callback as HTML
|
209
|
-
Parameters: {"code"=>"
|
178
|
+
Parameters: {"code"=>"56eb3dffd12a8953bf2f6d1049faff0d5ddfc1600e806396e2ffdd6fbc71dcf0", "state"=>"12c077925373e4fa6b6a3b99be6b9ace4493c4e4390757c4"}
|
210
179
|
Authenticating with gds_sso strategy
|
211
180
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
212
181
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
213
182
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
214
183
|
- signin
|
215
184
|
' WHERE "users"."id" = 1
|
216
|
-
[1m[36m (
|
217
|
-
[1m[35m (0.
|
218
|
-
[1m[36m (0.
|
185
|
+
[1m[36m (15.2ms)[0m [1mcommit transaction[0m
|
186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
187
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
219
188
|
- signin
|
220
189
|
' WHERE "users"."id" = 1[0m
|
221
|
-
[1m[35m (
|
190
|
+
[1m[35m (8.0ms)[0m commit transaction
|
222
191
|
Redirected to http://www.example-client.com/restricted
|
223
|
-
Completed 302 Found in
|
224
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
192
|
+
Completed 302 Found in 28.7ms (ActiveRecord: 23.8ms)
|
193
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
225
194
|
Processing by ExampleController#restricted as HTML
|
226
195
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
227
|
-
Completed 200 OK in 1.
|
228
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
196
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
197
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
229
198
|
Processing by ExampleController#restricted as HTML
|
230
199
|
Authenticating with gds_sso strategy
|
231
|
-
Completed in 0.
|
232
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
233
|
-
Started GET "/auth/gds/callback?code=
|
200
|
+
Completed in 0.4ms
|
201
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
|
202
|
+
Started GET "/auth/gds/callback?code=b7b7baed9214541780349ad2c4d833887bc0785aca8973fc08bc8406540b40bb&state=c1d01e61d2642ae5272c2b858fd6d5ec706063f21f9d8f5f" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
234
203
|
Processing by AuthenticationsController#callback as HTML
|
235
|
-
Parameters: {"code"=>"
|
204
|
+
Parameters: {"code"=>"b7b7baed9214541780349ad2c4d833887bc0785aca8973fc08bc8406540b40bb", "state"=>"c1d01e61d2642ae5272c2b858fd6d5ec706063f21f9d8f5f"}
|
236
205
|
Authenticating with gds_sso strategy
|
237
|
-
[1m[35mUser Load (0.
|
238
|
-
[1m[36m (0.
|
206
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239
208
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
240
209
|
- signin
|
241
210
|
' WHERE "users"."id" = 1
|
242
|
-
[1m[36m (
|
243
|
-
[1m[35m (0.
|
244
|
-
[1m[36m (0.
|
211
|
+
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
|
212
|
+
[1m[35m (0.1ms)[0m begin transaction
|
213
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
245
214
|
- signin
|
246
215
|
' WHERE "users"."id" = 1[0m
|
247
|
-
[1m[35m (
|
216
|
+
[1m[35m (5.2ms)[0m commit transaction
|
248
217
|
Redirected to http://www.example-client.com/restricted
|
249
|
-
Completed 302 Found in
|
250
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
218
|
+
Completed 302 Found in 25.8ms (ActiveRecord: 20.6ms)
|
219
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
251
220
|
Processing by ExampleController#restricted as HTML
|
252
|
-
[1m[36mUser Load (0.
|
253
|
-
Completed 200 OK in 1.
|
254
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
221
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
222
|
+
Completed 200 OK in 1.5ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
223
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
|
255
224
|
Processing by ExampleController#restricted as HTML
|
256
225
|
Authenticating with gds_sso strategy
|
257
226
|
Completed in 0.3ms
|
258
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
259
|
-
Started GET "/auth/gds/callback?code=
|
227
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
|
228
|
+
Started GET "/auth/gds/callback?code=e5115b56e9f871616d0ce6b91c4e3a6ed98697c11369d054e78b53e743428fab&state=e2f93b3e92f7013c689093967ee87702c94161316cc15871" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
|
260
229
|
Processing by AuthenticationsController#callback as HTML
|
261
|
-
Parameters: {"code"=>"
|
230
|
+
Parameters: {"code"=>"e5115b56e9f871616d0ce6b91c4e3a6ed98697c11369d054e78b53e743428fab", "state"=>"e2f93b3e92f7013c689093967ee87702c94161316cc15871"}
|
262
231
|
Authenticating with gds_sso strategy
|
263
232
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
264
233
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
265
234
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
266
235
|
- signin
|
267
236
|
' WHERE "users"."id" = 1
|
268
|
-
[1m[36m (
|
237
|
+
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
269
238
|
[1m[35m (0.1ms)[0m begin transaction
|
270
239
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
271
240
|
- signin
|
272
241
|
' WHERE "users"."id" = 1[0m
|
273
|
-
[1m[35m (16.
|
242
|
+
[1m[35m (16.1ms)[0m commit transaction
|
274
243
|
Redirected to http://www.example-client.com/restricted
|
275
|
-
Completed 302 Found in
|
276
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
244
|
+
Completed 302 Found in 33.4ms (ActiveRecord: 28.5ms)
|
245
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:48:24 +0000
|
277
246
|
Processing by ExampleController#restricted as HTML
|
278
247
|
[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.
|
280
|
-
|
281
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
283
|
-
- signin
|
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
|
248
|
+
Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
249
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
287
250
|
Processing by ExampleController#restricted as HTML
|
288
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
289
251
|
Authenticating with gds_sso strategy
|
290
|
-
Completed in
|
291
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
292
|
-
Started GET "/auth/gds/callback?code=
|
252
|
+
Completed in 0.3ms
|
253
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
254
|
+
Started GET "/auth/gds/callback?code=df680332c2702583c55bba06c5b1d8d6f459dfeb046fcca238beab8e4cb14c76&state=81f3dcac69b60beea60b10bcdc713495805f16089cae99ce" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
293
255
|
Processing by AuthenticationsController#callback as HTML
|
294
|
-
Parameters: {"code"=>"
|
256
|
+
Parameters: {"code"=>"df680332c2702583c55bba06c5b1d8d6f459dfeb046fcca238beab8e4cb14c76", "state"=>"81f3dcac69b60beea60b10bcdc713495805f16089cae99ce"}
|
295
257
|
Authenticating with gds_sso strategy
|
258
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
260
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
261
|
+
- signin
|
262
|
+
' WHERE "users"."id" = 1
|
263
|
+
[1m[36m (15.0ms)[0m [1mcommit transaction[0m
|
264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
265
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
266
|
+
- signin
|
267
|
+
' WHERE "users"."id" = 1[0m
|
268
|
+
[1m[35m (8.4ms)[0m commit transaction
|
269
|
+
Redirected to http://www.example-client.com/restricted
|
270
|
+
Completed 302 Found in 29.6ms (ActiveRecord: 24.1ms)
|
271
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:24 +0000
|
272
|
+
Processing by ExampleController#restricted as HTML
|
273
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
274
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
275
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-06 11:38:24 +0000
|
276
|
+
Processing by ExampleController#restricted as HTML
|
277
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
278
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
279
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
|
280
|
+
Processing by ExampleController#restricted as JSON
|
281
|
+
Authenticating with gds_bearer_token strategy
|
296
282
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
297
|
-
[1m[35m (0.
|
298
|
-
[1m[36m (0.
|
283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
284
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
299
285
|
- signin
|
300
286
|
' WHERE "users"."id" = 1[0m
|
301
|
-
[1m[35m (
|
287
|
+
[1m[35m (17.8ms)[0m commit transaction
|
302
288
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
303
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "
|
289
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
304
290
|
- signin
|
305
291
|
' WHERE "users"."id" = 1
|
306
|
-
[1m[36m (
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
[1m[
|
316
|
-
[1m[
|
317
|
-
[1m[
|
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" = '---
|
292
|
+
[1m[36m (9.2ms)[0m [1mcommit transaction[0m
|
293
|
+
Completed 200 OK in 72.6ms (Views: 0.5ms | ActiveRecord: 27.6ms)
|
294
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
|
295
|
+
Processing by ExampleController#restricted as JSON
|
296
|
+
Authenticating with gds_bearer_token strategy
|
297
|
+
Completed in 10.0ms
|
298
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
|
299
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
300
|
+
Authenticating with gds_bearer_token strategy
|
301
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
303
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
324
304
|
- signin
|
325
|
-
' WHERE "users"."id" =
|
326
|
-
[1m[
|
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]]
|
305
|
+
' WHERE "users"."id" = 1
|
306
|
+
[1m[36m (8.6ms)[0m [1mcommit transaction[0m
|
329
307
|
[1m[35m (0.0ms)[0m begin transaction
|
330
|
-
[1m[
|
331
|
-
|
308
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
309
|
+
- signin
|
310
|
+
' WHERE "users"."id" = 1[0m
|
311
|
+
[1m[35m (8.6ms)[0m commit transaction
|
312
|
+
Completed 200 OK in 61.5ms (Views: 0.5ms | ActiveRecord: 17.8ms)
|
332
313
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
333
|
-
[1m[35mSQL (0.
|
334
|
-
[1m[36m (
|
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", "a1s2d37333"]]
|
315
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
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", "a1s2d35998"]]
|
318
|
+
[1m[35m (9.9ms)[0m commit transaction
|
335
319
|
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
336
|
-
Processing by Api::UserController#
|
337
|
-
Parameters: {"uid"=>"
|
338
|
-
Completed 403 Forbidden in 3.
|
339
|
-
[1m[35m (0.1ms)[0m begin 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
|
342
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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)
|
320
|
+
Processing by Api::UserController#update as HTML
|
321
|
+
Parameters: {"uid"=>"a1s2d37333"}
|
322
|
+
Completed 403 Forbidden in 3.9ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
349
323
|
[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", "
|
351
|
-
[1m[36m (
|
352
|
-
[1m[35m (0.
|
353
|
-
[1m[36mSQL (0.
|
354
|
-
[1m[35m (
|
324
|
+
[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", "a1s2d38022"]]
|
325
|
+
[1m[36m (7.9ms)[0m [1mcommit transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m begin transaction
|
327
|
+
[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", "a1s2d31553"]]
|
328
|
+
[1m[35m (6.7ms)[0m commit transaction
|
355
329
|
Processing by Api::UserController#update as HTML
|
356
|
-
Parameters: {"uid"=>"
|
357
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '
|
330
|
+
Parameters: {"uid"=>"a1s2d38022"}
|
331
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38022' LIMIT 1[0m
|
358
332
|
[1m[35m (0.0ms)[0m begin transaction
|
359
333
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
360
334
|
- signin
|
361
335
|
- new permission
|
362
|
-
', "organisation_slug" = 'justice-league' WHERE "users"."id" =
|
363
|
-
[1m[35m (
|
364
|
-
Completed 200 OK in
|
365
|
-
[1m[36mUser Load (0.
|
366
|
-
[1m[35m (0.
|
367
|
-
[1m[36mSQL (0.
|
368
|
-
[1m[35m (
|
336
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 4[0m
|
337
|
+
[1m[35m (7.4ms)[0m commit transaction
|
338
|
+
Completed 200 OK in 10.8ms (ActiveRecord: 7.8ms)
|
339
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]]
|
340
|
+
[1m[35m (0.0ms)[0m begin transaction
|
341
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35990"]]
|
342
|
+
[1m[35m (9.1ms)[0m commit transaction
|
343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
344
|
+
[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", "a1s2d38499"]]
|
345
|
+
[1m[36m (8.4ms)[0m [1mcommit transaction[0m
|
346
|
+
Processing by Api::UserController#reauth as HTML
|
347
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
348
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
349
|
+
Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
|
369
350
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
370
|
-
[1m[35mSQL (0.
|
371
|
-
[1m[36m (
|
351
|
+
[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", "a1s2d3167"]]
|
352
|
+
[1m[36m (7.9ms)[0m [1mcommit transaction[0m
|
353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
354
|
+
[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", "a1s2d31758"]]
|
355
|
+
[1m[35m (7.8ms)[0m commit transaction
|
372
356
|
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
373
|
-
Processing by Api::UserController#
|
374
|
-
Parameters: {"uid"=>"
|
375
|
-
Completed 403 Forbidden in 1.
|
357
|
+
Processing by Api::UserController#reauth as HTML
|
358
|
+
Parameters: {"uid"=>"a1s2d3167"}
|
359
|
+
Completed 403 Forbidden in 1.5ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
360
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
361
|
+
[1m[35mSQL (0.1ms)[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", "a1s2d36336"]]
|
362
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
363
|
+
[1m[35m (0.0ms)[0m begin transaction
|
364
|
+
[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", "a1s2d34784"]]
|
365
|
+
[1m[35m (8.0ms)[0m commit transaction
|
366
|
+
Processing by Api::UserController#reauth as HTML
|
367
|
+
Parameters: {"uid"=>"a1s2d36336"}
|
368
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36336' LIMIT 1[0m
|
369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
370
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
371
|
+
- signin
|
372
|
+
' WHERE "users"."id" = 10[0m
|
373
|
+
[1m[35m (7.9ms)[0m commit transaction
|
374
|
+
Completed 200 OK in 10.3ms (ActiveRecord: 8.2ms)
|
375
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 10]]
|
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -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: -2569083915925200801
|
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: -2569083915925200801
|
328
328
|
requirements: []
|
329
329
|
rubyforge_project: gds-sso
|
330
330
|
rubygems_version: 1.8.23
|