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 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 = self.where(:uid => auth_hash["uid"]).first
48
+ if user
47
49
  if GDS::SSO::User.below_rails_4?
48
50
  user.update_attributes(user_params, as: :oauth)
49
51
  else
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.2.4"
3
+ VERSION = "9.2.5"
4
4
  end
5
5
  end
@@ -1,375 +1,376 @@
1
1
  Connecting to database specified by database.yml
2
-  (1.8ms) select sqlite_version(*)
3
-  (43.0ms) 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
-  (11.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
-  (10.2ms) 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
2
+  (3.0ms) select sqlite_version(*)
3
+  (163.8ms) 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
+  (27.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (11.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) begin transaction
7
+ SQL (46.8ms) 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
+  (11.7ms) commit transaction
9
+  (0.1ms) begin transaction
10
+ SQL (0.2ms) 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", "a1s2d39675"]]
11
+  (11.1ms) 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
+  (0.1ms) begin transaction
18
+ SQL (0.2ms) 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
+  (10.6ms) commit transaction
20
+  (0.0ms) begin transaction
21
+ SQL (0.1ms) 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", "a1s2d33143"]]
22
+  (18.6ms) commit transaction
23
+ Processing by Api::UserController#update as HTML
24
+ Parameters: {"uid"=>"a1s2d31715"}
25
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31715' LIMIT 1
26
+  (0.0ms) begin transaction
27
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
28
+ - signin
29
+ - new permission
30
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
31
+  (7.3ms) commit transaction
32
+ Completed 200 OK in 15.1ms (ActiveRecord: 7.8ms)
33
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
34
+  (0.1ms) begin transaction
35
+ SQL (0.2ms) 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", "a1s2d31854"]]
36
+  (8.6ms) commit transaction
37
+  (0.1ms) begin transaction
38
+ SQL (0.2ms) 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
+  (10.7ms) commit transaction
40
+ Processing by Api::UserController#reauth as HTML
41
+ Parameters: {"uid"=>"nonexistent-user"}
42
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
43
+ Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
44
+  (0.0ms) begin transaction
45
+ SQL (0.2ms) 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
+  (14.0ms) commit transaction
47
+  (0.1ms) begin transaction
48
+ SQL (0.1ms) 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", "a1s2d34570"]]
49
+  (7.8ms) 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
+  (0.1ms) begin transaction
55
+ SQL (0.2ms) 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
+  (16.8ms) commit transaction
57
+  (0.1ms) begin transaction
58
+ SQL (0.2ms) 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", "a1s2d31240"]]
59
+  (9.4ms) commit transaction
60
+ Processing by Api::UserController#reauth as HTML
61
+ Parameters: {"uid"=>"a1s2d34795"}
62
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34795' LIMIT 1
63
+  (0.0ms) begin transaction
64
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
65
+ - signin
66
+ ' WHERE "users"."id" = 9
67
+  (9.4ms) commit transaction
68
+ Completed 200 OK in 12.3ms (ActiveRecord: 9.8ms)
69
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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 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
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"=>"c17253b2a19713c3b9dbe7915b5d984ec3e7a7cd9c0aa47dc0637d6040b09638", "state"=>"2b9b700aa5caa73ff5bf19cd369cb7122700f421e404c0e1"}
77
+ Parameters: {"code"=>"7ceeca3a4b6c42fe16fcecfc452d3ac26214dfaea976b760b88d5c2046fc35c6", "state"=>"bfe446dbd3e6b89689e67f2a7de455ec34c954af5006c353"}
14
78
  Authenticating with gds_sso strategy
15
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
79
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
80
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
16
81
   (0.1ms) begin transaction
17
- SQL (28.4ms) 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"]]
18
-  (15.5ms) commit transaction
82
+ SQL (0.2ms) 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"]]
83
+  (77.6ms) commit transaction
19
84
   (0.1ms) begin transaction
20
85
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
21
86
  - signin
22
- ' WHERE "users"."id" = 1
23
-  (8.4ms) commit transaction
87
+ ' WHERE "users"."id" = 11
88
+  (9.4ms) commit transaction
24
89
  Redirected to http://www.example-client.com/restricted
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
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
- User Load (0.2ms) 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
93
+ User Load (0.1ms) 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-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
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"=>"e7362ce65211ea2b6741694584b57ca545473167d0483975d01314389cb015b2", "state"=>"7c50ca72261e2fd14b44e7e2c339c2db7685f04aec2feb5e"}
102
+ Parameters: {"code"=>"7793ee842db1c2cf2fc69b9e9075f93cfc89ed41df30f69cb1738a0369aee2d8", "state"=>"d75ad1182a561641f543b92edde40155a951ddd37fb35d4d"}
42
103
  Authenticating with gds_sso strategy
43
104
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
44
-  (0.0ms) begin transaction
45
-  (0.2ms) UPDATE "users" SET "permissions" = '---
105
+  (0.1ms) begin transaction
106
+  (0.1ms) UPDATE "users" SET "permissions" = '---
46
107
  - signin
47
- ' WHERE "users"."id" = 1
48
-  (19.9ms) commit transaction
108
+ ' WHERE "users"."id" = 11
109
+  (11.7ms) commit transaction
49
110
   (0.1ms) begin transaction
50
111
   (0.2ms) UPDATE "users" SET "permissions" = '---
51
112
  - signin
52
- ' WHERE "users"."id" = 1
53
-  (17.7ms) commit transaction
113
+ ' WHERE "users"."id" = 11
114
+  (20.3ms) commit transaction
54
115
  Redirected to http://www.example-client.com/restricted
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
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
- User Load (0.2ms) 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
119
+ User Load (0.3ms) 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.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
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"=>"e6f087298a5ff4f79a6693db2dc77e75592c933ae3d64a693ea04df5f63724e0", "state"=>"253ac4815d8c008b0481db3fab51b911dc19313193887d9c"}
128
+ Parameters: {"code"=>"bcaa28582753e45e6bd4c95cc289cc3d7b05fd941c2b5e1348297a4e2ba9d2f7", "state"=>"0f93f14eafcb7dd180923f498fa4195d543590bdc0b2b88d"}
68
129
  Authenticating with gds_sso strategy
69
130
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
70
131
   (0.0ms) begin transaction
71
132
   (0.2ms) UPDATE "users" SET "permissions" = '---
72
133
  - signin
73
- ' WHERE "users"."id" = 1
74
-  (17.2ms) commit transaction
75
-  (0.0ms) begin transaction
76
-  (0.2ms) UPDATE "users" SET "permissions" = '---
134
+ ' WHERE "users"."id" = 11
135
+  (12.0ms) commit transaction
136
+  (0.1ms) begin transaction
137
+  (0.3ms) UPDATE "users" SET "permissions" = '---
77
138
  - signin
78
- ' WHERE "users"."id" = 1
79
-  (24.3ms) commit transaction
139
+ ' WHERE "users"."id" = 11
140
+  (8.9ms) commit transaction
80
141
  Redirected to http://www.example-client.com/restricted
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
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
  User Load (0.2ms) 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
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 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
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"=>"793ad87df95f55d54c27b9653ab3c2ac69abb0d3d73264b5ba4dfe4745e639d6", "state"=>"03de4cd002c3a90d7fbe999be3e16a041442da29111673fe"}
157
+ Parameters: {"code"=>"1799f136508532555f8d1c56e2a2d45928533008960830eaeb1418f884c4460c", "state"=>"7d79d1c1ff1ba9c5f4a4d3216ee88c9624bbc2ed3ee58f99"}
94
158
  Authenticating with gds_sso strategy
95
159
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
96
160
   (0.1ms) begin transaction
97
161
   (0.2ms) UPDATE "users" SET "permissions" = '---
98
162
  - signin
99
- ' WHERE "users"."id" = 1
100
-  (17.9ms) commit transaction
101
-  (0.1ms) begin transaction
102
-  (0.2ms) UPDATE "users" SET "permissions" = '---
163
+ ' WHERE "users"."id" = 11
164
+  (9.1ms) commit transaction
165
+  (0.0ms) begin transaction
166
+  (0.1ms) UPDATE "users" SET "permissions" = '---
103
167
  - signin
104
- ' WHERE "users"."id" = 1
105
-  (10.6ms) commit transaction
168
+ ' WHERE "users"."id" = 11
169
+  (8.5ms) commit transaction
106
170
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
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
- User Load (0.3ms) 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
174
+ User Load (0.1ms) 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-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
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"=>"cd12c3757903f070081a6f8cfe35f6c33c36b026cdc889e6f2f541630fc2c896", "state"=>"55f3e34742ca0ff11ee732b228406243c5e12a416f7c473e"}
183
+ Parameters: {"code"=>"9439ea15b64638a170b933f3e25dfe10d79e234095c595217815719ddec7fb2b", "state"=>"c203315adddea73db9bb5697759c76f388494be845969b92"}
120
184
  Authenticating with gds_sso strategy
121
185
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
122
-  (0.0ms) begin transaction
123
-  (0.2ms) UPDATE "users" SET "permissions" = '---
186
+  (0.1ms) begin transaction
187
+  (0.3ms) UPDATE "users" SET "permissions" = '---
124
188
  - signin
125
- ' WHERE "users"."id" = 1
126
-  (16.4ms) commit transaction
127
-  (0.1ms) begin transaction
128
-  (0.2ms) UPDATE "users" SET "permissions" = '---
189
+ ' WHERE "users"."id" = 11
190
+  (11.2ms) commit transaction
191
+  (0.0ms) begin transaction
192
+  (0.1ms) UPDATE "users" SET "permissions" = '---
129
193
  - signin
130
- ' WHERE "users"."id" = 1
131
-  (11.3ms) commit transaction
194
+ ' WHERE "users"."id" = 11
195
+  (19.7ms) commit transaction
132
196
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
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
  User Load (0.2ms) 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
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.3ms
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
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"=>"7d1a96a2d2ed253fbfe84757cd175c5f7d176fb0e29d2d06c702354d9182fbd9", "state"=>"02180ea025a721333327bedcde048668a3a83b58f1114536"}
209
+ Parameters: {"code"=>"7f74a4ba35e169225049e1ac23160e3e01cd44abda76dba3b4df6aab94e8807a", "state"=>"c71813eb78652f4862363c8aecd4313403c9d62daefe2c64"}
146
210
  Authenticating with gds_sso strategy
147
211
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
148
212
   (0.1ms) begin transaction
149
213
   (0.2ms) UPDATE "users" SET "permissions" = '---
150
214
  - signin
151
- ' WHERE "users"."id" = 1
152
-  (12.2ms) commit transaction
215
+ ' WHERE "users"."id" = 11
216
+  (11.8ms) commit transaction
153
217
   (0.1ms) begin transaction
154
-  (0.2ms) UPDATE "users" SET "permissions" = '---
218
+  (0.3ms) UPDATE "users" SET "permissions" = '---
155
219
  - signin
156
- ' WHERE "users"."id" = 1
157
-  (9.3ms) commit transaction
220
+ ' WHERE "users"."id" = 11
221
+  (10.5ms) commit transaction
158
222
  Redirected to http://www.example-client.com/restricted
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
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
163
- Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
226
+ User Load (0.1ms) 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
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
165
-  (0.1ms) begin transaction
229
+  (0.0ms) begin transaction
166
230
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
167
231
  - signin
168
- ' WHERE "users"."id" = 1
169
-  (7.9ms) commit transaction
170
- Started GET "/restricted" for 127.0.0.1 at 2014-03-05 15:43:23 +0000
232
+ ' WHERE "users"."id" = 11
233
+  (10.4ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
236
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
173
237
  Authenticating with gds_sso strategy
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
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"=>"56eb3dffd12a8953bf2f6d1049faff0d5ddfc1600e806396e2ffdd6fbc71dcf0", "state"=>"12c077925373e4fa6b6a3b99be6b9ace4493c4e4390757c4"}
242
+ Parameters: {"code"=>"702c7a7b23556649ee690d0726c3e51c25e64f60d2656882fda21e2062c10259", "state"=>"a12432a6476203c4893388cd75de1f738cffccaf0a2d4e35"}
179
243
  Authenticating with gds_sso strategy
180
244
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
181
-  (0.1ms) begin transaction
245
+  (0.0ms) begin transaction
182
246
   (0.2ms) UPDATE "users" SET "permissions" = '---
183
247
  - signin
184
- ' WHERE "users"."id" = 1
185
-  (15.2ms) commit transaction
248
+ ' WHERE "users"."id" = 11
249
+  (15.6ms) commit transaction
186
250
   (0.1ms) begin transaction
187
251
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
188
252
  - signin
189
- ' WHERE "users"."id" = 1
190
-  (8.0ms) commit transaction
253
+ ' WHERE "users"."id" = 11
254
+  (22.1ms) commit transaction
191
255
  Redirected to http://www.example-client.com/restricted
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
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
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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
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.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
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"=>"b7b7baed9214541780349ad2c4d833887bc0785aca8973fc08bc8406540b40bb", "state"=>"c1d01e61d2642ae5272c2b858fd6d5ec706063f21f9d8f5f"}
268
+ Parameters: {"code"=>"7a28d23e2fe130e5255c098f6745d465bda47922781e012f2d4a9d894fdb01cd", "state"=>"30e43fb7014a3493898340c8c37f99fafed8ffe248690fa2"}
205
269
  Authenticating with gds_sso strategy
206
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
207
271
   (0.1ms) begin transaction
208
272
   (0.2ms) UPDATE "users" SET "permissions" = '---
209
273
  - signin
210
- ' WHERE "users"."id" = 1
211
-  (14.7ms) commit transaction
274
+ ' WHERE "users"."id" = 11
275
+  (14.5ms) commit transaction
212
276
   (0.1ms) begin transaction
213
277
   (0.2ms) UPDATE "users" SET "permissions" = '---
214
278
  - signin
215
- ' WHERE "users"."id" = 1
216
-  (5.2ms) commit transaction
279
+ ' WHERE "users"."id" = 11
280
+  (11.5ms) commit transaction
217
281
  Redirected to http://www.example-client.com/restricted
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
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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
285
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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.3ms
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
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"=>"e5115b56e9f871616d0ce6b91c4e3a6ed98697c11369d054e78b53e743428fab", "state"=>"e2f93b3e92f7013c689093967ee87702c94161316cc15871"}
294
+ Parameters: {"code"=>"649273a9b40bf516a1e3aac804dd70e27351c1e425e9d1662e8dd782a80caf26", "state"=>"153f4b58a081c01d21717381f839c22ca59a67a4a16e0da6"}
231
295
  Authenticating with gds_sso strategy
232
296
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
233
297
   (0.1ms) begin transaction
234
298
   (0.2ms) UPDATE "users" SET "permissions" = '---
235
299
  - signin
236
- ' WHERE "users"."id" = 1
237
-  (11.6ms) commit transaction
300
+ ' WHERE "users"."id" = 11
301
+  (10.5ms) commit transaction
238
302
   (0.1ms) begin transaction
239
303
   (0.2ms) UPDATE "users" SET "permissions" = '---
240
304
  - signin
241
- ' WHERE "users"."id" = 1
242
-  (16.1ms) commit transaction
305
+ ' WHERE "users"."id" = 11
306
+  (9.3ms) commit transaction
243
307
  Redirected to http://www.example-client.com/restricted
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
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
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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
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.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
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"=>"df680332c2702583c55bba06c5b1d8d6f459dfeb046fcca238beab8e4cb14c76", "state"=>"81f3dcac69b60beea60b10bcdc713495805f16089cae99ce"}
320
+ Parameters: {"code"=>"abfdfe30f0b14ee000d529da3dff3a54f6642f676e2676302a9c23287c93839e", "state"=>"15c0e0ca8f17e6b83aa5cbbf66063a31dd84e7ca5ba5c72a"}
257
321
  Authenticating with gds_sso strategy
258
322
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
259
323
   (0.1ms) begin transaction
260
324
   (0.2ms) UPDATE "users" SET "permissions" = '---
261
325
  - signin
262
- ' WHERE "users"."id" = 1
263
-  (15.0ms) commit transaction
264
-  (0.1ms) begin transaction
265
-  (0.2ms) UPDATE "users" SET "permissions" = '---
326
+ ' WHERE "users"."id" = 11
327
+  (11.5ms) commit transaction
328
+  (0.0ms) begin transaction
329
+  (0.1ms) UPDATE "users" SET "permissions" = '---
266
330
  - signin
267
- ' WHERE "users"."id" = 1
268
-  (8.4ms) commit transaction
331
+ ' WHERE "users"."id" = 11
332
+  (10.4ms) commit transaction
269
333
  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
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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
337
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
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
- User Load (0.1ms) 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
341
+ User Load (0.2ms) 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
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
283
347
   (0.1ms) begin transaction
284
348
   (0.2ms) UPDATE "users" SET "permissions" = '---
285
349
  - signin
286
- ' WHERE "users"."id" = 1
287
-  (17.8ms) commit transaction
350
+ ' WHERE "users"."id" = 11
351
+  (10.0ms) commit transaction
288
352
   (0.0ms) begin transaction
289
353
   (0.1ms) UPDATE "users" SET "permissions" = '---
290
354
  - signin
291
- ' WHERE "users"."id" = 1
292
-  (9.2ms) commit transaction
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
355
+ ' WHERE "users"."id" = 11
356
+  (6.1ms) commit transaction
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 10.0ms
298
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-03-05 15:43:25 +0000
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
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
302
366
   (0.1ms) begin transaction
303
367
   (0.2ms) UPDATE "users" SET "permissions" = '---
304
368
  - signin
305
- ' WHERE "users"."id" = 1
306
-  (8.6ms) commit transaction
369
+ ' WHERE "users"."id" = 11
370
+  (12.2ms) commit transaction
307
371
   (0.0ms) begin transaction
308
372
   (0.1ms) UPDATE "users" SET "permissions" = '---
309
373
  - signin
310
- ' WHERE "users"."id" = 1
311
-  (8.6ms) commit transaction
312
- Completed 200 OK in 61.5ms (Views: 0.5ms | ActiveRecord: 17.8ms)
313
-  (0.1ms) begin transaction
314
- SQL (0.2ms) 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
-  (8.7ms) commit transaction
316
-  (0.0ms) begin transaction
317
- SQL (0.1ms) 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", "a1s2d35998"]]
318
-  (9.9ms) 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
-  (0.1ms) begin transaction
324
- SQL (0.2ms) 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
-  (7.9ms) commit transaction
326
-  (0.0ms) begin transaction
327
- SQL (0.1ms) 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", "a1s2d31553"]]
328
-  (6.7ms) commit transaction
329
- Processing by Api::UserController#update as HTML
330
- Parameters: {"uid"=>"a1s2d38022"}
331
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38022' LIMIT 1
332
-  (0.0ms) begin transaction
333
-  (0.1ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
334
- - signin
335
- - new permission
336
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 4
337
-  (7.4ms) commit transaction
338
- Completed 200 OK in 10.8ms (ActiveRecord: 7.8ms)
339
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
340
-  (0.0ms) begin transaction
341
- SQL (0.1ms) 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", "a1s2d35990"]]
342
-  (9.1ms) commit transaction
343
-  (0.0ms) begin transaction
344
- SQL (0.1ms) 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
-  (8.4ms) commit transaction
346
- Processing by Api::UserController#reauth as HTML
347
- Parameters: {"uid"=>"nonexistent-user"}
348
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
349
- Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
350
-  (0.0ms) begin transaction
351
- SQL (0.2ms) 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
-  (7.9ms) commit transaction
353
-  (0.0ms) begin transaction
354
- SQL (0.1ms) 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", "a1s2d31758"]]
355
-  (7.8ms) 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
-  (0.1ms) begin transaction
361
- SQL (0.1ms) 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
-  (9.3ms) commit transaction
363
-  (0.0ms) begin transaction
364
- SQL (0.1ms) 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", "a1s2d34784"]]
365
-  (8.0ms) commit transaction
366
- Processing by Api::UserController#reauth as HTML
367
- Parameters: {"uid"=>"a1s2d36336"}
368
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36336' LIMIT 1
369
-  (0.0ms) begin transaction
370
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
371
- - signin
372
- ' WHERE "users"."id" = 10
373
-  (7.9ms) commit transaction
374
- Completed 200 OK in 10.3ms (ActiveRecord: 8.2ms)
375
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
374
+ ' WHERE "users"."id" = 11
375
+  (7.3ms) 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
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-05 00:00:00.000000000 Z
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: -2569083915925200801
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: -2569083915925200801
327
+ hash: 1016089070449543199
328
328
  requirements: []
329
329
  rubyforge_project: gds-sso
330
330
  rubygems_version: 1.8.23