gds-sso 9.2.4 → 9.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/gds-sso/user.rb +3 -1
- data/lib/gds-sso/version.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +233 -232
- metadata +4 -4
data/lib/gds-sso/user.rb
CHANGED
@@ -42,8 +42,10 @@ module GDS
|
|
42
42
|
module ClassMethods
|
43
43
|
def find_for_gds_oauth(auth_hash)
|
44
44
|
user_params = GDS::SSO::User.user_params_from_auth_hash(auth_hash.to_hash)
|
45
|
+
user = self.where(:uid => user_params['uid']).first ||
|
46
|
+
self.where(:email => user_params['email']).first
|
45
47
|
|
46
|
-
if user
|
48
|
+
if user
|
47
49
|
if GDS::SSO::User.below_rails_4?
|
48
50
|
user.update_attributes(user_params, as: :oauth)
|
49
51
|
else
|
data/lib/gds-sso/version.rb
CHANGED
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -1,375 +1,376 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[36m (
|
5
|
-
[1m[35m (
|
6
|
-
|
2
|
+
[1m[36m (3.0ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
+
[1m[35m (163.8ms)[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 (27.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5
|
+
[1m[35m (11.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35mSQL (46.8ms)[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", "a1s2d34520"]]
|
8
|
+
[1m[36m (11.7ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10
|
+
[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", "a1s2d39675"]]
|
11
|
+
[1m[35m (11.1ms)[0m commit transaction
|
12
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
13
|
+
Processing by Api::UserController#update as HTML
|
14
|
+
Parameters: {"uid"=>"a1s2d34520"}
|
15
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
|
16
|
+
Completed 403 Forbidden in 54.5ms (Views: 53.7ms | ActiveRecord: 0.0ms)
|
17
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
+
[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", "a1s2d31715"]]
|
19
|
+
[1m[36m (10.6ms)[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", "a1s2d33143"]]
|
22
|
+
[1m[35m (18.6ms)[0m commit transaction
|
23
|
+
Processing by Api::UserController#update as HTML
|
24
|
+
Parameters: {"uid"=>"a1s2d31715"}
|
25
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31715' LIMIT 1[0m
|
26
|
+
[1m[35m (0.0ms)[0m begin transaction
|
27
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
28
|
+
- signin
|
29
|
+
- new permission
|
30
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3[0m
|
31
|
+
[1m[35m (7.3ms)[0m commit transaction
|
32
|
+
Completed 200 OK in 15.1ms (ActiveRecord: 7.8ms)
|
33
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
34
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35
|
+
[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", "a1s2d31854"]]
|
36
|
+
[1m[35m (8.6ms)[0m commit transaction
|
37
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33744"]]
|
39
|
+
[1m[36m (10.7ms)[0m [1mcommit transaction[0m
|
40
|
+
Processing by Api::UserController#reauth as HTML
|
41
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
42
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
43
|
+
Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
|
44
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45
|
+
[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", "a1s2d33613"]]
|
46
|
+
[1m[36m (14.0ms)[0m [1mcommit transaction[0m
|
47
|
+
[1m[35m (0.1ms)[0m begin transaction
|
48
|
+
[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", "a1s2d34570"]]
|
49
|
+
[1m[35m (7.8ms)[0m commit transaction
|
50
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
51
|
+
Processing by Api::UserController#reauth as HTML
|
52
|
+
Parameters: {"uid"=>"a1s2d33613"}
|
53
|
+
Completed 403 Forbidden in 1.5ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
54
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55
|
+
[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", "a1s2d34795"]]
|
56
|
+
[1m[36m (16.8ms)[0m [1mcommit transaction[0m
|
57
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58
|
+
[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", "a1s2d31240"]]
|
59
|
+
[1m[35m (9.4ms)[0m commit transaction
|
60
|
+
Processing by Api::UserController#reauth as HTML
|
61
|
+
Parameters: {"uid"=>"a1s2d34795"}
|
62
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34795' LIMIT 1[0m
|
63
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
65
|
+
- signin
|
66
|
+
' WHERE "users"."id" = 9[0m
|
67
|
+
[1m[35m (9.4ms)[0m commit transaction
|
68
|
+
Completed 200 OK in 12.3ms (ActiveRecord: 9.8ms)
|
69
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 9]]
|
70
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:28 +0000
|
7
71
|
Processing by ExampleController#restricted as HTML
|
8
72
|
Authenticating with gds_sso strategy
|
9
|
-
Completed in
|
10
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
11
|
-
Started GET "/auth/gds/callback?code=
|
73
|
+
Completed in 37.2ms
|
74
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:28 +0000
|
75
|
+
Started GET "/auth/gds/callback?code=7ceeca3a4b6c42fe16fcecfc452d3ac26214dfaea976b760b88d5c2046fc35c6&state=bfe446dbd3e6b89689e67f2a7de455ec34c954af5006c353" for 127.0.0.1 at 2014-03-26 15:49:29 +0000
|
12
76
|
Processing by AuthenticationsController#callback as HTML
|
13
|
-
Parameters: {"code"=>"
|
77
|
+
Parameters: {"code"=>"7ceeca3a4b6c42fe16fcecfc452d3ac26214dfaea976b760b88d5c2046fc35c6", "state"=>"bfe446dbd3e6b89689e67f2a7de455ec34c954af5006c353"}
|
14
78
|
Authenticating with gds_sso strategy
|
15
|
-
[1m[
|
79
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
80
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
16
81
|
[1m[35m (0.1ms)[0m begin transaction
|
17
|
-
[1m[36mSQL (
|
18
|
-
[1m[35m (
|
82
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
83
|
+
[1m[35m (77.6ms)[0m commit transaction
|
19
84
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20
85
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
21
86
|
- signin
|
22
|
-
' WHERE "users"."id" =
|
23
|
-
[1m[36m (
|
87
|
+
' WHERE "users"."id" = 11
|
88
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
24
89
|
Redirected to http://www.example-client.com/restricted
|
25
|
-
Completed 302 Found in
|
26
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
90
|
+
Completed 302 Found in 93.3ms (ActiveRecord: 87.7ms)
|
91
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
27
92
|
Processing by ExampleController#restricted as HTML
|
28
|
-
[1m[35mUser Load (0.
|
29
|
-
|
30
|
-
|
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
|
93
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
94
|
+
Completed 200 OK in 4.6ms (Views: 3.6ms | ActiveRecord: 0.1ms)
|
95
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
35
96
|
Processing by ExampleController#restricted as HTML
|
36
97
|
Authenticating with gds_sso strategy
|
37
98
|
Completed in 0.3ms
|
38
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
39
|
-
Started GET "/auth/gds/callback?code=
|
99
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
100
|
+
Started GET "/auth/gds/callback?code=7793ee842db1c2cf2fc69b9e9075f93cfc89ed41df30f69cb1738a0369aee2d8&state=d75ad1182a561641f543b92edde40155a951ddd37fb35d4d" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
40
101
|
Processing by AuthenticationsController#callback as HTML
|
41
|
-
Parameters: {"code"=>"
|
102
|
+
Parameters: {"code"=>"7793ee842db1c2cf2fc69b9e9075f93cfc89ed41df30f69cb1738a0369aee2d8", "state"=>"d75ad1182a561641f543b92edde40155a951ddd37fb35d4d"}
|
42
103
|
Authenticating with gds_sso strategy
|
43
104
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
44
|
-
[1m[35m (0.
|
45
|
-
[1m[36m (0.
|
105
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
46
107
|
- signin
|
47
|
-
' WHERE "users"."id" =
|
48
|
-
[1m[35m (
|
108
|
+
' WHERE "users"."id" = 11[0m
|
109
|
+
[1m[35m (11.7ms)[0m commit transaction
|
49
110
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50
111
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
51
112
|
- signin
|
52
|
-
' WHERE "users"."id" =
|
53
|
-
[1m[36m (
|
113
|
+
' WHERE "users"."id" = 11
|
114
|
+
[1m[36m (20.3ms)[0m [1mcommit transaction[0m
|
54
115
|
Redirected to http://www.example-client.com/restricted
|
55
|
-
Completed 302 Found in
|
56
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
116
|
+
Completed 302 Found in 38.1ms (ActiveRecord: 32.7ms)
|
117
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
57
118
|
Processing by ExampleController#restricted as HTML
|
58
|
-
[1m[35mUser Load (0.
|
59
|
-
Completed 200 OK in
|
60
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
119
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
120
|
+
Completed 200 OK in 2.4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
|
121
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
61
122
|
Processing by ExampleController#restricted as HTML
|
62
123
|
Authenticating with gds_sso strategy
|
63
|
-
Completed in 0.
|
64
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
65
|
-
Started GET "/auth/gds/callback?code=
|
124
|
+
Completed in 0.3ms
|
125
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
126
|
+
Started GET "/auth/gds/callback?code=bcaa28582753e45e6bd4c95cc289cc3d7b05fd941c2b5e1348297a4e2ba9d2f7&state=0f93f14eafcb7dd180923f498fa4195d543590bdc0b2b88d" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
66
127
|
Processing by AuthenticationsController#callback as HTML
|
67
|
-
Parameters: {"code"=>"
|
128
|
+
Parameters: {"code"=>"bcaa28582753e45e6bd4c95cc289cc3d7b05fd941c2b5e1348297a4e2ba9d2f7", "state"=>"0f93f14eafcb7dd180923f498fa4195d543590bdc0b2b88d"}
|
68
129
|
Authenticating with gds_sso strategy
|
69
130
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
70
131
|
[1m[35m (0.0ms)[0m begin transaction
|
71
132
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
72
133
|
- signin
|
73
|
-
' WHERE "users"."id" =
|
74
|
-
[1m[35m (
|
75
|
-
[1m[36m (0.
|
76
|
-
[1m[35m (0.
|
134
|
+
' WHERE "users"."id" = 11[0m
|
135
|
+
[1m[35m (12.0ms)[0m commit transaction
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
77
138
|
- signin
|
78
|
-
' WHERE "users"."id" =
|
79
|
-
[1m[36m (
|
139
|
+
' WHERE "users"."id" = 11
|
140
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
80
141
|
Redirected to http://www.example-client.com/restricted
|
81
|
-
Completed 302 Found in
|
82
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
142
|
+
Completed 302 Found in 26.7ms (ActiveRecord: 21.5ms)
|
143
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:30 +0000
|
83
144
|
Processing by ExampleController#restricted as HTML
|
84
145
|
[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.
|
86
|
-
Started GET "/
|
146
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
147
|
+
Started GET "/" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
148
|
+
Processing by ExampleController#index as HTML
|
149
|
+
Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
150
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
87
151
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
88
152
|
Authenticating with gds_sso strategy
|
89
|
-
Completed in
|
90
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
91
|
-
Started GET "/auth/gds/callback?code=
|
153
|
+
Completed in 1.2ms
|
154
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
155
|
+
Started GET "/auth/gds/callback?code=1799f136508532555f8d1c56e2a2d45928533008960830eaeb1418f884c4460c&state=7d79d1c1ff1ba9c5f4a4d3216ee88c9624bbc2ed3ee58f99" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
92
156
|
Processing by AuthenticationsController#callback as HTML
|
93
|
-
Parameters: {"code"=>"
|
157
|
+
Parameters: {"code"=>"1799f136508532555f8d1c56e2a2d45928533008960830eaeb1418f884c4460c", "state"=>"7d79d1c1ff1ba9c5f4a4d3216ee88c9624bbc2ed3ee58f99"}
|
94
158
|
Authenticating with gds_sso strategy
|
95
159
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
96
160
|
[1m[35m (0.1ms)[0m begin transaction
|
97
161
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
98
162
|
- signin
|
99
|
-
' WHERE "users"."id" =
|
100
|
-
[1m[35m (
|
101
|
-
[1m[36m (0.
|
102
|
-
[1m[35m (0.
|
163
|
+
' WHERE "users"."id" = 11[0m
|
164
|
+
[1m[35m (9.1ms)[0m commit transaction
|
165
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
166
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
103
167
|
- signin
|
104
|
-
' WHERE "users"."id" =
|
105
|
-
[1m[36m (
|
168
|
+
' WHERE "users"."id" = 11
|
169
|
+
[1m[36m (8.5ms)[0m [1mcommit transaction[0m
|
106
170
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
107
|
-
Completed 302 Found in
|
108
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-
|
171
|
+
Completed 302 Found in 23.1ms (ActiveRecord: 18.2ms)
|
172
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
109
173
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
110
|
-
[1m[35mUser Load (0.
|
111
|
-
Completed 200 OK in
|
112
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-
|
174
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
175
|
+
Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
176
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
113
177
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
114
178
|
Authenticating with gds_sso strategy
|
115
179
|
Completed in 0.2ms
|
116
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
117
|
-
Started GET "/auth/gds/callback?code=
|
180
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
181
|
+
Started GET "/auth/gds/callback?code=9439ea15b64638a170b933f3e25dfe10d79e234095c595217815719ddec7fb2b&state=c203315adddea73db9bb5697759c76f388494be845969b92" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
118
182
|
Processing by AuthenticationsController#callback as HTML
|
119
|
-
Parameters: {"code"=>"
|
183
|
+
Parameters: {"code"=>"9439ea15b64638a170b933f3e25dfe10d79e234095c595217815719ddec7fb2b", "state"=>"c203315adddea73db9bb5697759c76f388494be845969b92"}
|
120
184
|
Authenticating with gds_sso strategy
|
121
185
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
122
|
-
[1m[35m (0.
|
123
|
-
[1m[36m (0.
|
186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
187
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
124
188
|
- signin
|
125
|
-
' WHERE "users"."id" =
|
126
|
-
[1m[35m (
|
127
|
-
[1m[36m (0.
|
128
|
-
[1m[35m (0.
|
189
|
+
' WHERE "users"."id" = 11[0m
|
190
|
+
[1m[35m (11.2ms)[0m commit transaction
|
191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
192
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
129
193
|
- signin
|
130
|
-
' WHERE "users"."id" =
|
131
|
-
[1m[36m (
|
194
|
+
' WHERE "users"."id" = 11
|
195
|
+
[1m[36m (19.7ms)[0m [1mcommit transaction[0m
|
132
196
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
133
|
-
Completed 302 Found in
|
134
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-
|
197
|
+
Completed 302 Found in 61.6ms (ActiveRecord: 31.6ms)
|
198
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-26 15:49:31 +0000
|
135
199
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
136
200
|
[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.
|
138
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
201
|
+
Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
202
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
139
203
|
Processing by ExampleController#restricted as HTML
|
140
204
|
Authenticating with gds_sso strategy
|
141
|
-
Completed in 0.
|
142
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
143
|
-
Started GET "/auth/gds/callback?code=
|
205
|
+
Completed in 0.4ms
|
206
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
207
|
+
Started GET "/auth/gds/callback?code=7f74a4ba35e169225049e1ac23160e3e01cd44abda76dba3b4df6aab94e8807a&state=c71813eb78652f4862363c8aecd4313403c9d62daefe2c64" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
144
208
|
Processing by AuthenticationsController#callback as HTML
|
145
|
-
Parameters: {"code"=>"
|
209
|
+
Parameters: {"code"=>"7f74a4ba35e169225049e1ac23160e3e01cd44abda76dba3b4df6aab94e8807a", "state"=>"c71813eb78652f4862363c8aecd4313403c9d62daefe2c64"}
|
146
210
|
Authenticating with gds_sso strategy
|
147
211
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
148
212
|
[1m[35m (0.1ms)[0m begin transaction
|
149
213
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
150
214
|
- signin
|
151
|
-
' WHERE "users"."id" =
|
152
|
-
[1m[35m (
|
215
|
+
' WHERE "users"."id" = 11[0m
|
216
|
+
[1m[35m (11.8ms)[0m commit transaction
|
153
217
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
154
|
-
[1m[35m (0.
|
218
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
155
219
|
- signin
|
156
|
-
' WHERE "users"."id" =
|
157
|
-
[1m[36m (
|
220
|
+
' WHERE "users"."id" = 11
|
221
|
+
[1m[36m (10.5ms)[0m [1mcommit transaction[0m
|
158
222
|
Redirected to http://www.example-client.com/restricted
|
159
|
-
Completed 302 Found in
|
160
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
223
|
+
Completed 302 Found in 29.4ms (ActiveRecord: 23.1ms)
|
224
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
161
225
|
Processing by ExampleController#restricted as HTML
|
162
|
-
[1m[35mUser Load (0.
|
163
|
-
Completed 200 OK in 1.4ms (Views: 0.
|
226
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
227
|
+
Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
164
228
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
165
|
-
[1m[35m (0.
|
229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
166
230
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
167
231
|
- signin
|
168
|
-
' WHERE "users"."id" =
|
169
|
-
[1m[35m (
|
170
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
232
|
+
' WHERE "users"."id" = 11[0m
|
233
|
+
[1m[35m (10.4ms)[0m commit transaction
|
234
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
171
235
|
Processing by ExampleController#restricted as HTML
|
172
|
-
[1m[36mUser Load (0.
|
236
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
173
237
|
Authenticating with gds_sso strategy
|
174
|
-
Completed in
|
175
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
176
|
-
Started GET "/auth/gds/callback?code=
|
238
|
+
Completed in 1.0ms
|
239
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
240
|
+
Started GET "/auth/gds/callback?code=702c7a7b23556649ee690d0726c3e51c25e64f60d2656882fda21e2062c10259&state=a12432a6476203c4893388cd75de1f738cffccaf0a2d4e35" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
177
241
|
Processing by AuthenticationsController#callback as HTML
|
178
|
-
Parameters: {"code"=>"
|
242
|
+
Parameters: {"code"=>"702c7a7b23556649ee690d0726c3e51c25e64f60d2656882fda21e2062c10259", "state"=>"a12432a6476203c4893388cd75de1f738cffccaf0a2d4e35"}
|
179
243
|
Authenticating with gds_sso strategy
|
180
244
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
181
|
-
[1m[36m (0.
|
245
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
182
246
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
183
247
|
- signin
|
184
|
-
' WHERE "users"."id" =
|
185
|
-
[1m[36m (15.
|
248
|
+
' WHERE "users"."id" = 11
|
249
|
+
[1m[36m (15.6ms)[0m [1mcommit transaction[0m
|
186
250
|
[1m[35m (0.1ms)[0m begin transaction
|
187
251
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
188
252
|
- signin
|
189
|
-
' WHERE "users"."id" =
|
190
|
-
[1m[35m (
|
253
|
+
' WHERE "users"."id" = 11[0m
|
254
|
+
[1m[35m (22.1ms)[0m commit transaction
|
191
255
|
Redirected to http://www.example-client.com/restricted
|
192
|
-
Completed 302 Found in
|
193
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
256
|
+
Completed 302 Found in 43.1ms (ActiveRecord: 38.4ms)
|
257
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:32 +0000
|
194
258
|
Processing by ExampleController#restricted as HTML
|
195
259
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
196
|
-
Completed 200 OK in 1.
|
197
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
260
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
261
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
198
262
|
Processing by ExampleController#restricted as HTML
|
199
263
|
Authenticating with gds_sso strategy
|
200
|
-
Completed in 0.
|
201
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
202
|
-
Started GET "/auth/gds/callback?code=
|
264
|
+
Completed in 0.3ms
|
265
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
266
|
+
Started GET "/auth/gds/callback?code=7a28d23e2fe130e5255c098f6745d465bda47922781e012f2d4a9d894fdb01cd&state=30e43fb7014a3493898340c8c37f99fafed8ffe248690fa2" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
203
267
|
Processing by AuthenticationsController#callback as HTML
|
204
|
-
Parameters: {"code"=>"
|
268
|
+
Parameters: {"code"=>"7a28d23e2fe130e5255c098f6745d465bda47922781e012f2d4a9d894fdb01cd", "state"=>"30e43fb7014a3493898340c8c37f99fafed8ffe248690fa2"}
|
205
269
|
Authenticating with gds_sso strategy
|
206
|
-
[1m[35mUser Load (0.
|
270
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
207
271
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208
272
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
209
273
|
- signin
|
210
|
-
' WHERE "users"."id" =
|
211
|
-
[1m[36m (14.
|
274
|
+
' WHERE "users"."id" = 11
|
275
|
+
[1m[36m (14.5ms)[0m [1mcommit transaction[0m
|
212
276
|
[1m[35m (0.1ms)[0m begin transaction
|
213
277
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
214
278
|
- signin
|
215
|
-
' WHERE "users"."id" =
|
216
|
-
[1m[35m (
|
279
|
+
' WHERE "users"."id" = 11[0m
|
280
|
+
[1m[35m (11.5ms)[0m commit transaction
|
217
281
|
Redirected to http://www.example-client.com/restricted
|
218
|
-
Completed 302 Found in
|
219
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
282
|
+
Completed 302 Found in 33.1ms (ActiveRecord: 26.7ms)
|
283
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
220
284
|
Processing by ExampleController#restricted as HTML
|
221
|
-
[1m[36mUser Load (0.
|
222
|
-
Completed 200 OK in 1.
|
223
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
285
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
286
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
287
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-27 11:54:33 +0000
|
224
288
|
Processing by ExampleController#restricted as HTML
|
225
289
|
Authenticating with gds_sso strategy
|
226
|
-
Completed in 0.
|
227
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
228
|
-
Started GET "/auth/gds/callback?code=
|
290
|
+
Completed in 0.2ms
|
291
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-27 11:54:33 +0000
|
292
|
+
Started GET "/auth/gds/callback?code=649273a9b40bf516a1e3aac804dd70e27351c1e425e9d1662e8dd782a80caf26&state=153f4b58a081c01d21717381f839c22ca59a67a4a16e0da6" for 127.0.0.1 at 2014-03-27 11:54:33 +0000
|
229
293
|
Processing by AuthenticationsController#callback as HTML
|
230
|
-
Parameters: {"code"=>"
|
294
|
+
Parameters: {"code"=>"649273a9b40bf516a1e3aac804dd70e27351c1e425e9d1662e8dd782a80caf26", "state"=>"153f4b58a081c01d21717381f839c22ca59a67a4a16e0da6"}
|
231
295
|
Authenticating with gds_sso strategy
|
232
296
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
233
297
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
234
298
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
235
299
|
- signin
|
236
|
-
' WHERE "users"."id" =
|
237
|
-
[1m[36m (
|
300
|
+
' WHERE "users"."id" = 11
|
301
|
+
[1m[36m (10.5ms)[0m [1mcommit transaction[0m
|
238
302
|
[1m[35m (0.1ms)[0m begin transaction
|
239
303
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
240
304
|
- signin
|
241
|
-
' WHERE "users"."id" =
|
242
|
-
[1m[35m (
|
305
|
+
' WHERE "users"."id" = 11[0m
|
306
|
+
[1m[35m (9.3ms)[0m commit transaction
|
243
307
|
Redirected to http://www.example-client.com/restricted
|
244
|
-
Completed 302 Found in
|
245
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
308
|
+
Completed 302 Found in 25.2ms (ActiveRecord: 20.5ms)
|
309
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-27 11:54:33 +0000
|
246
310
|
Processing by ExampleController#restricted as HTML
|
247
311
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
248
|
-
Completed 200 OK in 1.
|
249
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
312
|
+
Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
313
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
250
314
|
Processing by ExampleController#restricted as HTML
|
251
315
|
Authenticating with gds_sso strategy
|
252
|
-
Completed in 0.
|
253
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-
|
254
|
-
Started GET "/auth/gds/callback?code=
|
316
|
+
Completed in 0.4ms
|
317
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-03-26 15:49:33 +0000
|
318
|
+
Started GET "/auth/gds/callback?code=abfdfe30f0b14ee000d529da3dff3a54f6642f676e2676302a9c23287c93839e&state=15c0e0ca8f17e6b83aa5cbbf66063a31dd84e7ca5ba5c72a" for 127.0.0.1 at 2014-03-26 15:49:34 +0000
|
255
319
|
Processing by AuthenticationsController#callback as HTML
|
256
|
-
Parameters: {"code"=>"
|
320
|
+
Parameters: {"code"=>"abfdfe30f0b14ee000d529da3dff3a54f6642f676e2676302a9c23287c93839e", "state"=>"15c0e0ca8f17e6b83aa5cbbf66063a31dd84e7ca5ba5c72a"}
|
257
321
|
Authenticating with gds_sso strategy
|
258
322
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
259
323
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
260
324
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
261
325
|
- signin
|
262
|
-
' WHERE "users"."id" =
|
263
|
-
[1m[36m (
|
264
|
-
[1m[35m (0.
|
265
|
-
[1m[36m (0.
|
326
|
+
' WHERE "users"."id" = 11
|
327
|
+
[1m[36m (11.5ms)[0m [1mcommit transaction[0m
|
328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
266
330
|
- signin
|
267
|
-
' WHERE "users"."id" =
|
268
|
-
[1m[35m (
|
331
|
+
' WHERE "users"."id" = 11[0m
|
332
|
+
[1m[35m (10.4ms)[0m commit transaction
|
269
333
|
Redirected to http://www.example-client.com/restricted
|
270
|
-
Completed 302 Found in
|
271
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
334
|
+
Completed 302 Found in 27.5ms (ActiveRecord: 22.5ms)
|
335
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:34 +0000
|
272
336
|
Processing by ExampleController#restricted as HTML
|
273
|
-
[1m[36mUser Load (0.
|
274
|
-
Completed 200 OK in 1.
|
275
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
337
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
338
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
339
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-27 11:44:34 +0000
|
276
340
|
Processing by ExampleController#restricted as HTML
|
277
|
-
[1m[35mUser Load (0.
|
278
|
-
Completed 200 OK in
|
279
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
341
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
342
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
343
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:34 +0000
|
280
344
|
Processing by ExampleController#restricted as JSON
|
281
345
|
Authenticating with gds_bearer_token strategy
|
282
346
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
283
347
|
[1m[35m (0.1ms)[0m begin transaction
|
284
348
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
285
349
|
- signin
|
286
|
-
' WHERE "users"."id" =
|
287
|
-
[1m[35m (
|
350
|
+
' WHERE "users"."id" = 11[0m
|
351
|
+
[1m[35m (10.0ms)[0m commit transaction
|
288
352
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
289
353
|
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
290
354
|
- signin
|
291
|
-
' WHERE "users"."id" =
|
292
|
-
[1m[36m (
|
293
|
-
Completed 200 OK in
|
294
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-03-
|
355
|
+
' WHERE "users"."id" = 11
|
356
|
+
[1m[36m (6.1ms)[0m [1mcommit transaction[0m
|
357
|
+
Completed 200 OK in 64.0ms (Views: 0.5ms | ActiveRecord: 16.6ms)
|
358
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-03-26 15:49:34 +0000
|
295
359
|
Processing by ExampleController#restricted as JSON
|
296
360
|
Authenticating with gds_bearer_token strategy
|
297
|
-
Completed in
|
298
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-
|
361
|
+
Completed in 8.0ms
|
362
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-26 15:49:34 +0000
|
299
363
|
Processing by ExampleController#this_requires_signin_permission as JSON
|
300
364
|
Authenticating with gds_bearer_token strategy
|
301
365
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
302
366
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
303
367
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
304
368
|
- signin
|
305
|
-
' WHERE "users"."id" =
|
306
|
-
[1m[36m (
|
369
|
+
' WHERE "users"."id" = 11
|
370
|
+
[1m[36m (12.2ms)[0m [1mcommit transaction[0m
|
307
371
|
[1m[35m (0.0ms)[0m begin transaction
|
308
372
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
309
373
|
- signin
|
310
|
-
' WHERE "users"."id" =
|
311
|
-
[1m[35m (
|
312
|
-
Completed 200 OK in
|
313
|
-
[1m[36m (0.1ms)[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", "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
|
319
|
-
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
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)
|
323
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
329
|
-
Processing by Api::UserController#update as HTML
|
330
|
-
Parameters: {"uid"=>"a1s2d38022"}
|
331
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38022' LIMIT 1[0m
|
332
|
-
[1m[35m (0.0ms)[0m begin transaction
|
333
|
-
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
334
|
-
- signin
|
335
|
-
- new permission
|
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)
|
350
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
356
|
-
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
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]]
|
374
|
+
' WHERE "users"."id" = 11[0m
|
375
|
+
[1m[35m (7.3ms)[0m commit transaction
|
376
|
+
Completed 200 OK in 65.2ms (Views: 0.5ms | ActiveRecord: 20.1ms)
|
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.5
|
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-03-
|
13
|
+
date: 2014-03-26 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: 1016089070449543199
|
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: 1016089070449543199
|
328
328
|
requirements: []
|
329
329
|
rubyforge_project: gds-sso
|
330
330
|
rubygems_version: 1.8.23
|