gds-sso 13.5.0 → 13.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72fc2354ba2f54ba192293b50861f8aff690edca
4
- data.tar.gz: eeaa7c1c30baa2bec9190cf962dd7c83ac042d63
3
+ metadata.gz: 4c93fc375363a131501ac31c10e3d2cab78ac590
4
+ data.tar.gz: d8f3324a67ee849caa66851846350c4e57c8b60a
5
5
  SHA512:
6
- metadata.gz: 149b0ebb611792c93e615537564092f9f4d5fb212f552a9b041134be095a1769643ca4e02a9ec49117dc74f2965b4ad2c53adf9c4a16574425040ed4a63edd48
7
- data.tar.gz: f9f0a816379772d203bc9171ff523dd9fe2bb0918c60920879820823dad4204823048de7b9d3f78fe87a9ae5bab7b0371c1bcabc9278037628efa9a494590b46
6
+ metadata.gz: fb888c9c819f4500c815434abd6f9eb6e2ef0cf025148183936316e844ac7b197661efdb016e571e7be876088b6f92f9e276e7628f780e90d9c3c27e6af18497
7
+ data.tar.gz: 1aa7afaa32573236264b96d6cb9f83a2829c7bc632a2bb1324e570647aaf216c88303c42631a98acb0b15f288ffd27f91545deff7089fcc9c2dba493206c7e2d
@@ -44,7 +44,7 @@ module GDS
44
44
  end
45
45
 
46
46
  def require_signin_permission!
47
- ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional.", caller)
47
+ ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional. Note that your application will still need to call authorise_user! if it doesn't already.", caller)
48
48
  authorise_user!('signin')
49
49
  rescue PermissionDeniedException
50
50
  render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "13.5.0"
3
+ VERSION = "13.5.1"
4
4
  end
5
5
  end
@@ -1,830 +1,897 @@
1
-  (6.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (8.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (11.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:13 +0000
6
- Processing by ExampleController#restricted as HTML
7
- Authenticating with gds_sso strategy
8
- Completed in 9ms (ActiveRecord: 0.0ms)
9
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:13 +0000
10
- Started GET "/auth/gds/callback?code=4f80a44df83c89a482a83e9cba4bcb833aadd62e80c5882c33f4f1436e3494b3&state=d1b0b0aba6f9cda66d4c3d34106b2c9ced33efc2ba5c2594" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
11
- Processing by AuthenticationsController#callback as HTML
12
- Parameters: {"code"=>"4f80a44df83c89a482a83e9cba4bcb833aadd62e80c5882c33f4f1436e3494b3", "state"=>"d1b0b0aba6f9cda66d4c3d34106b2c9ced33efc2ba5c2594"}
13
- Authenticating with gds_sso strategy
14
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
15
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
4
+  (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
6
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
7
+  (0.1ms) begin transaction
8
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
9
+  (7.8ms) commit transaction
10
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
11
+  (0.0ms) begin transaction
12
+  (0.0ms) commit transaction
13
+  (0.0ms) begin transaction
14
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34983"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
15
+  (8.0ms) commit transaction
16
+  (0.0ms) begin transaction
17
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36880"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
+  (4.2ms) commit transaction
19
+ Processing by Api::UserController#reauth as HTML
20
+ Parameters: {"uid"=>"a1s2d34983"}
21
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34983"]]
22
+  (0.0ms) begin transaction
23
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
24
+  (6.3ms) commit transaction
25
+ Completed 200 OK in 10ms (ActiveRecord: 6.6ms)
26
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
27
+  (0.1ms) begin transaction
28
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d334"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
29
+  (7.2ms) commit transaction
30
+  (0.0ms) begin transaction
31
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35232"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
32
+  (6.2ms) commit transaction
33
+ Processing by Api::UserController#reauth as HTML
34
+ Parameters: {"uid"=>"a1s2d334"}
35
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
36
+ Completed 403 Forbidden in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
37
+  (0.1ms) begin transaction
38
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31860"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
39
+  (6.7ms) commit transaction
40
+  (0.0ms) begin transaction
41
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39363"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
42
+  (6.3ms) commit transaction
43
+ Processing by Api::UserController#reauth as HTML
44
+ Parameters: {"uid"=>"nonexistent-user"}
45
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
46
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
16
47
   (0.1ms) begin transaction
17
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
18
-  (8.8ms) commit transaction
48
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38845"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
49
+  (6.8ms) commit transaction
19
50
   (0.1ms) begin transaction
20
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
51
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31699"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
21
52
   (3.9ms) commit transaction
22
- Redirected to http://www.example-client.com/restricted
23
- Completed 302 Found in 40ms (ActiveRecord: 13.9ms)
24
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
25
- Processing by ExampleController#restricted as HTML
26
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
53
+ Processing by Api::UserController#update as HTML
54
+ Parameters: {"uid"=>"a1s2d38845"}
55
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38845"]]
56
+  (0.0ms) begin transaction
57
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 8]]
58
+  (6.2ms) commit transaction
59
+ Completed 200 OK in 10ms (ActiveRecord: 6.5ms)
60
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
61
+  (0.1ms) begin transaction
62
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35812"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
63
+  (4.2ms) commit transaction
64
+  (0.1ms) begin transaction
65
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38211"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
66
+  (7.2ms) commit transaction
67
+ Processing by Api::UserController#update as HTML
68
+ Parameters: {"uid"=>"a1s2d35812"}
69
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
70
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
71
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:15:51 +0000
72
+ Processing by ExampleController#this_requires_signin_permission as JSON
73
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
74
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
75
+  (0.1ms) begin transaction
76
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
77
+  (19.3ms) commit transaction
78
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
79
+  (0.1ms) begin transaction
80
+  (0.1ms) commit transaction
81
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
82
+  (0.1ms) begin transaction
83
+  (0.1ms) commit transaction
84
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
85
+  (0.1ms) begin transaction
86
+  (0.1ms) commit transaction
87
+  (0.0ms) begin transaction
88
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
89
+  (7.5ms) commit transaction
90
+ Rendered text template (0.0ms)
91
+ Completed 200 OK in 340ms (Views: 3.5ms | ActiveRecord: 28.1ms)
92
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:15:51 +0000
93
+ Processing by ExampleController#restricted as JSON
94
+ Completed in 31ms (ActiveRecord: 0.0ms)
95
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:15:52 +0000
96
+ Processing by ExampleController#restricted as JSON
97
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
98
+  (0.1ms) begin transaction
99
+  (0.0ms) commit transaction
100
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
101
+  (0.1ms) begin transaction
102
+  (0.0ms) commit transaction
103
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
104
+  (0.1ms) begin transaction
105
+  (0.1ms) commit transaction
106
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
107
+  (0.1ms) begin transaction
108
+  (0.1ms) commit transaction
109
+  (0.0ms) begin transaction
110
+  (0.0ms) commit transaction
27
111
  Rendered text template (0.0ms)
28
- Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 0.2ms)
29
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
112
+ Completed 200 OK in 71ms (Views: 0.3ms | ActiveRecord: 0.8ms)
113
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:15:52 +0000
114
+ Processing by ExampleController#restricted as JSON
115
+ Completed in 24ms (ActiveRecord: 0.0ms)
116
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:15:52 +0000
117
+ Processing by ExampleController#restricted as HTML
118
+ Authenticating with gds_sso strategy
119
+ Completed in 0ms (ActiveRecord: 0.0ms)
120
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:15:52 +0000
30
121
  Processing by ExampleController#this_requires_signin_permission as HTML
31
122
  Authenticating with gds_sso strategy
32
123
  Completed in 0ms (ActiveRecord: 0.0ms)
33
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
34
- Started GET "/auth/gds/callback?code=b0509407a26ad64f70a3e61dcf90487d48da5077adc6b28ef328bef3e639fd62&state=a69cae8f73dfa998f2919cf542658ff12d52807b90b3f486" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
124
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:15:52 +0000
125
+ Started GET "/auth/gds/callback?code=403fb0d1ec97649af51d34a0885922c8cf07debe7344a56dc9aa84ee676cabc8&state=748a66d055257f50dd6e45a1ff8c850d158ba585519fedff" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
35
126
  Processing by AuthenticationsController#callback as HTML
36
- Parameters: {"code"=>"b0509407a26ad64f70a3e61dcf90487d48da5077adc6b28ef328bef3e639fd62", "state"=>"a69cae8f73dfa998f2919cf542658ff12d52807b90b3f486"}
127
+ Parameters: {"code"=>"403fb0d1ec97649af51d34a0885922c8cf07debe7344a56dc9aa84ee676cabc8", "state"=>"748a66d055257f50dd6e45a1ff8c850d158ba585519fedff"}
37
128
  Authenticating with gds_sso strategy
38
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
39
-  (0.1ms) begin transaction
40
-  (0.1ms) commit transaction
129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
130
+  (0.3ms) begin transaction
131
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
132
+  (8.1ms) commit transaction
41
133
   (0.0ms) begin transaction
42
134
   (0.0ms) commit transaction
43
135
  Redirected to http://www.example-client.com/this_requires_signin_permission
44
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
45
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
136
+ Completed 302 Found in 14ms (ActiveRecord: 8.8ms)
137
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
46
138
  Processing by ExampleController#this_requires_signin_permission as HTML
47
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
139
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
48
140
  Rendered text template (0.0ms)
49
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
50
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
141
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
142
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
51
143
  Processing by ExampleController#this_requires_signin_permission as HTML
52
144
  Authenticating with gds_sso strategy
53
145
  Completed in 0ms (ActiveRecord: 0.0ms)
54
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
55
- Started GET "/auth/gds/callback?code=9c135c62171ce1eb65cb5a48fdc02da83105cf9f430e5187906cb27c2bf0247b&state=0e4c5282ff70a47dd538df9b452cfde6dc9431a30de2176d" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
146
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
147
+ Started GET "/auth/gds/callback?code=21ad57aeb6cbc4395aa34f175ab0f5fe4458d8ece2b7c8d4b9be155f086a475f&state=6e21c7bcb78b4b88679aef913b38e813bf4f3896e88d0a51" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
56
148
  Processing by AuthenticationsController#callback as HTML
57
- Parameters: {"code"=>"9c135c62171ce1eb65cb5a48fdc02da83105cf9f430e5187906cb27c2bf0247b", "state"=>"0e4c5282ff70a47dd538df9b452cfde6dc9431a30de2176d"}
149
+ Parameters: {"code"=>"21ad57aeb6cbc4395aa34f175ab0f5fe4458d8ece2b7c8d4b9be155f086a475f", "state"=>"6e21c7bcb78b4b88679aef913b38e813bf4f3896e88d0a51"}
58
150
  Authenticating with gds_sso strategy
59
151
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
60
152
   (0.1ms) begin transaction
61
-  (0.0ms) commit transaction
153
+  (0.1ms) commit transaction
62
154
   (0.0ms) begin transaction
63
155
   (0.0ms) commit transaction
64
156
  Redirected to http://www.example-client.com/this_requires_signin_permission
65
157
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
66
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
158
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
67
159
  Processing by ExampleController#this_requires_signin_permission as HTML
68
160
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
69
161
  Rendered text template (0.0ms)
70
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
71
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
162
+ Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
163
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
72
164
  Processing by ExampleController#index as HTML
73
165
  Rendered text template (0.0ms)
74
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
75
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
166
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
167
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
168
+ Processing by ExampleController#restricted as HTML
169
+ Authenticating with gds_sso strategy
170
+ Completed in 0ms (ActiveRecord: 0.0ms)
171
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
172
+ Started GET "/auth/gds/callback?code=14038c8a0248bd24984494852a5fa349e995812d4406085eb51ccfccfc37d70a&state=7ff6ab7ad0eee8ec2ac4c9dcae08ad818cc7dd89d2b93646" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
173
+ Processing by AuthenticationsController#callback as HTML
174
+ Parameters: {"code"=>"14038c8a0248bd24984494852a5fa349e995812d4406085eb51ccfccfc37d70a", "state"=>"7ff6ab7ad0eee8ec2ac4c9dcae08ad818cc7dd89d2b93646"}
175
+ Authenticating with gds_sso strategy
176
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
177
+  (0.1ms) begin transaction
178
+  (0.1ms) commit transaction
179
+  (0.0ms) begin transaction
180
+  (0.1ms) commit transaction
181
+ Redirected to http://www.example-client.com/restricted
182
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
183
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
184
+ Processing by ExampleController#restricted as HTML
185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
186
+ Rendered text template (0.0ms)
187
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
188
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
76
189
  Processing by ExampleController#restricted as HTML
77
190
  Authenticating with gds_sso strategy
78
191
  Completed in 0ms (ActiveRecord: 0.0ms)
79
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
80
- Started GET "/auth/gds/callback?code=40e739c25a0c5e193653b8462bac9ba71d586e151295f8715b2add8816c83f28&state=a50ce994966e7fd7e526dceb23ea1fa72bd8a5913f02962f" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
192
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
193
+ Started GET "/auth/gds/callback?code=719d8909be67ddb269b27767dbd0749dab35455bbe20bcd26ce1cec25ddbbd5c&state=0728ab14e4d2bc82b566086d2888f124e2cc6dbad3c9852b" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
81
194
  Processing by AuthenticationsController#callback as HTML
82
- Parameters: {"code"=>"40e739c25a0c5e193653b8462bac9ba71d586e151295f8715b2add8816c83f28", "state"=>"a50ce994966e7fd7e526dceb23ea1fa72bd8a5913f02962f"}
195
+ Parameters: {"code"=>"719d8909be67ddb269b27767dbd0749dab35455bbe20bcd26ce1cec25ddbbd5c", "state"=>"0728ab14e4d2bc82b566086d2888f124e2cc6dbad3c9852b"}
83
196
  Authenticating with gds_sso strategy
84
197
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
85
198
   (0.1ms) begin transaction
86
-  (0.0ms) commit transaction
199
+  (0.1ms) commit transaction
87
200
   (0.0ms) begin transaction
88
201
   (0.0ms) commit transaction
89
202
  Redirected to http://www.example-client.com/restricted
90
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
91
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
203
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
204
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
92
205
  Processing by ExampleController#restricted as HTML
93
206
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
94
207
  Rendered text template (0.0ms)
95
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
96
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
208
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
209
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
97
210
  Processing by ExampleController#restricted as HTML
98
211
  Authenticating with gds_sso strategy
99
212
  Completed in 0ms (ActiveRecord: 0.0ms)
100
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
101
- Started GET "/auth/gds/callback?code=da612655e977b4122fd016f4d9314624cb49426b7fa8116ec8a19cc33a2b453e&state=707e035bae4fa9477196a01beb49e1e639a26fadd6d34ccb" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
213
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
214
+ Started GET "/auth/gds/callback?code=984e3293314d2b147a048b206054b4fd8de7d590793008b70fa9aad3f81bb076&state=201c99f2fcda23d198f358246cb15939ea7c82c572c00d0c" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
102
215
  Processing by AuthenticationsController#callback as HTML
103
- Parameters: {"code"=>"da612655e977b4122fd016f4d9314624cb49426b7fa8116ec8a19cc33a2b453e", "state"=>"707e035bae4fa9477196a01beb49e1e639a26fadd6d34ccb"}
216
+ Parameters: {"code"=>"984e3293314d2b147a048b206054b4fd8de7d590793008b70fa9aad3f81bb076", "state"=>"201c99f2fcda23d198f358246cb15939ea7c82c572c00d0c"}
104
217
  Authenticating with gds_sso strategy
105
218
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
106
219
   (0.1ms) begin transaction
107
220
   (0.0ms) commit transaction
108
221
   (0.0ms) begin transaction
109
-  (0.2ms) commit transaction
222
+  (0.0ms) commit transaction
110
223
  Redirected to http://www.example-client.com/restricted
111
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
112
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
224
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
225
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
113
226
  Processing by ExampleController#restricted as HTML
114
227
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
115
228
  Rendered text template (0.0ms)
116
229
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
117
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
230
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
118
231
  Processing by ExampleController#restricted as HTML
119
232
  Authenticating with gds_sso strategy
120
233
  Completed in 0ms (ActiveRecord: 0.0ms)
121
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
122
- Started GET "/auth/gds/callback?code=1b627ca32fb093220c1c939b2ae90ff813bf70387aab0739b7880cbd4a9ddb72&state=d7027a3731e9aac599eb07dc0dcf02b490f877802f0a27ac" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
234
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
235
+ Started GET "/auth/gds/callback?code=ac8d3b4e3d11487847e594d93277b140b0dd11d5689c5d8ebbcf0c4007703256&state=8d200a74c4c26e61a5674820ba2c00143132bce4a029f582" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
123
236
  Processing by AuthenticationsController#callback as HTML
124
- Parameters: {"code"=>"1b627ca32fb093220c1c939b2ae90ff813bf70387aab0739b7880cbd4a9ddb72", "state"=>"d7027a3731e9aac599eb07dc0dcf02b490f877802f0a27ac"}
237
+ Parameters: {"code"=>"ac8d3b4e3d11487847e594d93277b140b0dd11d5689c5d8ebbcf0c4007703256", "state"=>"8d200a74c4c26e61a5674820ba2c00143132bce4a029f582"}
125
238
  Authenticating with gds_sso strategy
126
239
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
127
240
   (0.1ms) begin transaction
128
241
   (0.0ms) commit transaction
129
-  (0.0ms) begin transaction
242
+  (0.2ms) begin transaction
130
243
   (0.0ms) commit transaction
131
244
  Redirected to http://www.example-client.com/restricted
132
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
133
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
245
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
246
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
134
247
  Processing by ExampleController#restricted as HTML
135
248
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
136
249
  Rendered text template (0.0ms)
137
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
250
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
138
251
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
139
252
   (0.1ms) begin transaction
140
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
141
-  (8.3ms) commit transaction
142
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
253
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
254
+  (8.4ms) commit transaction
255
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
143
256
  Processing by ExampleController#restricted as HTML
144
257
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
145
258
  Authenticating with gds_sso strategy
146
259
  Completed in 1ms (ActiveRecord: 0.1ms)
147
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
148
- Started GET "/auth/gds/callback?code=b66e93b75a97360554a76a679589ffe48ac9e9720050071eb1ccd514308e902c&state=969dfbcb65a6e1ec6750e8d4d15e61a670d531173b21737a" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
260
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
261
+ Started GET "/auth/gds/callback?code=a42cc66b7c08714a86aa1b0fd4fe829eed275b90dd80990fde259abd6fd389c3&state=b77e7afe03bb5fe0230fee7588a9e9fd817d535c13aaf82f" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
149
262
  Processing by AuthenticationsController#callback as HTML
150
- Parameters: {"code"=>"b66e93b75a97360554a76a679589ffe48ac9e9720050071eb1ccd514308e902c", "state"=>"969dfbcb65a6e1ec6750e8d4d15e61a670d531173b21737a"}
263
+ Parameters: {"code"=>"a42cc66b7c08714a86aa1b0fd4fe829eed275b90dd80990fde259abd6fd389c3", "state"=>"b77e7afe03bb5fe0230fee7588a9e9fd817d535c13aaf82f"}
151
264
  Authenticating with gds_sso strategy
152
265
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
153
266
   (0.1ms) begin transaction
154
267
   (0.0ms) commit transaction
155
268
   (0.0ms) begin transaction
156
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
157
-  (5.7ms) commit transaction
269
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
270
+  (7.3ms) commit transaction
158
271
  Redirected to http://www.example-client.com/restricted
159
- Completed 302 Found in 10ms (ActiveRecord: 6.0ms)
160
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
272
+ Completed 302 Found in 12ms (ActiveRecord: 7.8ms)
273
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
161
274
  Processing by ExampleController#restricted as HTML
162
275
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
163
276
  Rendered text template (0.0ms)
164
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
165
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
277
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
278
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
166
279
  Processing by ExampleController#restricted as HTML
167
280
  Authenticating with gds_sso strategy
168
- Completed in 1ms (ActiveRecord: 0.0ms)
169
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
170
- Started GET "/auth/gds/callback?code=5dde5c8fcb16ff81ec4cc3913d96a334d0e162aa84568229b7e1313104202f68&state=18722ba5a78074e2054b0d0faa468498f780ec8b6cb8ccac" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
281
+ Completed in 0ms (ActiveRecord: 0.0ms)
282
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
283
+ Started GET "/auth/gds/callback?code=ea4be227e15fee05e27f9fe3445da8a37a8505855bfe6005fea4edeaa88e45ec&state=1bcab3b054b7680473e9ab5c24b567654cb6f69bdd7cdc4a" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
171
284
  Processing by AuthenticationsController#callback as HTML
172
- Parameters: {"code"=>"5dde5c8fcb16ff81ec4cc3913d96a334d0e162aa84568229b7e1313104202f68", "state"=>"18722ba5a78074e2054b0d0faa468498f780ec8b6cb8ccac"}
285
+ Parameters: {"code"=>"ea4be227e15fee05e27f9fe3445da8a37a8505855bfe6005fea4edeaa88e45ec", "state"=>"1bcab3b054b7680473e9ab5c24b567654cb6f69bdd7cdc4a"}
173
286
  Authenticating with gds_sso strategy
174
287
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
175
288
   (0.1ms) begin transaction
176
-  (0.0ms) commit transaction
289
+  (0.1ms) commit transaction
177
290
   (0.0ms) begin transaction
178
291
   (0.0ms) commit transaction
179
292
  Redirected to http://www.example-client.com/restricted
180
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
181
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
293
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
294
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
182
295
  Processing by ExampleController#restricted as HTML
183
296
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
184
297
  Rendered text template (0.0ms)
185
298
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
186
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:25 +0000
187
- Processing by ExampleController#restricted as HTML
188
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
189
- Rendered text template (0.0ms)
190
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
191
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
299
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
192
300
  Processing by ExampleController#restricted as HTML
193
301
  Authenticating with gds_sso strategy
194
302
  Completed in 0ms (ActiveRecord: 0.0ms)
195
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
196
- Started GET "/auth/gds/callback?code=5928eff4d98753c5ba322595613a83d5d292148a1e4f702d6b2d00ac1b265062&state=65d3296897aa0fa478c407f4369f6c01cea3b45cd9306b7c" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
303
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
304
+ Started GET "/auth/gds/callback?code=3e8cf2dec1562f532d37e19ac4ae275d02573770e2e22010542dee49e01d1386&state=b5306cfd42b8e7d546344d54f80f31484c900d753e028142" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
197
305
  Processing by AuthenticationsController#callback as HTML
198
- Parameters: {"code"=>"5928eff4d98753c5ba322595613a83d5d292148a1e4f702d6b2d00ac1b265062", "state"=>"65d3296897aa0fa478c407f4369f6c01cea3b45cd9306b7c"}
306
+ Parameters: {"code"=>"3e8cf2dec1562f532d37e19ac4ae275d02573770e2e22010542dee49e01d1386", "state"=>"b5306cfd42b8e7d546344d54f80f31484c900d753e028142"}
199
307
  Authenticating with gds_sso strategy
200
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
201
-  (0.1ms) begin transaction
202
-  (0.0ms) commit transaction
203
-  (0.0ms) begin transaction
204
-  (0.0ms) commit transaction
308
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
309
+  (0.1ms) begin transaction
310
+  (0.1ms) commit transaction
311
+  (0.1ms) begin transaction
312
+  (0.1ms) commit transaction
205
313
  Redirected to http://www.example-client.com/restricted
206
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
207
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
314
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
315
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
208
316
  Processing by ExampleController#restricted as HTML
209
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
210
318
  Rendered text template (0.0ms)
211
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
212
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:25 +0000
213
- Processing by ExampleController#restricted as HTML
214
- Authenticating with gds_sso strategy
215
- Completed in 0ms (ActiveRecord: 0.0ms)
216
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:25 +0000
217
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
319
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
320
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
218
321
  Processing by ExampleController#restricted as HTML
219
322
  Authenticating with gds_sso strategy
220
323
  Completed in 0ms (ActiveRecord: 0.0ms)
221
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
222
- Started GET "/auth/gds/callback?code=dc9a7ac922d857a23dc9f20f1ea51363071c8fe03f10faae7cc3ca2480f26684&state=cd3abf2585b6d43f71d4e23d129cfbc8f46d6951f9004ba7" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
324
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
325
+ Started GET "/auth/gds/callback?code=d229a130e1aaea3d4242bfeda50599cbd201fbeb809478a7de56fc368a7c4dcd&state=cb92bde06d95b1f03c9d5874a6e821d7a1234c7f5deec91a" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
223
326
  Processing by AuthenticationsController#callback as HTML
224
- Parameters: {"code"=>"dc9a7ac922d857a23dc9f20f1ea51363071c8fe03f10faae7cc3ca2480f26684", "state"=>"cd3abf2585b6d43f71d4e23d129cfbc8f46d6951f9004ba7"}
327
+ Parameters: {"code"=>"d229a130e1aaea3d4242bfeda50599cbd201fbeb809478a7de56fc368a7c4dcd", "state"=>"cb92bde06d95b1f03c9d5874a6e821d7a1234c7f5deec91a"}
225
328
  Authenticating with gds_sso strategy
226
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
227
-  (0.1ms) begin transaction
228
-  (0.1ms) commit transaction
229
-  (0.1ms) begin transaction
230
-  (0.1ms) commit transaction
329
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
330
+  (0.1ms) begin transaction
331
+  (0.0ms) commit transaction
332
+  (0.1ms) begin transaction
333
+  (0.0ms) commit transaction
231
334
  Redirected to http://www.example-client.com/restricted
232
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
233
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
335
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
336
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
234
337
  Processing by ExampleController#restricted as HTML
235
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
236
339
  Rendered text template (0.0ms)
237
340
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
238
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
341
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
342
+ Processing by ExampleController#restricted as HTML
343
+ Authenticating with gds_sso strategy
344
+ Completed in 1ms (ActiveRecord: 0.0ms)
345
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
346
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
239
347
  Processing by ExampleController#restricted as HTML
240
348
  Authenticating with gds_sso strategy
241
349
  Completed in 0ms (ActiveRecord: 0.0ms)
242
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
243
- Started GET "/auth/gds/callback?code=06f87d45dc882e892c68f01ab085ab9d2d6a770e7c2b29b3771f28bac7fe5731&state=32e6673192ef85b7947ea5bcfa2fa70e666582fb5b864cfa" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
350
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:04 +0000
351
+ Started GET "/auth/gds/callback?code=abe7dbdab2e4f482d01a0bcbc29dd202fc1c474cc83e74c5b0eeca24e7ded0a7&state=f5f792e5354fb43000f91e015faea05b61ea865f91e2b60d" for 127.0.0.1 at 2018-01-23 17:16:05 +0000
244
352
  Processing by AuthenticationsController#callback as HTML
245
- Parameters: {"code"=>"06f87d45dc882e892c68f01ab085ab9d2d6a770e7c2b29b3771f28bac7fe5731", "state"=>"32e6673192ef85b7947ea5bcfa2fa70e666582fb5b864cfa"}
353
+ Parameters: {"code"=>"abe7dbdab2e4f482d01a0bcbc29dd202fc1c474cc83e74c5b0eeca24e7ded0a7", "state"=>"f5f792e5354fb43000f91e015faea05b61ea865f91e2b60d"}
246
354
  Authenticating with gds_sso strategy
247
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
248
-  (0.1ms) begin transaction
249
-  (0.1ms) commit transaction
250
-  (0.0ms) begin transaction
251
-  (0.1ms) commit transaction
355
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
356
+  (0.1ms) begin transaction
357
+  (0.0ms) commit transaction
358
+  (0.0ms) begin transaction
359
+  (0.0ms) commit transaction
252
360
  Redirected to http://www.example-client.com/restricted
253
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
254
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
361
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
362
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:05 +0000
255
363
  Processing by ExampleController#restricted as HTML
256
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
364
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
257
365
  Rendered text template (0.0ms)
258
366
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
259
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
260
- Processing by ExampleController#restricted as JSON
261
- Completed in 27ms (ActiveRecord: 0.0ms)
262
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
263
- Processing by ExampleController#restricted as JSON
264
- Completed in 13ms (ActiveRecord: 0.0ms)
265
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
266
- Processing by ExampleController#this_requires_signin_permission as JSON
267
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
268
-  (0.1ms) begin transaction
269
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
270
-  (6.1ms) commit transaction
271
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
272
-  (0.1ms) begin transaction
273
-  (0.0ms) commit transaction
274
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
275
-  (0.1ms) begin transaction
276
-  (0.1ms) commit transaction
277
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
278
-  (0.1ms) begin transaction
279
-  (0.0ms) commit transaction
280
-  (0.0ms) begin transaction
281
-  (0.0ms) commit transaction
282
- Rendered text template (0.0ms)
283
- Completed 200 OK in 78ms (Views: 0.4ms | ActiveRecord: 7.1ms)
284
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
285
- Processing by ExampleController#restricted as JSON
286
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
287
-  (0.1ms) begin transaction
288
-  (0.1ms) commit transaction
289
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
290
-  (0.1ms) begin transaction
291
-  (0.1ms) commit transaction
292
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
293
-  (0.1ms) begin transaction
294
-  (0.1ms) commit transaction
295
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
296
-  (0.1ms) begin transaction
297
-  (0.1ms) commit transaction
298
-  (0.0ms) begin transaction
299
-  (0.1ms) commit transaction
300
- Rendered text template (0.0ms)
301
- Completed 200 OK in 67ms (Views: 0.3ms | ActiveRecord: 0.8ms)
302
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
367
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:05 +0000
303
368
  Processing by ExampleController#restricted as HTML
304
- Authenticating with gds_sso strategy
305
- Completed in 0ms (ActiveRecord: 0.0ms)
306
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
307
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
308
-  (0.1ms) begin transaction
309
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
310
-  (8.8ms) commit transaction
311
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
312
-  (0.1ms) begin transaction
313
-  (0.1ms) commit transaction
314
-  (0.1ms) begin transaction
315
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35816"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
316
-  (5.5ms) commit transaction
317
-  (0.1ms) begin transaction
318
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33753"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
319
-  (5.0ms) commit transaction
320
- Processing by Api::UserController#reauth as HTML
321
- Parameters: {"uid"=>"a1s2d35816"}
322
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35816"]]
323
-  (0.1ms) begin transaction
324
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
325
-  (4.3ms) commit transaction
326
- Completed 200 OK in 7ms (ActiveRecord: 4.6ms)
327
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
328
-  (0.1ms) begin transaction
329
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34978"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
330
-  (4.1ms) commit transaction
331
-  (0.1ms) begin transaction
332
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3583"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
333
-  (4.8ms) commit transaction
334
- Processing by Api::UserController#reauth as HTML
335
- Parameters: {"uid"=>"nonexistent-user"}
336
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
337
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
338
-  (0.1ms) begin transaction
339
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38013"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
340
-  (4.3ms) commit transaction
341
-  (0.0ms) begin transaction
342
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35921"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
343
-  (8.6ms) commit transaction
344
- Processing by Api::UserController#reauth as HTML
345
- Parameters: {"uid"=>"a1s2d38013"}
346
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
347
- Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
348
-  (0.1ms) begin transaction
349
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31949"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
350
-  (5.5ms) commit transaction
351
-  (0.1ms) begin transaction
352
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35382"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
353
-  (4.3ms) commit transaction
354
- Processing by Api::UserController#update as HTML
355
- Parameters: {"uid"=>"a1s2d31949"}
356
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31949"]]
357
-  (0.1ms) begin transaction
358
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
359
-  (6.1ms) commit transaction
360
- Completed 200 OK in 10ms (ActiveRecord: 6.4ms)
361
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
362
-  (0.1ms) begin transaction
363
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31937"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
364
-  (4.4ms) commit transaction
365
-  (0.1ms) begin transaction
366
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33052"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
367
-  (5.6ms) commit transaction
368
- Processing by Api::UserController#update as HTML
369
- Parameters: {"uid"=>"a1s2d31937"}
370
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
371
- Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
369
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
370
+ Rendered text template (0.1ms)
371
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
372
372
   (0.1ms) DROP TABLE IF EXISTS "users"
373
-  (2.1ms) SELECT sqlite_version(*)
374
-  (6.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
375
-  (5.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
373
+  (0.8ms) SELECT sqlite_version(*)
374
+  (9.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
375
+  (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
376
376
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
377
377
   (0.1ms) begin transaction
378
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:09:34.636447"], ["updated_at", "2017-12-15 16:09:34.636447"]]
379
-  (6.9ms) commit transaction
380
-  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
378
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-01-23 17:16:13.649652"], ["updated_at", "2018-01-23 17:16:13.649652"]]
379
+  (7.3ms) commit transaction
380
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
381
381
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
382
-  (0.0ms) begin transaction
382
+  (0.1ms) begin transaction
383
383
   (0.1ms) commit transaction
384
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
385
- Processing by ExampleController#restricted as JSON
386
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
387
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
384
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
388
386
   (0.1ms) begin transaction
389
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
390
-  (6.5ms) commit transaction
391
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
387
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
388
+  (6.8ms) commit transaction
389
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
392
390
   (0.1ms) begin transaction
393
-  (0.0ms) commit transaction
394
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
391
+  (0.1ms) commit transaction
395
392
   (0.1ms) begin transaction
396
-  (0.0ms) commit transaction
397
- CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
393
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37661"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
394
+  (6.3ms) commit transaction
398
395
   (0.1ms) begin transaction
399
-  (0.0ms) commit transaction
396
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33640"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
397
+  (6.0ms) commit transaction
398
+ Processing by Api::UserController#update as HTML
399
+ Parameters: {"uid"=>"a1s2d37661"}
400
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
401
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
402
+ Completed 403 Forbidden in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)
403
+  (0.1ms) begin transaction
404
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31445"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
405
+  (6.6ms) commit transaction
406
+  (0.1ms) begin transaction
407
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36546"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
408
+  (5.2ms) commit transaction
409
+ Processing by Api::UserController#update as HTML
410
+ Parameters: {"uid"=>"a1s2d31445"}
411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31445"], ["LIMIT", 1]]
412
+  (0.1ms) begin transaction
413
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
414
+  (5.5ms) commit transaction
415
+ Completed 200 OK in 11ms (ActiveRecord: 5.9ms)
416
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
417
+  (0.1ms) begin transaction
418
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35667"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
419
+  (6.3ms) commit transaction
400
420
   (0.0ms) begin transaction
401
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
421
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37841"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
422
+  (6.0ms) commit transaction
423
+ Processing by Api::UserController#reauth as HTML
424
+ Parameters: {"uid"=>"a1s2d35667"}
425
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35667"], ["LIMIT", 1]]
426
+  (0.1ms) begin transaction
427
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
402
428
   (5.3ms) commit transaction
403
- Rendering text template
404
- Rendered text template (0.0ms)
405
- Completed 200 OK in 113ms (Views: 4.9ms | ActiveRecord: 14.0ms)
406
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
429
+ Completed 200 OK in 8ms (ActiveRecord: 5.7ms)
430
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
431
+  (0.1ms) begin transaction
432
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32079"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
433
+  (6.8ms) commit transaction
434
+  (0.1ms) begin transaction
435
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38719"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
436
+  (6.4ms) commit transaction
437
+ Processing by Api::UserController#reauth as HTML
438
+ Parameters: {"uid"=>"a1s2d32079"}
439
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
440
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
441
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
442
+  (0.1ms) begin transaction
443
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3596"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
444
+  (6.7ms) commit transaction
445
+  (0.0ms) begin transaction
446
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32221"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
447
+  (6.8ms) commit transaction
448
+ Processing by Api::UserController#reauth as HTML
449
+ Parameters: {"uid"=>"nonexistent-user"}
450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
451
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
452
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
453
+ Processing by ExampleController#restricted as HTML
454
+ Authenticating with gds_sso strategy
455
+ Completed in 6ms (ActiveRecord: 0.0ms)
456
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
457
+ Processing by ExampleController#restricted as JSON
458
+ Completed in 30ms (ActiveRecord: 0.0ms)
459
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
407
460
  Processing by ExampleController#restricted as JSON
408
- Completed in 24ms (ActiveRecord: 0.0ms)
409
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
410
- Processing by ExampleController#this_requires_signin_permission as JSON
411
461
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
462
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
412
463
   (0.1ms) begin transaction
413
-  (0.0ms) commit transaction
464
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
465
+  (4.9ms) commit transaction
466
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
467
+  (0.1ms) begin transaction
468
+  (0.1ms) commit transaction
414
469
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
415
470
   (0.1ms) begin transaction
416
-  (0.0ms) commit transaction
471
+  (0.1ms) commit transaction
417
472
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
418
473
   (0.1ms) begin transaction
419
-  (0.0ms) commit transaction
474
+  (0.1ms) commit transaction
475
+  (0.1ms) begin transaction
476
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
477
+  (5.9ms) commit transaction
478
+ Rendering text template
479
+ Rendered text template (0.0ms)
480
+ Completed 200 OK in 98ms (Views: 1.7ms | ActiveRecord: 13.1ms)
481
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
482
+ Processing by ExampleController#this_requires_signin_permission as JSON
483
+ User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
484
+  (0.1ms) begin transaction
485
+  (0.1ms) commit transaction
486
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
487
+  (0.8ms) begin transaction
488
+  (0.1ms) commit transaction
420
489
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
421
490
   (0.1ms) begin transaction
422
-  (0.0ms) commit transaction
491
+  (0.1ms) commit transaction
492
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
493
+  (0.1ms) begin transaction
494
+  (0.1ms) commit transaction
423
495
  Rendering text template
424
496
  Rendered text template (0.0ms)
425
- Completed 200 OK in 66ms (Views: 0.3ms | ActiveRecord: 0.7ms)
426
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
497
+ Completed 200 OK in 78ms (Views: 0.7ms | ActiveRecord: 2.3ms)
498
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
427
499
  Processing by ExampleController#restricted as JSON
428
- Completed in 13ms (ActiveRecord: 0.0ms)
429
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
500
+ Completed in 17ms (ActiveRecord: 0.0ms)
501
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
430
502
  Processing by ExampleController#restricted as HTML
431
503
  Authenticating with gds_sso strategy
432
504
  Completed in 0ms (ActiveRecord: 0.0ms)
433
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
434
- Started GET "/auth/gds/callback?code=1ba38071ddacbdff259c5fd1bb2977edf6a64af3fbd4c6717401120fd4562eca&state=39247b0788e47d8c1787a5b738fc2048a3b12758cbc0fe16" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
505
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
506
+ Started GET "/auth/gds/callback?code=91daf7112fcf8d0313f0a45c1bba7a15715b8ca70e0b780694248a9e2bde5f89&state=25eddc4fde2d37ad90157fbb959c73947dc2cf1e364d453e" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
435
507
  Processing by AuthenticationsController#callback as HTML
436
- Parameters: {"code"=>"1ba38071ddacbdff259c5fd1bb2977edf6a64af3fbd4c6717401120fd4562eca", "state"=>"39247b0788e47d8c1787a5b738fc2048a3b12758cbc0fe16"}
508
+ Parameters: {"code"=>"91daf7112fcf8d0313f0a45c1bba7a15715b8ca70e0b780694248a9e2bde5f89", "state"=>"25eddc4fde2d37ad90157fbb959c73947dc2cf1e364d453e"}
437
509
  Authenticating with gds_sso strategy
438
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
439
-  (0.0ms) begin transaction
440
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
441
-  (11.0ms) commit transaction
510
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
511
+  (0.1ms) begin transaction
512
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
513
+  (7.3ms) commit transaction
442
514
  Redirected to http://www.example-client.com/restricted
443
- Completed 302 Found in 15ms (ActiveRecord: 11.5ms)
444
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
515
+ Completed 302 Found in 12ms (ActiveRecord: 7.8ms)
516
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
445
517
  Processing by ExampleController#restricted as HTML
446
518
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
447
519
  Rendering text template
448
520
  Rendered text template (0.0ms)
449
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
450
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
521
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
522
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
451
523
  Processing by ExampleController#this_requires_signin_permission as HTML
452
524
  Authenticating with gds_sso strategy
453
525
  Completed in 0ms (ActiveRecord: 0.0ms)
454
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
455
- Started GET "/auth/gds/callback?code=ccaea01fa977631f0bfb82c925d9abb718383aac1468180ac0e9d59a611650c7&state=67c3e9ff0a01575e3ef1b863f48f462bc7f28bf265a79750" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
526
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
527
+ Started GET "/auth/gds/callback?code=0b04d8c48e5fd2478fb8b3af84309f559c1ad05d1b1c21a11b833ce1593c6e39&state=e96239537c0c2f74d1dc27e2afb4bae334eaacb43215638c" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
456
528
  Processing by AuthenticationsController#callback as HTML
457
- Parameters: {"code"=>"ccaea01fa977631f0bfb82c925d9abb718383aac1468180ac0e9d59a611650c7", "state"=>"67c3e9ff0a01575e3ef1b863f48f462bc7f28bf265a79750"}
529
+ Parameters: {"code"=>"0b04d8c48e5fd2478fb8b3af84309f559c1ad05d1b1c21a11b833ce1593c6e39", "state"=>"e96239537c0c2f74d1dc27e2afb4bae334eaacb43215638c"}
458
530
  Authenticating with gds_sso strategy
459
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
531
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
460
532
   (0.1ms) begin transaction
461
533
   (0.0ms) commit transaction
462
534
  Redirected to http://www.example-client.com/this_requires_signin_permission
463
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
464
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
535
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
536
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
465
537
  Processing by ExampleController#this_requires_signin_permission as HTML
466
538
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
467
539
  Rendering text template
468
540
  Rendered text template (0.0ms)
469
541
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
470
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
542
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
471
543
  Processing by ExampleController#this_requires_signin_permission as HTML
472
544
  Authenticating with gds_sso strategy
473
545
  Completed in 0ms (ActiveRecord: 0.0ms)
474
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
475
- Started GET "/auth/gds/callback?code=bef57638b02fb5233c89804d8656e9a6beaedd230d4ac9349e69b485e4bfaf43&state=b64214ec4d148694013b1216624979d53401a6f9505ec065" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
546
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
547
+ Started GET "/auth/gds/callback?code=6c400a531253b352933fa50caceeedd633c1a374f09dd76a3105e407f0e4446c&state=765e268bd9ca801419b7e71627eabed18c4ce8aa5c238e8e" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
476
548
  Processing by AuthenticationsController#callback as HTML
477
- Parameters: {"code"=>"bef57638b02fb5233c89804d8656e9a6beaedd230d4ac9349e69b485e4bfaf43", "state"=>"b64214ec4d148694013b1216624979d53401a6f9505ec065"}
549
+ Parameters: {"code"=>"6c400a531253b352933fa50caceeedd633c1a374f09dd76a3105e407f0e4446c", "state"=>"765e268bd9ca801419b7e71627eabed18c4ce8aa5c238e8e"}
478
550
  Authenticating with gds_sso strategy
479
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
551
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
480
552
   (0.1ms) begin transaction
481
-  (0.0ms) commit transaction
553
+  (0.1ms) commit transaction
482
554
  Redirected to http://www.example-client.com/this_requires_signin_permission
483
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
484
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
555
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
556
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
485
557
  Processing by ExampleController#this_requires_signin_permission as HTML
486
558
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
487
559
  Rendering text template
488
560
  Rendered text template (0.0ms)
489
561
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
490
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
491
- Processing by ExampleController#restricted as HTML
492
- Authenticating with gds_sso strategy
493
- Completed in 0ms (ActiveRecord: 0.0ms)
494
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
495
- Started GET "/auth/gds/callback?code=43e57b005e25581ba8b5b77fbe305148e69a5be89adba8a356e662bd2bfb0f04&state=339c072e72a4c1f96ce29b65555b1060c37a35b801fa675d" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
496
- Processing by AuthenticationsController#callback as HTML
497
- Parameters: {"code"=>"43e57b005e25581ba8b5b77fbe305148e69a5be89adba8a356e662bd2bfb0f04", "state"=>"339c072e72a4c1f96ce29b65555b1060c37a35b801fa675d"}
498
- Authenticating with gds_sso strategy
499
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
500
-  (0.1ms) begin transaction
501
-  (0.1ms) commit transaction
502
- Redirected to http://www.example-client.com/restricted
503
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
504
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
505
- Processing by ExampleController#restricted as HTML
506
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
562
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
563
+ Processing by ExampleController#index as HTML
507
564
  Rendering text template
508
565
  Rendered text template (0.0ms)
509
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
510
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
566
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
567
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
511
568
  Processing by ExampleController#restricted as HTML
512
569
  Authenticating with gds_sso strategy
513
570
  Completed in 0ms (ActiveRecord: 0.0ms)
514
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
515
- Started GET "/auth/gds/callback?code=c36da73b802e7a03f1e59958036024e418782af0bfebce3ba8da83e4064bb479&state=e58c4de8c2e1a4f755efb5f0bcf96c4938c987c2307ba993" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
571
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
572
+ Started GET "/auth/gds/callback?code=03cb21cbed6480c2234f288bf81895fa754edaa6f48304ce92a28a156cc59e7b&state=195c2aef60ededea8d73dc1bea20607b63353f07897956b4" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
516
573
  Processing by AuthenticationsController#callback as HTML
517
- Parameters: {"code"=>"c36da73b802e7a03f1e59958036024e418782af0bfebce3ba8da83e4064bb479", "state"=>"e58c4de8c2e1a4f755efb5f0bcf96c4938c987c2307ba993"}
574
+ Parameters: {"code"=>"03cb21cbed6480c2234f288bf81895fa754edaa6f48304ce92a28a156cc59e7b", "state"=>"195c2aef60ededea8d73dc1bea20607b63353f07897956b4"}
518
575
  Authenticating with gds_sso strategy
519
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
576
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
520
577
   (0.1ms) begin transaction
521
578
   (0.1ms) commit transaction
522
579
  Redirected to http://www.example-client.com/restricted
523
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
524
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
580
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
581
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
525
582
  Processing by ExampleController#restricted as HTML
526
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
527
- Rendering text template
528
- Rendered text template (0.0ms)
529
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
530
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
531
- Processing by ExampleController#index as HTML
583
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
532
584
  Rendering text template
533
585
  Rendered text template (0.0ms)
534
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
535
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
586
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
587
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
536
588
  Processing by ExampleController#restricted as HTML
537
589
  Authenticating with gds_sso strategy
538
590
  Completed in 0ms (ActiveRecord: 0.0ms)
539
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
540
- Started GET "/auth/gds/callback?code=096a30aa0b89bf9b736679b124ec9aecdb8e1a1f39a0da483bf78c75c3543bba&state=30403080f30b937d633a85acb57d584ef470ea2cee9b0e09" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
591
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
592
+ Started GET "/auth/gds/callback?code=30de01255a24d9dec3c93fadca99af449ed43e3949c83a6573c6ce1004a4fabe&state=a961609be14f7135eac870b4666dcb6201861f463104fc62" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
541
593
  Processing by AuthenticationsController#callback as HTML
542
- Parameters: {"code"=>"096a30aa0b89bf9b736679b124ec9aecdb8e1a1f39a0da483bf78c75c3543bba", "state"=>"30403080f30b937d633a85acb57d584ef470ea2cee9b0e09"}
594
+ Parameters: {"code"=>"30de01255a24d9dec3c93fadca99af449ed43e3949c83a6573c6ce1004a4fabe", "state"=>"a961609be14f7135eac870b4666dcb6201861f463104fc62"}
543
595
  Authenticating with gds_sso strategy
544
596
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
545
597
   (0.1ms) begin transaction
546
-  (0.0ms) commit transaction
598
+  (0.1ms) commit transaction
547
599
  Redirected to http://www.example-client.com/restricted
548
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
549
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
600
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
601
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
550
602
  Processing by ExampleController#restricted as HTML
551
603
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
552
604
  Rendering text template
553
605
  Rendered text template (0.0ms)
554
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
555
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
556
-  (0.1ms) begin transaction
557
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
558
-  (4.8ms) commit transaction
559
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
606
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
607
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
560
608
  Processing by ExampleController#restricted as HTML
561
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
562
609
  Authenticating with gds_sso strategy
563
- Completed in 1ms (ActiveRecord: 0.2ms)
564
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
565
- Started GET "/auth/gds/callback?code=8edc36d687b4940f3689ce49179a331b48ee586989a3831d3ee7929b34c8a412&state=0fae0ce9aec6e5816ac3957c57ec0d8f547d8dc32ee486a5" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
610
+ Completed in 0ms (ActiveRecord: 0.0ms)
611
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
612
+ Started GET "/auth/gds/callback?code=5e58bbe491f1453c00b63f73929b9c6531f82b91ef0e78b1dc660add49949cae&state=b87c0dbadc989a86f5582926f0a94eebf6ea7bedcc2e53bd" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
566
613
  Processing by AuthenticationsController#callback as HTML
567
- Parameters: {"code"=>"8edc36d687b4940f3689ce49179a331b48ee586989a3831d3ee7929b34c8a412", "state"=>"0fae0ce9aec6e5816ac3957c57ec0d8f547d8dc32ee486a5"}
614
+ Parameters: {"code"=>"5e58bbe491f1453c00b63f73929b9c6531f82b91ef0e78b1dc660add49949cae", "state"=>"b87c0dbadc989a86f5582926f0a94eebf6ea7bedcc2e53bd"}
568
615
  Authenticating with gds_sso strategy
569
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
570
617
   (0.1ms) begin transaction
571
-  (0.0ms) commit transaction
572
-  (0.0ms) begin transaction
573
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
574
-  (6.0ms) commit transaction
618
+  (0.1ms) commit transaction
575
619
  Redirected to http://www.example-client.com/restricted
576
- Completed 302 Found in 11ms (ActiveRecord: 6.7ms)
577
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
620
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
621
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
578
622
  Processing by ExampleController#restricted as HTML
579
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
623
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
580
624
  Rendering text template
581
625
  Rendered text template (0.0ms)
582
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
583
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
626
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
627
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
584
628
  Processing by ExampleController#restricted as HTML
585
629
  Authenticating with gds_sso strategy
586
630
  Completed in 0ms (ActiveRecord: 0.0ms)
587
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
588
- Started GET "/auth/gds/callback?code=6ba4e5600dcac666b60e0c9de5fbc443202f11e62f8c7de69f25c931f9c3318f&state=b40dddcd19cffbcb1947c22e13f49dea44ae7ce71067baf5" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
631
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
632
+ Started GET "/auth/gds/callback?code=77dd6a06bbc303a6203f8f87605ab5550216feae3c53db93960f2c8a5448847c&state=0a2a8378d8b0427ed04653829c9005e0ed93009063b46bcf" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
589
633
  Processing by AuthenticationsController#callback as HTML
590
- Parameters: {"code"=>"6ba4e5600dcac666b60e0c9de5fbc443202f11e62f8c7de69f25c931f9c3318f", "state"=>"b40dddcd19cffbcb1947c22e13f49dea44ae7ce71067baf5"}
634
+ Parameters: {"code"=>"77dd6a06bbc303a6203f8f87605ab5550216feae3c53db93960f2c8a5448847c", "state"=>"0a2a8378d8b0427ed04653829c9005e0ed93009063b46bcf"}
591
635
  Authenticating with gds_sso strategy
592
636
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
593
637
   (0.1ms) begin transaction
594
638
   (0.1ms) commit transaction
595
639
  Redirected to http://www.example-client.com/restricted
596
640
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
597
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
641
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
598
642
  Processing by ExampleController#restricted as HTML
599
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
643
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
600
644
  Rendering text template
601
- Rendered text template (0.0ms)
602
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
603
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
645
+ Rendered text template (0.1ms)
646
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
647
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
604
648
  Processing by ExampleController#restricted as HTML
605
649
  Authenticating with gds_sso strategy
606
650
  Completed in 0ms (ActiveRecord: 0.0ms)
607
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
608
- Started GET "/auth/gds/callback?code=21b59850ee990845595f47d69e9a4672e23604a023adcc161b49fa74b011ac95&state=5ae04938795f7a2901515203465b900778ee2dfc5292a5ba" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
651
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
652
+ Started GET "/auth/gds/callback?code=a998f94940f771e0e8e770236512a193763b529e98175513922a2b0bee22bd0b&state=3d00f54c2828456a0e02470c06fdcdf7d697ad6537fb85ca" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
609
653
  Processing by AuthenticationsController#callback as HTML
610
- Parameters: {"code"=>"21b59850ee990845595f47d69e9a4672e23604a023adcc161b49fa74b011ac95", "state"=>"5ae04938795f7a2901515203465b900778ee2dfc5292a5ba"}
654
+ Parameters: {"code"=>"a998f94940f771e0e8e770236512a193763b529e98175513922a2b0bee22bd0b", "state"=>"3d00f54c2828456a0e02470c06fdcdf7d697ad6537fb85ca"}
611
655
  Authenticating with gds_sso strategy
612
656
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
613
657
   (0.1ms) begin transaction
614
658
   (0.1ms) commit transaction
615
659
  Redirected to http://www.example-client.com/restricted
616
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
617
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
660
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
661
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
618
662
  Processing by ExampleController#restricted as HTML
619
663
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
620
664
  Rendering text template
621
665
  Rendered text template (0.0ms)
622
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
623
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
666
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
667
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:16 +0000
668
+ Processing by ExampleController#restricted as HTML
669
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
670
+ Rendering text template
671
+ Rendered text template (0.0ms)
672
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
673
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
624
674
  Processing by ExampleController#restricted as HTML
625
675
  Authenticating with gds_sso strategy
626
676
  Completed in 0ms (ActiveRecord: 0.0ms)
627
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
628
- Started GET "/auth/gds/callback?code=5904026c8b2858a6dfe0567d917189af96b7401eed3c3efe5b2e2d522d5b20ac&state=6fa899e2e5cc68307115dc5015bdf8ee0c2b15313d0ee4aa" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
677
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
678
+ Started GET "/auth/gds/callback?code=e6b16c97c606e602c06aae707e5b94f217b33c6e2d3e883a8af27398f79668a3&state=42dcc37ebdbf81b486a19ccc8aa43a42417419ba00b188e0" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
629
679
  Processing by AuthenticationsController#callback as HTML
630
- Parameters: {"code"=>"5904026c8b2858a6dfe0567d917189af96b7401eed3c3efe5b2e2d522d5b20ac", "state"=>"6fa899e2e5cc68307115dc5015bdf8ee0c2b15313d0ee4aa"}
680
+ Parameters: {"code"=>"e6b16c97c606e602c06aae707e5b94f217b33c6e2d3e883a8af27398f79668a3", "state"=>"42dcc37ebdbf81b486a19ccc8aa43a42417419ba00b188e0"}
631
681
  Authenticating with gds_sso strategy
632
682
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
633
-  (0.0ms) begin transaction
634
-  (0.2ms) commit transaction
683
+  (0.1ms) begin transaction
684
+  (0.1ms) commit transaction
635
685
  Redirected to http://www.example-client.com/restricted
636
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
637
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
686
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
687
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
638
688
  Processing by ExampleController#restricted as HTML
639
689
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
640
690
  Rendering text template
641
691
  Rendered text template (0.0ms)
642
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
643
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
692
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
693
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
644
694
  Processing by ExampleController#restricted as HTML
645
695
  Authenticating with gds_sso strategy
646
696
  Completed in 1ms (ActiveRecord: 0.0ms)
647
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
648
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
697
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
698
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
649
699
  Processing by ExampleController#restricted as HTML
650
700
  Authenticating with gds_sso strategy
651
701
  Completed in 0ms (ActiveRecord: 0.0ms)
652
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
653
- Started GET "/auth/gds/callback?code=d1e1de175198c79a78ebe88d5defd1a55ebe7a701b27d25c6f50c84b9ba67233&state=6aa589bd4ed51790803be77e60ee88b913073b9c9e007582" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
702
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
703
+ Started GET "/auth/gds/callback?code=a98605620a3252b49f52d649c68b378e9e08d0c747776b1ae0385e6411078a9f&state=782377e72efdbe0c2b66c925440a3fc5eaf03e9a1f834ae6" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
654
704
  Processing by AuthenticationsController#callback as HTML
655
- Parameters: {"code"=>"d1e1de175198c79a78ebe88d5defd1a55ebe7a701b27d25c6f50c84b9ba67233", "state"=>"6aa589bd4ed51790803be77e60ee88b913073b9c9e007582"}
705
+ Parameters: {"code"=>"a98605620a3252b49f52d649c68b378e9e08d0c747776b1ae0385e6411078a9f", "state"=>"782377e72efdbe0c2b66c925440a3fc5eaf03e9a1f834ae6"}
656
706
  Authenticating with gds_sso strategy
657
707
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
658
708
   (0.1ms) begin transaction
659
-  (0.0ms) commit transaction
709
+  (0.1ms) commit transaction
660
710
  Redirected to http://www.example-client.com/restricted
661
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
662
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
711
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
712
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
663
713
  Processing by ExampleController#restricted as HTML
664
714
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
665
715
  Rendering text template
666
716
  Rendered text template (0.0ms)
667
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
668
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:37 +0000
717
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
718
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
719
+  (0.0ms) begin transaction
720
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
721
+  (7.8ms) commit transaction
722
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
669
723
  Processing by ExampleController#restricted as HTML
670
724
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
671
- Rendering text template
672
- Rendered text template (0.0ms)
673
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
674
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
675
- Processing by ExampleController#restricted as HTML
676
725
  Authenticating with gds_sso strategy
677
- Completed in 0ms (ActiveRecord: 0.0ms)
726
+ Completed in 1ms (ActiveRecord: 0.2ms)
727
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:16 +0000
728
+ Started GET "/auth/gds/callback?code=a18d19dff286b1c94f19fe6899efa48d54cd7b0d86696af5158053a036d223fd&state=401b15a073056d265aae12704df93015d82a0094f29d6f8a" for 127.0.0.1 at 2018-01-23 17:16:17 +0000
729
+ Processing by AuthenticationsController#callback as HTML
730
+ Parameters: {"code"=>"a18d19dff286b1c94f19fe6899efa48d54cd7b0d86696af5158053a036d223fd", "state"=>"401b15a073056d265aae12704df93015d82a0094f29d6f8a"}
731
+ Authenticating with gds_sso strategy
732
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
678
733
   (0.1ms) begin transaction
679
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31567"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
680
-  (6.7ms) commit transaction
681
-  (0.0ms) begin transaction
682
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31266"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
683
-  (4.8ms) commit transaction
684
- Processing by Api::UserController#reauth as HTML
685
- Parameters: {"uid"=>"nonexistent-user"}
686
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
687
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
734
+  (0.1ms) commit transaction
688
735
   (0.1ms) begin transaction
689
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d317"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
690
-  (4.3ms) commit transaction
691
-  (0.0ms) begin transaction
692
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31414"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
693
-  (5.0ms) commit transaction
736
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
737
+  (7.8ms) commit transaction
738
+ Redirected to http://www.example-client.com/restricted
739
+ Completed 302 Found in 14ms (ActiveRecord: 8.6ms)
740
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:17 +0000
741
+ Processing by ExampleController#restricted as HTML
742
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
743
+ Rendering text template
744
+ Rendered text template (0.0ms)
745
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
746
+  (6.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
747
+  (6.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
748
+  (0.1ms) select sqlite_version(*)
749
+  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
751
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
752
+  (0.1ms) begin transaction
753
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
754
+  (5.9ms) commit transaction
755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
756
+  (0.0ms) begin transaction
757
+  (0.0ms) commit transaction
758
+  (0.1ms) begin transaction
759
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3205"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
760
+  (6.5ms) commit transaction
761
+  (0.0ms) begin transaction
762
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3478"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
+  (6.5ms) commit transaction
694
764
  Processing by Api::UserController#reauth as HTML
695
- Parameters: {"uid"=>"a1s2d317"}
696
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
765
+ Parameters: {"uid"=>"a1s2d3205"}
697
766
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
698
- Completed 403 Forbidden in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
699
-  (0.1ms) begin transaction
700
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35677"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
701
-  (7.5ms) commit transaction
702
-  (0.0ms) begin transaction
703
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32622"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
704
-  (4.5ms) commit transaction
767
+ Completed 403 Forbidden in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms)
768
+  (0.1ms) begin transaction
769
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32498"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
770
+  (5.7ms) commit transaction
771
+  (0.1ms) begin transaction
772
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36256"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
773
+  (5.2ms) commit transaction
705
774
  Processing by Api::UserController#reauth as HTML
706
- Parameters: {"uid"=>"a1s2d35677"}
707
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35677"], ["LIMIT", 1]]
708
-  (0.0ms) begin transaction
709
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
710
-  (4.5ms) commit transaction
711
- Completed 200 OK in 7ms (ActiveRecord: 4.8ms)
712
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
713
-  (0.1ms) begin transaction
714
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32600"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
715
-  (3.9ms) commit transaction
716
-  (0.0ms) begin transaction
717
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32756"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
718
-  (3.8ms) commit transaction
775
+ Parameters: {"uid"=>"a1s2d32498"}
776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d32498"]]
777
+  (0.1ms) begin transaction
778
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
779
+  (7.7ms) commit transaction
780
+ Completed 200 OK in 11ms (ActiveRecord: 8.1ms)
781
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
782
+  (0.1ms) begin transaction
783
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31373"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
784
+  (5.6ms) commit transaction
785
+  (0.1ms) begin transaction
786
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32429"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
787
+  (6.9ms) commit transaction
788
+ Processing by Api::UserController#reauth as HTML
789
+ Parameters: {"uid"=>"nonexistent-user"}
790
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
791
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
792
+  (0.1ms) begin transaction
793
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33259"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
794
+  (6.2ms) commit transaction
795
+  (0.1ms) begin transaction
796
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34602"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
797
+  (5.7ms) commit transaction
719
798
  Processing by Api::UserController#update as HTML
720
- Parameters: {"uid"=>"a1s2d32600"}
721
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
799
+ Parameters: {"uid"=>"a1s2d33259"}
722
800
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
723
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
724
-  (0.1ms) begin transaction
725
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38405"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
726
-  (5.1ms) commit transaction
727
-  (0.0ms) begin transaction
728
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3545"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
729
-  (4.1ms) commit transaction
801
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
802
+  (0.1ms) begin transaction
803
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39976"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
804
+  (14.2ms) commit transaction
805
+  (0.1ms) begin transaction
806
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37304"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
807
+  (6.5ms) commit transaction
730
808
  Processing by Api::UserController#update as HTML
731
- Parameters: {"uid"=>"a1s2d38405"}
732
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38405"], ["LIMIT", 1]]
733
-  (0.0ms) begin transaction
734
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
735
-  (4.4ms) commit transaction
736
- Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
737
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
738
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
739
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
740
-  (0.0ms) begin transaction
741
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
742
-  (8.3ms) commit transaction
743
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
744
-  (0.1ms) begin transaction
745
-  (0.0ms) commit transaction
746
-  (5.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
747
-  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
748
-  (0.1ms) select sqlite_version(*)
749
-  (8.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
750
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
809
+ Parameters: {"uid"=>"a1s2d39976"}
810
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39976"]]
811
+  (0.1ms) begin transaction
812
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
813
+  (5.2ms) commit transaction
814
+ Completed 200 OK in 9ms (ActiveRecord: 5.5ms)
815
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
816
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
751
817
  Processing by ExampleController#restricted as HTML
752
818
  Authenticating with gds_sso strategy
753
819
  Completed in 9ms (ActiveRecord: 0.0ms)
754
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
755
- Started GET "/auth/gds/callback?code=314a7afc535b27c14b581fa2e556f17d0aeacc9618fdafb53831ca9c19446d96&state=8f25865ec1fc2f2c34e2bdd3cafd9050b2c8af6b3ea5abfe" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
756
- Processing by AuthenticationsController#callback as HTML
757
- Parameters: {"code"=>"314a7afc535b27c14b581fa2e556f17d0aeacc9618fdafb53831ca9c19446d96", "state"=>"8f25865ec1fc2f2c34e2bdd3cafd9050b2c8af6b3ea5abfe"}
758
- Authenticating with gds_sso strategy
820
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
821
+ Processing by ExampleController#restricted as JSON
822
+ Completed in 29ms (ActiveRecord: 0.0ms)
823
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
824
+ Processing by ExampleController#restricted as JSON
825
+ Completed in 13ms (ActiveRecord: 0.0ms)
826
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
827
+ Processing by ExampleController#restricted as JSON
828
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
830
+  (0.1ms) begin transaction
831
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
832
+  (7.2ms) commit transaction
759
833
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
760
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
834
+  (0.1ms) begin transaction
835
+  (0.0ms) commit transaction
836
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
761
837
   (0.1ms) begin transaction
762
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
763
-  (4.9ms) commit transaction
838
+  (0.1ms) commit transaction
839
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
840
+  (0.1ms) begin transaction
841
+  (0.0ms) commit transaction
764
842
   (0.0ms) begin transaction
765
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
766
-  (4.0ms) commit transaction
767
- Redirected to http://www.example-client.com/restricted
768
- Completed 302 Found in 36ms (ActiveRecord: 10.0ms)
769
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
770
- Processing by ExampleController#restricted as HTML
771
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
843
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
844
+  (7.0ms) commit transaction
772
845
  Rendered text template (0.0ms)
773
- Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.1ms)
774
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
775
- Processing by ExampleController#restricted as HTML
776
- Authenticating with gds_sso strategy
777
- Completed in 0ms (ActiveRecord: 0.0ms)
778
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
779
- Started GET "/auth/gds/callback?code=f7d827163bfc683f21e4b914013d9afb11538bd236218206b2174df826211c7e&state=215e265d6f90d6985a3ece21e99943bf6ec7137b95b4534d" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
780
- Processing by AuthenticationsController#callback as HTML
781
- Parameters: {"code"=>"f7d827163bfc683f21e4b914013d9afb11538bd236218206b2174df826211c7e", "state"=>"215e265d6f90d6985a3ece21e99943bf6ec7137b95b4534d"}
782
- Authenticating with gds_sso strategy
783
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
846
+ Completed 200 OK in 92ms (Views: 3.5ms | ActiveRecord: 15.5ms)
847
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
848
+ Processing by ExampleController#this_requires_signin_permission as JSON
849
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
850
+  (0.1ms) begin transaction
851
+  (0.0ms) commit transaction
852
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
784
853
   (0.1ms) begin transaction
785
854
   (0.0ms) commit transaction
855
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
856
+  (0.1ms) begin transaction
857
+  (0.1ms) commit transaction
858
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
859
+  (0.1ms) begin transaction
860
+  (0.1ms) commit transaction
786
861
   (0.1ms) begin transaction
787
862
   (0.0ms) commit transaction
788
- Redirected to http://www.example-client.com/restricted
789
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
790
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
791
- Processing by ExampleController#restricted as HTML
792
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
793
- Rendered text template (0.0ms)
794
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
795
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
796
- Processing by ExampleController#index as HTML
797
863
  Rendered text template (0.0ms)
798
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
799
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
864
+ Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.8ms)
865
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
800
866
  Processing by ExampleController#restricted as HTML
801
867
  Authenticating with gds_sso strategy
802
868
  Completed in 0ms (ActiveRecord: 0.0ms)
803
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
804
- Started GET "/auth/gds/callback?code=a9df46a8e9032d2ce98fa642c6d4eecaf6d257e63fd9e94460f97dce3d68b51b&state=ce4d0f9f4a4c043b827ef8e17fb72ef23fc4119de764cc21" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
869
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
870
+ Started GET "/auth/gds/callback?code=b43e7720850448d58a0fbb16aac9abbba5555d3dc9ba571fbda9193081f96be3&state=e90e55268e547d927b1656d5c1f7994019f4106e97e80bf6" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
805
871
  Processing by AuthenticationsController#callback as HTML
806
- Parameters: {"code"=>"a9df46a8e9032d2ce98fa642c6d4eecaf6d257e63fd9e94460f97dce3d68b51b", "state"=>"ce4d0f9f4a4c043b827ef8e17fb72ef23fc4119de764cc21"}
872
+ Parameters: {"code"=>"b43e7720850448d58a0fbb16aac9abbba5555d3dc9ba571fbda9193081f96be3", "state"=>"e90e55268e547d927b1656d5c1f7994019f4106e97e80bf6"}
807
873
  Authenticating with gds_sso strategy
808
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
809
-  (0.1ms) begin transaction
810
-  (0.0ms) commit transaction
874
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
875
+  (0.1ms) begin transaction
876
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
877
+  (6.4ms) commit transaction
811
878
   (0.0ms) begin transaction
812
879
   (0.0ms) commit transaction
813
880
  Redirected to http://www.example-client.com/restricted
814
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
815
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
881
+ Completed 302 Found in 11ms (ActiveRecord: 7.0ms)
882
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
816
883
  Processing by ExampleController#restricted as HTML
817
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
884
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
818
885
  Rendered text template (0.0ms)
819
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
820
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
886
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
887
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
821
888
  Processing by ExampleController#this_requires_signin_permission as HTML
822
889
  Authenticating with gds_sso strategy
823
890
  Completed in 0ms (ActiveRecord: 0.0ms)
824
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
825
- Started GET "/auth/gds/callback?code=bbfbf6f992e10dc4e8fcfc8260483cf3e518592aed6b2a86ca6f0aab302251a3&state=5b1490b2c12e2256d5641916db6c868cf5e16fb855757210" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
891
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
892
+ Started GET "/auth/gds/callback?code=ad28c5b212a5014bde668312daed640902e06e87740bf9a670c455ddf0477f06&state=561135a89d12e6ef7b7dfa8068535ce6d3c2b1d016d05d9e" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
826
893
  Processing by AuthenticationsController#callback as HTML
827
- Parameters: {"code"=>"bbfbf6f992e10dc4e8fcfc8260483cf3e518592aed6b2a86ca6f0aab302251a3", "state"=>"5b1490b2c12e2256d5641916db6c868cf5e16fb855757210"}
894
+ Parameters: {"code"=>"ad28c5b212a5014bde668312daed640902e06e87740bf9a670c455ddf0477f06", "state"=>"561135a89d12e6ef7b7dfa8068535ce6d3c2b1d016d05d9e"}
828
895
  Authenticating with gds_sso strategy
829
896
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
830
897
   (0.1ms) begin transaction
@@ -833,529 +900,357 @@ Authenticating with gds_sso strategy
833
900
   (0.0ms) commit transaction
834
901
  Redirected to http://www.example-client.com/this_requires_signin_permission
835
902
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
836
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
903
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
837
904
  Processing by ExampleController#this_requires_signin_permission as HTML
838
905
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
839
906
  Rendered text template (0.0ms)
840
907
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
841
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
908
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
842
909
  Processing by ExampleController#this_requires_signin_permission as HTML
843
910
  Authenticating with gds_sso strategy
844
911
  Completed in 0ms (ActiveRecord: 0.0ms)
845
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
846
- Started GET "/auth/gds/callback?code=8f42a16ddcb1c1b952bdfc7a288e1643b0900b8b83830a160d9edf31666fed2a&state=96dcc68ee399724a6d2e0e2fa29d355772b8d4e322654295" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
912
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
913
+ Started GET "/auth/gds/callback?code=b8c4461438a6303cb6035a09e95123bba1b6657ec8341f7570a58663d6054196&state=5b690f193aa68e0ebf417044e31701552852f065af2974df" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
847
914
  Processing by AuthenticationsController#callback as HTML
848
- Parameters: {"code"=>"8f42a16ddcb1c1b952bdfc7a288e1643b0900b8b83830a160d9edf31666fed2a", "state"=>"96dcc68ee399724a6d2e0e2fa29d355772b8d4e322654295"}
915
+ Parameters: {"code"=>"b8c4461438a6303cb6035a09e95123bba1b6657ec8341f7570a58663d6054196", "state"=>"5b690f193aa68e0ebf417044e31701552852f065af2974df"}
849
916
  Authenticating with gds_sso strategy
850
917
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
851
918
   (0.1ms) begin transaction
852
-  (0.0ms) commit transaction
853
-  (0.1ms) begin transaction
919
+  (0.1ms) commit transaction
920
+  (0.0ms) begin transaction
854
921
   (0.0ms) commit transaction
855
922
  Redirected to http://www.example-client.com/this_requires_signin_permission
856
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
857
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
923
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
924
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
858
925
  Processing by ExampleController#this_requires_signin_permission as HTML
859
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
926
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
860
927
  Rendered text template (0.0ms)
861
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
862
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
928
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
929
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
863
930
  Processing by ExampleController#restricted as HTML
864
931
  Authenticating with gds_sso strategy
865
932
  Completed in 0ms (ActiveRecord: 0.0ms)
866
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
867
- Started GET "/auth/gds/callback?code=d2f73fcb4c577182e6ded2069bc29eb48bff0f0c9e0def1a4279403901f5d0e1&state=2ea5afbb8592f24a867a331da563a5b2c03ab839b74f7976" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
933
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
934
+ Started GET "/auth/gds/callback?code=975e5f50712651ecbef9c61594d6754bdd527da25fd8be5631e207c984cb2ccc&state=1aac7d835f566e4fb96f4f33527a0279f5481ebd839014c0" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
868
935
  Processing by AuthenticationsController#callback as HTML
869
- Parameters: {"code"=>"d2f73fcb4c577182e6ded2069bc29eb48bff0f0c9e0def1a4279403901f5d0e1", "state"=>"2ea5afbb8592f24a867a331da563a5b2c03ab839b74f7976"}
936
+ Parameters: {"code"=>"975e5f50712651ecbef9c61594d6754bdd527da25fd8be5631e207c984cb2ccc", "state"=>"1aac7d835f566e4fb96f4f33527a0279f5481ebd839014c0"}
870
937
  Authenticating with gds_sso strategy
871
938
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
872
939
   (0.1ms) begin transaction
873
940
   (0.0ms) commit transaction
874
-  (0.1ms) begin transaction
941
+  (0.0ms) begin transaction
875
942
   (0.0ms) commit transaction
876
943
  Redirected to http://www.example-client.com/restricted
877
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
878
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
944
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
945
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
879
946
  Processing by ExampleController#restricted as HTML
880
947
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
881
948
  Rendered text template (0.0ms)
882
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
883
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
884
- Processing by ExampleController#restricted as HTML
885
- Authenticating with gds_sso strategy
886
- Completed in 0ms (ActiveRecord: 0.0ms)
887
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
888
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
949
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
950
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
889
951
  Processing by ExampleController#restricted as HTML
890
952
  Authenticating with gds_sso strategy
891
953
  Completed in 0ms (ActiveRecord: 0.0ms)
892
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
893
- Started GET "/auth/gds/callback?code=9645020da3d903b61bf9bb38954ca2569261f6e1fa22dcec1df95770c498ddde&state=fcf92a28d77a258572166828132a64776f92f8994eced34d" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
954
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
955
+ Started GET "/auth/gds/callback?code=202556d7dc2f8b9066383e72bbd74a55602cd697827d37c2e4fa62ad11ff1268&state=e71db924cb8cfbb0fa3ac7ebbd10377082e80ea49afa24a9" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
894
956
  Processing by AuthenticationsController#callback as HTML
895
- Parameters: {"code"=>"9645020da3d903b61bf9bb38954ca2569261f6e1fa22dcec1df95770c498ddde", "state"=>"fcf92a28d77a258572166828132a64776f92f8994eced34d"}
957
+ Parameters: {"code"=>"202556d7dc2f8b9066383e72bbd74a55602cd697827d37c2e4fa62ad11ff1268", "state"=>"e71db924cb8cfbb0fa3ac7ebbd10377082e80ea49afa24a9"}
896
958
  Authenticating with gds_sso strategy
897
959
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
898
960
   (0.1ms) begin transaction
899
-  (0.1ms) commit transaction
900
-  (0.1ms) begin transaction
961
+  (0.0ms) commit transaction
962
+  (0.0ms) begin transaction
901
963
   (0.0ms) commit transaction
902
964
  Redirected to http://www.example-client.com/restricted
903
965
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
904
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
966
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
905
967
  Processing by ExampleController#restricted as HTML
906
968
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
907
969
  Rendered text template (0.0ms)
908
970
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
909
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
971
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
972
+ Processing by ExampleController#index as HTML
973
+ Rendered text template (0.0ms)
974
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
975
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
910
976
  Processing by ExampleController#restricted as HTML
911
977
  Authenticating with gds_sso strategy
912
978
  Completed in 0ms (ActiveRecord: 0.0ms)
913
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
914
- Started GET "/auth/gds/callback?code=1ac88e3b7f8c401d21175e278f0ea618f206c0c4f3d16dbc2b6c2919c6db5a57&state=142a3ea2a3f6e66cf5fbee5682453a9fa167cf9d748e628d" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
979
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
980
+ Started GET "/auth/gds/callback?code=e260ffadd922aee49408fdba01481a53923ffa2f8462f23cccf62cbb999f9782&state=107bfc7e38eae0d08dc54d74ff14b15a9c967a57af421cb5" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
915
981
  Processing by AuthenticationsController#callback as HTML
916
- Parameters: {"code"=>"1ac88e3b7f8c401d21175e278f0ea618f206c0c4f3d16dbc2b6c2919c6db5a57", "state"=>"142a3ea2a3f6e66cf5fbee5682453a9fa167cf9d748e628d"}
982
+ Parameters: {"code"=>"e260ffadd922aee49408fdba01481a53923ffa2f8462f23cccf62cbb999f9782", "state"=>"107bfc7e38eae0d08dc54d74ff14b15a9c967a57af421cb5"}
917
983
  Authenticating with gds_sso strategy
918
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
919
-  (0.1ms) begin transaction
920
-  (0.1ms) commit transaction
984
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
921
985
   (0.1ms) begin transaction
922
-  (0.1ms) commit transaction
986
+  (0.0ms) commit transaction
987
+  (0.0ms) begin transaction
988
+  (0.0ms) commit transaction
923
989
  Redirected to http://www.example-client.com/restricted
924
990
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
925
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
991
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
926
992
  Processing by ExampleController#restricted as HTML
927
993
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
928
994
  Rendered text template (0.0ms)
929
995
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
930
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
996
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
997
+  (0.1ms) begin transaction
998
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
999
+  (8.3ms) commit transaction
1000
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
931
1001
  Processing by ExampleController#restricted as HTML
1002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
932
1003
  Authenticating with gds_sso strategy
933
- Completed in 0ms (ActiveRecord: 0.0ms)
934
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
935
- Started GET "/auth/gds/callback?code=f1c6df8c7649d51f367e1fefd61a1e48aaa9766c8b82448e176d0a66e3c90d23&state=baadac03ef49b019f257a4fdb43046b20852e71636d301e5" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1004
+ Completed in 1ms (ActiveRecord: 0.1ms)
1005
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
1006
+ Started GET "/auth/gds/callback?code=f1533c60944399f1391a136290e5bfac751d61e1fb98ca9a75a421a666fd5702&state=c80c433c2aa454a67d9228e89f3d981d1929d677fcdc69bf" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
936
1007
  Processing by AuthenticationsController#callback as HTML
937
- Parameters: {"code"=>"f1c6df8c7649d51f367e1fefd61a1e48aaa9766c8b82448e176d0a66e3c90d23", "state"=>"baadac03ef49b019f257a4fdb43046b20852e71636d301e5"}
1008
+ Parameters: {"code"=>"f1533c60944399f1391a136290e5bfac751d61e1fb98ca9a75a421a666fd5702", "state"=>"c80c433c2aa454a67d9228e89f3d981d1929d677fcdc69bf"}
938
1009
  Authenticating with gds_sso strategy
939
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
940
-  (0.1ms) begin transaction
941
-  (0.0ms) commit transaction
942
-  (0.0ms) begin transaction
943
-  (0.0ms) commit transaction
1010
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1011
+  (0.1ms) begin transaction
1012
+  (0.1ms) commit transaction
1013
+  (0.0ms) begin transaction
1014
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1015
+  (5.5ms) commit transaction
944
1016
  Redirected to http://www.example-client.com/restricted
945
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
946
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1017
+ Completed 302 Found in 10ms (ActiveRecord: 6.0ms)
1018
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
947
1019
  Processing by ExampleController#restricted as HTML
948
1020
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
949
1021
  Rendered text template (0.0ms)
950
1022
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
951
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:48 +0000
952
- Processing by ExampleController#restricted as HTML
953
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
954
- Rendered text template (0.0ms)
955
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
956
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1023
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
957
1024
  Processing by ExampleController#restricted as HTML
958
1025
  Authenticating with gds_sso strategy
959
1026
  Completed in 0ms (ActiveRecord: 0.0ms)
960
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
961
- Started GET "/auth/gds/callback?code=2d983773bd794b39d29961081bae454fe12a4fbdadd33d94fd23e8c09231b4b3&state=09b5ea495948a1b7f0a5299568ccc579897acded362267b2" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1027
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1028
+ Started GET "/auth/gds/callback?code=ad908d82d833c29cec117f91462504cfed0a67cb9b7233fb0af9893ffc9ecd82&state=f6f9f89788416ca79638e59ea751a0bb916fa03d0819759b" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
962
1029
  Processing by AuthenticationsController#callback as HTML
963
- Parameters: {"code"=>"2d983773bd794b39d29961081bae454fe12a4fbdadd33d94fd23e8c09231b4b3", "state"=>"09b5ea495948a1b7f0a5299568ccc579897acded362267b2"}
1030
+ Parameters: {"code"=>"ad908d82d833c29cec117f91462504cfed0a67cb9b7233fb0af9893ffc9ecd82", "state"=>"f6f9f89788416ca79638e59ea751a0bb916fa03d0819759b"}
964
1031
  Authenticating with gds_sso strategy
965
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
966
-  (0.1ms) begin transaction
967
-  (0.0ms) commit transaction
968
-  (0.0ms) begin transaction
969
-  (0.0ms) commit transaction
1032
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1033
+  (0.1ms) begin transaction
1034
+  (0.1ms) commit transaction
1035
+  (0.1ms) begin transaction
1036
+  (0.0ms) commit transaction
970
1037
  Redirected to http://www.example-client.com/restricted
971
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
972
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1038
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1039
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
973
1040
  Processing by ExampleController#restricted as HTML
974
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1041
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
975
1042
  Rendered text template (0.0ms)
976
1043
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
977
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
978
-  (0.0ms) begin transaction
979
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
980
-  (4.8ms) commit transaction
981
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1044
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:25 +0000
982
1045
  Processing by ExampleController#restricted as HTML
983
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
984
1046
  Authenticating with gds_sso strategy
985
- Completed in 1ms (ActiveRecord: 0.1ms)
986
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
987
- Started GET "/auth/gds/callback?code=69bceb62f6a0f10fd68f549f7788a45af39ca2c6461ffb16d49c3c909e69b588&state=4ca79c9ac79123e4d59cffa49c57e5f7515f3820c160d323" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1047
+ Completed in 1ms (ActiveRecord: 0.0ms)
1048
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:25 +0000
1049
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1050
+ Processing by ExampleController#restricted as HTML
1051
+ Authenticating with gds_sso strategy
1052
+ Completed in 0ms (ActiveRecord: 0.0ms)
1053
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1054
+ Started GET "/auth/gds/callback?code=d54a02d6befb119141bb82cd97f557576a575fb38635d0c1ed794a97884b1771&state=27889d6abe3e8df526d95349b3ef8a426266d11d4e4c02a9" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
988
1055
  Processing by AuthenticationsController#callback as HTML
989
- Parameters: {"code"=>"69bceb62f6a0f10fd68f549f7788a45af39ca2c6461ffb16d49c3c909e69b588", "state"=>"4ca79c9ac79123e4d59cffa49c57e5f7515f3820c160d323"}
1056
+ Parameters: {"code"=>"d54a02d6befb119141bb82cd97f557576a575fb38635d0c1ed794a97884b1771", "state"=>"27889d6abe3e8df526d95349b3ef8a426266d11d4e4c02a9"}
990
1057
  Authenticating with gds_sso strategy
991
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1058
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
992
1059
   (0.1ms) begin transaction
993
1060
   (0.1ms) commit transaction
994
1061
   (0.0ms) begin transaction
995
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
996
-  (9.7ms) commit transaction
1062
+  (0.0ms) commit transaction
997
1063
  Redirected to http://www.example-client.com/restricted
998
- Completed 302 Found in 15ms (ActiveRecord: 10.1ms)
999
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1064
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1065
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1000
1066
  Processing by ExampleController#restricted as HTML
1001
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1067
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1002
1068
  Rendered text template (0.0ms)
1003
1069
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1004
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1070
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:25 +0000
1071
+ Processing by ExampleController#restricted as HTML
1072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1073
+ Rendered text template (0.0ms)
1074
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1075
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1005
1076
  Processing by ExampleController#restricted as HTML
1006
1077
  Authenticating with gds_sso strategy
1007
- Completed in 0ms (ActiveRecord: 0.0ms)
1008
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1009
- Processing by ExampleController#this_requires_signin_permission as JSON
1010
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1011
-  (0.1ms) begin transaction
1012
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
1013
-  (6.1ms) commit transaction
1078
+ Completed in 1ms (ActiveRecord: 0.0ms)
1079
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
1080
+ Started GET "/auth/gds/callback?code=87b601ba35d1440b3ccf9392f2a6555b7a3f58663c455ec63e88a26a8716fe2b&state=430e76f078d97eb50813ac831178dbf427f7ab05ace93fd0" for 127.0.0.1 at 2018-01-23 17:16:26 +0000
1081
+ Processing by AuthenticationsController#callback as HTML
1082
+ Parameters: {"code"=>"87b601ba35d1440b3ccf9392f2a6555b7a3f58663c455ec63e88a26a8716fe2b", "state"=>"430e76f078d97eb50813ac831178dbf427f7ab05ace93fd0"}
1083
+ Authenticating with gds_sso strategy
1014
1084
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1015
1085
   (0.1ms) begin transaction
1016
1086
   (0.0ms) commit transaction
1017
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1018
-  (0.1ms) begin transaction
1019
-  (0.1ms) commit transaction
1020
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1021
-  (0.1ms) begin transaction
1022
-  (0.0ms) commit transaction
1023
-  (0.0ms) begin transaction
1024
-  (0.0ms) commit transaction
1025
- Rendered text template (0.0ms)
1026
- Completed 200 OK in 78ms (Views: 0.5ms | ActiveRecord: 6.9ms)
1027
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1028
- Processing by ExampleController#restricted as JSON
1029
- Completed in 24ms (ActiveRecord: 0.0ms)
1030
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1031
- Processing by ExampleController#restricted as JSON
1032
- Completed in 12ms (ActiveRecord: 0.0ms)
1033
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1034
- Processing by ExampleController#restricted as JSON
1035
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1036
-  (0.1ms) begin transaction
1037
-  (0.0ms) commit transaction
1038
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1039
-  (0.1ms) begin transaction
1040
-  (0.0ms) commit transaction
1041
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1042
-  (0.1ms) begin transaction
1043
-  (0.1ms) commit transaction
1044
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1045
-  (0.0ms) begin transaction
1046
-  (0.0ms) commit transaction
1047
1087
   (0.0ms) begin transaction
1048
1088
   (0.1ms) commit transaction
1089
+ Redirected to http://www.example-client.com/restricted
1090
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1091
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:26 +0000
1092
+ Processing by ExampleController#restricted as HTML
1093
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1049
1094
  Rendered text template (0.0ms)
1050
- Completed 200 OK in 65ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1051
-  (0.1ms) begin transaction
1052
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39331"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1053
-  (5.1ms) commit transaction
1054
-  (0.1ms) begin transaction
1055
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38112"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1056
-  (4.1ms) commit transaction
1057
- Processing by Api::UserController#update as HTML
1058
- Parameters: {"uid"=>"a1s2d39331"}
1059
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39331"]]
1060
-  (0.1ms) begin transaction
1061
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 2]]
1062
-  (3.8ms) commit transaction
1063
- Completed 200 OK in 8ms (ActiveRecord: 4.1ms)
1064
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
1065
-  (0.1ms) begin transaction
1066
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33498"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1067
-  (3.7ms) commit transaction
1068
-  (0.1ms) begin transaction
1069
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32155"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1070
-  (4.7ms) commit transaction
1071
- Processing by Api::UserController#update as HTML
1072
- Parameters: {"uid"=>"a1s2d33498"}
1073
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1074
- Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
1075
-  (0.1ms) begin transaction
1076
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38345"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1077
-  (4.1ms) commit transaction
1078
-  (0.0ms) begin transaction
1079
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31273"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1080
-  (5.0ms) commit transaction
1081
- Processing by Api::UserController#reauth as HTML
1082
- Parameters: {"uid"=>"nonexistent-user"}
1083
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1084
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1095
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1096
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:26 +0000
1097
+ Processing by ExampleController#restricted as HTML
1098
+ Authenticating with gds_sso strategy
1099
+ Completed in 0ms (ActiveRecord: 0.0ms)
1100
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:26 +0000
1101
+ Started GET "/auth/gds/callback?code=2018ac4d5ceee1b26137609fd9c339af949dcb288845e2bdd5b276dbf0321d2f&state=b163dea3674ef5feb70b88a71185a5a4cfa3ab911e7eb825" for 127.0.0.1 at 2018-01-24 13:21:26 +0000
1102
+ Processing by AuthenticationsController#callback as HTML
1103
+ Parameters: {"code"=>"2018ac4d5ceee1b26137609fd9c339af949dcb288845e2bdd5b276dbf0321d2f", "state"=>"b163dea3674ef5feb70b88a71185a5a4cfa3ab911e7eb825"}
1104
+ Authenticating with gds_sso strategy
1105
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1085
1106
   (0.1ms) begin transaction
1086
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33190"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1087
-  (8.2ms) commit transaction
1088
-  (0.0ms) begin transaction
1089
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36901"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1090
-  (5.6ms) commit transaction
1091
- Processing by Api::UserController#reauth as HTML
1092
- Parameters: {"uid"=>"a1s2d33190"}
1093
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33190"]]
1094
-  (0.0ms) begin transaction
1095
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1096
-  (5.1ms) commit transaction
1097
- Completed 200 OK in 7ms (ActiveRecord: 5.4ms)
1098
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1099
-  (0.1ms) begin transaction
1100
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31579"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1101
-  (5.1ms) commit transaction
1107
+  (0.1ms) commit transaction
1102
1108
   (0.1ms) begin transaction
1103
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3111"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1104
-  (6.7ms) commit transaction
1105
- Processing by Api::UserController#reauth as HTML
1106
- Parameters: {"uid"=>"a1s2d31579"}
1107
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1108
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1109
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1110
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1111
-  (0.1ms) begin transaction
1112
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1113
-  (8.2ms) commit transaction
1114
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1115
-  (0.1ms) begin transaction
1116
-  (0.0ms) commit transaction
1109
+  (0.1ms) commit transaction
1110
+ Redirected to http://www.example-client.com/restricted
1111
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1112
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:26 +0000
1113
+ Processing by ExampleController#restricted as HTML
1114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1115
+ Rendered text template (0.0ms)
1116
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1117
1117
   (0.1ms) DROP TABLE IF EXISTS "users"
1118
-  (1.4ms) SELECT sqlite_version(*)
1119
-  (5.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1120
-  (4.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1118
+  (0.9ms) SELECT sqlite_version(*)
1119
+  (8.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1120
+  (8.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1121
1121
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1122
1122
   (0.1ms) begin transaction
1123
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:09:54.955670"], ["updated_at", "2017-12-15 16:09:54.955670"]]
1124
-  (5.3ms) commit transaction
1125
-  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1126
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1123
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-01-23 17:16:31.586695"], ["updated_at", "2018-01-23 17:16:31.586695"]]
1124
+  (8.6ms) commit transaction
1125
+  (17.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1126
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1127
1127
   (0.1ms) begin transaction
1128
1128
   (0.0ms) commit transaction
1129
-  (0.1ms) begin transaction
1130
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34767"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1131
-  (6.2ms) commit transaction
1132
-  (0.0ms) begin transaction
1133
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31259"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1134
-  (4.9ms) commit transaction
1135
- Processing by Api::UserController#reauth as HTML
1136
- Parameters: {"uid"=>"nonexistent-user"}
1137
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1138
- Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
1139
-  (0.1ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34232"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1141
-  (4.2ms) commit transaction
1142
-  (0.0ms) begin transaction
1143
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37612"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1144
-  (4.9ms) commit transaction
1145
- Processing by Api::UserController#reauth as HTML
1146
- Parameters: {"uid"=>"a1s2d34232"}
1147
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1148
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1149
- Completed 403 Forbidden in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)
1150
-  (0.1ms) begin transaction
1151
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33597"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1152
-  (4.1ms) commit transaction
1153
-  (0.0ms) begin transaction
1154
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36085"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1155
-  (4.9ms) commit transaction
1156
- Processing by Api::UserController#reauth as HTML
1157
- Parameters: {"uid"=>"a1s2d33597"}
1158
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33597"], ["LIMIT", 1]]
1159
-  (0.0ms) begin transaction
1160
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1161
-  (5.2ms) commit transaction
1162
- Completed 200 OK in 8ms (ActiveRecord: 5.5ms)
1163
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1164
-  (0.1ms) begin transaction
1165
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31642"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1166
-  (4.1ms) commit transaction
1167
-  (0.0ms) begin transaction
1168
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3471"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1169
-  (3.9ms) commit transaction
1170
- Processing by Api::UserController#update as HTML
1171
- Parameters: {"uid"=>"a1s2d31642"}
1172
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1173
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1174
- Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1175
-  (0.1ms) begin transaction
1176
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36387"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1177
-  (5.9ms) commit transaction
1178
-  (0.0ms) begin transaction
1179
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33675"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1180
-  (4.1ms) commit transaction
1181
- Processing by Api::UserController#update as HTML
1182
- Parameters: {"uid"=>"a1s2d36387"}
1183
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36387"], ["LIMIT", 1]]
1184
-  (0.1ms) begin transaction
1185
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1186
-  (4.0ms) commit transaction
1187
- Completed 200 OK in 8ms (ActiveRecord: 4.3ms)
1188
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1189
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1190
- Processing by ExampleController#restricted as HTML
1129
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1130
+ Processing by ExampleController#this_requires_signin_permission as HTML
1191
1131
  Authenticating with gds_sso strategy
1192
1132
  Completed in 6ms (ActiveRecord: 0.0ms)
1193
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1194
- Processing by ExampleController#restricted as JSON
1195
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1196
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1197
-  (0.0ms) begin transaction
1198
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1199
-  (4.7ms) commit transaction
1133
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1134
+ Started GET "/auth/gds/callback?code=17a42fba0db9edb71043d23222be66b12729b473e38d0eba0489fcbc4d155a89&state=24233b213f99d33722d9bee469977a232036881722922f4e" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1135
+ Processing by AuthenticationsController#callback as HTML
1136
+ Parameters: {"code"=>"17a42fba0db9edb71043d23222be66b12729b473e38d0eba0489fcbc4d155a89", "state"=>"24233b213f99d33722d9bee469977a232036881722922f4e"}
1137
+ Authenticating with gds_sso strategy
1200
1138
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1201
-  (0.0ms) begin transaction
1202
-  (0.1ms) commit transaction
1203
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1204
-  (0.1ms) begin transaction
1205
-  (0.1ms) commit transaction
1206
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1139
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1207
1140
   (0.1ms) begin transaction
1208
-  (0.1ms) commit transaction
1141
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1142
+  (10.1ms) commit transaction
1209
1143
   (0.1ms) begin transaction
1210
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1211
-  (6.0ms) commit transaction
1144
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
1145
+  (6.5ms) commit transaction
1146
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1147
+ Completed 302 Found in 38ms (ActiveRecord: 18.9ms)
1148
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1149
+ Processing by ExampleController#this_requires_signin_permission as HTML
1150
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1212
1151
  Rendering text template
1213
1152
  Rendered text template (0.0ms)
1214
- Completed 200 OK in 94ms (Views: 1.8ms | ActiveRecord: 12.5ms)
1215
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1216
- Processing by ExampleController#this_requires_signin_permission as JSON
1153
+ Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.2ms)
1154
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1155
+ Processing by ExampleController#this_requires_signin_permission as HTML
1156
+ Authenticating with gds_sso strategy
1157
+ Completed in 0ms (ActiveRecord: 0.0ms)
1158
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1159
+ Started GET "/auth/gds/callback?code=2a080321a878353fead65147fe47492be7bf440103035213c313b29cd27440f0&state=0a33c40eac3b37546674a109884d471362f840df31e9c4f4" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1160
+ Processing by AuthenticationsController#callback as HTML
1161
+ Parameters: {"code"=>"2a080321a878353fead65147fe47492be7bf440103035213c313b29cd27440f0", "state"=>"0a33c40eac3b37546674a109884d471362f840df31e9c4f4"}
1162
+ Authenticating with gds_sso strategy
1217
1163
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1218
1164
   (0.1ms) begin transaction
1219
1165
   (0.1ms) commit transaction
1220
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1221
-  (0.1ms) begin transaction
1222
-  (0.1ms) commit transaction
1223
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1224
-  (0.1ms) begin transaction
1225
-  (0.1ms) commit transaction
1226
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1227
-  (0.0ms) begin transaction
1228
-  (0.0ms) commit transaction
1229
- Rendering text template
1230
- Rendered text template (0.0ms)
1231
- Completed 200 OK in 75ms (Views: 0.3ms | ActiveRecord: 0.9ms)
1232
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1233
- Processing by ExampleController#restricted as JSON
1234
- Completed in 14ms (ActiveRecord: 0.0ms)
1235
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1236
- Processing by ExampleController#restricted as JSON
1237
- Completed in 24ms (ActiveRecord: 0.0ms)
1238
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1239
- Processing by ExampleController#index as HTML
1166
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1167
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1168
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1169
+ Processing by ExampleController#this_requires_signin_permission as HTML
1170
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1240
1171
  Rendering text template
1241
1172
  Rendered text template (0.0ms)
1242
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1243
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1173
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1174
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1244
1175
  Processing by ExampleController#restricted as HTML
1245
1176
  Authenticating with gds_sso strategy
1246
- Completed in 0ms (ActiveRecord: 0.0ms)
1247
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1248
- Started GET "/auth/gds/callback?code=e1cdfa604177d3fcb7f077f51282402a2db61bdd6470be4090cfa6118283a7d0&state=b3d616f41216c71b899beaee46ff7ad35db0a2e306324591" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1177
+ Completed in 1ms (ActiveRecord: 0.0ms)
1178
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1179
+ Started GET "/auth/gds/callback?code=c38a4bb46e6f6345f1c9b4c0d29ae8afcc1d05d70e19eedcdac6242a2bba082f&state=8bb488516848ec1c43e85a2f48eddfb1854db8f1fce7942d" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1249
1180
  Processing by AuthenticationsController#callback as HTML
1250
- Parameters: {"code"=>"e1cdfa604177d3fcb7f077f51282402a2db61bdd6470be4090cfa6118283a7d0", "state"=>"b3d616f41216c71b899beaee46ff7ad35db0a2e306324591"}
1181
+ Parameters: {"code"=>"c38a4bb46e6f6345f1c9b4c0d29ae8afcc1d05d70e19eedcdac6242a2bba082f", "state"=>"8bb488516848ec1c43e85a2f48eddfb1854db8f1fce7942d"}
1251
1182
  Authenticating with gds_sso strategy
1252
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1183
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1253
1184
   (0.0ms) begin transaction
1254
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]
1255
-  (5.9ms) commit transaction
1185
+  (0.0ms) commit transaction
1256
1186
  Redirected to http://www.example-client.com/restricted
1257
- Completed 302 Found in 10ms (ActiveRecord: 6.4ms)
1258
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1187
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1188
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1259
1189
  Processing by ExampleController#restricted as HTML
1260
1190
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1261
1191
  Rendering text template
1262
1192
  Rendered text template (0.0ms)
1263
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1264
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1265
- Processing by ExampleController#this_requires_signin_permission as HTML
1193
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1194
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1195
+ Processing by ExampleController#restricted as HTML
1266
1196
  Authenticating with gds_sso strategy
1267
1197
  Completed in 0ms (ActiveRecord: 0.0ms)
1268
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1269
- Started GET "/auth/gds/callback?code=041103629545ef7440b45d727329faee6ba7487695482e86eb146fe1d9feb8f0&state=deede6e2c1df81cf19f817b4574e8d1591c11db0f62137b5" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1198
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:32 +0000
1199
+ Started GET "/auth/gds/callback?code=73de6d7cb00e3af01bcd18b1ac6f452422be789ca5c8ba94e7fc57d2f406676e&state=9e9902a5b41cecea2e9796e3c4742e26dda9d24fad0eeefb" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1270
1200
  Processing by AuthenticationsController#callback as HTML
1271
- Parameters: {"code"=>"041103629545ef7440b45d727329faee6ba7487695482e86eb146fe1d9feb8f0", "state"=>"deede6e2c1df81cf19f817b4574e8d1591c11db0f62137b5"}
1201
+ Parameters: {"code"=>"73de6d7cb00e3af01bcd18b1ac6f452422be789ca5c8ba94e7fc57d2f406676e", "state"=>"9e9902a5b41cecea2e9796e3c4742e26dda9d24fad0eeefb"}
1272
1202
  Authenticating with gds_sso strategy
1273
1203
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1274
1204
   (0.0ms) begin transaction
1275
-  (0.1ms) commit transaction
1276
- Redirected to http://www.example-client.com/this_requires_signin_permission
1277
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1278
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1279
- Processing by ExampleController#this_requires_signin_permission as HTML
1280
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1281
- Rendering text template
1282
- Rendered text template (0.0ms)
1283
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1284
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1285
- Processing by ExampleController#this_requires_signin_permission as HTML
1286
- Authenticating with gds_sso strategy
1287
- Completed in 0ms (ActiveRecord: 0.0ms)
1288
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1289
- Started GET "/auth/gds/callback?code=e40bd744a1307d4fc723db1ffd433c763ea292d47ba7bac679420a4e48a839d6&state=ac1f0c3193efb8f3ed7c3ce66a680082a39c1649b422c012" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1290
- Processing by AuthenticationsController#callback as HTML
1291
- Parameters: {"code"=>"e40bd744a1307d4fc723db1ffd433c763ea292d47ba7bac679420a4e48a839d6", "state"=>"ac1f0c3193efb8f3ed7c3ce66a680082a39c1649b422c012"}
1292
- Authenticating with gds_sso strategy
1293
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1294
-  (0.1ms) begin transaction
1295
-  (0.1ms) commit transaction
1296
- Redirected to http://www.example-client.com/this_requires_signin_permission
1205
+  (0.0ms) commit transaction
1206
+ Redirected to http://www.example-client.com/restricted
1297
1207
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1298
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1299
- Processing by ExampleController#this_requires_signin_permission as HTML
1208
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1209
+ Processing by ExampleController#restricted as HTML
1300
1210
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1301
1211
  Rendering text template
1302
1212
  Rendered text template (0.0ms)
1303
1213
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1304
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1305
- Processing by ExampleController#restricted as HTML
1306
- Authenticating with gds_sso strategy
1307
- Completed in 0ms (ActiveRecord: 0.0ms)
1308
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1309
- Started GET "/auth/gds/callback?code=50ac4a78e6ffce0789b79a57005b68400979e0db661278d58f216d2a701ede11&state=c8fbb7cd120cf2c350c4367e709b999ec0db79a1f3371ea6" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1310
- Processing by AuthenticationsController#callback as HTML
1311
- Parameters: {"code"=>"50ac4a78e6ffce0789b79a57005b68400979e0db661278d58f216d2a701ede11", "state"=>"c8fbb7cd120cf2c350c4367e709b999ec0db79a1f3371ea6"}
1312
- Authenticating with gds_sso strategy
1313
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1314
-  (0.1ms) begin transaction
1315
-  (0.1ms) commit transaction
1316
- Redirected to http://www.example-client.com/restricted
1317
- Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
1318
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1319
- Processing by ExampleController#restricted as HTML
1320
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1214
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1215
+ Processing by ExampleController#index as HTML
1321
1216
  Rendering text template
1322
1217
  Rendered text template (0.0ms)
1323
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1324
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1218
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1219
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1325
1220
  Processing by ExampleController#restricted as HTML
1326
1221
  Authenticating with gds_sso strategy
1327
1222
  Completed in 0ms (ActiveRecord: 0.0ms)
1328
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1329
- Started GET "/auth/gds/callback?code=190005b367b1b115275a62351af9ddc91acc2839c6631387bbe5467dde353321&state=b59fc849f7d54dcdddfa6be199ee510726a23b5973acab4f" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1223
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1224
+ Started GET "/auth/gds/callback?code=bd9ba3b67355cc8208df1dec441e3acc80455dd91c7334dce1e1e6b30cc43bb2&state=b7dee273dc2301ca31ec943fac81efab8f506645a89a4a50" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1330
1225
  Processing by AuthenticationsController#callback as HTML
1331
- Parameters: {"code"=>"190005b367b1b115275a62351af9ddc91acc2839c6631387bbe5467dde353321", "state"=>"b59fc849f7d54dcdddfa6be199ee510726a23b5973acab4f"}
1226
+ Parameters: {"code"=>"bd9ba3b67355cc8208df1dec441e3acc80455dd91c7334dce1e1e6b30cc43bb2", "state"=>"b7dee273dc2301ca31ec943fac81efab8f506645a89a4a50"}
1332
1227
  Authenticating with gds_sso strategy
1333
1228
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1334
1229
   (0.1ms) begin transaction
1335
-  (0.1ms) commit transaction
1230
+  (0.0ms) commit transaction
1336
1231
  Redirected to http://www.example-client.com/restricted
1337
1232
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1338
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1233
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1339
1234
  Processing by ExampleController#restricted as HTML
1340
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1235
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1341
1236
  Rendering text template
1342
1237
  Rendered text template (0.0ms)
1343
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1344
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1238
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1239
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1345
1240
  Processing by ExampleController#restricted as HTML
1346
1241
  Authenticating with gds_sso strategy
1347
1242
  Completed in 0ms (ActiveRecord: 0.0ms)
1348
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1349
- Started GET "/auth/gds/callback?code=bfab66fd6f1c24ab3df406d0a831292dbe9d41665c35788c33b88222209fd659&state=a06fd740720ed0745fe9aa9913d9f1ed059cb59ee8165d30" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1243
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1244
+ Started GET "/auth/gds/callback?code=5ae2793133376ba020e354f32dcb6e916a2d1bea7565fdb9967acd170d9dbd42&state=2f3482b86e454876ce678417d934f70afc2dea7c63d35e2d" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1350
1245
  Processing by AuthenticationsController#callback as HTML
1351
- Parameters: {"code"=>"bfab66fd6f1c24ab3df406d0a831292dbe9d41665c35788c33b88222209fd659", "state"=>"a06fd740720ed0745fe9aa9913d9f1ed059cb59ee8165d30"}
1246
+ Parameters: {"code"=>"5ae2793133376ba020e354f32dcb6e916a2d1bea7565fdb9967acd170d9dbd42", "state"=>"2f3482b86e454876ce678417d934f70afc2dea7c63d35e2d"}
1352
1247
  Authenticating with gds_sso strategy
1353
1248
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1354
1249
   (0.1ms) begin transaction
1355
1250
   (0.0ms) commit transaction
1356
1251
  Redirected to http://www.example-client.com/restricted
1357
1252
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1253
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1359
1254
  Processing by ExampleController#restricted as HTML
1360
1255
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1361
1256
  Rendering text template
@@ -1363,450 +1258,520 @@ Processing by ExampleController#restricted as HTML
1363
1258
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1364
1259
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1365
1260
   (0.1ms) begin transaction
1366
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
1367
-  (6.9ms) commit transaction
1368
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1261
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
1262
+  (7.1ms) commit transaction
1263
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1369
1264
  Processing by ExampleController#restricted as HTML
1370
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1265
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1371
1266
  Authenticating with gds_sso strategy
1372
- Completed in 2ms (ActiveRecord: 0.3ms)
1373
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1374
- Started GET "/auth/gds/callback?code=3a5888b74d6b6d60f8b6b931c7debee812adcf56ccac13d9c1d8bb99d2859a2e&state=952acf10d994e0f6b2975dd619bb6d6139456c554268de63" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1267
+ Completed in 1ms (ActiveRecord: 0.2ms)
1268
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1269
+ Started GET "/auth/gds/callback?code=0eb80c3582b538ea33f48bbde7765b4a757c2c684288b0f365802f81ed10a94d&state=59a0890064a4f89f2217c34f38ecf633d7c93f498cb500a7" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1375
1270
  Processing by AuthenticationsController#callback as HTML
1376
- Parameters: {"code"=>"3a5888b74d6b6d60f8b6b931c7debee812adcf56ccac13d9c1d8bb99d2859a2e", "state"=>"952acf10d994e0f6b2975dd619bb6d6139456c554268de63"}
1271
+ Parameters: {"code"=>"0eb80c3582b538ea33f48bbde7765b4a757c2c684288b0f365802f81ed10a94d", "state"=>"59a0890064a4f89f2217c34f38ecf633d7c93f498cb500a7"}
1377
1272
  Authenticating with gds_sso strategy
1378
1273
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1379
1274
   (0.1ms) begin transaction
1380
-  (0.1ms) commit transaction
1381
-  (0.1ms) begin transaction
1382
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1383
-  (7.7ms) commit transaction
1275
+  (0.0ms) commit transaction
1276
+  (0.0ms) begin transaction
1277
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
1278
+  (10.5ms) commit transaction
1384
1279
  Redirected to http://www.example-client.com/restricted
1385
- Completed 302 Found in 13ms (ActiveRecord: 8.4ms)
1386
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1280
+ Completed 302 Found in 15ms (ActiveRecord: 11.1ms)
1281
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1387
1282
  Processing by ExampleController#restricted as HTML
1388
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1283
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1389
1284
  Rendering text template
1390
1285
  Rendered text template (0.0ms)
1391
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1392
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1286
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1287
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1393
1288
  Processing by ExampleController#restricted as HTML
1394
1289
  Authenticating with gds_sso strategy
1395
1290
  Completed in 0ms (ActiveRecord: 0.0ms)
1396
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1397
- Started GET "/auth/gds/callback?code=c1bda7e7bf0e9503e7ba4715d39b7ea28b51a86d480baa049c0c226afd7de71f&state=69894aa823a9c6ed2c53935eb079fdd8256294078fa04555" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1291
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1292
+ Started GET "/auth/gds/callback?code=c1fdf98b5a864edaf59fcd1e56055ab03e91cea5019ff7937bd5795cee4226f9&state=3349bb3c25b824fad9b7f19c292158c2d651bd18c6d9e619" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1398
1293
  Processing by AuthenticationsController#callback as HTML
1399
- Parameters: {"code"=>"c1bda7e7bf0e9503e7ba4715d39b7ea28b51a86d480baa049c0c226afd7de71f", "state"=>"69894aa823a9c6ed2c53935eb079fdd8256294078fa04555"}
1294
+ Parameters: {"code"=>"c1fdf98b5a864edaf59fcd1e56055ab03e91cea5019ff7937bd5795cee4226f9", "state"=>"3349bb3c25b824fad9b7f19c292158c2d651bd18c6d9e619"}
1400
1295
  Authenticating with gds_sso strategy
1401
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1296
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1402
1297
   (0.1ms) begin transaction
1403
1298
   (0.1ms) commit transaction
1404
1299
  Redirected to http://www.example-client.com/restricted
1405
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1406
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1300
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1301
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1407
1302
  Processing by ExampleController#restricted as HTML
1408
1303
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1409
1304
  Rendering text template
1410
1305
  Rendered text template (0.0ms)
1411
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1412
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1306
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1307
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1413
1308
  Processing by ExampleController#restricted as HTML
1414
1309
  Authenticating with gds_sso strategy
1415
- Completed in 0ms (ActiveRecord: 0.0ms)
1416
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1417
- Started GET "/auth/gds/callback?code=f405ca673f4e3d265d6e136a1cf94d0e2e66e4befb4c8bd9da1ce1921fdbcca1&state=bf5701cbec4c4b9a5b2c9d004a2e5d7e797c368fb376dcea" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1310
+ Completed in 1ms (ActiveRecord: 0.0ms)
1311
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1312
+ Started GET "/auth/gds/callback?code=123efcc87f2412daa5e1ec5b16d8e99f19608c8c2a060f9b9118e9e819a6ef10&state=cbe8977a609bbbb011cf6abc9b9b53cb0c5d6a14756d7be4" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1418
1313
  Processing by AuthenticationsController#callback as HTML
1419
- Parameters: {"code"=>"f405ca673f4e3d265d6e136a1cf94d0e2e66e4befb4c8bd9da1ce1921fdbcca1", "state"=>"bf5701cbec4c4b9a5b2c9d004a2e5d7e797c368fb376dcea"}
1314
+ Parameters: {"code"=>"123efcc87f2412daa5e1ec5b16d8e99f19608c8c2a060f9b9118e9e819a6ef10", "state"=>"cbe8977a609bbbb011cf6abc9b9b53cb0c5d6a14756d7be4"}
1420
1315
  Authenticating with gds_sso strategy
1421
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1316
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1422
1317
   (0.1ms) begin transaction
1423
1318
   (0.1ms) commit transaction
1424
1319
  Redirected to http://www.example-client.com/restricted
1425
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1426
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1320
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
1321
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1427
1322
  Processing by ExampleController#restricted as HTML
1428
1323
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1429
1324
  Rendering text template
1430
1325
  Rendered text template (0.0ms)
1431
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1432
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1326
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1327
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1433
1328
  Processing by ExampleController#restricted as HTML
1434
1329
  Authenticating with gds_sso strategy
1435
1330
  Completed in 0ms (ActiveRecord: 0.0ms)
1436
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1437
- Started GET "/auth/gds/callback?code=0aa142a0825535df30bac2591c9de135ad34c425c90ae2bfb3f54440e577bf79&state=3520ea677b734b1c1565b09499acdeef74e93ea38fdcec58" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1331
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1332
+ Started GET "/auth/gds/callback?code=611fe54437d99e9ef911f40f0eb6d88da725d6db15ab2839893ae823ec9fc1cf&state=bc388674129216ae86a40fda0bb2259b689b195cb130a47f" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1438
1333
  Processing by AuthenticationsController#callback as HTML
1439
- Parameters: {"code"=>"0aa142a0825535df30bac2591c9de135ad34c425c90ae2bfb3f54440e577bf79", "state"=>"3520ea677b734b1c1565b09499acdeef74e93ea38fdcec58"}
1334
+ Parameters: {"code"=>"611fe54437d99e9ef911f40f0eb6d88da725d6db15ab2839893ae823ec9fc1cf", "state"=>"bc388674129216ae86a40fda0bb2259b689b195cb130a47f"}
1440
1335
  Authenticating with gds_sso strategy
1441
1336
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1442
1337
   (0.1ms) begin transaction
1443
-  (0.2ms) commit transaction
1338
+  (0.1ms) commit transaction
1444
1339
  Redirected to http://www.example-client.com/restricted
1445
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1446
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1340
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1341
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1447
1342
  Processing by ExampleController#restricted as HTML
1448
1343
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1449
1344
  Rendering text template
1450
1345
  Rendered text template (0.0ms)
1451
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1452
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1346
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1347
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1453
1348
  Processing by ExampleController#restricted as HTML
1454
1349
  Authenticating with gds_sso strategy
1455
1350
  Completed in 1ms (ActiveRecord: 0.0ms)
1456
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1457
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1351
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:34 +0000
1352
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1458
1353
  Processing by ExampleController#restricted as HTML
1459
1354
  Authenticating with gds_sso strategy
1460
- Completed in 0ms (ActiveRecord: 0.0ms)
1461
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1462
- Started GET "/auth/gds/callback?code=2aa0611d63b27dbea5219240e61012298df8cf22429d52c43ba071e1a9387d27&state=4924575b260dd947a80bd8c97aac61268cab2393369d78ef" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1355
+ Completed in 1ms (ActiveRecord: 0.0ms)
1356
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1357
+ Started GET "/auth/gds/callback?code=12cd97d03fa4a8af87cb27aee46071db01ea6660ef561c46956e2bd1e86d1d64&state=ce170ec55c3c39bd341a58bcca295dd7ec4b3b6c4e5a1bcc" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1463
1358
  Processing by AuthenticationsController#callback as HTML
1464
- Parameters: {"code"=>"2aa0611d63b27dbea5219240e61012298df8cf22429d52c43ba071e1a9387d27", "state"=>"4924575b260dd947a80bd8c97aac61268cab2393369d78ef"}
1359
+ Parameters: {"code"=>"12cd97d03fa4a8af87cb27aee46071db01ea6660ef561c46956e2bd1e86d1d64", "state"=>"ce170ec55c3c39bd341a58bcca295dd7ec4b3b6c4e5a1bcc"}
1465
1360
  Authenticating with gds_sso strategy
1466
1361
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1467
1362
   (0.1ms) begin transaction
1468
-  (0.0ms) commit transaction
1363
+  (0.1ms) commit transaction
1469
1364
  Redirected to http://www.example-client.com/restricted
1470
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1471
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1365
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1366
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:34 +0000
1472
1367
  Processing by ExampleController#restricted as HTML
1473
1368
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1474
1369
  Rendering text template
1475
1370
  Rendered text template (0.0ms)
1476
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1477
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:58 +0000
1371
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
1372
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:35 +0000
1478
1373
  Processing by ExampleController#restricted as HTML
1479
1374
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1480
1375
  Rendering text template
1481
1376
  Rendered text template (0.0ms)
1482
1377
  Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1483
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1378
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:35 +0000
1379
+ Processing by ExampleController#restricted as JSON
1380
+ Completed in 54ms (ActiveRecord: 0.0ms)
1381
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:35 +0000
1382
+ Processing by ExampleController#restricted as JSON
1383
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1384
+  (0.3ms) begin transaction
1385
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
1386
+  (7.8ms) commit transaction
1387
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1388
+  (0.1ms) begin transaction
1389
+  (0.1ms) commit transaction
1390
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1391
+  (0.1ms) begin transaction
1392
+  (0.1ms) commit transaction
1393
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1394
+  (0.1ms) begin transaction
1395
+  (0.1ms) commit transaction
1396
+ Rendering text template
1397
+ Rendered text template (0.0ms)
1398
+ Completed 200 OK in 109ms (Views: 0.3ms | ActiveRecord: 9.3ms)
1399
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:35 +0000
1400
+ Processing by ExampleController#this_requires_signin_permission as JSON
1401
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1402
+  (0.1ms) begin transaction
1403
+  (0.1ms) commit transaction
1404
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1405
+  (0.1ms) begin transaction
1406
+  (0.1ms) commit transaction
1407
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1408
+  (0.1ms) begin transaction
1409
+  (0.1ms) commit transaction
1410
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1411
+  (0.1ms) begin transaction
1412
+  (0.1ms) commit transaction
1413
+ Rendering text template
1414
+ Rendered text template (0.0ms)
1415
+ Completed 200 OK in 86ms (Views: 0.3ms | ActiveRecord: 1.1ms)
1416
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:35 +0000
1417
+ Processing by ExampleController#restricted as JSON
1418
+ Completed in 14ms (ActiveRecord: 0.0ms)
1419
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:35 +0000
1420
+ Processing by ExampleController#restricted as HTML
1421
+ Authenticating with gds_sso strategy
1422
+ Completed in 0ms (ActiveRecord: 0.0ms)
1423
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1484
1424
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1485
-  (0.0ms) begin transaction
1425
+  (0.1ms) begin transaction
1486
1426
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1487
-  (8.7ms) commit transaction
1427
+  (6.8ms) commit transaction
1488
1428
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1489
1429
   (0.1ms) begin transaction
1490
1430
   (0.0ms) commit transaction
1491
-  (12.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
1492
-  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1431
+  (0.1ms) begin transaction
1432
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36378"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1433
+  (6.8ms) commit transaction
1434
+  (0.1ms) begin transaction
1435
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3113"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1436
+  (5.2ms) commit transaction
1437
+ Processing by Api::UserController#reauth as HTML
1438
+ Parameters: {"uid"=>"a1s2d36378"}
1439
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1440
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1441
+ Completed 403 Forbidden in 11ms (Views: 9.7ms | ActiveRecord: 0.0ms)
1442
+  (0.1ms) begin transaction
1443
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38646"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1444
+  (7.6ms) commit transaction
1445
+  (0.1ms) begin transaction
1446
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36943"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1447
+  (5.6ms) commit transaction
1448
+ Processing by Api::UserController#reauth as HTML
1449
+ Parameters: {"uid"=>"a1s2d38646"}
1450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38646"], ["LIMIT", 1]]
1451
+  (0.1ms) begin transaction
1452
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1453
+  (8.4ms) commit transaction
1454
+ Completed 200 OK in 12ms (ActiveRecord: 8.8ms)
1455
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1456
+  (0.6ms) begin transaction
1457
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39704"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1458
+  (7.9ms) commit transaction
1459
+  (0.2ms) begin transaction
1460
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39238"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1461
+  (6.5ms) commit transaction
1462
+ Processing by Api::UserController#reauth as HTML
1463
+ Parameters: {"uid"=>"nonexistent-user"}
1464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1465
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1466
+  (0.1ms) begin transaction
1467
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32434"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1468
+  (6.3ms) commit transaction
1469
+  (0.1ms) begin transaction
1470
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32843"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1471
+  (5.3ms) commit transaction
1472
+ Processing by Api::UserController#update as HTML
1473
+ Parameters: {"uid"=>"a1s2d32434"}
1474
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32434"], ["LIMIT", 1]]
1475
+  (0.1ms) begin transaction
1476
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1477
+  (6.7ms) commit transaction
1478
+ Completed 200 OK in 10ms (ActiveRecord: 7.1ms)
1479
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1480
+  (0.1ms) begin transaction
1481
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31342"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1482
+  (7.5ms) commit transaction
1483
+  (0.1ms) begin transaction
1484
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32479"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1485
+  (9.4ms) commit transaction
1486
+ Processing by Api::UserController#update as HTML
1487
+ Parameters: {"uid"=>"a1s2d31342"}
1488
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1489
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1490
+ Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1491
+  (7.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
1492
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1493
1493
   (0.1ms) select sqlite_version(*)
1494
-  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1494
+  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1495
1495
   (0.1ms) begin transaction
1496
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39124"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1497
-  (5.0ms) commit transaction
1496
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32225"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1497
+  (6.9ms) commit transaction
1498
1498
   (0.0ms) begin transaction
1499
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31728"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1500
-  (3.9ms) commit transaction
1501
- Processing by Api::UserController#update as HTML
1502
- Parameters: {"uid"=>"a1s2d39124"}
1503
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1504
- Completed 403 Forbidden in 15ms (Views: 15.0ms | ActiveRecord: 0.0ms)
1505
-  (0.1ms) begin transaction
1506
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35819"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1507
-  (10.7ms) commit transaction
1508
-  (0.1ms) begin transaction
1509
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34231"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1510
-  (6.0ms) commit transaction
1511
- Processing by Api::UserController#update as HTML
1512
- Parameters: {"uid"=>"a1s2d35819"}
1513
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35819"]]
1499
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34488"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1500
+  (6.9ms) commit transaction
1501
+ Processing by Api::UserController#reauth as HTML
1502
+ Parameters: {"uid"=>"nonexistent-user"}
1503
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1504
+ Completed 200 OK in 7ms (ActiveRecord: 0.3ms)
1514
1505
   (0.1ms) begin transaction
1515
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
1516
-  (4.7ms) commit transaction
1517
- Completed 200 OK in 15ms (ActiveRecord: 5.2ms)
1518
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1519
-  (0.0ms) begin transaction
1520
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39552"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1521
-  (5.3ms) commit transaction
1506
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38732"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1507
+  (7.1ms) commit transaction
1522
1508
   (0.0ms) begin transaction
1523
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33231"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1524
-  (6.6ms) commit transaction
1509
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39399"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1510
+  (7.1ms) commit transaction
1525
1511
  Processing by Api::UserController#reauth as HTML
1526
- Parameters: {"uid"=>"a1s2d39552"}
1527
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39552"]]
1512
+ Parameters: {"uid"=>"a1s2d38732"}
1513
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38732"]]
1528
1514
   (0.1ms) begin transaction
1529
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1530
-  (4.8ms) commit transaction
1531
- Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
1532
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1533
-  (0.0ms) begin transaction
1534
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34526"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1535
-  (5.8ms) commit transaction
1515
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1516
+  (6.6ms) commit transaction
1517
+ Completed 200 OK in 10ms (ActiveRecord: 6.9ms)
1518
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1519
+  (0.1ms) begin transaction
1520
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38945"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1521
+  (6.4ms) commit transaction
1536
1522
   (0.1ms) begin transaction
1537
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34701"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1538
-  (4.7ms) commit transaction
1523
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33233"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1524
+  (5.2ms) commit transaction
1539
1525
  Processing by Api::UserController#reauth as HTML
1540
- Parameters: {"uid"=>"a1s2d34526"}
1541
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1542
- Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1526
+ Parameters: {"uid"=>"a1s2d38945"}
1527
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1528
+ Completed 403 Forbidden in 13ms (Views: 12.4ms | ActiveRecord: 0.0ms)
1543
1529
   (0.1ms) begin transaction
1544
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33985"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1545
-  (4.5ms) commit transaction
1546
-  (0.0ms) begin transaction
1547
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33085"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1548
-  (3.7ms) commit transaction
1549
- Processing by Api::UserController#reauth as HTML
1550
- Parameters: {"uid"=>"nonexistent-user"}
1551
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1552
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1553
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1530
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31359"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1531
+  (7.6ms) commit transaction
1532
+  (0.1ms) begin transaction
1533
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31852"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1534
+  (9.7ms) commit transaction
1535
+ Processing by Api::UserController#update as HTML
1536
+ Parameters: {"uid"=>"a1s2d31359"}
1537
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31359"]]
1538
+  (0.1ms) begin transaction
1539
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 7]]
1540
+  (9.7ms) commit transaction
1541
+ Completed 200 OK in 14ms (ActiveRecord: 10.0ms)
1542
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
1543
+  (0.1ms) begin transaction
1544
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32067"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1545
+  (6.2ms) commit transaction
1546
+  (0.1ms) begin transaction
1547
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36149"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1548
+  (6.2ms) commit transaction
1549
+ Processing by Api::UserController#update as HTML
1550
+ Parameters: {"uid"=>"a1s2d32067"}
1551
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1552
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1553
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1554
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1555
+  (0.1ms) begin transaction
1556
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1557
+  (8.1ms) commit transaction
1558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1559
+  (0.1ms) begin transaction
1560
+  (0.0ms) commit transaction
1561
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1554
1562
  Processing by ExampleController#restricted as HTML
1555
1563
  Authenticating with gds_sso strategy
1556
1564
  Completed in 8ms (ActiveRecord: 0.0ms)
1557
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1558
- Processing by ExampleController#restricted as JSON
1559
- Completed in 29ms (ActiveRecord: 0.0ms)
1560
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1561
- Processing by ExampleController#restricted as JSON
1565
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1566
+ Started GET "/auth/gds/callback?code=6106d79a79b74b6ce966fc681eadc9cf6183d8cafaac9e1d9aa03ea7c6e6be12&state=f153a3d2c341f99dc776933bbc53eca91287c695d2cc6239" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1567
+ Processing by AuthenticationsController#callback as HTML
1568
+ Parameters: {"code"=>"6106d79a79b74b6ce966fc681eadc9cf6183d8cafaac9e1d9aa03ea7c6e6be12", "state"=>"f153a3d2c341f99dc776933bbc53eca91287c695d2cc6239"}
1569
+ Authenticating with gds_sso strategy
1562
1570
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1563
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1564
-  (0.1ms) begin transaction
1565
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1566
-  (4.4ms) commit transaction
1567
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1571
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1568
1572
   (0.1ms) begin transaction
1569
-  (0.0ms) commit transaction
1570
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1573
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
1574
+  (7.5ms) commit transaction
1571
1575
   (0.1ms) begin transaction
1572
-  (0.0ms) commit transaction
1573
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1574
-  (0.0ms) begin transaction
1575
-  (0.1ms) commit transaction
1576
-  (0.0ms) begin transaction
1577
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1578
-  (10.4ms) commit transaction
1576
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1577
+  (6.3ms) commit transaction
1578
+ Redirected to http://www.example-client.com/restricted
1579
+ Completed 302 Found in 20ms (ActiveRecord: 14.4ms)
1580
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1581
+ Processing by ExampleController#restricted as HTML
1582
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1579
1583
  Rendered text template (0.0ms)
1580
- Completed 200 OK in 105ms (Views: 9.6ms | ActiveRecord: 16.0ms)
1581
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1582
- Processing by ExampleController#this_requires_signin_permission as JSON
1584
+ Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.2ms)
1585
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1586
+ Processing by ExampleController#restricted as HTML
1587
+ Authenticating with gds_sso strategy
1588
+ Completed in 0ms (ActiveRecord: 0.0ms)
1589
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1590
+ Started GET "/auth/gds/callback?code=537ea2c55975819c6dcf755928345c86fc3ebf88017260f4d915da9bb0e01f74&state=cd553d8d2c035594abc2d5790a4c8ad05d5ca54d333801a8" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1591
+ Processing by AuthenticationsController#callback as HTML
1592
+ Parameters: {"code"=>"537ea2c55975819c6dcf755928345c86fc3ebf88017260f4d915da9bb0e01f74", "state"=>"cd553d8d2c035594abc2d5790a4c8ad05d5ca54d333801a8"}
1593
+ Authenticating with gds_sso strategy
1583
1594
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1584
1595
   (0.1ms) begin transaction
1585
1596
   (0.0ms) commit transaction
1586
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1587
-  (0.1ms) begin transaction
1588
-  (0.0ms) commit transaction
1589
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1590
-  (0.1ms) begin transaction
1597
+  (0.0ms) begin transaction
1591
1598
   (0.0ms) commit transaction
1592
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1593
-  (0.1ms) begin transaction
1594
-  (0.0ms) commit transaction
1595
-  (0.0ms) begin transaction
1596
-  (0.0ms) commit transaction
1599
+ Redirected to http://www.example-client.com/restricted
1600
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1601
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1602
+ Processing by ExampleController#restricted as HTML
1603
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1597
1604
  Rendered text template (0.0ms)
1598
- Completed 200 OK in 71ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1599
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1600
- Processing by ExampleController#restricted as JSON
1601
- Completed in 12ms (ActiveRecord: 0.0ms)
1602
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1603
- Processing by ExampleController#this_requires_signin_permission as HTML
1605
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1606
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:41 +0000
1607
+ Processing by ExampleController#index as HTML
1608
+ Rendered text template (0.0ms)
1609
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1610
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1611
+ Processing by ExampleController#restricted as HTML
1604
1612
  Authenticating with gds_sso strategy
1605
1613
  Completed in 0ms (ActiveRecord: 0.0ms)
1606
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1607
- Started GET "/auth/gds/callback?code=54a2a37a8d993f5e20c6ccdc15cc4b605e2b53eb0b90c8bf3469ae8e22c0a688&state=011831a31bf3553db15e5bc9f6ca9ae577bc77730f6e9abb" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1614
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1615
+ Started GET "/auth/gds/callback?code=75762056352bf45881acad93cf87b40584548efe92ca742d40eea5796e7f95d1&state=60274fa363afb7ea3c4e855de18380b22dd6564878783054" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1608
1616
  Processing by AuthenticationsController#callback as HTML
1609
- Parameters: {"code"=>"54a2a37a8d993f5e20c6ccdc15cc4b605e2b53eb0b90c8bf3469ae8e22c0a688", "state"=>"011831a31bf3553db15e5bc9f6ca9ae577bc77730f6e9abb"}
1617
+ Parameters: {"code"=>"75762056352bf45881acad93cf87b40584548efe92ca742d40eea5796e7f95d1", "state"=>"60274fa363afb7ea3c4e855de18380b22dd6564878783054"}
1610
1618
  Authenticating with gds_sso strategy
1611
1619
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1612
1620
   (0.1ms) begin transaction
1613
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]
1614
-  (4.9ms) commit transaction
1615
-  (0.0ms) begin transaction
1616
-  (0.1ms) commit transaction
1617
- Redirected to http://www.example-client.com/this_requires_signin_permission
1618
- Completed 302 Found in 9ms (ActiveRecord: 5.3ms)
1619
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1620
- Processing by ExampleController#this_requires_signin_permission as HTML
1621
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1621
+  (0.0ms) commit transaction
1622
+  (0.0ms) begin transaction
1623
+  (0.1ms) commit transaction
1624
+ Redirected to http://www.example-client.com/restricted
1625
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1626
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1627
+ Processing by ExampleController#restricted as HTML
1628
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1622
1629
  Rendered text template (0.0ms)
1623
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1624
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1630
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1631
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1625
1632
  Processing by ExampleController#this_requires_signin_permission as HTML
1626
1633
  Authenticating with gds_sso strategy
1627
1634
  Completed in 0ms (ActiveRecord: 0.0ms)
1628
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1629
- Started GET "/auth/gds/callback?code=b1015927d1ad7ff4508a6cc783ee12df3be3ee9306acc40bc47d79fec5e34aff&state=9e12447884783b9b3ba381800d5b7a4b57c739899a745390" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1635
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1636
+ Started GET "/auth/gds/callback?code=9f2b674c802fb034c682048ed6fbcde2488bcdbc3ec8168298118af59d6e044e&state=7f43402cf964163c666a8cae676b451ebdf47254573162fa" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1630
1637
  Processing by AuthenticationsController#callback as HTML
1631
- Parameters: {"code"=>"b1015927d1ad7ff4508a6cc783ee12df3be3ee9306acc40bc47d79fec5e34aff", "state"=>"9e12447884783b9b3ba381800d5b7a4b57c739899a745390"}
1638
+ Parameters: {"code"=>"9f2b674c802fb034c682048ed6fbcde2488bcdbc3ec8168298118af59d6e044e", "state"=>"7f43402cf964163c666a8cae676b451ebdf47254573162fa"}
1632
1639
  Authenticating with gds_sso strategy
1633
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1634
-  (0.1ms) begin transaction
1635
-  (0.1ms) commit transaction
1636
-  (0.0ms) begin transaction
1637
-  (0.0ms) commit transaction
1640
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1641
+  (0.1ms) begin transaction
1642
+  (0.0ms) commit transaction
1643
+  (0.0ms) begin transaction
1644
+  (0.0ms) commit transaction
1638
1645
  Redirected to http://www.example-client.com/this_requires_signin_permission
1639
1646
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1640
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1647
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1641
1648
  Processing by ExampleController#this_requires_signin_permission as HTML
1642
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1643
1650
  Rendered text template (0.0ms)
1644
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1645
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1646
- Processing by ExampleController#restricted as HTML
1651
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1652
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1653
+ Processing by ExampleController#this_requires_signin_permission as HTML
1647
1654
  Authenticating with gds_sso strategy
1648
1655
  Completed in 0ms (ActiveRecord: 0.0ms)
1649
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1650
- Started GET "/auth/gds/callback?code=0eccec06081d7924c253cdc60eaf88f5bf151bd57cbfb2abc4eef9471f403fdb&state=8cfbd0191d1eb66e26add649554468cf5b5ebd4d070e810b" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1656
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1657
+ Started GET "/auth/gds/callback?code=ed46f97d99c5ad6f300cdda521b8c1f64e0c44dfd7db2322da18a68f034837eb&state=2fde8b89ee229191745897442c29fd955af24b299d3353b4" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1651
1658
  Processing by AuthenticationsController#callback as HTML
1652
- Parameters: {"code"=>"0eccec06081d7924c253cdc60eaf88f5bf151bd57cbfb2abc4eef9471f403fdb", "state"=>"8cfbd0191d1eb66e26add649554468cf5b5ebd4d070e810b"}
1659
+ Parameters: {"code"=>"ed46f97d99c5ad6f300cdda521b8c1f64e0c44dfd7db2322da18a68f034837eb", "state"=>"2fde8b89ee229191745897442c29fd955af24b299d3353b4"}
1653
1660
  Authenticating with gds_sso strategy
1654
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1655
-  (0.1ms) begin transaction
1656
-  (0.1ms) commit transaction
1657
-  (0.0ms) begin transaction
1658
-  (0.0ms) commit transaction
1659
- Redirected to http://www.example-client.com/restricted
1660
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1661
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1662
- Processing by ExampleController#restricted as HTML
1663
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1661
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1662
+  (0.1ms) begin transaction
1663
+  (0.0ms) commit transaction
1664
+  (0.1ms) begin transaction
1665
+  (0.0ms) commit transaction
1666
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1667
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1668
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1669
+ Processing by ExampleController#this_requires_signin_permission as HTML
1670
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1664
1671
  Rendered text template (0.0ms)
1665
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1666
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1672
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1673
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1667
1674
  Processing by ExampleController#restricted as HTML
1668
1675
  Authenticating with gds_sso strategy
1669
1676
  Completed in 0ms (ActiveRecord: 0.0ms)
1670
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1671
- Started GET "/auth/gds/callback?code=d55c23b8ea66c10f211d9f56c6853ac896f26fb83bc8437d406a39e5cdf09409&state=6a0c14caf9575a1d7bb955e36ac2fcb4d29d4e2a39df7041" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1677
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1678
+ Started GET "/auth/gds/callback?code=1176766ab4954ad6859e4dd74e8451b2e7ff2c24f7bf2a9f4195cfca1a04887d&state=22615fea0ce095a9335bdd74c0ff84b4962a30de5fbf53ab" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1672
1679
  Processing by AuthenticationsController#callback as HTML
1673
- Parameters: {"code"=>"d55c23b8ea66c10f211d9f56c6853ac896f26fb83bc8437d406a39e5cdf09409", "state"=>"6a0c14caf9575a1d7bb955e36ac2fcb4d29d4e2a39df7041"}
1680
+ Parameters: {"code"=>"1176766ab4954ad6859e4dd74e8451b2e7ff2c24f7bf2a9f4195cfca1a04887d", "state"=>"22615fea0ce095a9335bdd74c0ff84b4962a30de5fbf53ab"}
1674
1681
  Authenticating with gds_sso strategy
1675
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1676
-  (0.1ms) begin transaction
1677
-  (0.0ms) commit transaction
1678
-  (0.0ms) begin transaction
1679
-  (0.1ms) commit transaction
1682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1683
+  (0.1ms) begin transaction
1684
+  (0.0ms) commit transaction
1685
+  (0.0ms) begin transaction
1686
+  (0.0ms) commit transaction
1680
1687
  Redirected to http://www.example-client.com/restricted
1681
1688
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1682
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1689
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1683
1690
  Processing by ExampleController#restricted as HTML
1684
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1685
1692
  Rendered text template (0.0ms)
1686
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1687
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1688
- Processing by ExampleController#restricted as HTML
1689
- Authenticating with gds_sso strategy
1690
- Completed in 0ms (ActiveRecord: 0.0ms)
1691
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1692
- Started GET "/auth/gds/callback?code=ea8160563e46d9f0f88ae2668dcfffe50024e58e04dfdfa3244907689c5a225f&state=7909b721d2c97d3b204033e499fd3794cfd2f4b91cf69075" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1693
- Processing by AuthenticationsController#callback as HTML
1694
- Parameters: {"code"=>"ea8160563e46d9f0f88ae2668dcfffe50024e58e04dfdfa3244907689c5a225f", "state"=>"7909b721d2c97d3b204033e499fd3794cfd2f4b91cf69075"}
1695
- Authenticating with gds_sso strategy
1696
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1697
-  (0.1ms) begin transaction
1698
-  (0.0ms) commit transaction
1699
-  (0.0ms) begin transaction
1700
-  (0.0ms) commit transaction
1701
- Redirected to http://www.example-client.com/restricted
1702
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1703
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1693
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1694
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:42 +0000
1704
1695
  Processing by ExampleController#restricted as HTML
1705
1696
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1706
1697
  Rendered text template (0.0ms)
1707
1698
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1708
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1709
- Processing by ExampleController#index as HTML
1710
- Rendered text template (0.0ms)
1711
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1712
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1699
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1713
1700
  Processing by ExampleController#restricted as HTML
1714
1701
  Authenticating with gds_sso strategy
1715
1702
  Completed in 0ms (ActiveRecord: 0.0ms)
1716
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1717
- Started GET "/auth/gds/callback?code=7e8a58faa123cdd79e6e7c48baa86ac44d86efd876452681d29dfd3faa62b7af&state=7460db97e12d696b1ce646e05bdcc0e56beeeda8484a5f2e" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1703
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1704
+ Started GET "/auth/gds/callback?code=8d1bde939b83603fedd3af07e0c33fdfbb6e8865854eea34291da532773df4a0&state=1593a7cf9b1b98e2bd7c669230a893b4823f8fb2de2646b7" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1718
1705
  Processing by AuthenticationsController#callback as HTML
1719
- Parameters: {"code"=>"7e8a58faa123cdd79e6e7c48baa86ac44d86efd876452681d29dfd3faa62b7af", "state"=>"7460db97e12d696b1ce646e05bdcc0e56beeeda8484a5f2e"}
1706
+ Parameters: {"code"=>"8d1bde939b83603fedd3af07e0c33fdfbb6e8865854eea34291da532773df4a0", "state"=>"1593a7cf9b1b98e2bd7c669230a893b4823f8fb2de2646b7"}
1720
1707
  Authenticating with gds_sso strategy
1721
1708
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1722
1709
   (0.1ms) begin transaction
1723
-  (0.0ms) commit transaction
1710
+  (0.1ms) commit transaction
1724
1711
   (0.0ms) begin transaction
1725
1712
   (0.0ms) commit transaction
1726
1713
  Redirected to http://www.example-client.com/restricted
1727
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1728
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1729
- Processing by ExampleController#restricted as HTML
1730
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1731
- Rendered text template (0.0ms)
1732
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1733
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1734
-  (0.1ms) begin transaction
1735
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
1736
-  (4.4ms) commit transaction
1737
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1738
- Processing by ExampleController#restricted as HTML
1739
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1740
- Authenticating with gds_sso strategy
1741
- Completed in 1ms (ActiveRecord: 0.1ms)
1742
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1743
- Started GET "/auth/gds/callback?code=43d9ec3fe981731e37f25e0d25163d102674a138086b682538079459076b28ec&state=eb97ca93c648895c31eb4f32dc6248af74fb24269901c970" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1744
- Processing by AuthenticationsController#callback as HTML
1745
- Parameters: {"code"=>"43d9ec3fe981731e37f25e0d25163d102674a138086b682538079459076b28ec", "state"=>"eb97ca93c648895c31eb4f32dc6248af74fb24269901c970"}
1746
- Authenticating with gds_sso strategy
1747
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1748
-  (0.1ms) begin transaction
1749
-  (0.0ms) commit transaction
1750
-  (0.0ms) begin transaction
1751
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1752
-  (7.1ms) commit transaction
1753
- Redirected to http://www.example-client.com/restricted
1754
- Completed 302 Found in 11ms (ActiveRecord: 7.5ms)
1755
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1714
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1715
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1756
1716
  Processing by ExampleController#restricted as HTML
1757
1717
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1758
1718
  Rendered text template (0.0ms)
1759
1719
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1760
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1720
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1761
1721
  Processing by ExampleController#restricted as HTML
1762
1722
  Authenticating with gds_sso strategy
1763
1723
  Completed in 0ms (ActiveRecord: 0.0ms)
1764
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1765
- Started GET "/auth/gds/callback?code=2321b9208d545bd4b9063b4838dadd9afb39d1b2371fb9604639406328a6f0c7&state=051e2d81d0653ec95d9bfa3a47cedf99e43643a9c7c0e051" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1724
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1725
+ Started GET "/auth/gds/callback?code=12140e420d4d908b4b64d228583445680dcf7909e2197b9b736172bb7701797f&state=c235ca078b03dc2b41f2801367dfd1b9677716ed9a774544" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1766
1726
  Processing by AuthenticationsController#callback as HTML
1767
- Parameters: {"code"=>"2321b9208d545bd4b9063b4838dadd9afb39d1b2371fb9604639406328a6f0c7", "state"=>"051e2d81d0653ec95d9bfa3a47cedf99e43643a9c7c0e051"}
1727
+ Parameters: {"code"=>"12140e420d4d908b4b64d228583445680dcf7909e2197b9b736172bb7701797f", "state"=>"c235ca078b03dc2b41f2801367dfd1b9677716ed9a774544"}
1768
1728
  Authenticating with gds_sso strategy
1769
1729
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1770
1730
   (0.1ms) begin transaction
1771
-  (0.0ms) commit transaction
1772
-  (0.0ms) begin transaction
1773
-  (0.0ms) commit transaction
1731
+  (0.1ms) commit transaction
1732
+  (0.1ms) begin transaction
1733
+  (0.1ms) commit transaction
1774
1734
  Redirected to http://www.example-client.com/restricted
1775
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1776
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1735
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1736
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1777
1737
  Processing by ExampleController#restricted as HTML
1778
1738
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1779
1739
  Rendered text template (0.0ms)
1780
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1781
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1740
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1741
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1782
1742
  Processing by ExampleController#restricted as HTML
1783
1743
  Authenticating with gds_sso strategy
1784
1744
  Completed in 0ms (ActiveRecord: 0.0ms)
1785
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1786
- Started GET "/auth/gds/callback?code=77596a542651594ffa0d074fda272e975649b9db786f0f18d95b114ad4ba2302&state=60eea84e1fb47a0dea30a419dcd0c73b9d8382f05085271b" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1745
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1746
+ Started GET "/auth/gds/callback?code=16ac32f84623ed4f68818264eb2ef44114b1a87676cd2cb44b4741e573f8fa23&state=c9d60f158b3ee597fe06ff96fe18a421f81d0a52b4ed67f3" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1787
1747
  Processing by AuthenticationsController#callback as HTML
1788
- Parameters: {"code"=>"77596a542651594ffa0d074fda272e975649b9db786f0f18d95b114ad4ba2302", "state"=>"60eea84e1fb47a0dea30a419dcd0c73b9d8382f05085271b"}
1748
+ Parameters: {"code"=>"16ac32f84623ed4f68818264eb2ef44114b1a87676cd2cb44b4741e573f8fa23", "state"=>"c9d60f158b3ee597fe06ff96fe18a421f81d0a52b4ed67f3"}
1789
1749
  Authenticating with gds_sso strategy
1790
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1791
1751
   (0.1ms) begin transaction
1792
1752
   (0.0ms) commit transaction
1793
1753
   (0.1ms) begin transaction
1794
-  (0.1ms) commit transaction
1754
+  (0.0ms) commit transaction
1795
1755
  Redirected to http://www.example-client.com/restricted
1796
1756
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1797
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1757
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1798
1758
  Processing by ExampleController#restricted as HTML
1799
1759
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1800
1760
  Rendered text template (0.0ms)
1801
1761
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1802
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1762
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1763
+ Processing by ExampleController#restricted as HTML
1764
+ Authenticating with gds_sso strategy
1765
+ Completed in 1ms (ActiveRecord: 0.0ms)
1766
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1767
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1803
1768
  Processing by ExampleController#restricted as HTML
1804
1769
  Authenticating with gds_sso strategy
1805
1770
  Completed in 0ms (ActiveRecord: 0.0ms)
1806
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1807
- Started GET "/auth/gds/callback?code=0b3df9acb34916760c34d3e5f27cbb6c18c605bc0b2d9b3aed7eeef87f78b7c8&state=68865ca4bdab4e127def223513e02254d3fbf971c16242af" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1771
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1772
+ Started GET "/auth/gds/callback?code=90d741d593cffcaa80b0bc5b5d2de50e4dc5acaeadf41743a1b8084f44897c32&state=f5fb0f62b214bd9b9e90f506e366e3edb85d635d540d93e3" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1808
1773
  Processing by AuthenticationsController#callback as HTML
1809
- Parameters: {"code"=>"0b3df9acb34916760c34d3e5f27cbb6c18c605bc0b2d9b3aed7eeef87f78b7c8", "state"=>"68865ca4bdab4e127def223513e02254d3fbf971c16242af"}
1774
+ Parameters: {"code"=>"90d741d593cffcaa80b0bc5b5d2de50e4dc5acaeadf41743a1b8084f44897c32", "state"=>"f5fb0f62b214bd9b9e90f506e366e3edb85d635d540d93e3"}
1810
1775
  Authenticating with gds_sso strategy
1811
1776
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1812
1777
   (0.1ms) begin transaction
@@ -1814,422 +1779,457 @@ Authenticating with gds_sso strategy
1814
1779
   (0.0ms) begin transaction
1815
1780
   (0.0ms) commit transaction
1816
1781
  Redirected to http://www.example-client.com/restricted
1817
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1818
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1782
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1783
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1819
1784
  Processing by ExampleController#restricted as HTML
1820
1785
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1821
1786
  Rendered text template (0.0ms)
1822
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1823
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:05:08 +0000
1787
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1788
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1789
+  (0.0ms) begin transaction
1790
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
1791
+  (10.6ms) commit transaction
1792
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1824
1793
  Processing by ExampleController#restricted as HTML
1825
1794
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1826
- Rendered text template (0.0ms)
1827
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1828
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1829
- Processing by ExampleController#restricted as HTML
1830
1795
  Authenticating with gds_sso strategy
1831
- Completed in 0ms (ActiveRecord: 0.0ms)
1832
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1833
- Started GET "/auth/gds/callback?code=6cec5190400a02b797de1152634b34e5f135f400495ca09d9d7e696757b47901&state=2b2f937b1c9badb8728367f454f11118f1ee1f958da28b6d" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1796
+ Completed in 1ms (ActiveRecord: 0.1ms)
1797
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1798
+ Started GET "/auth/gds/callback?code=afc5d8ec921423e82ded653ce384613f07962359d1d331d654a8c735a83b3ba3&state=2eda5b67171a2e64f78f886ab25a9877673ac8101e911645" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1834
1799
  Processing by AuthenticationsController#callback as HTML
1835
- Parameters: {"code"=>"6cec5190400a02b797de1152634b34e5f135f400495ca09d9d7e696757b47901", "state"=>"2b2f937b1c9badb8728367f454f11118f1ee1f958da28b6d"}
1800
+ Parameters: {"code"=>"afc5d8ec921423e82ded653ce384613f07962359d1d331d654a8c735a83b3ba3", "state"=>"2eda5b67171a2e64f78f886ab25a9877673ac8101e911645"}
1836
1801
  Authenticating with gds_sso strategy
1837
1802
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1838
1803
   (0.1ms) begin transaction
1839
-  (0.0ms) commit transaction
1804
+  (0.1ms) commit transaction
1840
1805
   (0.0ms) begin transaction
1841
-  (0.0ms) commit transaction
1806
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1807
+  (7.0ms) commit transaction
1842
1808
  Redirected to http://www.example-client.com/restricted
1843
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1844
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1809
+ Completed 302 Found in 12ms (ActiveRecord: 7.5ms)
1810
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1845
1811
  Processing by ExampleController#restricted as HTML
1846
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1847
1813
  Rendered text template (0.0ms)
1848
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1849
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1814
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1815
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1850
1816
  Processing by ExampleController#restricted as HTML
1851
1817
  Authenticating with gds_sso strategy
1852
1818
  Completed in 0ms (ActiveRecord: 0.0ms)
1853
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1854
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1855
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1819
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1820
+ Processing by ExampleController#restricted as JSON
1821
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1856
1822
   (0.1ms) begin transaction
1857
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1858
-  (6.3ms) commit transaction
1859
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1823
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
1824
+  (7.7ms) commit transaction
1825
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1826
+  (0.1ms) begin transaction
1827
+  (0.0ms) commit transaction
1828
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1829
+  (0.1ms) begin transaction
1830
+  (0.1ms) commit transaction
1831
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1832
+  (0.1ms) begin transaction
1833
+  (0.0ms) commit transaction
1860
1834
   (0.0ms) begin transaction
1861
1835
   (0.0ms) commit transaction
1836
+ Rendered text template (0.0ms)
1837
+ Completed 200 OK in 80ms (Views: 0.4ms | ActiveRecord: 8.9ms)
1838
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1839
+ Processing by ExampleController#restricted as JSON
1840
+ Completed in 13ms (ActiveRecord: 0.0ms)
1841
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1842
+ Processing by ExampleController#this_requires_signin_permission as JSON
1843
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1844
+  (0.1ms) begin transaction
1845
+  (0.0ms) commit transaction
1846
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1847
+  (0.1ms) begin transaction
1848
+  (0.1ms) commit transaction
1849
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1850
+  (0.1ms) begin transaction
1851
+  (0.1ms) commit transaction
1852
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1853
+  (0.1ms) begin transaction
1854
+  (0.0ms) commit transaction
1855
+  (0.1ms) begin transaction
1856
+  (0.0ms) commit transaction
1857
+ Rendered text template (0.0ms)
1858
+ Completed 200 OK in 93ms (Views: 0.3ms | ActiveRecord: 0.8ms)
1859
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1860
+ Processing by ExampleController#restricted as JSON
1861
+ Completed in 24ms (ActiveRecord: 0.0ms)
1862
1862
   (0.1ms) DROP TABLE IF EXISTS "users"
1863
-  (1.4ms) SELECT sqlite_version(*)
1864
-  (8.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1865
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1866
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1867
-  (0.1ms) begin transaction
1868
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:10:14.354442"], ["updated_at", "2017-12-15 16:10:14.354442"]]
1869
-  (5.0ms) commit transaction
1870
-  (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1863
+  (0.8ms) SELECT sqlite_version(*)
1864
+  (6.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1865
+  (8.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1871
1866
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1872
1867
   (0.1ms) begin transaction
1873
-  (0.0ms) commit transaction
1874
-  (0.1ms) begin transaction
1875
- SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36112"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1876
-  (7.0ms) commit transaction
1877
-  (0.1ms) begin transaction
1878
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37517"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1879
-  (6.5ms) commit transaction
1880
- Processing by Api::UserController#update as HTML
1881
- Parameters: {"uid"=>"a1s2d36112"}
1882
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36112"], ["LIMIT", 1]]
1883
-  (0.1ms) begin transaction
1884
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 1]]
1885
-  (4.5ms) commit transaction
1886
- Completed 200 OK in 10ms (ActiveRecord: 5.0ms)
1887
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1888
-  (0.1ms) begin transaction
1889
- SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39339"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1890
-  (5.4ms) commit transaction
1891
-  (0.1ms) begin transaction
1892
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39904"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1893
-  (9.3ms) commit transaction
1894
- Processing by Api::UserController#update as HTML
1895
- Parameters: {"uid"=>"a1s2d39339"}
1896
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1897
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1898
- Completed 403 Forbidden in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)
1899
-  (0.1ms) begin transaction
1900
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34286"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1901
-  (4.7ms) commit transaction
1902
-  (0.1ms) begin transaction
1903
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38224"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1904
-  (7.5ms) commit transaction
1905
- Processing by Api::UserController#reauth as HTML
1906
- Parameters: {"uid"=>"a1s2d34286"}
1907
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34286"], ["LIMIT", 1]]
1908
-  (0.1ms) begin transaction
1909
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1910
-  (4.9ms) commit transaction
1911
- Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
1912
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1913
-  (0.1ms) begin transaction
1914
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3831"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1915
-  (4.9ms) commit transaction
1916
-  (0.0ms) begin transaction
1917
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37902"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1918
-  (3.9ms) commit transaction
1919
- Processing by Api::UserController#reauth as HTML
1920
- Parameters: {"uid"=>"nonexistent-user"}
1921
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1922
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1923
-  (0.1ms) begin transaction
1924
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36644"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1925
-  (3.8ms) commit transaction
1868
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-01-23 17:16:49.799868"], ["updated_at", "2018-01-23 17:16:49.799868"]]
1869
+  (4.2ms) commit transaction
1870
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1871
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1926
1872
   (0.0ms) begin transaction
1927
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d321"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1928
-  (4.9ms) commit transaction
1929
- Processing by Api::UserController#reauth as HTML
1930
- Parameters: {"uid"=>"a1s2d36644"}
1931
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1932
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1933
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1934
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1873
+  (0.0ms) commit transaction
1874
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1935
1875
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1936
1876
   (0.1ms) begin transaction
1937
1877
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1938
-  (4.6ms) commit transaction
1878
+  (6.7ms) commit transaction
1939
1879
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1940
-  (0.1ms) begin transaction
1941
-  (0.1ms) commit transaction
1942
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:14 +0000
1943
- Processing by ExampleController#restricted as JSON
1944
- Completed in 25ms (ActiveRecord: 0.0ms)
1945
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1946
- Processing by ExampleController#restricted as JSON
1947
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1948
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1949
1880
   (0.0ms) begin transaction
1950
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1951
-  (4.6ms) commit transaction
1952
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1953
-  (0.0ms) begin transaction
1954
-  (0.0ms) commit transaction
1955
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1956
-  (0.1ms) begin transaction
1957
1881
   (0.0ms) commit transaction
1958
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1959
-  (0.1ms) begin transaction
1960
-  (0.0ms) commit transaction
1961
-  (0.0ms) begin transaction
1962
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1963
-  (5.2ms) commit transaction
1882
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1883
+ Processing by ExampleController#restricted as HTML
1884
+ Authenticating with gds_sso strategy
1885
+ Completed in 6ms (ActiveRecord: 0.0ms)
1886
+ Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1887
+ Processing by ExampleController#index as HTML
1964
1888
  Rendering text template
1965
1889
  Rendered text template (0.0ms)
1966
- Completed 200 OK in 118ms (Views: 1.3ms | ActiveRecord: 11.3ms)
1967
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1968
- Processing by ExampleController#restricted as JSON
1969
- Completed in 38ms (ActiveRecord: 0.0ms)
1970
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1971
- Processing by ExampleController#this_requires_signin_permission as JSON
1890
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1891
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1892
+ Processing by ExampleController#restricted as HTML
1893
+ Authenticating with gds_sso strategy
1894
+ Completed in 0ms (ActiveRecord: 0.0ms)
1895
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1896
+ Started GET "/auth/gds/callback?code=a9ce83eca750a3acb886bd980109a7460030ba4ae34811860a6af12dc56d1fee&state=631641b49f5c4cc84f372f0c2d278a1ffe52846f9a5720b2" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1897
+ Processing by AuthenticationsController#callback as HTML
1898
+ Parameters: {"code"=>"a9ce83eca750a3acb886bd980109a7460030ba4ae34811860a6af12dc56d1fee", "state"=>"631641b49f5c4cc84f372f0c2d278a1ffe52846f9a5720b2"}
1899
+ Authenticating with gds_sso strategy
1972
1900
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1973
1902
   (0.1ms) begin transaction
1974
-  (0.0ms) commit transaction
1975
- CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1976
-  (0.1ms) begin transaction
1977
-  (0.1ms) commit transaction
1978
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1979
-  (0.1ms) begin transaction
1980
-  (0.0ms) commit transaction
1981
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1982
-  (0.1ms) begin transaction
1983
-  (0.0ms) commit transaction
1903
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1904
+  (5.3ms) commit transaction
1905
+  (0.0ms) begin transaction
1906
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1907
+  (4.2ms) commit transaction
1908
+ Redirected to http://www.example-client.com/restricted
1909
+ Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
1910
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1911
+ Processing by ExampleController#restricted as HTML
1912
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1984
1913
  Rendering text template
1985
1914
  Rendered text template (0.0ms)
1986
- Completed 200 OK in 72ms (Views: 0.3ms | ActiveRecord: 0.9ms)
1987
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1915
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
1916
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1988
1917
  Processing by ExampleController#restricted as HTML
1989
1918
  Authenticating with gds_sso strategy
1990
- Completed in 0ms (ActiveRecord: 0.0ms)
1991
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1992
- Processing by ExampleController#restricted as HTML
1993
- Authenticating with gds_sso strategy
1994
- Completed in 0ms (ActiveRecord: 0.0ms)
1995
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1996
- Started GET "/auth/gds/callback?code=f5ded92b93b4f071fc088ae57afcf1138dcedb5c3976979bcae3d722f10ae687&state=b9df4a261d6cb6e4ecee2aacaf7259b64da062bb9af4b7e1" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1919
+ Completed in 2ms (ActiveRecord: 0.0ms)
1920
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1921
+ Started GET "/auth/gds/callback?code=d030ff31e907ea07c245d2f883f3473e09d2585af84690b451ffb8a971e3229d&state=637cebcfea31685c91f69fc6a5f6fd5d5412fa6bfd0778ec" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1997
1922
  Processing by AuthenticationsController#callback as HTML
1998
- Parameters: {"code"=>"f5ded92b93b4f071fc088ae57afcf1138dcedb5c3976979bcae3d722f10ae687", "state"=>"b9df4a261d6cb6e4ecee2aacaf7259b64da062bb9af4b7e1"}
1923
+ Parameters: {"code"=>"d030ff31e907ea07c245d2f883f3473e09d2585af84690b451ffb8a971e3229d", "state"=>"637cebcfea31685c91f69fc6a5f6fd5d5412fa6bfd0778ec"}
1999
1924
  Authenticating with gds_sso strategy
2000
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2001
-  (0.0ms) begin transaction
2002
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
2003
-  (4.9ms) commit transaction
1925
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1926
+  (0.1ms) begin transaction
1927
+  (0.1ms) commit transaction
2004
1928
  Redirected to http://www.example-client.com/restricted
2005
- Completed 302 Found in 9ms (ActiveRecord: 5.4ms)
2006
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1929
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1930
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
2007
1931
  Processing by ExampleController#restricted as HTML
2008
1932
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2009
1933
  Rendering text template
2010
1934
  Rendered text template (0.0ms)
2011
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2012
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1935
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1936
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
2013
1937
  Processing by ExampleController#restricted as HTML
2014
1938
  Authenticating with gds_sso strategy
2015
1939
  Completed in 0ms (ActiveRecord: 0.0ms)
2016
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2017
- Started GET "/auth/gds/callback?code=a8d048d6270e95208404f1a8a3ae299d00930ff3a4b343c28de3486d4e9965da&state=850b44eedf87925a6d812574c69c75ad94c362c527c8eca8" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1940
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1941
+ Started GET "/auth/gds/callback?code=8317ae69e828dac16c0aa7a8a19e18e6e1914ce3320e1b463c71dc37e3b26b03&state=fb7236519484b53a53e0cca046b58a32413538aaec613a58" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
2018
1942
  Processing by AuthenticationsController#callback as HTML
2019
- Parameters: {"code"=>"a8d048d6270e95208404f1a8a3ae299d00930ff3a4b343c28de3486d4e9965da", "state"=>"850b44eedf87925a6d812574c69c75ad94c362c527c8eca8"}
1943
+ Parameters: {"code"=>"8317ae69e828dac16c0aa7a8a19e18e6e1914ce3320e1b463c71dc37e3b26b03", "state"=>"fb7236519484b53a53e0cca046b58a32413538aaec613a58"}
2020
1944
  Authenticating with gds_sso strategy
2021
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1945
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2022
1946
   (0.1ms) begin transaction
2023
1947
   (0.0ms) commit transaction
2024
1948
  Redirected to http://www.example-client.com/restricted
2025
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2026
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1949
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1950
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
2027
1951
  Processing by ExampleController#restricted as HTML
2028
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1952
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2029
1953
  Rendering text template
2030
1954
  Rendered text template (0.0ms)
2031
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2032
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1955
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1956
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
2033
1957
  Processing by ExampleController#this_requires_signin_permission as HTML
2034
1958
  Authenticating with gds_sso strategy
2035
1959
  Completed in 0ms (ActiveRecord: 0.0ms)
2036
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2037
- Started GET "/auth/gds/callback?code=befaee4db347b846583ca1454cb9faa062914fd6eff3b94ba77f4de056f72269&state=8901546407ca2f8be3b53cbcbcfb33b16100a42bf3a7973d" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1960
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:50 +0000
1961
+ Started GET "/auth/gds/callback?code=d2d3651c07e4c501c7fa73f24ebeb494024174f199ef51ac56c3a345725f663a&state=e0fc93d6db0a7f169dec35d354fe994531ca8b9ca4d1965b" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2038
1962
  Processing by AuthenticationsController#callback as HTML
2039
- Parameters: {"code"=>"befaee4db347b846583ca1454cb9faa062914fd6eff3b94ba77f4de056f72269", "state"=>"8901546407ca2f8be3b53cbcbcfb33b16100a42bf3a7973d"}
1963
+ Parameters: {"code"=>"d2d3651c07e4c501c7fa73f24ebeb494024174f199ef51ac56c3a345725f663a", "state"=>"e0fc93d6db0a7f169dec35d354fe994531ca8b9ca4d1965b"}
2040
1964
  Authenticating with gds_sso strategy
2041
1965
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2042
-  (0.1ms) begin transaction
2043
-  (0.1ms) commit transaction
1966
+  (0.0ms) begin transaction
1967
+  (0.0ms) commit transaction
2044
1968
  Redirected to http://www.example-client.com/this_requires_signin_permission
2045
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
2046
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1969
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1970
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2047
1971
  Processing by ExampleController#this_requires_signin_permission as HTML
2048
1972
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2049
1973
  Rendering text template
2050
1974
  Rendered text template (0.0ms)
2051
1975
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2052
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1976
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2053
1977
  Processing by ExampleController#this_requires_signin_permission as HTML
2054
1978
  Authenticating with gds_sso strategy
2055
1979
  Completed in 0ms (ActiveRecord: 0.0ms)
2056
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2057
- Started GET "/auth/gds/callback?code=cbac07f5dd801174400136e10ea6fc9712f6d227dffca8b0c809fad93a824c11&state=5aa98dd1424b062d3feccf2f696ea94b91f4ce19dff38bac" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
1980
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
1981
+ Started GET "/auth/gds/callback?code=369c086cb730b105a20645be2666f4c210a5bf392f9fe49c358f219875fca26a&state=9091de2512356f92ef1d6317200c0b7f0865005152d11825" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2058
1982
  Processing by AuthenticationsController#callback as HTML
2059
- Parameters: {"code"=>"cbac07f5dd801174400136e10ea6fc9712f6d227dffca8b0c809fad93a824c11", "state"=>"5aa98dd1424b062d3feccf2f696ea94b91f4ce19dff38bac"}
1983
+ Parameters: {"code"=>"369c086cb730b105a20645be2666f4c210a5bf392f9fe49c358f219875fca26a", "state"=>"9091de2512356f92ef1d6317200c0b7f0865005152d11825"}
2060
1984
  Authenticating with gds_sso strategy
2061
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2062
-  (0.0ms) begin transaction
1985
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1986
+  (0.1ms) begin transaction
2063
1987
   (0.1ms) commit transaction
2064
1988
  Redirected to http://www.example-client.com/this_requires_signin_permission
2065
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2066
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
1989
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
1990
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2067
1991
  Processing by ExampleController#this_requires_signin_permission as HTML
2068
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2069
- Rendering text template
2070
- Rendered text template (0.0ms)
2071
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2072
- Started GET "/" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2073
- Processing by ExampleController#index as HTML
1992
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2074
1993
  Rendering text template
2075
1994
  Rendered text template (0.0ms)
2076
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2077
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
1995
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1996
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2078
1997
  Processing by ExampleController#restricted as HTML
2079
1998
  Authenticating with gds_sso strategy
2080
1999
  Completed in 0ms (ActiveRecord: 0.0ms)
2081
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2082
- Started GET "/auth/gds/callback?code=7d50fd451e9e4e045b7c86242048c2181978773ca7cac66c0f6a7257cd1e9de1&state=f1b6900e741172fff6045bfa88e21b48f8789370024ad112" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2000
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2001
+ Started GET "/auth/gds/callback?code=967d35ddd16ab6835e05e15507d4b3de38df3192fc9d4dbaaff38a0a854a8e2d&state=c03637a006789a2fa9cf52aeae57e39236406c68ddc5d010" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2083
2002
  Processing by AuthenticationsController#callback as HTML
2084
- Parameters: {"code"=>"7d50fd451e9e4e045b7c86242048c2181978773ca7cac66c0f6a7257cd1e9de1", "state"=>"f1b6900e741172fff6045bfa88e21b48f8789370024ad112"}
2003
+ Parameters: {"code"=>"967d35ddd16ab6835e05e15507d4b3de38df3192fc9d4dbaaff38a0a854a8e2d", "state"=>"c03637a006789a2fa9cf52aeae57e39236406c68ddc5d010"}
2085
2004
  Authenticating with gds_sso strategy
2086
2005
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2087
2006
   (0.1ms) begin transaction
2088
2007
   (0.0ms) commit transaction
2089
2008
  Redirected to http://www.example-client.com/restricted
2090
2009
  Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2091
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2010
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2092
2011
  Processing by ExampleController#restricted as HTML
2093
2012
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2094
2013
  Rendering text template
2095
2014
  Rendered text template (0.0ms)
2096
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
2097
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2015
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2016
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:51 +0000
2098
2017
  Processing by ExampleController#restricted as HTML
2099
2018
  Authenticating with gds_sso strategy
2100
2019
  Completed in 0ms (ActiveRecord: 0.0ms)
2101
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2102
- Started GET "/auth/gds/callback?code=d8fcfe55fe5094fbd45230eee74e80413f438b0671296c4d8222677fc6300532&state=e9d54a09cb42dba43c509882b54fc82f47fb0f145711ad9f" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2020
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:51 +0000
2021
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2022
+ Processing by ExampleController#restricted as HTML
2023
+ Authenticating with gds_sso strategy
2024
+ Completed in 0ms (ActiveRecord: 0.0ms)
2025
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2026
+ Started GET "/auth/gds/callback?code=19ec16425236a08a3f6864245e6f1a46f6dcefbdbc582932553c5dc8deddf32a&state=8b8fbe1cc8c344e535a10791e6ffe541be6b3d0ee1e86538" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2103
2027
  Processing by AuthenticationsController#callback as HTML
2104
- Parameters: {"code"=>"d8fcfe55fe5094fbd45230eee74e80413f438b0671296c4d8222677fc6300532", "state"=>"e9d54a09cb42dba43c509882b54fc82f47fb0f145711ad9f"}
2028
+ Parameters: {"code"=>"19ec16425236a08a3f6864245e6f1a46f6dcefbdbc582932553c5dc8deddf32a", "state"=>"8b8fbe1cc8c344e535a10791e6ffe541be6b3d0ee1e86538"}
2105
2029
  Authenticating with gds_sso strategy
2106
2030
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2107
-  (0.1ms) begin transaction
2031
+  (0.3ms) begin transaction
2108
2032
   (0.0ms) commit transaction
2109
2033
  Redirected to http://www.example-client.com/restricted
2110
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2111
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2034
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2035
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2112
2036
  Processing by ExampleController#restricted as HTML
2113
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2037
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2114
2038
  Rendering text template
2115
2039
  Rendered text template (0.0ms)
2116
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2117
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
2118
-  (0.1ms) begin transaction
2119
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
2120
-  (12.5ms) commit transaction
2121
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2122
- Processing by ExampleController#restricted as HTML
2123
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2124
- Authenticating with gds_sso strategy
2125
- Completed in 1ms (ActiveRecord: 0.2ms)
2126
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2127
- Started GET "/auth/gds/callback?code=742d2c681d678f953cb1c5afe8acfb2c828de14f5c889c6e8b723a8ed5d750d3&state=b2ae84e608c4650a404e0ce83ccc50e90e526ef1fdfe4cfd" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2128
- Processing by AuthenticationsController#callback as HTML
2129
- Parameters: {"code"=>"742d2c681d678f953cb1c5afe8acfb2c828de14f5c889c6e8b723a8ed5d750d3", "state"=>"b2ae84e608c4650a404e0ce83ccc50e90e526ef1fdfe4cfd"}
2130
- Authenticating with gds_sso strategy
2131
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2132
-  (0.0ms) begin transaction
2133
-  (0.0ms) commit transaction
2134
-  (0.0ms) begin transaction
2135
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
2136
-  (4.3ms) commit transaction
2137
- Redirected to http://www.example-client.com/restricted
2138
- Completed 302 Found in 8ms (ActiveRecord: 4.8ms)
2139
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2040
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
2041
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:51 +0000
2140
2042
  Processing by ExampleController#restricted as HTML
2141
2043
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2142
2044
  Rendering text template
2143
2045
  Rendered text template (0.0ms)
2144
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2145
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2046
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2047
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2146
2048
  Processing by ExampleController#restricted as HTML
2147
2049
  Authenticating with gds_sso strategy
2148
2050
  Completed in 0ms (ActiveRecord: 0.0ms)
2149
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2150
- Started GET "/auth/gds/callback?code=ec532eb71c260cbf44317bc4b12502438d8cb170ad64967a900ee920c1f71c06&state=66f60be1125a23cc018f5ffec9fc78a7a5b2962a84687f09" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2051
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2052
+ Started GET "/auth/gds/callback?code=297989a2ae99bb0eedc98eaaf32e038d0106646ca1d313101343ca9a7dd95b45&state=40718a3fec89954747b948a1f20ffd3eb59137aaa0dd098c" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2151
2053
  Processing by AuthenticationsController#callback as HTML
2152
- Parameters: {"code"=>"ec532eb71c260cbf44317bc4b12502438d8cb170ad64967a900ee920c1f71c06", "state"=>"66f60be1125a23cc018f5ffec9fc78a7a5b2962a84687f09"}
2054
+ Parameters: {"code"=>"297989a2ae99bb0eedc98eaaf32e038d0106646ca1d313101343ca9a7dd95b45", "state"=>"40718a3fec89954747b948a1f20ffd3eb59137aaa0dd098c"}
2153
2055
  Authenticating with gds_sso strategy
2154
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2155
-  (0.0ms) begin transaction
2056
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2057
+  (0.1ms) begin transaction
2156
2058
   (0.0ms) commit transaction
2157
2059
  Redirected to http://www.example-client.com/restricted
2158
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2159
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2160
- Processing by ExampleController#restricted as HTML
2161
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2162
- Rendering text template
2163
- Rendered text template (0.0ms)
2164
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2165
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:05:17 +0000
2060
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
2061
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2166
2062
  Processing by ExampleController#restricted as HTML
2167
2063
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2168
2064
  Rendering text template
2169
2065
  Rendered text template (0.0ms)
2170
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2171
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2066
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
2067
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:52 +0000
2172
2068
  Processing by ExampleController#restricted as HTML
2173
2069
  Authenticating with gds_sso strategy
2174
2070
  Completed in 0ms (ActiveRecord: 0.0ms)
2175
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2176
- Started GET "/auth/gds/callback?code=1a4f389bfdc8feca88cc35d25a4a70f60a6a47200555b63fcebbc8d0944de856&state=875e8071d7e77065fc9ceb811f1a8e146fcd0342a42cc4f3" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2071
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-24 13:21:52 +0000
2072
+ Started GET "/auth/gds/callback?code=54377010f1a9c07a15d4423dd035d0c1c5c321cf7d61a0297accb5fc4d79c593&state=a62d8da933475177c35f7d4a2db72612b9ef4d78b3498df8" for 127.0.0.1 at 2018-01-24 13:21:52 +0000
2177
2073
  Processing by AuthenticationsController#callback as HTML
2178
- Parameters: {"code"=>"1a4f389bfdc8feca88cc35d25a4a70f60a6a47200555b63fcebbc8d0944de856", "state"=>"875e8071d7e77065fc9ceb811f1a8e146fcd0342a42cc4f3"}
2074
+ Parameters: {"code"=>"54377010f1a9c07a15d4423dd035d0c1c5c321cf7d61a0297accb5fc4d79c593", "state"=>"a62d8da933475177c35f7d4a2db72612b9ef4d78b3498df8"}
2179
2075
  Authenticating with gds_sso strategy
2180
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2076
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2181
2077
   (0.1ms) begin transaction
2182
-  (0.1ms) commit transaction
2078
+  (0.2ms) commit transaction
2183
2079
  Redirected to http://www.example-client.com/restricted
2184
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2185
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2080
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
2081
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:52 +0000
2186
2082
  Processing by ExampleController#restricted as HTML
2187
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2083
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2188
2084
  Rendering text template
2189
2085
  Rendered text template (0.0ms)
2190
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2191
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2086
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
2087
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2192
2088
  Processing by ExampleController#restricted as HTML
2193
2089
  Authenticating with gds_sso strategy
2194
2090
  Completed in 0ms (ActiveRecord: 0.0ms)
2195
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2196
- Started GET "/auth/gds/callback?code=6ea088b23d69d2e9d374ccc4aef9bc6c33e50cd02a62177b26346533b48cd335&state=3fc0e0e7ade26fb71aba89bad4a850e0e987df88b4e5dacd" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2091
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2092
+ Started GET "/auth/gds/callback?code=adbddef8e27bcdb699d4e7da6151954aab434834ee9a31e9f488b25a6889fdbe&state=d829ac64295a4ec3ae1a8829e62b4e631a6702438523fe4e" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2197
2093
  Processing by AuthenticationsController#callback as HTML
2198
- Parameters: {"code"=>"6ea088b23d69d2e9d374ccc4aef9bc6c33e50cd02a62177b26346533b48cd335", "state"=>"3fc0e0e7ade26fb71aba89bad4a850e0e987df88b4e5dacd"}
2094
+ Parameters: {"code"=>"adbddef8e27bcdb699d4e7da6151954aab434834ee9a31e9f488b25a6889fdbe", "state"=>"d829ac64295a4ec3ae1a8829e62b4e631a6702438523fe4e"}
2199
2095
  Authenticating with gds_sso strategy
2200
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2096
+ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2201
2097
   (0.1ms) begin transaction
2202
-  (0.1ms) commit transaction
2098
+  (0.0ms) commit transaction
2203
2099
  Redirected to http://www.example-client.com/restricted
2204
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
2205
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2100
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
2101
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2206
2102
  Processing by ExampleController#restricted as HTML
2207
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2103
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2208
2104
  Rendering text template
2209
- Rendered text template (0.0ms)
2210
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2211
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2105
+ Rendered text template (0.1ms)
2106
+ Completed 200 OK in 8ms (Views: 1.3ms | ActiveRecord: 0.8ms)
2107
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
2108
+  (0.1ms) begin transaction
2109
+ SQL (0.6ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
2110
+  (7.1ms) commit transaction
2111
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2212
2112
  Processing by ExampleController#restricted as HTML
2113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2213
2114
  Authenticating with gds_sso strategy
2214
- Completed in 0ms (ActiveRecord: 0.0ms)
2215
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2216
- Started GET "/auth/gds/callback?code=98f194c39b7853e8c18b522af5b17f809f06e3a344ef370cecb8249bbc5f552a&state=cc17962d6edf7f3b6d5479bcfa836c9806fbb0787b43c545" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2115
+ Completed in 2ms (ActiveRecord: 0.2ms)
2116
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2117
+ Started GET "/auth/gds/callback?code=4156d050f22f9369523ef5c16050fe4010c77b30a5e6705de17cdd6862d644ca&state=9d23eeb323692c3ab4744a7cd99c4a2056bd77dfad6fcffd" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2217
2118
  Processing by AuthenticationsController#callback as HTML
2218
- Parameters: {"code"=>"98f194c39b7853e8c18b522af5b17f809f06e3a344ef370cecb8249bbc5f552a", "state"=>"cc17962d6edf7f3b6d5479bcfa836c9806fbb0787b43c545"}
2119
+ Parameters: {"code"=>"4156d050f22f9369523ef5c16050fe4010c77b30a5e6705de17cdd6862d644ca", "state"=>"9d23eeb323692c3ab4744a7cd99c4a2056bd77dfad6fcffd"}
2219
2120
  Authenticating with gds_sso strategy
2220
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2121
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2221
2122
   (0.1ms) begin transaction
2222
-  (0.0ms) commit transaction
2123
+  (0.6ms) commit transaction
2124
+  (0.0ms) begin transaction
2125
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
2126
+  (9.2ms) commit transaction
2223
2127
  Redirected to http://www.example-client.com/restricted
2224
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2225
- Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2128
+ Completed 302 Found in 18ms (ActiveRecord: 10.9ms)
2129
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2226
2130
  Processing by ExampleController#restricted as HTML
2227
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2131
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2228
2132
  Rendering text template
2229
2133
  Rendered text template (0.0ms)
2230
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2231
- Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2232
- Processing by ExampleController#restricted as HTML
2233
- Authenticating with gds_sso strategy
2234
- Completed in 1ms (ActiveRecord: 0.0ms)
2235
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2134
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2135
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2136
+ Processing by ExampleController#restricted as JSON
2137
+ Completed in 36ms (ActiveRecord: 0.0ms)
2138
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:52 +0000
2139
+ Processing by ExampleController#restricted as JSON
2140
+ Completed in 16ms (ActiveRecord: 0.0ms)
2141
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:53 +0000
2142
+ Processing by ExampleController#this_requires_signin_permission as JSON
2143
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2144
+  (0.1ms) begin transaction
2145
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
2146
+  (6.6ms) commit transaction
2147
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2148
+  (0.1ms) begin transaction
2149
+  (0.0ms) commit transaction
2150
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2151
+  (0.1ms) begin transaction
2152
+  (0.0ms) commit transaction
2153
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2154
+  (0.1ms) begin transaction
2155
+  (0.0ms) commit transaction
2156
+ Rendering text template
2157
+ Rendered text template (0.0ms)
2158
+ Completed 200 OK in 112ms (Views: 0.3ms | ActiveRecord: 7.8ms)
2159
+ Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:53 +0000
2160
+ Processing by ExampleController#restricted as JSON
2161
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2162
+  (0.1ms) begin transaction
2163
+  (0.0ms) commit transaction
2164
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2165
+  (0.1ms) begin transaction
2166
+  (0.1ms) commit transaction
2167
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2168
+  (0.1ms) begin transaction
2169
+  (0.1ms) commit transaction
2170
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2171
+  (0.1ms) begin transaction
2172
+  (0.0ms) commit transaction
2173
+ Rendering text template
2174
+ Rendered text template (0.0ms)
2175
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.8ms)
2176
+  (0.1ms) begin transaction
2177
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35183"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
2178
+  (8.1ms) commit transaction
2179
+  (0.1ms) begin transaction
2180
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3850"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
2181
+  (6.1ms) commit transaction
2182
+ Processing by Api::UserController#reauth as HTML
2183
+ Parameters: {"uid"=>"nonexistent-user"}
2184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
2185
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
2186
+  (0.1ms) begin transaction
2187
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31284"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
2188
+  (6.4ms) commit transaction
2189
+  (0.0ms) begin transaction
2190
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d379"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
2191
+  (5.3ms) commit transaction
2192
+ Processing by Api::UserController#reauth as HTML
2193
+ Parameters: {"uid"=>"a1s2d31284"}
2194
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
2195
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
2196
+ Completed 403 Forbidden in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
2197
+  (0.1ms) begin transaction
2198
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3661"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
2199
+  (6.5ms) commit transaction
2200
+  (0.0ms) begin transaction
2201
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31303"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
2202
+  (5.8ms) commit transaction
2203
+ Processing by Api::UserController#reauth as HTML
2204
+ Parameters: {"uid"=>"a1s2d3661"}
2205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3661"], ["LIMIT", 1]]
2206
+  (0.1ms) begin transaction
2207
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
2208
+  (7.0ms) commit transaction
2209
+ Completed 200 OK in 10ms (ActiveRecord: 7.6ms)
2210
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
2211
+  (0.0ms) begin transaction
2212
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d395"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
2213
+  (5.0ms) commit transaction
2214
+  (0.0ms) begin transaction
2215
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36582"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
2216
+  (5.8ms) commit transaction
2217
+ Processing by Api::UserController#update as HTML
2218
+ Parameters: {"uid"=>"a1s2d395"}
2219
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
2220
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
2221
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
2222
+  (0.1ms) begin transaction
2223
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3568"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
2224
+  (6.0ms) commit transaction
2225
+  (0.0ms) begin transaction
2226
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31082"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
2227
+  (6.0ms) commit transaction
2228
+ Processing by Api::UserController#update as HTML
2229
+ Parameters: {"uid"=>"a1s2d3568"}
2230
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3568"], ["LIMIT", 1]]
2231
+  (0.0ms) begin transaction
2232
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 11]]
2233
+  (6.1ms) commit transaction
2234
+ Completed 200 OK in 9ms (ActiveRecord: 6.4ms)
2235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]