gds-sso 13.5.1 → 13.6.0

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: 4c93fc375363a131501ac31c10e3d2cab78ac590
4
- data.tar.gz: d8f3324a67ee849caa66851846350c4e57c8b60a
3
+ metadata.gz: 65a4fcbf1648eb48c5d242e5e215a962f480038d
4
+ data.tar.gz: f1ca91a7017fd9f8e6f42eadeec97de37aa55ff3
5
5
  SHA512:
6
- metadata.gz: fb888c9c819f4500c815434abd6f9eb6e2ef0cf025148183936316e844ac7b197661efdb016e571e7be876088b6f92f9e276e7628f780e90d9c3c27e6af18497
7
- data.tar.gz: 1aa7afaa32573236264b96d6cb9f83a2829c7bc632a2bb1324e570647aaf216c88303c42631a98acb0b15f288ffd27f91545deff7089fcc9c2dba493206c7e2d
6
+ metadata.gz: 1446bb1a2f1abc78e47930ed8aa252ebb3f498651afe2a45bd1fa09bfaca0acbae876a8a9b067af9ccfc2942c474a2687db91d9f16e9e3644cd3cd90c7201bb9
7
+ data.tar.gz: 95d9db08ac05f26e3f9235b7c56af5c17a5287b261063fc44cffd021d37abb477e83e845719b6d9a6c6eff0d9c36b5ace1d0861ef451a152839afa11250c9574
data/README.md CHANGED
@@ -163,6 +163,20 @@ Once that's done, set an environment variable when you run your app. e.g.:
163
163
  GDS_SSO_STRATEGY=real bundle exec rails s
164
164
  ```
165
165
 
166
+ ### Extra permissions for api users
167
+
168
+ By default the mock strategies will create a user with `signin` permission.
169
+
170
+ If your application needs different or extra permissions for access, you can specify this by adding the following to your config:
171
+
172
+ ```ruby
173
+ GDS::SSO.config do |config|
174
+ # other config here
175
+ config.additional_mock_permissions_required = ["array", "of", "permissions"]
176
+ ```
177
+
178
+ The mock bearer token will then ensure that the dummy api user has the required permission.
179
+
166
180
  ### Testing in your application
167
181
 
168
182
  If your app is using `test-unit` or `minitest`, there is a linting test that can verify your `User` model is compatible with `GDS:SSO::User`:
@@ -56,9 +56,13 @@ module GDS
56
56
  dummy_api_user.email = "dummyapiuser@domain.com"
57
57
  dummy_api_user.uid = "#{rand(10000)}"
58
58
  dummy_api_user.name = "Dummy API user created by gds-sso"
59
- dummy_api_user.permissions = ["signin"]
60
- dummy_api_user.save!
61
59
  end
60
+
61
+ unless dummy_api_user.has_all_permissions?(GDS::SSO::Config.permissions_for_dummy_api_user)
62
+ dummy_api_user.permissions = GDS::SSO::Config.permissions_for_dummy_api_user
63
+ end
64
+
65
+ dummy_api_user.save!
62
66
  dummy_api_user
63
67
  end
64
68
  end
@@ -25,6 +25,12 @@ module GDS
25
25
 
26
26
  mattr_writer :api_only
27
27
 
28
+ mattr_accessor :additional_mock_permissions_required
29
+
30
+ def self.permissions_for_dummy_api_user
31
+ ["signin"].push(*additional_mock_permissions_required)
32
+ end
33
+
28
34
  def self.user_klass
29
35
  user_model.to_s.constantize
30
36
  end
@@ -28,6 +28,27 @@ RSpec.shared_examples "a gds-sso user class" do
28
28
  expect(subject).to respond_to(:remotely_signed_out?)
29
29
  end
30
30
 
31
+ describe "#has_all_permissions?" do
32
+ it "is false when there are no permissions" do
33
+ subject.update_attributes(permissions: nil)
34
+ required_permissions = ["signin"]
35
+ expect(subject.has_all_permissions?(required_permissions)).to be_falsy
36
+ end
37
+
38
+ it "is false when it does not have all required permissions" do
39
+ subject.update_attributes(permissions: ["signin"])
40
+ required_permissions = ["signin", "not_granted_permission_one", "not_granted_permission_two"]
41
+ expect(subject.has_all_permissions?(required_permissions)).to be false
42
+ end
43
+
44
+ it "is true when it has all required permissions" do
45
+ subject.update_attributes(permissions: ["signin", "internal_app"])
46
+ required_permissions = ["signin", "internal_app"]
47
+ expect(subject.has_all_permissions?(required_permissions)).to be true
48
+ end
49
+
50
+ end
51
+
31
52
  specify "the User class and GDS::SSO::User mixin work together" do
32
53
  auth_hash = {
33
54
  'uid' => '12345',
data/lib/gds-sso/user.rb CHANGED
@@ -11,6 +11,14 @@ module GDS
11
11
  end
12
12
  end
13
13
 
14
+ def has_all_permissions?(required_permissions)
15
+ if permissions
16
+ required_permissions.all? do |required_permission|
17
+ permissions.include?(required_permission)
18
+ end
19
+ end
20
+ end
21
+
14
22
  def self.user_params_from_auth_hash(auth_hash)
15
23
  {
16
24
  'uid' => auth_hash['uid'],
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "13.5.1"
3
+ VERSION = "13.6.0"
4
4
  end
5
5
  end
@@ -1,81 +1,29 @@
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)
1
+  (6.8ms) 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.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
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)
4
+  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
37
6
   (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)
47
-  (0.1ms) begin 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
50
-  (0.1ms) begin transaction
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"]]
52
-  (3.9ms) commit transaction
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
7
+ SQL (0.4ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "6869"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
+  (9.8ms) commit transaction
64
9
   (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
10
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
11
+  (4.9ms) commit transaction
12
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:05 +0000
13
+ Processing by ExampleController#restricted as HTML
14
+ Authenticating with gds_sso strategy
15
+ Completed in 17ms (ActiveRecord: 0.0ms)
16
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:05 +0000
17
+ Processing by ExampleController#restricted as JSON
18
+ Completed in 583ms (ActiveRecord: 0.0ms)
19
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:06 +0000
72
20
  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"]]
21
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
74
22
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
75
23
   (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"]]
24
+ SQL (0.4ms) 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]]
25
+  (7.6ms) commit transaction
26
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
79
27
   (0.1ms) begin transaction
80
28
   (0.1ms) commit transaction
81
29
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
@@ -84,226 +32,218 @@ Processing by ExampleController#this_requires_signin_permission as JSON
84
32
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
85
33
   (0.1ms) begin transaction
86
34
   (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
35
+  (0.1ms) begin transaction
36
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
37
+  (6.5ms) commit transaction
90
38
  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
39
+ Completed 200 OK in 220ms (Views: 19.2ms | ActiveRecord: 16.6ms)
40
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:06 +0000
96
41
  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
42
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
43
+  (0.2ms) begin transaction
44
+  (0.1ms) commit transaction
100
45
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
101
46
   (0.1ms) begin transaction
102
-  (0.0ms) commit transaction
47
+  (0.1ms) commit transaction
103
48
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
104
49
   (0.1ms) begin transaction
105
50
   (0.1ms) commit transaction
106
51
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
107
52
   (0.1ms) begin transaction
108
53
   (0.1ms) commit transaction
109
-  (0.0ms) begin transaction
110
-  (0.0ms) commit transaction
54
+  (0.1ms) begin transaction
55
+  (0.2ms) commit transaction
111
56
  Rendered text template (0.0ms)
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
57
+ Completed 200 OK in 129ms (Views: 0.5ms | ActiveRecord: 1.5ms)
58
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:06 +0000
114
59
  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
60
+ Completed in 51ms (ActiveRecord: 0.0ms)
61
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:06 +0000
117
62
  Processing by ExampleController#restricted as HTML
118
63
  Authenticating with gds_sso strategy
119
64
  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
121
- Processing by ExampleController#this_requires_signin_permission as HTML
122
- Authenticating with gds_sso strategy
123
- Completed in 0ms (ActiveRecord: 0.0ms)
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
65
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:06 +0000
66
+ Started GET "/auth/gds/callback?code=65c210224f2cc0e5f97baa1963eacb30556d2585d220da71804ff3ef2af033d4&state=9e2243f1b60a6447c2e807f293fb59fb54e7cf30e1daeb18" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
126
67
  Processing by AuthenticationsController#callback as HTML
127
- Parameters: {"code"=>"403fb0d1ec97649af51d34a0885922c8cf07debe7344a56dc9aa84ee676cabc8", "state"=>"748a66d055257f50dd6e45a1ff8c850d158ba585519fedff"}
68
+ Parameters: {"code"=>"65c210224f2cc0e5f97baa1963eacb30556d2585d220da71804ff3ef2af033d4", "state"=>"9e2243f1b60a6447c2e807f293fb59fb54e7cf30e1daeb18"}
128
69
  Authenticating with gds_sso strategy
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
133
-  (0.0ms) begin transaction
134
-  (0.0ms) commit transaction
135
- Redirected to http://www.example-client.com/this_requires_signin_permission
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
138
- Processing by ExampleController#this_requires_signin_permission as HTML
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"]]
70
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
71
+  (0.1ms) begin transaction
72
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
73
+  (8.4ms) commit transaction
74
+  (0.1ms) begin transaction
75
+  (0.1ms) commit transaction
76
+ Redirected to http://www.example-client.com/restricted
77
+ Completed 302 Found in 17ms (ActiveRecord: 9.2ms)
78
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
79
+ Processing by ExampleController#restricted as HTML
80
+ User Load (0.3ms) 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"]]
140
81
  Rendered text template (0.0ms)
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
143
- Processing by ExampleController#this_requires_signin_permission as HTML
82
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
83
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
84
+ Processing by ExampleController#restricted as HTML
144
85
  Authenticating with gds_sso strategy
145
86
  Completed in 0ms (ActiveRecord: 0.0ms)
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
87
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
88
+ Started GET "/auth/gds/callback?code=08b9446297e4e10e27f139d6e9509cb71689aa53ab3d84dc88c71e42340b7793&state=4d196b447420f5b1b4796ba876000f63e5f2e516fff1b19a" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
148
89
  Processing by AuthenticationsController#callback as HTML
149
- Parameters: {"code"=>"21ad57aeb6cbc4395aa34f175ab0f5fe4458d8ece2b7c8d4b9be155f086a475f", "state"=>"6e21c7bcb78b4b88679aef913b38e813bf4f3896e88d0a51"}
90
+ Parameters: {"code"=>"08b9446297e4e10e27f139d6e9509cb71689aa53ab3d84dc88c71e42340b7793", "state"=>"4d196b447420f5b1b4796ba876000f63e5f2e516fff1b19a"}
150
91
  Authenticating with gds_sso strategy
151
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
92
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
152
93
   (0.1ms) begin transaction
153
94
   (0.1ms) commit transaction
154
-  (0.0ms) begin transaction
155
-  (0.0ms) commit transaction
156
- Redirected to http://www.example-client.com/this_requires_signin_permission
157
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
158
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:02 +0000
159
- Processing by ExampleController#this_requires_signin_permission as HTML
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"]]
161
- Rendered text template (0.0ms)
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
164
- Processing by ExampleController#index as HTML
165
- Rendered text template (0.0ms)
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
95
+  (0.1ms) begin transaction
96
+  (0.1ms) commit transaction
97
+ Redirected to http://www.example-client.com/restricted
98
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
99
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
100
+ Processing by ExampleController#restricted as HTML
101
+ User Load (0.3ms) 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"]]
102
+ Rendered text template (0.1ms)
103
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
104
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
168
105
  Processing by ExampleController#restricted as HTML
169
106
  Authenticating with gds_sso strategy
170
107
  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
108
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:17 +0000
109
+ Started GET "/auth/gds/callback?code=54884d39203d875aa0833a58f2000c78c8d752cc7b0a782546164dcc22881a2e&state=173be65563cdd9b7451328bc104b925f0d66d5e2332c1dc6" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
173
110
  Processing by AuthenticationsController#callback as HTML
174
- Parameters: {"code"=>"14038c8a0248bd24984494852a5fa349e995812d4406085eb51ccfccfc37d70a", "state"=>"7ff6ab7ad0eee8ec2ac4c9dcae08ad818cc7dd89d2b93646"}
111
+ Parameters: {"code"=>"54884d39203d875aa0833a58f2000c78c8d752cc7b0a782546164dcc22881a2e", "state"=>"173be65563cdd9b7451328bc104b925f0d66d5e2332c1dc6"}
175
112
  Authenticating with gds_sso strategy
176
113
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
177
114
   (0.1ms) begin transaction
178
115
   (0.1ms) commit transaction
179
-  (0.0ms) begin transaction
116
+  (0.1ms) begin transaction
180
117
   (0.1ms) commit transaction
181
118
  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
119
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
120
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
184
121
  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"]]
122
+ 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"]]
186
123
  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
189
- Processing by ExampleController#restricted as HTML
124
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
125
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
126
+ Processing by ExampleController#this_requires_signin_permission as HTML
190
127
  Authenticating with gds_sso strategy
191
- Completed in 0ms (ActiveRecord: 0.0ms)
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
128
+ Completed in 1ms (ActiveRecord: 0.0ms)
129
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
130
+ Started GET "/auth/gds/callback?code=7bcf5c9c74154d09cb47b95ff6d6605a44fd93319b63da88921f808a4545c9ec&state=f91eaab3004d810ef14cebf48e326e612b1ae2863f0ca86b" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
194
131
  Processing by AuthenticationsController#callback as HTML
195
- Parameters: {"code"=>"719d8909be67ddb269b27767dbd0749dab35455bbe20bcd26ce1cec25ddbbd5c", "state"=>"0728ab14e4d2bc82b566086d2888f124e2cc6dbad3c9852b"}
132
+ Parameters: {"code"=>"7bcf5c9c74154d09cb47b95ff6d6605a44fd93319b63da88921f808a4545c9ec", "state"=>"f91eaab3004d810ef14cebf48e326e612b1ae2863f0ca86b"}
196
133
  Authenticating with gds_sso strategy
197
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
134
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
135
+  (0.1ms) begin transaction
136
+  (0.2ms) commit transaction
198
137
   (0.1ms) begin transaction
199
138
   (0.1ms) commit transaction
200
-  (0.0ms) begin transaction
201
-  (0.0ms) commit transaction
202
- Redirected to http://www.example-client.com/restricted
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
205
- Processing by ExampleController#restricted as HTML
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"]]
139
+ Redirected to http://www.example-client.com/this_requires_signin_permission
140
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
141
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
142
+ Processing by ExampleController#this_requires_signin_permission as HTML
143
+ 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"]]
207
144
  Rendered text template (0.0ms)
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
210
- Processing by ExampleController#restricted as HTML
145
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)
146
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
147
+ Processing by ExampleController#this_requires_signin_permission as HTML
211
148
  Authenticating with gds_sso strategy
212
149
  Completed in 0ms (ActiveRecord: 0.0ms)
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
150
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
151
+ Started GET "/auth/gds/callback?code=dbf128b0e88cf1c90d3451c37afe4e68d5602e5660ad410f044d7b119ff6958c&state=0d69ec9e284f40d94bcda0fcb9b5e1618b62a155185e663c" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
215
152
  Processing by AuthenticationsController#callback as HTML
216
- Parameters: {"code"=>"984e3293314d2b147a048b206054b4fd8de7d590793008b70fa9aad3f81bb076", "state"=>"201c99f2fcda23d198f358246cb15939ea7c82c572c00d0c"}
153
+ Parameters: {"code"=>"dbf128b0e88cf1c90d3451c37afe4e68d5602e5660ad410f044d7b119ff6958c", "state"=>"0d69ec9e284f40d94bcda0fcb9b5e1618b62a155185e663c"}
217
154
  Authenticating with gds_sso strategy
218
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
155
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
219
156
   (0.1ms) begin transaction
220
-  (0.0ms) commit transaction
221
-  (0.0ms) begin transaction
222
-  (0.0ms) commit transaction
223
- Redirected to http://www.example-client.com/restricted
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
226
- Processing by ExampleController#restricted as HTML
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"]]
157
+  (0.1ms) commit transaction
158
+  (0.1ms) begin transaction
159
+  (0.1ms) commit transaction
160
+ Redirected to http://www.example-client.com/this_requires_signin_permission
161
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
162
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
163
+ Processing by ExampleController#this_requires_signin_permission as HTML
164
+ 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"]]
165
+ Rendered text template (0.0ms)
166
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
167
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
168
+ Processing by ExampleController#index as HTML
228
169
  Rendered text template (0.0ms)
229
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
230
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:03 +0000
170
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
171
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
231
172
  Processing by ExampleController#restricted as HTML
232
173
  Authenticating with gds_sso strategy
233
- Completed in 0ms (ActiveRecord: 0.0ms)
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
174
+ Completed in 1ms (ActiveRecord: 0.0ms)
175
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:18 +0000
176
+ Started GET "/auth/gds/callback?code=a4970d280569ba78d0c83800d21853f7115c325a33880f9815f44cd6576d12a1&state=74bfb029303fca3b79d5b8ffaded0a832c5fa818cb23ed6b" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
236
177
  Processing by AuthenticationsController#callback as HTML
237
- Parameters: {"code"=>"ac8d3b4e3d11487847e594d93277b140b0dd11d5689c5d8ebbcf0c4007703256", "state"=>"8d200a74c4c26e61a5674820ba2c00143132bce4a029f582"}
178
+ Parameters: {"code"=>"a4970d280569ba78d0c83800d21853f7115c325a33880f9815f44cd6576d12a1", "state"=>"74bfb029303fca3b79d5b8ffaded0a832c5fa818cb23ed6b"}
238
179
  Authenticating with gds_sso strategy
239
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
180
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
240
181
   (0.1ms) begin transaction
241
-  (0.0ms) commit transaction
242
-  (0.2ms) begin transaction
243
-  (0.0ms) commit transaction
182
+  (0.1ms) commit transaction
183
+  (0.1ms) begin transaction
184
+  (0.1ms) commit transaction
244
185
  Redirected to http://www.example-client.com/restricted
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
186
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
187
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
247
188
  Processing by ExampleController#restricted as HTML
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"]]
189
+ 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"]]
249
190
  Rendered text template (0.0ms)
250
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
251
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
252
-  (0.1ms) begin transaction
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
191
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
192
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:19 +0000
256
193
  Processing by ExampleController#restricted as HTML
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"]]
258
194
  Authenticating with gds_sso strategy
259
- Completed in 1ms (ActiveRecord: 0.1ms)
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
195
+ Completed in 1ms (ActiveRecord: 0.0ms)
196
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:19 +0000
197
+ Started GET "/auth/gds/callback?code=dfa9b80b8d6e5b8e542d0158fb3bcb3b54c91ba9f3b939eb7692e14deed29a82&state=53fa98b39f8c811018a7f1f1b0018643fb8caa6cb3cf12ae" for 127.0.0.1 at 2018-02-09 08:39:19 +0000
262
198
  Processing by AuthenticationsController#callback as HTML
263
- Parameters: {"code"=>"a42cc66b7c08714a86aa1b0fd4fe829eed275b90dd80990fde259abd6fd389c3", "state"=>"b77e7afe03bb5fe0230fee7588a9e9fd817d535c13aaf82f"}
199
+ Parameters: {"code"=>"dfa9b80b8d6e5b8e542d0158fb3bcb3b54c91ba9f3b939eb7692e14deed29a82", "state"=>"53fa98b39f8c811018a7f1f1b0018643fb8caa6cb3cf12ae"}
264
200
  Authenticating with gds_sso strategy
265
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
266
-  (0.1ms) begin transaction
267
-  (0.0ms) commit transaction
268
-  (0.0ms) begin 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
201
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
202
+  (0.1ms) begin transaction
203
+  (0.1ms) commit transaction
204
+  (0.1ms) begin transaction
205
+  (0.1ms) commit transaction
271
206
  Redirected to http://www.example-client.com/restricted
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
207
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
208
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:19 +0000
274
209
  Processing by ExampleController#restricted as HTML
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"]]
210
+ 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"]]
276
211
  Rendered text template (0.0ms)
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
212
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
213
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
279
214
  Processing by ExampleController#restricted as HTML
280
215
  Authenticating with gds_sso strategy
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
216
+ Completed in 1ms (ActiveRecord: 0.0ms)
217
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
218
+ Started GET "/auth/gds/callback?code=8c27064bbb90991fc55e8fe9a680b6618b62f28afba8d703a07639f9c48125b9&state=93cef03fda0d081d6810eaa7239a522b56e56b842b0ad20a" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
284
219
  Processing by AuthenticationsController#callback as HTML
285
- Parameters: {"code"=>"ea4be227e15fee05e27f9fe3445da8a37a8505855bfe6005fea4edeaa88e45ec", "state"=>"1bcab3b054b7680473e9ab5c24b567654cb6f69bdd7cdc4a"}
220
+ Parameters: {"code"=>"8c27064bbb90991fc55e8fe9a680b6618b62f28afba8d703a07639f9c48125b9", "state"=>"93cef03fda0d081d6810eaa7239a522b56e56b842b0ad20a"}
286
221
  Authenticating with gds_sso strategy
287
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
222
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
223
+  (0.2ms) begin transaction
224
+  (0.1ms) commit transaction
288
225
   (0.1ms) begin transaction
289
226
   (0.1ms) commit transaction
290
-  (0.0ms) begin transaction
291
-  (0.0ms) commit transaction
292
227
  Redirected to http://www.example-client.com/restricted
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
228
+ Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
229
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:19 +0000
295
230
  Processing by ExampleController#restricted as HTML
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"]]
231
+ 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"]]
297
232
  Rendered text template (0.0ms)
298
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
299
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:04 +0000
233
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
234
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:20 +0000
300
235
  Processing by ExampleController#restricted as HTML
301
236
  Authenticating with gds_sso strategy
302
- Completed in 0ms (ActiveRecord: 0.0ms)
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
237
+ Completed in 1ms (ActiveRecord: 0.0ms)
238
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:20 +0000
239
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
240
+ Processing by ExampleController#restricted as HTML
241
+ Authenticating with gds_sso strategy
242
+ Completed in 1ms (ActiveRecord: 0.0ms)
243
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
244
+ Started GET "/auth/gds/callback?code=3dcb9b256028bf4da62c53911c8d8b35685376ef45320942eaf247500d1fce52&state=47376d3faf4b3746053131991260b33874e5fa42ef899feb" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
305
245
  Processing by AuthenticationsController#callback as HTML
306
- Parameters: {"code"=>"3e8cf2dec1562f532d37e19ac4ae275d02573770e2e22010542dee49e01d1386", "state"=>"b5306cfd42b8e7d546344d54f80f31484c900d753e028142"}
246
+ Parameters: {"code"=>"3dcb9b256028bf4da62c53911c8d8b35685376ef45320942eaf247500d1fce52", "state"=>"47376d3faf4b3746053131991260b33874e5fa42ef899feb"}
307
247
  Authenticating with gds_sso strategy
308
248
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
309
249
   (0.1ms) begin transaction
@@ -311,159 +251,221 @@ Authenticating with gds_sso strategy
311
251
   (0.1ms) begin transaction
312
252
   (0.1ms) commit transaction
313
253
  Redirected to http://www.example-client.com/restricted
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
254
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
255
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
256
+ Processing by ExampleController#restricted as HTML
257
+ 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"]]
258
+ Rendered text template (0.0ms)
259
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
260
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:29:20 +0000
316
261
  Processing by ExampleController#restricted as HTML
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"]]
262
+ 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"]]
318
263
  Rendered text template (0.0ms)
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
264
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
265
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
321
266
  Processing by ExampleController#restricted as HTML
322
267
  Authenticating with gds_sso strategy
323
- Completed in 0ms (ActiveRecord: 0.0ms)
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
268
+ Completed in 1ms (ActiveRecord: 0.0ms)
269
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
270
+ Started GET "/auth/gds/callback?code=88c9b1c257952abd27a98131c1af9dd4b28ea84dd1a23a2d99ad3b84dc56b2ac&state=60ab5b1a2af4a62308f6879e994eea656cc3628fe542b013" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
326
271
  Processing by AuthenticationsController#callback as HTML
327
- Parameters: {"code"=>"d229a130e1aaea3d4242bfeda50599cbd201fbeb809478a7de56fc368a7c4dcd", "state"=>"cb92bde06d95b1f03c9d5874a6e821d7a1234c7f5deec91a"}
272
+ Parameters: {"code"=>"88c9b1c257952abd27a98131c1af9dd4b28ea84dd1a23a2d99ad3b84dc56b2ac", "state"=>"60ab5b1a2af4a62308f6879e994eea656cc3628fe542b013"}
328
273
  Authenticating with gds_sso strategy
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
274
+ User Load (0.3ms) 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
+  (0.1ms) begin transaction
278
+  (0.1ms) commit transaction
334
279
  Redirected to http://www.example-client.com/restricted
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
280
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
281
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
337
282
  Processing by ExampleController#restricted as HTML
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"]]
283
+ 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"]]
339
284
  Rendered text template (0.0ms)
340
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
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
285
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
286
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
287
+  (0.1ms) begin transaction
288
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
289
+  (9.1ms) commit transaction
290
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
347
291
  Processing by ExampleController#restricted as HTML
292
+ 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"]]
348
293
  Authenticating with gds_sso strategy
349
- Completed in 0ms (ActiveRecord: 0.0ms)
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
294
+ Completed in 2ms (ActiveRecord: 0.2ms)
295
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:20 +0000
296
+ Started GET "/auth/gds/callback?code=190aa18b2f5f7046dda45e446bde5e8e1be0ac7c79d018ba7f5c5e722bf1a000&state=8134d556b3938fd77ff5425cb0e011a180418fa8b8929366" for 127.0.0.1 at 2018-02-08 12:34:21 +0000
352
297
  Processing by AuthenticationsController#callback as HTML
353
- Parameters: {"code"=>"abe7dbdab2e4f482d01a0bcbc29dd202fc1c474cc83e74c5b0eeca24e7ded0a7", "state"=>"f5f792e5354fb43000f91e015faea05b61ea865f91e2b60d"}
298
+ Parameters: {"code"=>"190aa18b2f5f7046dda45e446bde5e8e1be0ac7c79d018ba7f5c5e722bf1a000", "state"=>"8134d556b3938fd77ff5425cb0e011a180418fa8b8929366"}
354
299
  Authenticating with gds_sso strategy
355
300
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
356
301
   (0.1ms) begin transaction
357
-  (0.0ms) commit transaction
358
-  (0.0ms) begin transaction
359
-  (0.0ms) commit transaction
302
+  (0.1ms) commit transaction
303
+  (0.1ms) begin transaction
304
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
305
+  (8.1ms) commit transaction
360
306
  Redirected to http://www.example-client.com/restricted
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
307
+ Completed 302 Found in 17ms (ActiveRecord: 9.0ms)
308
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:21 +0000
363
309
  Processing by ExampleController#restricted as HTML
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"]]
310
+ 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"]]
365
311
  Rendered text template (0.0ms)
366
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
367
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:05 +0000
368
- Processing by ExampleController#restricted as HTML
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
-  (0.1ms) DROP TABLE IF EXISTS "users"
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
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
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", "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
- 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.1ms) begin transaction
383
-  (0.1ms) commit transaction
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]]
386
-  (0.1ms) begin transaction
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]]
312
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
313
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
314
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
315
+  (0.1ms) begin transaction
316
+ SQL (0.4ms) 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]]
317
+  (6.9ms) commit transaction
318
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
319
+  (0.1ms) begin transaction
320
+  (0.1ms) commit transaction
321
+  (0.1ms) begin transaction
322
+ SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39460"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
323
+  (5.8ms) commit transaction
324
+  (0.1ms) begin transaction
325
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34554"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
326
+  (5.9ms) commit transaction
327
+ Processing by Api::UserController#update as HTML
328
+ Parameters: {"uid"=>"a1s2d39460"}
329
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
330
+ Completed 403 Forbidden in 19ms (Views: 18.3ms | ActiveRecord: 0.0ms)
331
+  (0.1ms) begin transaction
332
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36563"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
333
+  (6.5ms) commit transaction
334
+  (0.1ms) begin transaction
335
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36416"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
336
+  (5.1ms) commit transaction
337
+ Processing by Api::UserController#update as HTML
338
+ Parameters: {"uid"=>"a1s2d36563"}
339
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d36563"]]
340
+  (0.1ms) begin transaction
341
+ SQL (0.5ms) 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", 6]]
342
+  (5.0ms) commit transaction
343
+ Completed 200 OK in 13ms (ActiveRecord: 5.8ms)
344
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
345
+  (0.1ms) begin transaction
346
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31730"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
347
+  (5.9ms) commit transaction
348
+  (0.1ms) begin transaction
349
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31989"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
350
+  (5.9ms) commit transaction
351
+ Processing by Api::UserController#reauth as HTML
352
+ Parameters: {"uid"=>"a1s2d31730"}
353
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31730"]]
354
+  (0.1ms) begin transaction
355
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
356
+  (5.8ms) commit transaction
357
+ Completed 200 OK in 10ms (ActiveRecord: 6.3ms)
358
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
359
+  (0.1ms) begin transaction
360
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36110"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
361
+  (6.2ms) commit transaction
362
+  (0.1ms) begin transaction
363
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34771"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
364
+  (6.0ms) commit transaction
365
+ Processing by Api::UserController#reauth as HTML
366
+ Parameters: {"uid"=>"nonexistent-user"}
367
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
368
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
369
+  (0.1ms) begin transaction
370
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33124"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
371
+  (6.6ms) commit transaction
372
+  (0.1ms) begin transaction
373
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32382"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
374
+  (5.8ms) commit transaction
375
+ Processing by Api::UserController#reauth as HTML
376
+ Parameters: {"uid"=>"a1s2d33124"}
377
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
378
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
379
+  (0.2ms) DROP TABLE IF EXISTS "users"
380
+  (2.6ms) SELECT sqlite_version(*)
381
+  (7.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')
382
+  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
383
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
384
+  (0.1ms) begin transaction
385
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-02-08 12:34:32.318384"], ["updated_at", "2018-02-08 12:34:32.318384"]]
386
+  (5.7ms) commit transaction
387
+  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
388
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
390
389
   (0.1ms) begin transaction
391
390
   (0.1ms) commit transaction
392
391
   (0.1ms) begin transaction
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"]]
392
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33957"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
394
393
   (6.3ms) commit transaction
395
394
   (0.1ms) begin 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
395
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34705"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
396
+  (4.3ms) commit transaction
398
397
  Processing by Api::UserController#update as HTML
399
- Parameters: {"uid"=>"a1s2d37661"}
398
+ Parameters: {"uid"=>"a1s2d33957"}
400
399
  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)
400
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
401
+ Completed 403 Forbidden in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)
403
402
   (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
403
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39964"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
404
+  (5.6ms) commit transaction
406
405
   (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
406
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37065"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
407
+  (4.1ms) commit transaction
409
408
  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
420
-  (0.0ms) begin transaction
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]]
409
+ Parameters: {"uid"=>"a1s2d39964"}
410
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39964"], ["LIMIT", 1]]
426
411
   (0.1ms) begin transaction
427
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
412
+ 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]]
428
413
   (5.3ms) commit transaction
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]]
414
+ Completed 200 OK in 11ms (ActiveRecord: 5.8ms)
415
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
431
416
   (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
417
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31005"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
418
+  (4.3ms) commit transaction
434
419
   (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
420
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32809"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
421
+  (5.4ms) commit transaction
437
422
  Processing by Api::UserController#reauth as HTML
438
- Parameters: {"uid"=>"a1s2d32079"}
423
+ Parameters: {"uid"=>"a1s2d31005"}
439
424
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
440
425
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
441
426
  Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
442
427
   (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
428
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31434"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
429
+  (4.2ms) commit transaction
430
+  (0.1ms) begin transaction
431
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38288"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
432
+  (6.4ms) commit transaction
433
+ Processing by Api::UserController#reauth as HTML
434
+ Parameters: {"uid"=>"a1s2d31434"}
435
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31434"], ["LIMIT", 1]]
436
+  (0.1ms) begin transaction
437
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
438
+  (4.0ms) commit transaction
439
+ Completed 200 OK in 7ms (ActiveRecord: 4.4ms)
440
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
441
+  (0.1ms) begin transaction
442
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39300"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
443
+  (4.5ms) commit transaction
444
+  (0.1ms) begin transaction
445
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32754"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
446
+  (4.1ms) commit transaction
448
447
  Processing by Api::UserController#reauth as HTML
449
448
  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
449
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
450
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
451
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
453
452
  Processing by ExampleController#restricted as HTML
454
453
  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
454
+ Completed in 12ms (ActiveRecord: 0.0ms)
455
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
457
456
  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
457
+ Completed in 42ms (ActiveRecord: 0.0ms)
458
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
460
459
  Processing by ExampleController#restricted as JSON
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]]
460
+ Completed in 52ms (ActiveRecord: 0.0ms)
461
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
462
+ Processing by ExampleController#this_requires_signin_permission as JSON
463
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
464
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
463
465
   (0.1ms) begin 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]]
466
+ SQL (0.4ms) 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]]
467
+  (6.6ms) commit transaction
468
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
467
469
   (0.1ms) begin transaction
468
470
   (0.1ms) commit transaction
469
471
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
@@ -473,18 +475,18 @@ Processing by ExampleController#restricted as JSON
473
475
   (0.1ms) begin transaction
474
476
   (0.1ms) commit transaction
475
477
   (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
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
479
+  (5.3ms) commit transaction
478
480
  Rendering text template
479
481
  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]]
482
+ Completed 200 OK in 177ms (Views: 3.4ms | ActiveRecord: 14.9ms)
483
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
484
+ Processing by ExampleController#restricted as JSON
485
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
484
486
   (0.1ms) begin transaction
485
487
   (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
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
489
+  (0.1ms) begin transaction
488
490
   (0.1ms) commit transaction
489
491
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
490
492
   (0.1ms) begin transaction
@@ -494,897 +496,995 @@ Processing by ExampleController#this_requires_signin_permission as JSON
494
496
   (0.1ms) commit transaction
495
497
  Rendering text template
496
498
  Rendered text template (0.0ms)
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
499
- Processing by ExampleController#restricted as JSON
500
- Completed in 17ms (ActiveRecord: 0.0ms)
501
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:14 +0000
499
+ Completed 200 OK in 139ms (Views: 0.6ms | ActiveRecord: 1.4ms)
500
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
502
501
  Processing by ExampleController#restricted as HTML
503
502
  Authenticating with gds_sso strategy
504
- Completed in 0ms (ActiveRecord: 0.0ms)
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
503
+ Completed in 1ms (ActiveRecord: 0.0ms)
504
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:33 +0000
505
+ Started GET "/auth/gds/callback?code=1d4e530ad728f05fb9610e420abf4920c2e10a2c572422afbe6ebe4dbb8bd26b&state=2fa77d7e5569a6dd37c5e97ecdeed137e838b97b3ca59268" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
507
506
  Processing by AuthenticationsController#callback as HTML
508
- Parameters: {"code"=>"91daf7112fcf8d0313f0a45c1bba7a15715b8ca70e0b780694248a9e2bde5f89", "state"=>"25eddc4fde2d37ad90157fbb959c73947dc2cf1e364d453e"}
507
+ Parameters: {"code"=>"1d4e530ad728f05fb9610e420abf4920c2e10a2c572422afbe6ebe4dbb8bd26b", "state"=>"2fa77d7e5569a6dd37c5e97ecdeed137e838b97b3ca59268"}
509
508
  Authenticating with gds_sso strategy
510
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
509
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
511
510
   (0.1ms) begin transaction
512
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
513
-  (7.3ms) commit transaction
511
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]
512
+  (6.3ms) commit transaction
514
513
  Redirected to http://www.example-client.com/restricted
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
514
+ Completed 302 Found in 15ms (ActiveRecord: 7.3ms)
515
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
517
516
  Processing by ExampleController#restricted as HTML
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]]
519
- Rendering text template
520
- Rendered text template (0.0ms)
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
523
- Processing by ExampleController#this_requires_signin_permission as HTML
524
- Authenticating with gds_sso strategy
525
- Completed in 0ms (ActiveRecord: 0.0ms)
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
528
- Processing by AuthenticationsController#callback as HTML
529
- Parameters: {"code"=>"0b04d8c48e5fd2478fb8b3af84309f559c1ad05d1b1c21a11b833ce1593c6e39", "state"=>"e96239537c0c2f74d1dc27e2afb4bae334eaacb43215638c"}
530
- Authenticating with gds_sso strategy
531
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
532
-  (0.1ms) begin transaction
533
-  (0.0ms) commit transaction
534
- Redirected to http://www.example-client.com/this_requires_signin_permission
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
537
- Processing by ExampleController#this_requires_signin_permission as HTML
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]]
539
- Rendering text template
540
- Rendered text template (0.0ms)
541
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
542
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
543
- Processing by ExampleController#this_requires_signin_permission as HTML
544
- Authenticating with gds_sso strategy
545
- Completed in 0ms (ActiveRecord: 0.0ms)
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
548
- Processing by AuthenticationsController#callback as HTML
549
- Parameters: {"code"=>"6c400a531253b352933fa50caceeedd633c1a374f09dd76a3105e407f0e4446c", "state"=>"765e268bd9ca801419b7e71627eabed18c4ce8aa5c238e8e"}
550
- Authenticating with gds_sso strategy
551
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
552
-  (0.1ms) begin transaction
553
-  (0.1ms) commit transaction
554
- Redirected to http://www.example-client.com/this_requires_signin_permission
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
557
- Processing by ExampleController#this_requires_signin_permission as HTML
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]]
517
+ 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]]
559
518
  Rendering text template
560
519
  Rendered text template (0.0ms)
561
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
562
- Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:15 +0000
520
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
521
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
563
522
  Processing by ExampleController#index as HTML
564
523
  Rendering text template
565
524
  Rendered text template (0.0ms)
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
525
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
526
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
568
527
  Processing by ExampleController#restricted as HTML
569
528
  Authenticating with gds_sso strategy
570
- Completed in 0ms (ActiveRecord: 0.0ms)
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
529
+ Completed in 1ms (ActiveRecord: 0.0ms)
530
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
531
+ Started GET "/auth/gds/callback?code=0f74076b646e2d722ca5e5e57756fb0ca120aeb23eb74e209550c9621dd30e84&state=926444cec95118f3c97a745f362e04c7e13f92b1fee29fe1" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
573
532
  Processing by AuthenticationsController#callback as HTML
574
- Parameters: {"code"=>"03cb21cbed6480c2234f288bf81895fa754edaa6f48304ce92a28a156cc59e7b", "state"=>"195c2aef60ededea8d73dc1bea20607b63353f07897956b4"}
533
+ Parameters: {"code"=>"0f74076b646e2d722ca5e5e57756fb0ca120aeb23eb74e209550c9621dd30e84", "state"=>"926444cec95118f3c97a745f362e04c7e13f92b1fee29fe1"}
575
534
  Authenticating with gds_sso strategy
576
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
535
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
577
536
   (0.1ms) begin transaction
578
537
   (0.1ms) commit transaction
579
538
  Redirected to http://www.example-client.com/restricted
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
539
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
540
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
582
541
  Processing by ExampleController#restricted 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]]
542
+ 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]]
584
543
  Rendering text template
585
544
  Rendered text template (0.0ms)
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
545
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
546
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
588
547
  Processing by ExampleController#restricted as HTML
589
548
  Authenticating with gds_sso strategy
590
549
  Completed in 0ms (ActiveRecord: 0.0ms)
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
550
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
551
+ Started GET "/auth/gds/callback?code=0a931600e113e0f0916d5759bdf9155e664840d5a6abfdf8638191ffc446b413&state=d736d515ff987bd90fd1b83045cfb2ae2bb86d76da2d8307" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
593
552
  Processing by AuthenticationsController#callback as HTML
594
- Parameters: {"code"=>"30de01255a24d9dec3c93fadca99af449ed43e3949c83a6573c6ce1004a4fabe", "state"=>"a961609be14f7135eac870b4666dcb6201861f463104fc62"}
553
+ Parameters: {"code"=>"0a931600e113e0f0916d5759bdf9155e664840d5a6abfdf8638191ffc446b413", "state"=>"d736d515ff987bd90fd1b83045cfb2ae2bb86d76da2d8307"}
595
554
  Authenticating with gds_sso strategy
596
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
555
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
597
556
   (0.1ms) begin transaction
598
557
   (0.1ms) commit transaction
599
558
  Redirected to http://www.example-client.com/restricted
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
559
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
560
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
602
561
  Processing by ExampleController#restricted as HTML
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]]
562
+ 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]]
604
563
  Rendering text template
605
564
  Rendered text template (0.0ms)
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
608
- Processing by ExampleController#restricted as HTML
565
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
566
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
567
+ Processing by ExampleController#this_requires_signin_permission as HTML
609
568
  Authenticating with gds_sso strategy
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
569
+ Completed in 1ms (ActiveRecord: 0.0ms)
570
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:34 +0000
571
+ Started GET "/auth/gds/callback?code=b901872a1f093240a877cb3316be30b92d99d77db3198dd42b40c679758a6cee&state=1bdd936f2a7618eb2390833632a3d6421191c4e809c5b948" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
613
572
  Processing by AuthenticationsController#callback as HTML
614
- Parameters: {"code"=>"5e58bbe491f1453c00b63f73929b9c6531f82b91ef0e78b1dc660add49949cae", "state"=>"b87c0dbadc989a86f5582926f0a94eebf6ea7bedcc2e53bd"}
573
+ Parameters: {"code"=>"b901872a1f093240a877cb3316be30b92d99d77db3198dd42b40c679758a6cee", "state"=>"1bdd936f2a7618eb2390833632a3d6421191c4e809c5b948"}
615
574
  Authenticating with gds_sso strategy
616
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
575
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
617
576
   (0.1ms) begin transaction
618
577
   (0.1ms) commit transaction
619
- Redirected to http://www.example-client.com/restricted
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
622
- Processing by ExampleController#restricted as HTML
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]]
578
+ Redirected to http://www.example-client.com/this_requires_signin_permission
579
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
580
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
581
+ Processing by ExampleController#this_requires_signin_permission as HTML
582
+ 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]]
624
583
  Rendering text template
625
584
  Rendered text template (0.0ms)
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
628
- Processing by ExampleController#restricted as HTML
585
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
586
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
587
+ Processing by ExampleController#this_requires_signin_permission as HTML
629
588
  Authenticating with gds_sso strategy
630
589
  Completed in 0ms (ActiveRecord: 0.0ms)
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
590
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
591
+ Started GET "/auth/gds/callback?code=4976153c13193f07010ae49224509456baa1f0bef0e5b46123a32f24fc60eeaa&state=58a02b65a85e0bfa6b66b933dddf3107389e106a3b8a6c9a" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
592
+ Processing by AuthenticationsController#callback as HTML
593
+ Parameters: {"code"=>"4976153c13193f07010ae49224509456baa1f0bef0e5b46123a32f24fc60eeaa", "state"=>"58a02b65a85e0bfa6b66b933dddf3107389e106a3b8a6c9a"}
594
+ Authenticating with gds_sso strategy
595
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
596
+  (0.1ms) begin transaction
597
+  (0.1ms) commit transaction
598
+ Redirected to http://www.example-client.com/this_requires_signin_permission
599
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
600
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
601
+ Processing by ExampleController#this_requires_signin_permission as HTML
602
+ 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]]
603
+ Rendering text template
604
+ Rendered text template (0.0ms)
605
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
606
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
607
+ Processing by ExampleController#restricted as HTML
608
+ Authenticating with gds_sso strategy
609
+ Completed in 1ms (ActiveRecord: 0.0ms)
610
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
611
+ Started GET "/auth/gds/callback?code=cef27d6bd299b129b8e391f9885438fa3fb8eb8a8706c05327ed00b792c9a9e3&state=21a2bd01233c5f374ab27c6fe7edc38ed95fb5573d15bb19" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
633
612
  Processing by AuthenticationsController#callback as HTML
634
- Parameters: {"code"=>"77dd6a06bbc303a6203f8f87605ab5550216feae3c53db93960f2c8a5448847c", "state"=>"0a2a8378d8b0427ed04653829c9005e0ed93009063b46bcf"}
613
+ Parameters: {"code"=>"cef27d6bd299b129b8e391f9885438fa3fb8eb8a8706c05327ed00b792c9a9e3", "state"=>"21a2bd01233c5f374ab27c6fe7edc38ed95fb5573d15bb19"}
635
614
  Authenticating with gds_sso strategy
636
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
615
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
637
616
   (0.1ms) begin transaction
638
617
   (0.1ms) commit transaction
639
618
  Redirected to http://www.example-client.com/restricted
640
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
641
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:16 +0000
619
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
620
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
642
621
  Processing by ExampleController#restricted as HTML
643
622
  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]]
644
623
  Rendering text template
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
624
+ Rendered text template (0.0ms)
625
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
626
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:35 +0000
648
627
  Processing by ExampleController#restricted as HTML
649
628
  Authenticating with gds_sso strategy
650
- Completed in 0ms (ActiveRecord: 0.0ms)
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
629
+ Completed in 1ms (ActiveRecord: 0.0ms)
630
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:35 +0000
631
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
632
+ Processing by ExampleController#restricted as HTML
633
+ Authenticating with gds_sso strategy
634
+ Completed in 1ms (ActiveRecord: 0.0ms)
635
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:35 +0000
636
+ Started GET "/auth/gds/callback?code=733c566ec281b48841390fb5ce1a4367870c25e03716a8e9e72d262fcd0e69a1&state=6fea4856f5aaff154af8312dae04ac8ed36fb24293f49d0b" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
653
637
  Processing by AuthenticationsController#callback as HTML
654
- Parameters: {"code"=>"a998f94940f771e0e8e770236512a193763b529e98175513922a2b0bee22bd0b", "state"=>"3d00f54c2828456a0e02470c06fdcdf7d697ad6537fb85ca"}
638
+ Parameters: {"code"=>"733c566ec281b48841390fb5ce1a4367870c25e03716a8e9e72d262fcd0e69a1", "state"=>"6fea4856f5aaff154af8312dae04ac8ed36fb24293f49d0b"}
655
639
  Authenticating with gds_sso strategy
656
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
640
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
657
641
   (0.1ms) begin transaction
658
642
   (0.1ms) commit transaction
659
643
  Redirected to http://www.example-client.com/restricted
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
644
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
645
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
662
646
  Processing by ExampleController#restricted as HTML
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]]
647
+ 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]]
664
648
  Rendering text template
665
649
  Rendered text template (0.0ms)
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
650
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
651
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:29:36 +0000
668
652
  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]]
653
+ 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]]
670
654
  Rendering text template
671
655
  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
656
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
657
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
674
658
  Processing by ExampleController#restricted as HTML
675
659
  Authenticating with gds_sso strategy
676
- Completed in 0ms (ActiveRecord: 0.0ms)
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
660
+ Completed in 1ms (ActiveRecord: 0.0ms)
661
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
662
+ Started GET "/auth/gds/callback?code=6f6978c67e21a365bf30c9e64644c60995b4766ea9de384219d75403dd0ee549&state=c0a080b178d8f3cc4a1b379142a2668477d05d4f12c6a80c" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
679
663
  Processing by AuthenticationsController#callback as HTML
680
- Parameters: {"code"=>"e6b16c97c606e602c06aae707e5b94f217b33c6e2d3e883a8af27398f79668a3", "state"=>"42dcc37ebdbf81b486a19ccc8aa43a42417419ba00b188e0"}
664
+ Parameters: {"code"=>"6f6978c67e21a365bf30c9e64644c60995b4766ea9de384219d75403dd0ee549", "state"=>"c0a080b178d8f3cc4a1b379142a2668477d05d4f12c6a80c"}
681
665
  Authenticating with gds_sso strategy
682
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
666
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
683
667
   (0.1ms) begin transaction
684
668
   (0.1ms) commit transaction
685
669
  Redirected to http://www.example-client.com/restricted
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
670
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
671
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
688
672
  Processing by ExampleController#restricted as HTML
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]]
673
+ 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]]
690
674
  Rendering text template
691
675
  Rendered text template (0.0ms)
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
676
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
677
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:36 +0000
694
678
  Processing by ExampleController#restricted as HTML
695
679
  Authenticating with gds_sso strategy
696
- Completed in 1ms (ActiveRecord: 0.0ms)
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
680
+ Completed in 9ms (ActiveRecord: 0.0ms)
681
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:36 +0000
682
+ Started GET "/auth/gds/callback?code=7e2345c293dffd0c7d0859f5cc909c55f8c3cdcc7c9176514d995ee773b9cb7d&state=41867359d8536ed1992ee2643b0308c38a95d150d8b324cf" for 127.0.0.1 at 2018-02-09 08:39:36 +0000
683
+ Processing by AuthenticationsController#callback as HTML
684
+ Parameters: {"code"=>"7e2345c293dffd0c7d0859f5cc909c55f8c3cdcc7c9176514d995ee773b9cb7d", "state"=>"41867359d8536ed1992ee2643b0308c38a95d150d8b324cf"}
685
+ Authenticating with gds_sso strategy
686
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
+  (0.1ms) begin transaction
688
+  (0.1ms) commit transaction
689
+ Redirected to http://www.example-client.com/restricted
690
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
691
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:36 +0000
692
+ Processing by ExampleController#restricted as HTML
693
+ 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]]
694
+ Rendering text template
695
+ Rendered text template (0.0ms)
696
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
697
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
699
698
  Processing by ExampleController#restricted as HTML
700
699
  Authenticating with gds_sso strategy
701
700
  Completed in 0ms (ActiveRecord: 0.0ms)
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
701
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
702
+ Started GET "/auth/gds/callback?code=e943059dd3c1bb27c3f8da43006cedcbf4da44a8251d4cd2ae6a5e416588efce&state=199d5e963fb2d0c67d8a338dde4d1e8d122c5e288585f928" for 127.0.0.1 at 2018-02-08 12:34:36 +0000
704
703
  Processing by AuthenticationsController#callback as HTML
705
- Parameters: {"code"=>"a98605620a3252b49f52d649c68b378e9e08d0c747776b1ae0385e6411078a9f", "state"=>"782377e72efdbe0c2b66c925440a3fc5eaf03e9a1f834ae6"}
704
+ Parameters: {"code"=>"e943059dd3c1bb27c3f8da43006cedcbf4da44a8251d4cd2ae6a5e416588efce", "state"=>"199d5e963fb2d0c67d8a338dde4d1e8d122c5e288585f928"}
706
705
  Authenticating with gds_sso strategy
707
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
706
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
708
707
   (0.1ms) begin transaction
709
708
   (0.1ms) commit transaction
710
709
  Redirected to http://www.example-client.com/restricted
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
710
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
711
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:37 +0000
713
712
  Processing by ExampleController#restricted as HTML
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]]
713
+ 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]]
715
714
  Rendering text template
716
715
  Rendered text template (0.0ms)
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
716
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
717
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
718
+  (0.1ms) begin transaction
719
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
720
+  (5.2ms) commit transaction
721
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:37 +0000
723
722
  Processing by ExampleController#restricted as HTML
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]]
723
+ 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]]
725
724
  Authenticating with gds_sso strategy
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
725
+ Completed in 2ms (ActiveRecord: 0.4ms)
726
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:37 +0000
727
+ Started GET "/auth/gds/callback?code=9df48c2400444f28c50d4caa59f8cd72e4b41d4822326547d1f9d37bf9686d8e&state=d3ee4db37f3b45c976d5599a33b06f031e7e1160c3847d46" for 127.0.0.1 at 2018-02-08 12:34:37 +0000
729
728
  Processing by AuthenticationsController#callback as HTML
730
- Parameters: {"code"=>"a18d19dff286b1c94f19fe6899efa48d54cd7b0d86696af5158053a036d223fd", "state"=>"401b15a073056d265aae12704df93015d82a0094f29d6f8a"}
729
+ Parameters: {"code"=>"9df48c2400444f28c50d4caa59f8cd72e4b41d4822326547d1f9d37bf9686d8e", "state"=>"d3ee4db37f3b45c976d5599a33b06f031e7e1160c3847d46"}
731
730
  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]]
731
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
733
732
   (0.1ms) begin transaction
734
733
   (0.1ms) commit transaction
735
734
   (0.1ms) begin 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
735
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
736
+  (10.7ms) commit transaction
738
737
  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
738
+ Completed 302 Found in 20ms (ActiveRecord: 11.9ms)
739
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:37 +0000
741
740
  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]]
741
+ 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]]
743
742
  Rendering text template
744
743
  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)
744
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
745
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
746
+  (0.1ms) begin transaction
747
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "7439"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
748
+  (5.4ms) commit transaction
749
+  (0.1ms) begin transaction
750
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
751
+  (6.3ms) commit transaction
752
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
753
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
754
+  (0.2ms) begin transaction
755
+ SQL (0.4ms) 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]]
756
+  (5.5ms) commit transaction
757
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
758
+  (0.1ms) begin transaction
759
+  (0.1ms) commit transaction
760
+  (8.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') 
761
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
748
762
   (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"]]
763
+  (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
764
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
765
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
752
766
   (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
767
+ SQL (0.4ms) 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]]
768
+  (8.4ms) commit transaction
769
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
758
770
   (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
764
- Processing by Api::UserController#reauth as HTML
765
- Parameters: {"uid"=>"a1s2d3205"}
766
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
767
- Completed 403 Forbidden in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms)
771
+  (0.1ms) commit transaction
768
772
   (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
773
+ SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35219"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
774
+  (5.8ms) commit transaction
771
775
   (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
774
- Processing by Api::UserController#reauth as HTML
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"]]
776
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33293"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
777
+  (5.5ms) commit transaction
778
+ Processing by Api::UserController#update as HTML
779
+ Parameters: {"uid"=>"a1s2d35219"}
780
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35219"]]
777
781
   (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
+ SQL (0.4ms) 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]]
783
+  (5.5ms) commit transaction
784
+ Completed 200 OK in 13ms (ActiveRecord: 6.1ms)
785
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
782
786
   (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"]]
787
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32016"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
784
788
   (5.6ms) commit transaction
785
789
   (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"]]
790
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35282"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
791
+  (4.4ms) commit transaction
792
+ Processing by Api::UserController#update as HTML
793
+ Parameters: {"uid"=>"a1s2d32016"}
794
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
795
+ Completed 403 Forbidden in 27ms (Views: 26.8ms | ActiveRecord: 0.0ms)
796
+  (0.1ms) begin transaction
797
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38304"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
798
+  (5.5ms) commit transaction
799
+  (0.1ms) begin transaction
800
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32811"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
787
801
   (6.9ms) commit transaction
788
802
  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)
803
+ Parameters: {"uid"=>"a1s2d38304"}
804
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38304"]]
792
805
   (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"]]
806
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
794
807
   (6.2ms) commit transaction
808
+ Completed 200 OK in 10ms (ActiveRecord: 6.9ms)
809
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
810
+  (0.1ms) begin transaction
811
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3801"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
812
+  (5.5ms) commit transaction
795
813
   (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
798
- Processing by Api::UserController#update as HTML
799
- Parameters: {"uid"=>"a1s2d33259"}
800
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
801
- Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
814
+ SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32770"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
815
+  (6.7ms) commit transaction
816
+ Processing by Api::UserController#reauth as HTML
817
+ Parameters: {"uid"=>"a1s2d3801"}
818
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
819
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
802
820
   (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
821
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32379"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
822
+  (7.1ms) commit transaction
805
823
   (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
808
- Processing by Api::UserController#update as HTML
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"]]
824
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37249"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
825
+  (5.3ms) commit transaction
826
+ Processing by Api::UserController#reauth as HTML
827
+ Parameters: {"uid"=>"nonexistent-user"}
828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
829
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
830
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
831
+  (0.1ms) begin transaction
832
+ SQL (0.4ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "7434"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
833
+  (6.5ms) commit transaction
811
834
   (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
835
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
836
+  (6.1ms) commit transaction
837
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
817
838
  Processing by ExampleController#restricted as HTML
818
839
  Authenticating with gds_sso strategy
819
- Completed in 9ms (ActiveRecord: 0.0ms)
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
833
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
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"]]
837
-  (0.1ms) begin 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
842
-  (0.0ms) begin transaction
843
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
844
-  (7.0ms) commit transaction
845
- Rendered text template (0.0ms)
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"]]
840
+ Completed in 19ms (ActiveRecord: 0.0ms)
841
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
842
+ Started GET "/auth/gds/callback?code=4739a11f483abcd8ebdf64170ad790eb8eeebc84098ce50108a8e7dd41479708&state=940a69fd2083600a978032d9255b9b2c91a4383c479d2c3f" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
843
+ Processing by AuthenticationsController#callback as HTML
844
+ Parameters: {"code"=>"4739a11f483abcd8ebdf64170ad790eb8eeebc84098ce50108a8e7dd41479708", "state"=>"940a69fd2083600a978032d9255b9b2c91a4383c479d2c3f"}
845
+ Authenticating with gds_sso strategy
846
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
853
848
   (0.1ms) begin transaction
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"]]
849
+ SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
850
+  (6.9ms) commit transaction
856
851
   (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
861
-  (0.1ms) begin transaction
862
-  (0.0ms) commit transaction
852
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
853
+  (6.0ms) commit transaction
854
+ Redirected to http://www.example-client.com/restricted
855
+ Completed 302 Found in 24ms (ActiveRecord: 14.2ms)
856
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
857
+ Processing by ExampleController#restricted as HTML
858
+ User Load (0.4ms) 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"]]
863
859
  Rendered text template (0.0ms)
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
860
+ Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.4ms)
861
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
866
862
  Processing by ExampleController#restricted as HTML
867
863
  Authenticating with gds_sso strategy
868
864
  Completed in 0ms (ActiveRecord: 0.0ms)
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
865
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:46 +0000
866
+ Started GET "/auth/gds/callback?code=785d0b7a0fded9437df515778d1ecf901b9993da2beaf54e13a0fb8b6d65520c&state=875294be1e77af2e910108e3f3fab42d9d555dad808481fe" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
871
867
  Processing by AuthenticationsController#callback as HTML
872
- Parameters: {"code"=>"b43e7720850448d58a0fbb16aac9abbba5555d3dc9ba571fbda9193081f96be3", "state"=>"e90e55268e547d927b1656d5c1f7994019f4106e97e80bf6"}
868
+ Parameters: {"code"=>"785d0b7a0fded9437df515778d1ecf901b9993da2beaf54e13a0fb8b6d65520c", "state"=>"875294be1e77af2e910108e3f3fab42d9d555dad808481fe"}
873
869
  Authenticating with gds_sso strategy
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
878
-  (0.0ms) begin transaction
879
-  (0.0ms) commit transaction
870
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
871
+  (0.1ms) begin transaction
872
+  (0.1ms) commit transaction
873
+  (0.1ms) begin transaction
874
+  (0.1ms) commit transaction
880
875
  Redirected to http://www.example-client.com/restricted
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
876
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
877
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
883
878
  Processing by ExampleController#restricted as HTML
884
879
  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"]]
885
880
  Rendered text template (0.0ms)
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
881
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
882
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
888
883
  Processing by ExampleController#this_requires_signin_permission as HTML
889
884
  Authenticating with gds_sso strategy
890
885
  Completed in 0ms (ActiveRecord: 0.0ms)
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
886
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
887
+ Started GET "/auth/gds/callback?code=b1727727e652ae5815c0edc5159a888adf1bf4472df5b3ff84f152248770d34f&state=9075c5146f572de2503977f0c3921a095389f49e27da2c67" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
893
888
  Processing by AuthenticationsController#callback as HTML
894
- Parameters: {"code"=>"ad28c5b212a5014bde668312daed640902e06e87740bf9a670c455ddf0477f06", "state"=>"561135a89d12e6ef7b7dfa8068535ce6d3c2b1d016d05d9e"}
889
+ Parameters: {"code"=>"b1727727e652ae5815c0edc5159a888adf1bf4472df5b3ff84f152248770d34f", "state"=>"9075c5146f572de2503977f0c3921a095389f49e27da2c67"}
895
890
  Authenticating with gds_sso strategy
896
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
891
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
892
+  (0.1ms) begin transaction
893
+  (0.1ms) commit transaction
897
894
   (0.1ms) begin transaction
898
-  (0.0ms) commit transaction
899
-  (0.0ms) begin transaction
900
-  (0.0ms) commit transaction
895
+  (0.1ms) commit transaction
901
896
  Redirected to http://www.example-client.com/this_requires_signin_permission
902
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
903
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
897
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
898
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
904
899
  Processing by ExampleController#this_requires_signin_permission as HTML
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"]]
900
+ 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"]]
906
901
  Rendered text template (0.0ms)
907
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
908
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:23 +0000
902
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
903
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
909
904
  Processing by ExampleController#this_requires_signin_permission as HTML
910
905
  Authenticating with gds_sso strategy
911
906
  Completed in 0ms (ActiveRecord: 0.0ms)
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
907
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
908
+ Started GET "/auth/gds/callback?code=85ff6441fd1098c23254cf7bae6e316dd99368d6f8a9ec5f4552492a4cfe435b&state=385878b9b638cd5e6db311e244bc6119b49d58da08a77648" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
914
909
  Processing by AuthenticationsController#callback as HTML
915
- Parameters: {"code"=>"b8c4461438a6303cb6035a09e95123bba1b6657ec8341f7570a58663d6054196", "state"=>"5b690f193aa68e0ebf417044e31701552852f065af2974df"}
910
+ Parameters: {"code"=>"85ff6441fd1098c23254cf7bae6e316dd99368d6f8a9ec5f4552492a4cfe435b", "state"=>"385878b9b638cd5e6db311e244bc6119b49d58da08a77648"}
916
911
  Authenticating with gds_sso strategy
917
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
912
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
913
+  (0.1ms) begin transaction
914
+  (0.2ms) commit transaction
918
915
   (0.1ms) begin transaction
919
916
   (0.1ms) commit transaction
920
-  (0.0ms) begin transaction
921
-  (0.0ms) commit transaction
922
917
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
918
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
919
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
925
920
  Processing by ExampleController#this_requires_signin_permission as HTML
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"]]
921
+ 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"]]
927
922
  Rendered text template (0.0ms)
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
930
- Processing by ExampleController#restricted as HTML
931
- Authenticating with gds_sso strategy
932
- Completed in 0ms (ActiveRecord: 0.0ms)
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
935
- Processing by AuthenticationsController#callback as HTML
936
- Parameters: {"code"=>"975e5f50712651ecbef9c61594d6754bdd527da25fd8be5631e207c984cb2ccc", "state"=>"1aac7d835f566e4fb96f4f33527a0279f5481ebd839014c0"}
937
- Authenticating with gds_sso strategy
938
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
939
-  (0.1ms) begin transaction
940
-  (0.0ms) commit transaction
941
-  (0.0ms) begin transaction
942
-  (0.0ms) commit transaction
943
- Redirected to http://www.example-client.com/restricted
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
946
- Processing by ExampleController#restricted as HTML
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"]]
923
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
924
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
925
+ Processing by ExampleController#index as HTML
948
926
  Rendered text template (0.0ms)
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
927
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
928
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
951
929
  Processing by ExampleController#restricted as HTML
952
930
  Authenticating with gds_sso strategy
953
- Completed in 0ms (ActiveRecord: 0.0ms)
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
931
+ Completed in 1ms (ActiveRecord: 0.0ms)
932
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:47 +0000
933
+ Started GET "/auth/gds/callback?code=af1183090f7c86b04c2eb46f86d742fffebc164d242cf768dcb05be96ce09c3f&state=d6ec8faab9a27c43cb4fe93ccb6cc44c98367a91381ce36d" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
956
934
  Processing by AuthenticationsController#callback as HTML
957
- Parameters: {"code"=>"202556d7dc2f8b9066383e72bbd74a55602cd697827d37c2e4fa62ad11ff1268", "state"=>"e71db924cb8cfbb0fa3ac7ebbd10377082e80ea49afa24a9"}
935
+ Parameters: {"code"=>"af1183090f7c86b04c2eb46f86d742fffebc164d242cf768dcb05be96ce09c3f", "state"=>"d6ec8faab9a27c43cb4fe93ccb6cc44c98367a91381ce36d"}
958
936
  Authenticating with gds_sso strategy
959
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
937
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
938
+  (0.2ms) begin transaction
939
+  (0.1ms) commit transaction
960
940
   (0.1ms) begin transaction
961
-  (0.0ms) commit transaction
962
-  (0.0ms) begin transaction
963
-  (0.0ms) commit transaction
941
+  (0.1ms) commit transaction
964
942
  Redirected to http://www.example-client.com/restricted
965
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
966
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
943
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
944
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
967
945
  Processing by ExampleController#restricted as HTML
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"]]
969
- Rendered text template (0.0ms)
970
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
971
- Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
972
- Processing by ExampleController#index as HTML
946
+ 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"]]
973
947
  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
948
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
949
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
976
950
  Processing by ExampleController#restricted as HTML
977
951
  Authenticating with gds_sso strategy
978
- Completed in 0ms (ActiveRecord: 0.0ms)
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
952
+ Completed in 1ms (ActiveRecord: 0.0ms)
953
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
954
+ Started GET "/auth/gds/callback?code=9bdc3e80ba7e32a893a8794eace25f48c26a8d9f3de1b53a12c58e524c071943&state=bcb2ff281280fc94511636156e69852a5908a201334041b9" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
981
955
  Processing by AuthenticationsController#callback as HTML
982
- Parameters: {"code"=>"e260ffadd922aee49408fdba01481a53923ffa2f8462f23cccf62cbb999f9782", "state"=>"107bfc7e38eae0d08dc54d74ff14b15a9c967a57af421cb5"}
956
+ Parameters: {"code"=>"9bdc3e80ba7e32a893a8794eace25f48c26a8d9f3de1b53a12c58e524c071943", "state"=>"bcb2ff281280fc94511636156e69852a5908a201334041b9"}
983
957
  Authenticating with gds_sso strategy
984
958
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
959
+  (0.2ms) begin transaction
960
+  (0.1ms) commit transaction
985
961
   (0.1ms) begin transaction
986
-  (0.0ms) commit transaction
987
-  (0.0ms) begin transaction
988
-  (0.0ms) commit transaction
962
+  (0.1ms) commit transaction
989
963
  Redirected to http://www.example-client.com/restricted
990
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
991
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:24 +0000
964
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
965
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
992
966
  Processing by ExampleController#restricted as HTML
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"]]
967
+ User Load (0.3ms) 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"]]
994
968
  Rendered text template (0.0ms)
995
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
969
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
996
970
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
997
971
   (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
972
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
973
+  (4.9ms) commit transaction
974
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
1001
975
  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"]]
976
+ 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"]]
1003
977
  Authenticating with gds_sso strategy
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
978
+ Completed in 2ms (ActiveRecord: 0.2ms)
979
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
980
+ Started GET "/auth/gds/callback?code=445e139a698170bc331dea278fb7946f0836ae4c13fc1f8b7a1969ff995b1812&state=757eb97322ee40bf9b9ca670f411111c372391900bc5f538" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
1007
981
  Processing by AuthenticationsController#callback as HTML
1008
- Parameters: {"code"=>"f1533c60944399f1391a136290e5bfac751d61e1fb98ca9a75a421a666fd5702", "state"=>"c80c433c2aa454a67d9228e89f3d981d1929d677fcdc69bf"}
982
+ Parameters: {"code"=>"445e139a698170bc331dea278fb7946f0836ae4c13fc1f8b7a1969ff995b1812", "state"=>"757eb97322ee40bf9b9ca670f411111c372391900bc5f538"}
1009
983
  Authenticating with gds_sso strategy
1010
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
984
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1011
985
   (0.1ms) begin transaction
1012
986
   (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
987
+  (0.1ms) begin transaction
988
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
989
+  (7.1ms) commit transaction
1016
990
  Redirected to http://www.example-client.com/restricted
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
991
+ Completed 302 Found in 18ms (ActiveRecord: 7.9ms)
992
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
1019
993
  Processing by ExampleController#restricted as HTML
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"]]
994
+ 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"]]
1021
995
  Rendered text template (0.0ms)
1022
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1023
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:25 +0000
996
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
997
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
1024
998
  Processing by ExampleController#restricted as HTML
1025
999
  Authenticating with gds_sso strategy
1026
1000
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1001
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:48 +0000
1002
+ Started GET "/auth/gds/callback?code=d20f54aa80721efc5f8d0b3d0356940f375763fd44addc5f78646d62ee2b3edf&state=4078967dec1dd01dcf7910f84813af0671fa40d3c43abe07" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1029
1003
  Processing by AuthenticationsController#callback as HTML
1030
- Parameters: {"code"=>"ad908d82d833c29cec117f91462504cfed0a67cb9b7233fb0af9893ffc9ecd82", "state"=>"f6f9f89788416ca79638e59ea751a0bb916fa03d0819759b"}
1004
+ Parameters: {"code"=>"d20f54aa80721efc5f8d0b3d0356940f375763fd44addc5f78646d62ee2b3edf", "state"=>"4078967dec1dd01dcf7910f84813af0671fa40d3c43abe07"}
1031
1005
  Authenticating with gds_sso strategy
1032
1006
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1033
1007
   (0.1ms) begin transaction
1034
1008
   (0.1ms) commit transaction
1035
1009
   (0.1ms) begin transaction
1036
-  (0.0ms) commit transaction
1010
+  (0.1ms) commit transaction
1037
1011
  Redirected to http://www.example-client.com/restricted
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
1012
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1013
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1014
+ Processing by ExampleController#restricted as HTML
1015
+ 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"]]
1016
+ Rendered text template (0.1ms)
1017
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1018
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:29:49 +0000
1040
1019
  Processing by ExampleController#restricted as HTML
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"]]
1020
+ 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"]]
1042
1021
  Rendered text template (0.0ms)
1043
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1044
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:25 +0000
1022
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1023
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1045
1024
  Processing by ExampleController#restricted as HTML
1046
1025
  Authenticating with gds_sso strategy
1047
1026
  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
1027
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1028
+ Started GET "/auth/gds/callback?code=345be22bc7f3c8eb219d50db560dc0aa63177cf4cbc7bc81dfed10dd1be9d375&state=78b8b0e61a0097c42309286f29d57eb4861d48ed59dc9f82" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1055
1029
  Processing by AuthenticationsController#callback as HTML
1056
- Parameters: {"code"=>"d54a02d6befb119141bb82cd97f557576a575fb38635d0c1ed794a97884b1771", "state"=>"27889d6abe3e8df526d95349b3ef8a426266d11d4e4c02a9"}
1030
+ Parameters: {"code"=>"345be22bc7f3c8eb219d50db560dc0aa63177cf4cbc7bc81dfed10dd1be9d375", "state"=>"78b8b0e61a0097c42309286f29d57eb4861d48ed59dc9f82"}
1057
1031
  Authenticating with gds_sso strategy
1058
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1059
-  (0.1ms) begin transaction
1060
-  (0.1ms) commit transaction
1061
-  (0.0ms) begin transaction
1062
-  (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.3ms) begin transaction
1034
+  (0.1ms) commit transaction
1035
+  (0.1ms) begin transaction
1036
+  (0.1ms) commit transaction
1063
1037
  Redirected to http://www.example-client.com/restricted
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
1038
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
1039
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1066
1040
  Processing by ExampleController#restricted as HTML
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"]]
1041
+ 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"]]
1068
1042
  Rendered text template (0.0ms)
1069
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1070
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:11:25 +0000
1043
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
1044
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:49 +0000
1071
1045
  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
1046
+ Authenticating with gds_sso strategy
1047
+ Completed in 1ms (ActiveRecord: 0.0ms)
1048
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:49 +0000
1049
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1076
1050
  Processing by ExampleController#restricted as HTML
1077
1051
  Authenticating with gds_sso strategy
1078
1052
  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
1053
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1054
+ Started GET "/auth/gds/callback?code=102433edeec079b6f80533cb3a99233a34fcfe760dab94605f5d4b02cafc3d98&state=ccbe1f5c927d6a6438a4047cc631333ddeeb5a9a08ab0955" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1081
1055
  Processing by AuthenticationsController#callback as HTML
1082
- Parameters: {"code"=>"87b601ba35d1440b3ccf9392f2a6555b7a3f58663c455ec63e88a26a8716fe2b", "state"=>"430e76f078d97eb50813ac831178dbf427f7ab05ace93fd0"}
1056
+ Parameters: {"code"=>"102433edeec079b6f80533cb3a99233a34fcfe760dab94605f5d4b02cafc3d98", "state"=>"ccbe1f5c927d6a6438a4047cc631333ddeeb5a9a08ab0955"}
1083
1057
  Authenticating with gds_sso strategy
1084
- 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"]]
1059
+  (0.1ms) begin transaction
1060
+  (0.1ms) commit transaction
1085
1061
   (0.1ms) begin transaction
1086
-  (0.0ms) commit transaction
1087
-  (0.0ms) begin transaction
1088
1062
   (0.1ms) commit transaction
1089
1063
  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
1064
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
1065
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:49 +0000
1092
1066
  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"]]
1067
+ 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"]]
1094
1068
  Rendered text template (0.0ms)
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
1069
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1070
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:49 +0000
1097
1071
  Processing by ExampleController#restricted as HTML
1098
1072
  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
1073
+ Completed in 1ms (ActiveRecord: 0.0ms)
1074
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:39:49 +0000
1075
+ Started GET "/auth/gds/callback?code=ee1c93ab7d9de16f5b62325fcba1d3ef0cf137bbf621c531bca87b76d68b6d98&state=14b024ca931e2f383884cede11e8615857b1003b3675bb14" for 127.0.0.1 at 2018-02-09 08:39:49 +0000
1102
1076
  Processing by AuthenticationsController#callback as HTML
1103
- Parameters: {"code"=>"2018ac4d5ceee1b26137609fd9c339af949dcb288845e2bdd5b276dbf0321d2f", "state"=>"b163dea3674ef5feb70b88a71185a5a4cfa3ab911e7eb825"}
1077
+ Parameters: {"code"=>"ee1c93ab7d9de16f5b62325fcba1d3ef0cf137bbf621c531bca87b76d68b6d98", "state"=>"14b024ca931e2f383884cede11e8615857b1003b3675bb14"}
1104
1078
  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"]]
1079
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1106
1080
   (0.1ms) begin transaction
1107
1081
   (0.1ms) commit transaction
1108
1082
   (0.1ms) begin transaction
1109
1083
   (0.1ms) commit transaction
1110
1084
  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
1085
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
1086
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:39:50 +0000
1113
1087
  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
-  (0.1ms) DROP TABLE IF EXISTS "users"
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
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
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", "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
-  (0.1ms) begin transaction
1128
-  (0.0ms) commit transaction
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
1131
- Authenticating with gds_sso strategy
1132
- Completed in 6ms (ActiveRecord: 0.0ms)
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
1138
- User Load (0.2ms) 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]]
1140
-  (0.1ms) begin 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
1143
-  (0.1ms) begin 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]]
1151
- Rendering text template
1088
+ User Load (0.6ms) 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"]]
1152
1089
  Rendered text template (0.0ms)
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
1163
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1164
-  (0.1ms) begin transaction
1165
-  (0.1ms) commit transaction
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]]
1171
- Rendering text template
1172
- Rendered text template (0.0ms)
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
1090
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
1091
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:50 +0000
1175
1092
  Processing by ExampleController#restricted as HTML
1176
1093
  Authenticating with gds_sso strategy
1177
1094
  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
1180
- Processing by AuthenticationsController#callback as HTML
1181
- Parameters: {"code"=>"c38a4bb46e6f6345f1c9b4c0d29ae8afcc1d05d70e19eedcdac6242a2bba082f", "state"=>"8bb488516848ec1c43e85a2f48eddfb1854db8f1fce7942d"}
1182
- Authenticating with gds_sso strategy
1183
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1184
-  (0.0ms) begin transaction
1185
-  (0.0ms) commit transaction
1186
- Redirected to http://www.example-client.com/restricted
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
1189
- Processing by ExampleController#restricted as HTML
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]]
1191
- Rendering text template
1095
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:50 +0000
1096
+ Processing by ExampleController#restricted as JSON
1097
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1098
+  (0.2ms) begin transaction
1099
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1100
+  (6.5ms) commit transaction
1101
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1102
+  (0.1ms) begin transaction
1103
+  (0.1ms) commit transaction
1104
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1105
+  (0.1ms) begin transaction
1106
+  (0.1ms) commit transaction
1107
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1108
+  (0.4ms) begin transaction
1109
+  (0.4ms) commit transaction
1110
+  (0.1ms) begin transaction
1111
+  (0.1ms) commit transaction
1192
1112
  Rendered text template (0.0ms)
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
1196
- Authenticating with gds_sso strategy
1197
- Completed in 0ms (ActiveRecord: 0.0ms)
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
1200
- Processing by AuthenticationsController#callback as HTML
1201
- Parameters: {"code"=>"73de6d7cb00e3af01bcd18b1ac6f452422be789ca5c8ba94e7fc57d2f406676e", "state"=>"9e9902a5b41cecea2e9796e3c4742e26dda9d24fad0eeefb"}
1113
+ Completed 200 OK in 161ms (Views: 0.6ms | ActiveRecord: 9.0ms)
1114
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:50 +0000
1115
+ Processing by ExampleController#restricted as JSON
1116
+ Completed in 50ms (ActiveRecord: 0.0ms)
1117
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:50 +0000
1118
+ Processing by ExampleController#restricted as JSON
1119
+ Completed in 26ms (ActiveRecord: 0.0ms)
1120
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:50 +0000
1121
+ Processing by ExampleController#this_requires_signin_permission as JSON
1122
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1123
+  (0.1ms) begin transaction
1124
+  (0.1ms) commit transaction
1125
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1126
+  (0.1ms) begin transaction
1127
+  (0.1ms) commit transaction
1128
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1129
+  (0.1ms) begin transaction
1130
+  (0.1ms) commit transaction
1131
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1132
+  (0.1ms) begin transaction
1133
+  (0.1ms) commit transaction
1134
+  (0.1ms) begin transaction
1135
+  (0.1ms) commit transaction
1136
+ Rendered text template (0.0ms)
1137
+ Completed 200 OK in 140ms (Views: 0.6ms | ActiveRecord: 1.5ms)
1138
+  (0.2ms) DROP TABLE IF EXISTS "users"
1139
+  (2.2ms) SELECT sqlite_version(*)
1140
+  (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')
1141
+  (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1142
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1143
+  (0.1ms) begin transaction
1144
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-02-08 12:34:56.576582"], ["updated_at", "2018-02-08 12:34:56.576582"]]
1145
+  (5.8ms) commit transaction
1146
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1147
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1148
+  (0.1ms) begin transaction
1149
+  (0.1ms) commit transaction
1150
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1151
+  (0.1ms) begin transaction
1152
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "3861"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1153
+  (6.5ms) commit transaction
1154
+  (0.1ms) begin transaction
1155
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
1156
+  (4.4ms) commit transaction
1157
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1159
+  (0.1ms) begin transaction
1160
+ 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]]
1161
+  (4.4ms) commit transaction
1162
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1163
+  (0.1ms) begin transaction
1164
+  (0.1ms) commit transaction
1165
+  (0.1ms) begin transaction
1166
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34287"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1167
+  (6.6ms) commit transaction
1168
+  (0.1ms) begin transaction
1169
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36951"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1170
+  (4.4ms) commit transaction
1171
+ Processing by Api::UserController#update as HTML
1172
+ Parameters: {"uid"=>"a1s2d34287"}
1173
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1174
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1175
+ Completed 403 Forbidden in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)
1176
+  (0.1ms) begin transaction
1177
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31849"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1178
+  (5.6ms) commit transaction
1179
+  (0.1ms) begin transaction
1180
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38290"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1181
+  (5.2ms) commit transaction
1182
+ Processing by Api::UserController#update as HTML
1183
+ Parameters: {"uid"=>"a1s2d31849"}
1184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31849"], ["LIMIT", 1]]
1185
+  (0.1ms) begin transaction
1186
+ 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", 5]]
1187
+  (4.4ms) commit transaction
1188
+ Completed 200 OK in 8ms (ActiveRecord: 4.9ms)
1189
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1190
+  (0.1ms) begin transaction
1191
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32707"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1192
+  (6.6ms) commit transaction
1193
+  (0.1ms) begin transaction
1194
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36330"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1195
+  (5.6ms) commit transaction
1196
+ Processing by Api::UserController#reauth as HTML
1197
+ Parameters: {"uid"=>"a1s2d32707"}
1198
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1199
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1200
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1201
+  (0.1ms) begin transaction
1202
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35739"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1203
+  (5.7ms) commit transaction
1204
+  (0.1ms) begin transaction
1205
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3413"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1206
+  (5.2ms) commit transaction
1207
+ Processing by Api::UserController#reauth as HTML
1208
+ Parameters: {"uid"=>"a1s2d35739"}
1209
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35739"], ["LIMIT", 1]]
1210
+  (0.1ms) begin transaction
1211
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 9]]
1212
+  (5.6ms) commit transaction
1213
+ Completed 200 OK in 10ms (ActiveRecord: 6.2ms)
1214
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1215
+  (0.1ms) begin transaction
1216
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37118"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1217
+  (5.7ms) commit transaction
1218
+  (0.1ms) begin transaction
1219
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39642"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1220
+  (5.8ms) commit transaction
1221
+ Processing by Api::UserController#reauth as HTML
1222
+ Parameters: {"uid"=>"nonexistent-user"}
1223
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1224
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
1225
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1226
+ Processing by ExampleController#this_requires_signin_permission as HTML
1227
+ Authenticating with gds_sso strategy
1228
+ Completed in 11ms (ActiveRecord: 0.0ms)
1229
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1230
+ Started GET "/auth/gds/callback?code=9af7243c1ac724bfeeda182a5f25fadd8d47c03ddbc96ac1899e3c4ae7d32a59&state=26d434db4ecc9a77e5ce47dfff041811d85dbd4f15088b89" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1231
+ Processing by AuthenticationsController#callback as HTML
1232
+ Parameters: {"code"=>"9af7243c1ac724bfeeda182a5f25fadd8d47c03ddbc96ac1899e3c4ae7d32a59", "state"=>"26d434db4ecc9a77e5ce47dfff041811d85dbd4f15088b89"}
1233
+ Authenticating with gds_sso strategy
1234
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1235
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1236
+  (0.1ms) begin transaction
1237
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1238
+  (6.4ms) commit transaction
1239
+  (0.1ms) begin transaction
1240
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1241
+  (4.6ms) commit transaction
1242
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1243
+ Completed 302 Found in 23ms (ActiveRecord: 12.9ms)
1244
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1245
+ Processing by ExampleController#this_requires_signin_permission as HTML
1246
+ 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]]
1247
+ Rendering text template
1248
+ Rendered text template (0.0ms)
1249
+ Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.4ms)
1250
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1251
+ Processing by ExampleController#this_requires_signin_permission as HTML
1252
+ Authenticating with gds_sso strategy
1253
+ Completed in 0ms (ActiveRecord: 0.0ms)
1254
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:57 +0000
1255
+ Started GET "/auth/gds/callback?code=ef7ecf0f3e00b6e3b3ec52ab51701d6666c98ca428744612cb6181822a970558&state=03c36bd4f2d3ce8838266eb3de8515c5850e45231f529f18" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1256
+ Processing by AuthenticationsController#callback as HTML
1257
+ Parameters: {"code"=>"ef7ecf0f3e00b6e3b3ec52ab51701d6666c98ca428744612cb6181822a970558", "state"=>"03c36bd4f2d3ce8838266eb3de8515c5850e45231f529f18"}
1258
+ Authenticating with gds_sso strategy
1259
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1260
+  (0.1ms) begin transaction
1261
+  (0.1ms) commit transaction
1262
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1263
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1264
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1265
+ Processing by ExampleController#this_requires_signin_permission as HTML
1266
+ 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]]
1267
+ Rendering text template
1268
+ Rendered text template (0.0ms)
1269
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1270
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1271
+ Processing by ExampleController#restricted as HTML
1202
1272
  Authenticating with gds_sso strategy
1203
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1204
-  (0.0ms) begin transaction
1205
-  (0.0ms) commit transaction
1273
+ Completed in 1ms (ActiveRecord: 0.0ms)
1274
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1275
+ Started GET "/auth/gds/callback?code=cf796aed477875c71ffb7fc64921620f91b12bb794165afac3ee69c83b52809b&state=cd5d7ece9a1bd24010805d148e353641f8c58cffda4ec127" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1276
+ Processing by AuthenticationsController#callback as HTML
1277
+ Parameters: {"code"=>"cf796aed477875c71ffb7fc64921620f91b12bb794165afac3ee69c83b52809b", "state"=>"cd5d7ece9a1bd24010805d148e353641f8c58cffda4ec127"}
1278
+ Authenticating with gds_sso strategy
1279
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1280
+  (0.2ms) begin transaction
1281
+  (0.1ms) commit transaction
1206
1282
  Redirected to http://www.example-client.com/restricted
1207
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1208
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1283
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
1284
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1209
1285
  Processing by ExampleController#restricted as HTML
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]]
1286
+ 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]]
1211
1287
  Rendering text template
1212
1288
  Rendered text template (0.0ms)
1213
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1214
- Started GET "/" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1289
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1290
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1215
1291
  Processing by ExampleController#index as HTML
1216
1292
  Rendering text template
1217
1293
  Rendered text template (0.0ms)
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
1294
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1295
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1296
+ Processing by ExampleController#restricted as HTML
1297
+ Authenticating with gds_sso strategy
1298
+ Completed in 1ms (ActiveRecord: 0.0ms)
1299
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1300
+ Started GET "/auth/gds/callback?code=06eb6ce45a8b70ba29e781a64dd2283da3946b92c754ce19325e56026f2b233e&state=25d9a2c9d384ee8a223185d5581554287be3acaf8c73cf0d" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1301
+ Processing by AuthenticationsController#callback as HTML
1302
+ Parameters: {"code"=>"06eb6ce45a8b70ba29e781a64dd2283da3946b92c754ce19325e56026f2b233e", "state"=>"25d9a2c9d384ee8a223185d5581554287be3acaf8c73cf0d"}
1303
+ Authenticating with gds_sso strategy
1304
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1305
+  (0.2ms) begin transaction
1306
+  (0.1ms) commit transaction
1307
+ Redirected to http://www.example-client.com/restricted
1308
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
1309
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1310
+ Processing by ExampleController#restricted as HTML
1311
+ 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]]
1312
+ Rendering text template
1313
+ Rendered text template (0.0ms)
1314
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1315
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1220
1316
  Processing by ExampleController#restricted as HTML
1221
1317
  Authenticating with gds_sso strategy
1222
1318
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1319
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:58 +0000
1320
+ Started GET "/auth/gds/callback?code=8c3abefcaba41b602083524884e7253fda99bd6cf6abd5a0290cc6f4d2d756be&state=5d73527d853731d05753dd87e86acfb9fe3356ff656224c5" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1225
1321
  Processing by AuthenticationsController#callback as HTML
1226
- Parameters: {"code"=>"bd9ba3b67355cc8208df1dec441e3acc80455dd91c7334dce1e1e6b30cc43bb2", "state"=>"b7dee273dc2301ca31ec943fac81efab8f506645a89a4a50"}
1322
+ Parameters: {"code"=>"8c3abefcaba41b602083524884e7253fda99bd6cf6abd5a0290cc6f4d2d756be", "state"=>"5d73527d853731d05753dd87e86acfb9fe3356ff656224c5"}
1227
1323
  Authenticating with gds_sso strategy
1228
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1229
1325
   (0.1ms) begin transaction
1230
-  (0.0ms) commit transaction
1326
+  (0.1ms) commit transaction
1231
1327
  Redirected to http://www.example-client.com/restricted
1232
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1233
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1328
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1329
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1234
1330
  Processing by ExampleController#restricted as HTML
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]]
1331
+ 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]]
1236
1332
  Rendering text template
1237
1333
  Rendered text template (0.0ms)
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
1334
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1335
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1240
1336
  Processing by ExampleController#restricted as HTML
1241
1337
  Authenticating with gds_sso strategy
1242
1338
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1339
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1340
+ Started GET "/auth/gds/callback?code=9d78b2e636bda2d1da65cdd7ec4cd32e353a2b40ca1d3b1e50f58a0b03c03261&state=2756c214f6c38f31d25cf897a432ffbc04d5de5ff802751d" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1245
1341
  Processing by AuthenticationsController#callback as HTML
1246
- Parameters: {"code"=>"5ae2793133376ba020e354f32dcb6e916a2d1bea7565fdb9967acd170d9dbd42", "state"=>"2f3482b86e454876ce678417d934f70afc2dea7c63d35e2d"}
1342
+ Parameters: {"code"=>"9d78b2e636bda2d1da65cdd7ec4cd32e353a2b40ca1d3b1e50f58a0b03c03261", "state"=>"2756c214f6c38f31d25cf897a432ffbc04d5de5ff802751d"}
1247
1343
  Authenticating with gds_sso strategy
1248
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1344
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1249
1345
   (0.1ms) begin transaction
1250
-  (0.0ms) commit transaction
1346
+  (0.1ms) commit transaction
1251
1347
  Redirected to http://www.example-client.com/restricted
1252
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1253
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:33 +0000
1348
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
1349
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1254
1350
  Processing by ExampleController#restricted as HTML
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]]
1351
+ 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]]
1256
1352
  Rendering text template
1257
1353
  Rendered text template (0.0ms)
1258
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
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]]
1354
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1355
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1260
1356
   (0.1ms) begin transaction
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
1357
+ SQL (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1358
+  (8.5ms) commit transaction
1359
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1264
1360
  Processing by ExampleController#restricted as HTML
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]]
1361
+ 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]]
1266
1362
  Authenticating with gds_sso strategy
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
1363
+ Completed in 4ms (ActiveRecord: 0.4ms)
1364
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1365
+ Started GET "/auth/gds/callback?code=8d75295dee950d4e27afb5fa3c74a74bd3d9b49e5ae678e0150299178346ab05&state=f0683ba6b322a00e1b8fa85d417a4d04d318e01c80beb86d" for 127.0.0.1 at 2018-02-08 12:34:59 +0000
1270
1366
  Processing by AuthenticationsController#callback as HTML
1271
- Parameters: {"code"=>"0eb80c3582b538ea33f48bbde7765b4a757c2c684288b0f365802f81ed10a94d", "state"=>"59a0890064a4f89f2217c34f38ecf633d7c93f498cb500a7"}
1367
+ Parameters: {"code"=>"8d75295dee950d4e27afb5fa3c74a74bd3d9b49e5ae678e0150299178346ab05", "state"=>"f0683ba6b322a00e1b8fa85d417a4d04d318e01c80beb86d"}
1272
1368
  Authenticating with gds_sso strategy
1273
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1369
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1274
1370
   (0.1ms) begin 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
1371
+  (0.1ms) commit transaction
1372
+  (0.1ms) begin transaction
1373
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1374
+  (6.9ms) commit transaction
1279
1375
  Redirected to http://www.example-client.com/restricted
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
1376
+ Completed 302 Found in 16ms (ActiveRecord: 8.3ms)
1377
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1282
1378
  Processing by ExampleController#restricted as HTML
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]]
1379
+ 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]]
1284
1380
  Rendering text template
1285
1381
  Rendered text template (0.0ms)
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
1382
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1383
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1288
1384
  Processing by ExampleController#restricted as HTML
1289
1385
  Authenticating with gds_sso strategy
1290
- Completed in 0ms (ActiveRecord: 0.0ms)
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
1386
+ Completed in 1ms (ActiveRecord: 0.0ms)
1387
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1388
+ Started GET "/auth/gds/callback?code=1cb565292a6e21dd952e56386530d3f8ce14acfcbca26d453cd1934514037dee&state=3651845c88c128768aaeeff81019c1c5a11c1f1ccd5e71b2" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1293
1389
  Processing by AuthenticationsController#callback as HTML
1294
- Parameters: {"code"=>"c1fdf98b5a864edaf59fcd1e56055ab03e91cea5019ff7937bd5795cee4226f9", "state"=>"3349bb3c25b824fad9b7f19c292158c2d651bd18c6d9e619"}
1390
+ Parameters: {"code"=>"1cb565292a6e21dd952e56386530d3f8ce14acfcbca26d453cd1934514037dee", "state"=>"3651845c88c128768aaeeff81019c1c5a11c1f1ccd5e71b2"}
1295
1391
  Authenticating with gds_sso strategy
1296
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1392
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1297
1393
   (0.1ms) begin transaction
1298
1394
   (0.1ms) commit transaction
1299
1395
  Redirected to http://www.example-client.com/restricted
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
1396
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
1397
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1302
1398
  Processing by ExampleController#restricted as HTML
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]]
1399
+ 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]]
1304
1400
  Rendering text template
1305
- Rendered text template (0.0ms)
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
1401
+ Rendered text template (0.1ms)
1402
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1403
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:00 +0000
1308
1404
  Processing by ExampleController#restricted as HTML
1309
1405
  Authenticating with gds_sso strategy
1310
1406
  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
1407
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:00 +0000
1408
+ Started GET "/auth/gds/callback?code=0e20b04eec25e1573d0d08b65a0ed3ae33ed0124df1978ea689eca17029c028b&state=7f34d518ad87ceafbeb42f5defb4c0d61be49aab536a21eb" for 127.0.0.1 at 2018-02-09 08:40:00 +0000
1313
1409
  Processing by AuthenticationsController#callback as HTML
1314
- Parameters: {"code"=>"123efcc87f2412daa5e1ec5b16d8e99f19608c8c2a060f9b9118e9e819a6ef10", "state"=>"cbe8977a609bbbb011cf6abc9b9b53cb0c5d6a14756d7be4"}
1410
+ Parameters: {"code"=>"0e20b04eec25e1573d0d08b65a0ed3ae33ed0124df1978ea689eca17029c028b", "state"=>"7f34d518ad87ceafbeb42f5defb4c0d61be49aab536a21eb"}
1315
1411
  Authenticating with gds_sso strategy
1316
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1317
-  (0.1ms) begin transaction
1412
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1413
+  (0.2ms) begin transaction
1318
1414
   (0.1ms) commit transaction
1319
1415
  Redirected to http://www.example-client.com/restricted
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
1416
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1417
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:00 +0000
1322
1418
  Processing by ExampleController#restricted as HTML
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]]
1419
+ 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]]
1324
1420
  Rendering text template
1325
- Rendered text template (0.0ms)
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
1421
+ Rendered text template (0.1ms)
1422
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1423
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1328
1424
  Processing by ExampleController#restricted as HTML
1329
1425
  Authenticating with gds_sso strategy
1330
1426
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1427
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1428
+ Started GET "/auth/gds/callback?code=fd4be11484b5c5f77758ca697ed201dfa003a4fdfe5b3ce90c5cfc88587f8b01&state=1f0bb77e1b40c1bbbd2f85a383be0c97edc82d5e2e9e023f" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1333
1429
  Processing by AuthenticationsController#callback as HTML
1334
- Parameters: {"code"=>"611fe54437d99e9ef911f40f0eb6d88da725d6db15ab2839893ae823ec9fc1cf", "state"=>"bc388674129216ae86a40fda0bb2259b689b195cb130a47f"}
1430
+ Parameters: {"code"=>"fd4be11484b5c5f77758ca697ed201dfa003a4fdfe5b3ce90c5cfc88587f8b01", "state"=>"1f0bb77e1b40c1bbbd2f85a383be0c97edc82d5e2e9e023f"}
1335
1431
  Authenticating with gds_sso strategy
1336
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1432
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1337
1433
   (0.1ms) begin transaction
1338
1434
   (0.1ms) commit transaction
1339
1435
  Redirected to http://www.example-client.com/restricted
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
1436
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1437
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1342
1438
  Processing by ExampleController#restricted as HTML
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]]
1439
+ 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]]
1344
1440
  Rendering text template
1345
1441
  Rendered text template (0.0ms)
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
1442
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1443
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:30:00 +0000
1348
1444
  Processing by ExampleController#restricted as HTML
1349
- Authenticating with gds_sso strategy
1350
- Completed in 1ms (ActiveRecord: 0.0ms)
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
1445
+ 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]]
1446
+ Rendering text template
1447
+ Rendered text template (0.0ms)
1448
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
1449
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1353
1450
  Processing by ExampleController#restricted as HTML
1354
1451
  Authenticating with gds_sso strategy
1355
1452
  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
1453
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:00 +0000
1454
+ Started GET "/auth/gds/callback?code=84d6dd0567baf355853b3293a09241568f2afed1ded51bc2f110dfed92454548&state=49c3760f413ce5079b460207ea298b94f6fc73475094cb12" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1358
1455
  Processing by AuthenticationsController#callback as HTML
1359
- Parameters: {"code"=>"12cd97d03fa4a8af87cb27aee46071db01ea6660ef561c46956e2bd1e86d1d64", "state"=>"ce170ec55c3c39bd341a58bcca295dd7ec4b3b6c4e5a1bcc"}
1456
+ Parameters: {"code"=>"84d6dd0567baf355853b3293a09241568f2afed1ded51bc2f110dfed92454548", "state"=>"49c3760f413ce5079b460207ea298b94f6fc73475094cb12"}
1360
1457
  Authenticating with gds_sso strategy
1361
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1458
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1362
1459
   (0.1ms) begin transaction
1363
-  (0.1ms) commit transaction
1460
+  (0.2ms) commit transaction
1364
1461
  Redirected to http://www.example-client.com/restricted
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
1462
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
1463
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1367
1464
  Processing by ExampleController#restricted as HTML
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]]
1465
+ 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]]
1369
1466
  Rendering text template
1370
1467
  Rendered text template (0.0ms)
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
1468
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1469
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:01 +0000
1373
1470
  Processing by ExampleController#restricted as HTML
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]]
1375
- Rendering text template
1376
- Rendered text template (0.0ms)
1377
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
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
1471
+ Authenticating with gds_sso strategy
1472
+ Completed in 1ms (ActiveRecord: 0.0ms)
1473
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:01 +0000
1474
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1475
+ Processing by ExampleController#restricted as HTML
1476
+ Authenticating with gds_sso strategy
1477
+ Completed in 1ms (ActiveRecord: 0.0ms)
1478
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1382
1479
  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]]
1480
+ Completed in 30ms (ActiveRecord: 0.0ms)
1481
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1482
+ Processing by ExampleController#this_requires_signin_permission as JSON
1483
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1484
+  (0.1ms) begin transaction
1485
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1486
+  (6.5ms) commit transaction
1487
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1388
1488
   (0.1ms) begin transaction
1389
1489
   (0.1ms) commit transaction
1390
1490
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
@@ -1395,10 +1495,13 @@ Processing by ExampleController#restricted as JSON
1395
1495
   (0.1ms) commit transaction
1396
1496
  Rendering text template
1397
1497
  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]]
1498
+ Completed 200 OK in 131ms (Views: 0.6ms | ActiveRecord: 8.7ms)
1499
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1500
+ Processing by ExampleController#restricted as JSON
1501
+ Completed in 47ms (ActiveRecord: 0.0ms)
1502
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:01 +0000
1503
+ Processing by ExampleController#restricted as JSON
1504
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1402
1505
   (0.1ms) begin transaction
1403
1506
   (0.1ms) commit transaction
1404
1507
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
@@ -1412,438 +1515,363 @@ Processing by ExampleController#this_requires_signin_permission as JSON
1412
1515
   (0.1ms) commit transaction
1413
1516
  Rendering text template
1414
1517
  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]]
1424
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1425
-  (0.1ms) begin transaction
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]]
1427
-  (6.8ms) commit transaction
1428
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1429
-  (0.1ms) begin transaction
1430
-  (0.0ms) commit transaction
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
1518
+ Completed 200 OK in 130ms (Views: 0.6ms | ActiveRecord: 1.4ms)
1519
+  (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') 
1520
+  (6.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1521
+  (0.2ms) select sqlite_version(*)
1522
+  (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1523
+  (0.2ms) begin transaction
1524
+ SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38779"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1525
+  (7.3ms) commit transaction
1526
+  (0.1ms) begin transaction
1527
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31167"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1528
+  (5.0ms) commit transaction
1472
1529
  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
1530
+ Parameters: {"uid"=>"a1s2d38779"}
1531
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
1532
+ Completed 403 Forbidden in 27ms (Views: 26.4ms | ActiveRecord: 0.0ms)
1533
+  (0.1ms) begin transaction
1534
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36167"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1535
+  (5.4ms) commit transaction
1536
+  (0.1ms) begin transaction
1537
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38152"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1538
+  (5.7ms) commit transaction
1486
1539
  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
-  (0.1ms) select sqlite_version(*)
1494
-  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1540
+ Parameters: {"uid"=>"a1s2d36167"}
1541
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d36167"]]
1542
+  (0.1ms) begin transaction
1543
+ SQL (0.4ms) 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]]
1544
+  (6.1ms) commit transaction
1545
+ Completed 200 OK in 26ms (ActiveRecord: 7.0ms)
1546
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1547
+  (0.1ms) begin transaction
1548
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39125"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1549
+  (5.7ms) commit transaction
1495
1550
   (0.1ms) begin 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
-  (0.0ms) begin transaction
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
1551
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3868"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1552
+  (6.2ms) commit transaction
1501
1553
  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)
1554
+ Parameters: {"uid"=>"a1s2d39125"}
1555
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1556
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1505
1557
   (0.1ms) begin 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
1508
-  (0.0ms) begin 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
1558
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33167"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1559
+  (5.9ms) commit transaction
1560
+  (0.2ms) begin transaction
1561
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31544"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1562
+  (6.2ms) commit transaction
1511
1563
  Processing by Api::UserController#reauth as HTML
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"]]
1564
+ Parameters: {"uid"=>"a1s2d33167"}
1565
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33167"]]
1514
1566
   (0.1ms) begin 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]]
1567
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
1568
+  (6.5ms) commit transaction
1569
+ Completed 200 OK in 11ms (ActiveRecord: 7.1ms)
1570
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
1519
1571
   (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
1572
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36820"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1573
+  (4.9ms) commit transaction
1522
1574
   (0.1ms) begin 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
1575
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32742"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1576
+  (5.7ms) commit transaction
1525
1577
  Processing by Api::UserController#reauth as HTML
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)
1529
-  (0.1ms) begin transaction
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"]]
1578
+ Parameters: {"uid"=>"nonexistent-user"}
1579
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1580
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
1581
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1582
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1538
1583
   (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]]
1584
+ SQL (0.4ms) 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]]
1585
+  (5.5ms) commit transaction
1586
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1543
1587
   (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
1588
+  (0.1ms) commit transaction
1589
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1546
1590
   (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"]]
1591
+ SQL (0.4ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "4995"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1592
+  (7.3ms) commit transaction
1559
1593
   (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
1594
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
1595
+  (5.9ms) commit transaction
1596
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1562
1597
  Processing by ExampleController#restricted as HTML
1563
1598
  Authenticating with gds_sso strategy
1564
- Completed in 8ms (ActiveRecord: 0.0ms)
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
1599
+ Completed in 17ms (ActiveRecord: 0.0ms)
1600
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1601
+ Started GET "/auth/gds/callback?code=922fadee30090cbdcebda4d1db90e6501dcf38d45cd64253d613ad57c50768f6&state=1bd747ab2b82ee6a79ee5eb8e2bffea45c341903e92b0798" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1567
1602
  Processing by AuthenticationsController#callback as HTML
1568
- Parameters: {"code"=>"6106d79a79b74b6ce966fc681eadc9cf6183d8cafaac9e1d9aa03ea7c6e6be12", "state"=>"f153a3d2c341f99dc776933bbc53eca91287c695d2cc6239"}
1603
+ Parameters: {"code"=>"922fadee30090cbdcebda4d1db90e6501dcf38d45cd64253d613ad57c50768f6", "state"=>"1bd747ab2b82ee6a79ee5eb8e2bffea45c341903e92b0798"}
1569
1604
  Authenticating with gds_sso strategy
1570
- 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"]]
1572
-  (0.1ms) begin transaction
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
1575
-  (0.1ms) begin 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
1605
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1606
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1607
+  (0.2ms) begin transaction
1608
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
1609
+  (6.9ms) commit transaction
1610
+  (0.2ms) begin transaction
1611
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1612
+  (6.1ms) commit transaction
1578
1613
  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
1614
+ Completed 302 Found in 25ms (ActiveRecord: 14.2ms)
1615
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1581
1616
  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"]]
1617
+ User Load (0.4ms) 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"]]
1583
1618
  Rendered text template (0.0ms)
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
1619
+ Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
1620
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1586
1621
  Processing by ExampleController#restricted as HTML
1587
1622
  Authenticating with gds_sso strategy
1588
1623
  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
1624
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1625
+ Started GET "/auth/gds/callback?code=3cc116f044a0f1a5b73daa3fc2010923fd5cd407da471079c46b5ddfc16947cd&state=ce604ba4fd4c8f5492c81fb1a8793a206e70ead154bd5daf" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1591
1626
  Processing by AuthenticationsController#callback as HTML
1592
- Parameters: {"code"=>"537ea2c55975819c6dcf755928345c86fc3ebf88017260f4d915da9bb0e01f74", "state"=>"cd553d8d2c035594abc2d5790a4c8ad05d5ca54d333801a8"}
1627
+ Parameters: {"code"=>"3cc116f044a0f1a5b73daa3fc2010923fd5cd407da471079c46b5ddfc16947cd", "state"=>"ce604ba4fd4c8f5492c81fb1a8793a206e70ead154bd5daf"}
1593
1628
  Authenticating with gds_sso strategy
1594
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1595
-  (0.1ms) begin transaction
1596
-  (0.0ms) commit transaction
1597
-  (0.0ms) begin transaction
1598
-  (0.0ms) commit transaction
1629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1630
+  (0.1ms) begin transaction
1631
+  (0.1ms) commit transaction
1632
+  (0.1ms) begin transaction
1633
+  (0.1ms) commit transaction
1599
1634
  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
1635
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
1636
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1602
1637
  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"]]
1604
- Rendered text template (0.0ms)
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
1638
+ 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"]]
1608
1639
  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
1640
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
1641
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1611
1642
  Processing by ExampleController#restricted as HTML
1612
1643
  Authenticating with gds_sso strategy
1613
1644
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1645
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:10 +0000
1646
+ Started GET "/auth/gds/callback?code=9e92cc0e05edcf84fa2fbfce736bf7826cbaa5c08387a20255f5ca7c170ec762&state=be34c97b502d163149879b9e84035490fd74561d5904d1a2" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1616
1647
  Processing by AuthenticationsController#callback as HTML
1617
- Parameters: {"code"=>"75762056352bf45881acad93cf87b40584548efe92ca742d40eea5796e7f95d1", "state"=>"60274fa363afb7ea3c4e855de18380b22dd6564878783054"}
1648
+ Parameters: {"code"=>"9e92cc0e05edcf84fa2fbfce736bf7826cbaa5c08387a20255f5ca7c170ec762", "state"=>"be34c97b502d163149879b9e84035490fd74561d5904d1a2"}
1618
1649
  Authenticating with gds_sso strategy
1619
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1620
-  (0.1ms) begin transaction
1621
-  (0.0ms) commit transaction
1622
-  (0.0ms) begin transaction
1623
-  (0.1ms) commit transaction
1650
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1651
+  (0.1ms) begin transaction
1652
+  (0.1ms) commit transaction
1653
+  (0.1ms) begin transaction
1654
+  (0.1ms) commit transaction
1624
1655
  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
1656
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1657
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1627
1658
  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"]]
1659
+ 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"]]
1629
1660
  Rendered text template (0.0ms)
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
1661
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1662
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1632
1663
  Processing by ExampleController#this_requires_signin_permission as HTML
1633
1664
  Authenticating with gds_sso strategy
1634
1665
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1666
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1667
+ Started GET "/auth/gds/callback?code=678dfb75630433aacb9bc9eb92d7d42478df658a8272f7f7d410f153b256d5bd&state=ea15ee062a93e39372d8e1e5468fa45abbbd028830c39aae" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1637
1668
  Processing by AuthenticationsController#callback as HTML
1638
- Parameters: {"code"=>"9f2b674c802fb034c682048ed6fbcde2488bcdbc3ec8168298118af59d6e044e", "state"=>"7f43402cf964163c666a8cae676b451ebdf47254573162fa"}
1669
+ Parameters: {"code"=>"678dfb75630433aacb9bc9eb92d7d42478df658a8272f7f7d410f153b256d5bd", "state"=>"ea15ee062a93e39372d8e1e5468fa45abbbd028830c39aae"}
1639
1670
  Authenticating with gds_sso strategy
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
1671
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1672
+  (0.1ms) begin transaction
1673
+  (0.1ms) commit transaction
1674
+  (0.1ms) begin transaction
1675
+  (0.1ms) commit transaction
1645
1676
  Redirected to http://www.example-client.com/this_requires_signin_permission
1646
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1647
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1677
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1678
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1648
1679
  Processing by ExampleController#this_requires_signin_permission as HTML
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"]]
1680
+ 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"]]
1650
1681
  Rendered text template (0.0ms)
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
1682
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1683
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1653
1684
  Processing by ExampleController#this_requires_signin_permission as HTML
1654
1685
  Authenticating with gds_sso strategy
1655
1686
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1687
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1688
+ Started GET "/auth/gds/callback?code=9f18d90444de6194014b4aadc03307939b4f41372cbe3e27e180a07ad891d2f2&state=1c1397b30ccbbc9d8eae9b0ceeac969c802271b4d5bed10d" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1658
1689
  Processing by AuthenticationsController#callback as HTML
1659
- Parameters: {"code"=>"ed46f97d99c5ad6f300cdda521b8c1f64e0c44dfd7db2322da18a68f034837eb", "state"=>"2fde8b89ee229191745897442c29fd955af24b299d3353b4"}
1690
+ Parameters: {"code"=>"9f18d90444de6194014b4aadc03307939b4f41372cbe3e27e180a07ad891d2f2", "state"=>"1c1397b30ccbbc9d8eae9b0ceeac969c802271b4d5bed10d"}
1660
1691
  Authenticating with gds_sso strategy
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
1692
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1693
+  (0.1ms) begin transaction
1694
+  (0.1ms) commit transaction
1695
+  (0.1ms) begin transaction
1696
+  (0.1ms) commit transaction
1666
1697
  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
1698
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1699
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1669
1700
  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"]]
1701
+ 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"]]
1671
1702
  Rendered text template (0.0ms)
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
1703
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1704
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1705
+ Processing by ExampleController#index as HTML
1706
+ Rendered text template (0.1ms)
1707
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1708
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1674
1709
  Processing by ExampleController#restricted as HTML
1675
1710
  Authenticating with gds_sso strategy
1676
1711
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1712
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:11 +0000
1713
+ Started GET "/auth/gds/callback?code=cbf7bbeef9b1e602db3d2867cbebb35827a5679a49e5914adc28a94f806b9d4d&state=10608cad5cd2c8c0d6c0e74f8bebd848e66a1c611727f430" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1679
1714
  Processing by AuthenticationsController#callback as HTML
1680
- Parameters: {"code"=>"1176766ab4954ad6859e4dd74e8451b2e7ff2c24f7bf2a9f4195cfca1a04887d", "state"=>"22615fea0ce095a9335bdd74c0ff84b4962a30de5fbf53ab"}
1715
+ Parameters: {"code"=>"cbf7bbeef9b1e602db3d2867cbebb35827a5679a49e5914adc28a94f806b9d4d", "state"=>"10608cad5cd2c8c0d6c0e74f8bebd848e66a1c611727f430"}
1681
1716
  Authenticating with gds_sso strategy
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
1717
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1718
+  (0.1ms) begin transaction
1719
+  (0.1ms) commit transaction
1720
+  (0.1ms) begin transaction
1721
+  (0.1ms) commit transaction
1687
1722
  Redirected to http://www.example-client.com/restricted
1688
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1689
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1690
- Processing by ExampleController#restricted as HTML
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"]]
1692
- Rendered text template (0.0ms)
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
1723
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1724
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1695
1725
  Processing by ExampleController#restricted as HTML
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"]]
1726
+ 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"]]
1697
1727
  Rendered text template (0.0ms)
1698
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1699
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:42 +0000
1728
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1729
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1730
+  (0.1ms) begin transaction
1731
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1732
+  (6.6ms) commit transaction
1733
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1700
1734
  Processing by ExampleController#restricted as HTML
1735
+ 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"]]
1701
1736
  Authenticating with gds_sso strategy
1702
- Completed in 0ms (ActiveRecord: 0.0ms)
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
1737
+ Completed in 2ms (ActiveRecord: 0.1ms)
1738
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1739
+ Started GET "/auth/gds/callback?code=f39e57f5ec4fb1e28cde28599e288c92d097da75b49d14c68f84b797e0896cd8&state=e370235bfce5e63ef45ea4b056484aa44cf8397c4aa898bb" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1705
1740
  Processing by AuthenticationsController#callback as HTML
1706
- Parameters: {"code"=>"8d1bde939b83603fedd3af07e0c33fdfbb6e8865854eea34291da532773df4a0", "state"=>"1593a7cf9b1b98e2bd7c669230a893b4823f8fb2de2646b7"}
1741
+ Parameters: {"code"=>"f39e57f5ec4fb1e28cde28599e288c92d097da75b49d14c68f84b797e0896cd8", "state"=>"e370235bfce5e63ef45ea4b056484aa44cf8397c4aa898bb"}
1707
1742
  Authenticating with gds_sso strategy
1708
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1709
-  (0.1ms) begin transaction
1710
-  (0.1ms) commit transaction
1711
-  (0.0ms) begin transaction
1712
-  (0.0ms) commit transaction
1743
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1744
+  (0.1ms) begin transaction
1745
+  (0.1ms) commit transaction
1746
+  (0.1ms) begin transaction
1747
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1748
+  (20.7ms) commit transaction
1713
1749
  Redirected to http://www.example-client.com/restricted
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
1750
+ Completed 302 Found in 28ms (ActiveRecord: 21.5ms)
1751
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1716
1752
  Processing by ExampleController#restricted as HTML
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"]]
1753
+ 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"]]
1718
1754
  Rendered text template (0.0ms)
1719
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1720
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1755
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1756
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1721
1757
  Processing by ExampleController#restricted as HTML
1722
1758
  Authenticating with gds_sso strategy
1723
1759
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1760
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1761
+ Started GET "/auth/gds/callback?code=5c7add1bb87111e8229f3b0af67cd1744ab750f21abcc3aa0bfb2c1e60ba7100&state=3d02f060cb789adf9b948dd34fbfbf211566b712889d5a27" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1726
1762
  Processing by AuthenticationsController#callback as HTML
1727
- Parameters: {"code"=>"12140e420d4d908b4b64d228583445680dcf7909e2197b9b736172bb7701797f", "state"=>"c235ca078b03dc2b41f2801367dfd1b9677716ed9a774544"}
1763
+ Parameters: {"code"=>"5c7add1bb87111e8229f3b0af67cd1744ab750f21abcc3aa0bfb2c1e60ba7100", "state"=>"3d02f060cb789adf9b948dd34fbfbf211566b712889d5a27"}
1728
1764
  Authenticating with gds_sso strategy
1729
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1765
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1730
1766
   (0.1ms) begin transaction
1731
1767
   (0.1ms) commit transaction
1732
1768
   (0.1ms) begin transaction
1733
1769
   (0.1ms) commit transaction
1734
1770
  Redirected to http://www.example-client.com/restricted
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
1771
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1772
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1737
1773
  Processing by ExampleController#restricted as HTML
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"]]
1774
+ 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"]]
1739
1775
  Rendered text template (0.0ms)
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
1776
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1777
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:12 +0000
1778
+ Processing by ExampleController#restricted as HTML
1779
+ Authenticating with gds_sso strategy
1780
+ Completed in 1ms (ActiveRecord: 0.0ms)
1781
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:12 +0000
1782
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1742
1783
  Processing by ExampleController#restricted as HTML
1743
1784
  Authenticating with gds_sso strategy
1744
1785
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1786
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:12 +0000
1787
+ Started GET "/auth/gds/callback?code=d9af6b7311360a4d09e6beffa720f23dd1abf696bd543eb54bfdfe3aa3aa29f3&state=054693995d098c042a0409a7df5bc738ad39dd74305c8878" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1747
1788
  Processing by AuthenticationsController#callback as HTML
1748
- Parameters: {"code"=>"16ac32f84623ed4f68818264eb2ef44114b1a87676cd2cb44b4741e573f8fa23", "state"=>"c9d60f158b3ee597fe06ff96fe18a421f81d0a52b4ed67f3"}
1789
+ Parameters: {"code"=>"d9af6b7311360a4d09e6beffa720f23dd1abf696bd543eb54bfdfe3aa3aa29f3", "state"=>"054693995d098c042a0409a7df5bc738ad39dd74305c8878"}
1749
1790
  Authenticating with gds_sso strategy
1750
1791
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1751
1792
   (0.1ms) begin transaction
1752
-  (0.0ms) commit transaction
1793
+  (0.1ms) commit transaction
1753
1794
   (0.1ms) begin transaction
1754
-  (0.0ms) commit transaction
1795
+  (0.1ms) commit transaction
1755
1796
  Redirected to http://www.example-client.com/restricted
1756
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1757
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:43 +0000
1797
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1798
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1758
1799
  Processing by ExampleController#restricted as HTML
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
+ 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"]]
1760
1801
  Rendered text template (0.0ms)
1761
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1762
- Started GET "/restricted" for 127.0.0.1 at 2018-01-24 13:21:43 +0000
1802
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1803
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:30:13 +0000
1763
1804
  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
1805
+ 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"]]
1806
+ Rendered text template (0.0ms)
1807
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1808
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1768
1809
  Processing by ExampleController#restricted as HTML
1769
1810
  Authenticating with gds_sso strategy
1770
1811
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1812
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1813
+ Started GET "/auth/gds/callback?code=554f6372219e0526f841246a888938fdb280266920c5713688387e100ee8c2e3&state=4867f16b47e36e99d7ce17ec09c5d8ed1e72348e3aab9771" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1773
1814
  Processing by AuthenticationsController#callback as HTML
1774
- Parameters: {"code"=>"90d741d593cffcaa80b0bc5b5d2de50e4dc5acaeadf41743a1b8084f44897c32", "state"=>"f5fb0f62b214bd9b9e90f506e366e3edb85d635d540d93e3"}
1815
+ Parameters: {"code"=>"554f6372219e0526f841246a888938fdb280266920c5713688387e100ee8c2e3", "state"=>"4867f16b47e36e99d7ce17ec09c5d8ed1e72348e3aab9771"}
1775
1816
  Authenticating with gds_sso strategy
1776
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1777
-  (0.1ms) begin transaction
1778
-  (0.0ms) commit transaction
1779
-  (0.0ms) begin transaction
1780
-  (0.0ms) commit transaction
1817
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1818
+  (0.1ms) begin transaction
1819
+  (0.1ms) commit transaction
1820
+  (0.1ms) begin transaction
1821
+  (0.1ms) commit transaction
1781
1822
  Redirected to http://www.example-client.com/restricted
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
1823
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1824
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1784
1825
  Processing by ExampleController#restricted as HTML
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"]]
1826
+ 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"]]
1786
1827
  Rendered text template (0.0ms)
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
1828
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1829
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:13 +0000
1793
1830
  Processing by ExampleController#restricted as HTML
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"]]
1795
1831
  Authenticating with gds_sso strategy
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
1832
+ Completed in 1ms (ActiveRecord: 0.0ms)
1833
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:13 +0000
1834
+ Started GET "/auth/gds/callback?code=887524eabd650c84d480a9b860d0264a5e0a40e1dc6b080d7ea38290a2f8d815&state=c73bc03a1883b7a940b6c85b30a328b649653918d8aea5f5" for 127.0.0.1 at 2018-02-09 08:40:13 +0000
1799
1835
  Processing by AuthenticationsController#callback as HTML
1800
- Parameters: {"code"=>"afc5d8ec921423e82ded653ce384613f07962359d1d331d654a8c735a83b3ba3", "state"=>"2eda5b67171a2e64f78f886ab25a9877673ac8101e911645"}
1836
+ Parameters: {"code"=>"887524eabd650c84d480a9b860d0264a5e0a40e1dc6b080d7ea38290a2f8d815", "state"=>"c73bc03a1883b7a940b6c85b30a328b649653918d8aea5f5"}
1801
1837
  Authenticating with gds_sso strategy
1802
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1838
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1839
+  (0.1ms) begin transaction
1840
+  (0.1ms) commit transaction
1803
1841
   (0.1ms) begin transaction
1804
1842
   (0.1ms) commit transaction
1805
-  (0.0ms) begin 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
1808
1843
  Redirected to http://www.example-client.com/restricted
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
1844
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1845
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:13 +0000
1811
1846
  Processing by ExampleController#restricted as HTML
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
+ 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"]]
1813
1848
  Rendered text template (0.0ms)
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
1816
- Processing by ExampleController#restricted as HTML
1817
- Authenticating with gds_sso strategy
1818
- Completed in 0ms (ActiveRecord: 0.0ms)
1819
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:44 +0000
1849
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1850
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1820
1851
  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"]]
1822
-  (0.1ms) begin transaction
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"]]
1852
+ Completed in 51ms (ActiveRecord: 0.0ms)
1853
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1854
+ Processing by ExampleController#this_requires_signin_permission as JSON
1855
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1856
+  (0.2ms) begin transaction
1857
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1858
+  (6.3ms) commit transaction
1859
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1829
1860
   (0.1ms) begin transaction
1830
1861
   (0.1ms) commit transaction
1831
1862
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1832
1863
   (0.1ms) begin transaction
1833
-  (0.0ms) commit transaction
1834
-  (0.0ms) begin transaction
1835
-  (0.0ms) commit transaction
1864
+  (0.1ms) commit transaction
1865
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1866
+  (0.1ms) begin transaction
1867
+  (0.1ms) commit transaction
1868
+  (0.1ms) begin transaction
1869
+  (0.1ms) commit transaction
1836
1870
  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
1871
+ Completed 200 OK in 129ms (Views: 0.6ms | ActiveRecord: 8.1ms)
1872
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:13 +0000
1839
1873
  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"]]
1874
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1847
1875
   (0.1ms) begin transaction
1848
1876
   (0.1ms) commit transaction
1849
1877
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
@@ -1851,385 +1879,399 @@ Processing by ExampleController#this_requires_signin_permission as JSON
1851
1879
   (0.1ms) commit transaction
1852
1880
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1853
1881
   (0.1ms) begin transaction
1854
-  (0.0ms) commit transaction
1855
-  (0.1ms) begin transaction
1856
-  (0.0ms) commit transaction
1882
+  (0.1ms) commit transaction
1883
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1884
+  (0.1ms) begin transaction
1885
+  (0.1ms) commit transaction
1886
+  (0.1ms) begin transaction
1887
+  (0.1ms) commit transaction
1857
1888
  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
1889
+ Completed 200 OK in 116ms (Views: 0.4ms | ActiveRecord: 1.3ms)
1890
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:14 +0000
1860
1891
  Processing by ExampleController#restricted as JSON
1861
1892
  Completed in 24ms (ActiveRecord: 0.0ms)
1862
-  (0.1ms) DROP TABLE IF EXISTS "users"
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)
1866
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1893
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:14 +0000
1894
+ Processing by ExampleController#restricted as HTML
1895
+ Authenticating with gds_sso strategy
1896
+ Completed in 0ms (ActiveRecord: 0.0ms)
1897
+  (0.2ms) DROP TABLE IF EXISTS "users"
1898
+  (1.7ms) SELECT sqlite_version(*)
1899
+  (8.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')
1900
+  (7.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1901
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1867
1902
   (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", "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]]
1872
-  (0.0ms) begin transaction
1873
-  (0.0ms) commit transaction
1903
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-02-08 12:35:20.397485"], ["updated_at", "2018-02-08 12:35:20.397485"]]
1904
+  (6.4ms) commit transaction
1905
+  (6.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1906
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1907
+  (0.1ms) begin transaction
1908
+  (0.1ms) commit transaction
1909
+  (0.1ms) begin transaction
1910
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38555"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1911
+  (6.5ms) commit transaction
1912
+  (0.1ms) begin transaction
1913
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34557"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1914
+  (4.4ms) commit transaction
1915
+ Processing by Api::UserController#update as HTML
1916
+ Parameters: {"uid"=>"a1s2d38555"}
1917
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38555"], ["LIMIT", 1]]
1918
+  (0.1ms) begin transaction
1919
+ SQL (0.3ms) 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]]
1920
+  (5.6ms) commit transaction
1921
+ Completed 200 OK in 11ms (ActiveRecord: 6.2ms)
1922
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1923
+  (0.1ms) begin transaction
1924
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37911"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1925
+  (5.0ms) commit transaction
1926
+  (0.1ms) begin transaction
1927
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32835"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1928
+  (5.6ms) commit transaction
1929
+ Processing by Api::UserController#update as HTML
1930
+ Parameters: {"uid"=>"a1s2d37911"}
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.3ms)
1933
+ Completed 403 Forbidden in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)
1934
+  (0.1ms) begin transaction
1935
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32101"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1936
+  (7.1ms) commit transaction
1937
+  (0.1ms) begin transaction
1938
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31994"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1939
+  (8.8ms) commit transaction
1940
+ Processing by Api::UserController#reauth as HTML
1941
+ Parameters: {"uid"=>"a1s2d32101"}
1942
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1943
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1944
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1945
+  (0.1ms) begin transaction
1946
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36631"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1947
+  (6.9ms) commit transaction
1948
+  (0.1ms) begin transaction
1949
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35426"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1950
+  (4.9ms) commit transaction
1951
+ Processing by Api::UserController#reauth as HTML
1952
+ Parameters: {"uid"=>"a1s2d36631"}
1953
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36631"], ["LIMIT", 1]]
1954
+  (0.1ms) begin transaction
1955
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
1956
+  (7.2ms) commit transaction
1957
+ Completed 200 OK in 11ms (ActiveRecord: 7.7ms)
1958
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
1959
+  (0.1ms) begin transaction
1960
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38855"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1961
+  (8.2ms) commit transaction
1962
+  (0.1ms) begin transaction
1963
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35784"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1964
+  (5.9ms) commit transaction
1965
+ Processing by Api::UserController#reauth as HTML
1966
+ Parameters: {"uid"=>"nonexistent-user"}
1967
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1968
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
1874
1969
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1875
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1970
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1876
1971
   (0.1ms) begin transaction
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]]
1878
-  (6.7ms) commit transaction
1879
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1880
-  (0.0ms) begin transaction
1881
-  (0.0ms) 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
1888
- Rendering text template
1889
- Rendered text template (0.0ms)
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
1972
+ SQL (0.4ms) 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]]
1973
+  (9.5ms) commit transaction
1974
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1975
+  (0.1ms) begin transaction
1976
+  (0.1ms) commit transaction
1977
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1978
+  (0.1ms) begin transaction
1979
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2096"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1980
+  (7.0ms) commit transaction
1981
+  (0.1ms) begin transaction
1982
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
1983
+  (8.5ms) commit transaction
1984
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
1892
1985
  Processing by ExampleController#restricted as HTML
1893
1986
  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
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]]
1987
+ Completed in 14ms (ActiveRecord: 0.0ms)
1988
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
1989
+ Processing by ExampleController#this_requires_signin_permission as JSON
1990
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1991
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1992
+  (0.2ms) begin transaction
1993
+ SQL (0.4ms) 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]]
1994
+  (7.5ms) commit transaction
1995
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1902
1996
   (0.1ms) begin 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]]
1997
+  (0.1ms) commit transaction
1998
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1999
+  (0.1ms) begin transaction
2000
+  (0.1ms) commit transaction
2001
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2002
+  (0.1ms) begin transaction
2003
+  (0.1ms) commit transaction
2004
+  (0.1ms) begin transaction
2005
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
2006
+  (5.6ms) commit transaction
1913
2007
  Rendering text template
1914
2008
  Rendered text template (0.0ms)
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
1917
- Processing by ExampleController#restricted as HTML
1918
- Authenticating with gds_sso strategy
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
1922
- Processing by AuthenticationsController#callback as HTML
1923
- Parameters: {"code"=>"d030ff31e907ea07c245d2f883f3473e09d2585af84690b451ffb8a971e3229d", "state"=>"637cebcfea31685c91f69fc6a5f6fd5d5412fa6bfd0778ec"}
1924
- Authenticating with gds_sso strategy
2009
+ Completed 200 OK in 151ms (Views: 1.7ms | ActiveRecord: 16.1ms)
2010
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
2011
+ Processing by ExampleController#restricted as JSON
1925
2012
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1926
2013
   (0.1ms) begin transaction
1927
2014
   (0.1ms) commit transaction
1928
- Redirected to http://www.example-client.com/restricted
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
1931
- Processing by ExampleController#restricted as HTML
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]]
2015
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2016
+  (0.1ms) begin transaction
2017
+  (0.1ms) commit transaction
2018
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2019
+  (0.1ms) begin transaction
2020
+  (0.2ms) commit transaction
2021
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2022
+  (0.1ms) begin transaction
2023
+  (0.1ms) commit transaction
1933
2024
  Rendering text template
1934
2025
  Rendered text template (0.0ms)
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
2026
+ Completed 200 OK in 116ms (Views: 0.6ms | ActiveRecord: 1.4ms)
2027
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
2028
+ Processing by ExampleController#restricted as JSON
2029
+ Completed in 21ms (ActiveRecord: 0.0ms)
2030
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
2031
+ Processing by ExampleController#restricted as JSON
2032
+ Completed in 43ms (ActiveRecord: 0.0ms)
2033
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
1937
2034
  Processing by ExampleController#restricted as HTML
1938
2035
  Authenticating with gds_sso strategy
1939
2036
  Completed in 0ms (ActiveRecord: 0.0ms)
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
2037
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
2038
+ Started GET "/auth/gds/callback?code=259edae08f10a888a26e125af0bd12f1ceb5057e99faa943d8a577594cb22610&state=fd7d0e8341af861e44f62f51da9ec8a5a69b5717517fe96d" for 127.0.0.1 at 2018-02-08 12:35:21 +0000
1942
2039
  Processing by AuthenticationsController#callback as HTML
1943
- Parameters: {"code"=>"8317ae69e828dac16c0aa7a8a19e18e6e1914ce3320e1b463c71dc37e3b26b03", "state"=>"fb7236519484b53a53e0cca046b58a32413538aaec613a58"}
2040
+ Parameters: {"code"=>"259edae08f10a888a26e125af0bd12f1ceb5057e99faa943d8a577594cb22610", "state"=>"fd7d0e8341af861e44f62f51da9ec8a5a69b5717517fe96d"}
1944
2041
  Authenticating with gds_sso strategy
1945
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2042
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1946
2043
   (0.1ms) begin transaction
1947
-  (0.0ms) commit transaction
2044
+ SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 13]]
2045
+  (6.6ms) commit transaction
1948
2046
  Redirected to http://www.example-client.com/restricted
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
2047
+ Completed 302 Found in 15ms (ActiveRecord: 7.5ms)
2048
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1951
2049
  Processing by ExampleController#restricted as HTML
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]]
2050
+ 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]]
1953
2051
  Rendering text template
1954
2052
  Rendered text template (0.0ms)
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
2053
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
2054
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1957
2055
  Processing by ExampleController#this_requires_signin_permission as HTML
1958
2056
  Authenticating with gds_sso strategy
1959
2057
  Completed in 0ms (ActiveRecord: 0.0ms)
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
2058
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
2059
+ Started GET "/auth/gds/callback?code=bed5d512f30db125d17758a67c70589a99a2e01ec8674941937927dac81933e3&state=367a3ffcbfc0123809a4100b1be49b9d22b0df59db67e57b" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1962
2060
  Processing by AuthenticationsController#callback as HTML
1963
- Parameters: {"code"=>"d2d3651c07e4c501c7fa73f24ebeb494024174f199ef51ac56c3a345725f663a", "state"=>"e0fc93d6db0a7f169dec35d354fe994531ca8b9ca4d1965b"}
2061
+ Parameters: {"code"=>"bed5d512f30db125d17758a67c70589a99a2e01ec8674941937927dac81933e3", "state"=>"367a3ffcbfc0123809a4100b1be49b9d22b0df59db67e57b"}
1964
2062
  Authenticating with gds_sso strategy
1965
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1966
-  (0.0ms) begin transaction
1967
-  (0.0ms) commit transaction
2063
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2064
+  (0.1ms) begin transaction
2065
+  (0.1ms) commit transaction
1968
2066
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
2067
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
2068
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1971
2069
  Processing by ExampleController#this_requires_signin_permission as HTML
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]]
2070
+ 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]]
1973
2071
  Rendering text template
1974
2072
  Rendered text template (0.0ms)
1975
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1976
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2073
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2074
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1977
2075
  Processing by ExampleController#this_requires_signin_permission as HTML
1978
2076
  Authenticating with gds_sso strategy
1979
2077
  Completed in 0ms (ActiveRecord: 0.0ms)
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
2078
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
2079
+ Started GET "/auth/gds/callback?code=6e5453ddbe9c3610a82f87ac4d3d600de3f08c3815f06aa531d049dc6ffa1e91&state=5b3c261beee72fdb06239c386875e23256b8220523e6d328" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1982
2080
  Processing by AuthenticationsController#callback as HTML
1983
- Parameters: {"code"=>"369c086cb730b105a20645be2666f4c210a5bf392f9fe49c358f219875fca26a", "state"=>"9091de2512356f92ef1d6317200c0b7f0865005152d11825"}
2081
+ Parameters: {"code"=>"6e5453ddbe9c3610a82f87ac4d3d600de3f08c3815f06aa531d049dc6ffa1e91", "state"=>"5b3c261beee72fdb06239c386875e23256b8220523e6d328"}
1984
2082
  Authenticating with gds_sso strategy
1985
- User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2083
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1986
2084
   (0.1ms) begin transaction
1987
2085
   (0.1ms) commit transaction
1988
2086
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
2087
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
2088
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1991
2089
  Processing by ExampleController#this_requires_signin_permission 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]]
2090
+ 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]]
2091
+ Rendering text template
2092
+ Rendered text template (0.0ms)
2093
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
2094
+ Started GET "/" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
2095
+ Processing by ExampleController#index as HTML
1993
2096
  Rendering text template
1994
2097
  Rendered text template (0.0ms)
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
2098
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2099
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
1997
2100
  Processing by ExampleController#restricted as HTML
1998
2101
  Authenticating with gds_sso strategy
1999
2102
  Completed in 0ms (ActiveRecord: 0.0ms)
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
2103
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
2104
+ Started GET "/auth/gds/callback?code=ca189ca72544b9a66632faff3894b193b24b89b1b9d5486e3c353308b10ec59b&state=e5f74303e88e6836c08c4ad8145bb258930b50b1e31e5c4f" for 127.0.0.1 at 2018-02-08 12:35:22 +0000
2002
2105
  Processing by AuthenticationsController#callback as HTML
2003
- Parameters: {"code"=>"967d35ddd16ab6835e05e15507d4b3de38df3192fc9d4dbaaff38a0a854a8e2d", "state"=>"c03637a006789a2fa9cf52aeae57e39236406c68ddc5d010"}
2106
+ Parameters: {"code"=>"ca189ca72544b9a66632faff3894b193b24b89b1b9d5486e3c353308b10ec59b", "state"=>"e5f74303e88e6836c08c4ad8145bb258930b50b1e31e5c4f"}
2004
2107
  Authenticating with gds_sso strategy
2005
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2108
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2006
2109
   (0.1ms) begin transaction
2007
-  (0.0ms) commit transaction
2110
+  (0.1ms) commit transaction
2008
2111
  Redirected to http://www.example-client.com/restricted
2009
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2010
- Started GET "/restricted" for 127.0.0.1 at 2018-01-23 17:16:51 +0000
2112
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
2113
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2011
2114
  Processing by ExampleController#restricted as HTML
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]]
2115
+ 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]]
2013
2116
  Rendering text template
2014
2117
  Rendered text template (0.0ms)
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
2017
- Processing by ExampleController#restricted as HTML
2018
- Authenticating with gds_sso strategy
2019
- Completed in 0ms (ActiveRecord: 0.0ms)
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
2118
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2119
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2022
2120
  Processing by ExampleController#restricted as HTML
2023
2121
  Authenticating with gds_sso strategy
2024
2122
  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
2123
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2124
+ Started GET "/auth/gds/callback?code=400cb676ebbe2591173e6e35c76ba52d1b8a209e44e629db0f8ac6b80cdedcf8&state=0f969f7a954a897e10db14aac7dbbb096f62ac5887cb0979" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2027
2125
  Processing by AuthenticationsController#callback as HTML
2028
- Parameters: {"code"=>"19ec16425236a08a3f6864245e6f1a46f6dcefbdbc582932553c5dc8deddf32a", "state"=>"8b8fbe1cc8c344e535a10791e6ffe541be6b3d0ee1e86538"}
2126
+ Parameters: {"code"=>"400cb676ebbe2591173e6e35c76ba52d1b8a209e44e629db0f8ac6b80cdedcf8", "state"=>"0f969f7a954a897e10db14aac7dbbb096f62ac5887cb0979"}
2029
2127
  Authenticating with gds_sso strategy
2030
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2031
-  (0.3ms) begin transaction
2032
-  (0.0ms) commit transaction
2128
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2129
+  (0.1ms) begin transaction
2130
+  (0.1ms) commit transaction
2033
2131
  Redirected to http://www.example-client.com/restricted
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
2132
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
2133
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2036
2134
  Processing by ExampleController#restricted as HTML
2037
2135
  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]]
2038
2136
  Rendering text template
2039
2137
  Rendered text template (0.0ms)
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
2138
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2139
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2140
+ Processing by ExampleController#restricted as HTML
2141
+ Authenticating with gds_sso strategy
2142
+ Completed in 0ms (ActiveRecord: 0.0ms)
2143
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2144
+ Started GET "/auth/gds/callback?code=cad5f13d761480b34e9224a8d82a4321350858467384b95df90e52b065b8ca59&state=e8ca0265470ac7f618850aa1a978d2ce526183aa73f05af5" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2145
+ Processing by AuthenticationsController#callback as HTML
2146
+ Parameters: {"code"=>"cad5f13d761480b34e9224a8d82a4321350858467384b95df90e52b065b8ca59", "state"=>"e8ca0265470ac7f618850aa1a978d2ce526183aa73f05af5"}
2147
+ Authenticating with gds_sso strategy
2148
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2149
+  (0.1ms) begin transaction
2150
+  (0.1ms) commit transaction
2151
+ Redirected to http://www.example-client.com/restricted
2152
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
2153
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2042
2154
  Processing by ExampleController#restricted as HTML
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]]
2155
+ User Load (0.7ms) 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]]
2044
2156
  Rendering text template
2045
2157
  Rendered text template (0.0ms)
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
2158
+ Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)
2159
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
2160
+  (0.1ms) begin transaction
2161
+ SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
2162
+  (8.2ms) commit transaction
2163
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2048
2164
  Processing by ExampleController#restricted as HTML
2165
+ 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]]
2049
2166
  Authenticating with gds_sso strategy
2050
- Completed in 0ms (ActiveRecord: 0.0ms)
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
2167
+ Completed in 2ms (ActiveRecord: 0.4ms)
2168
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2169
+ Started GET "/auth/gds/callback?code=4d6fe8e1808970fdf7a5f0500749915e01f6cf3a2a956c8515d0b9121570b4f3&state=ae5a72220d0a71607d54c7e29f2df4c708d3c3d3e14d9c3e" for 127.0.0.1 at 2018-02-08 12:35:23 +0000
2053
2170
  Processing by AuthenticationsController#callback as HTML
2054
- Parameters: {"code"=>"297989a2ae99bb0eedc98eaaf32e038d0106646ca1d313101343ca9a7dd95b45", "state"=>"40718a3fec89954747b948a1f20ffd3eb59137aaa0dd098c"}
2171
+ Parameters: {"code"=>"4d6fe8e1808970fdf7a5f0500749915e01f6cf3a2a956c8515d0b9121570b4f3", "state"=>"ae5a72220d0a71607d54c7e29f2df4c708d3c3d3e14d9c3e"}
2055
2172
  Authenticating with gds_sso strategy
2056
2173
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2057
2174
   (0.1ms) begin transaction
2058
-  (0.0ms) commit transaction
2175
+  (0.1ms) commit transaction
2176
+  (0.1ms) begin transaction
2177
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
2178
+  (6.5ms) commit transaction
2059
2179
  Redirected to http://www.example-client.com/restricted
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
2180
+ Completed 302 Found in 14ms (ActiveRecord: 7.6ms)
2181
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2062
2182
  Processing by ExampleController#restricted as HTML
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]]
2183
+ 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]]
2064
2184
  Rendering text template
2065
2185
  Rendered text template (0.0ms)
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
2186
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
2187
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2068
2188
  Processing by ExampleController#restricted as HTML
2069
2189
  Authenticating with gds_sso strategy
2070
2190
  Completed in 0ms (ActiveRecord: 0.0ms)
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
2191
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2192
+ Started GET "/auth/gds/callback?code=5f7c066490e4caa68d0a52033453072d064c14e777b06f8a2f161e47a2f0105e&state=3a08fe5362b8eebb42719da8373934729415df0da666a2d4" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2073
2193
  Processing by AuthenticationsController#callback as HTML
2074
- Parameters: {"code"=>"54377010f1a9c07a15d4423dd035d0c1c5c321cf7d61a0297accb5fc4d79c593", "state"=>"a62d8da933475177c35f7d4a2db72612b9ef4d78b3498df8"}
2194
+ Parameters: {"code"=>"5f7c066490e4caa68d0a52033453072d064c14e777b06f8a2f161e47a2f0105e", "state"=>"3a08fe5362b8eebb42719da8373934729415df0da666a2d4"}
2075
2195
  Authenticating with gds_sso strategy
2076
2196
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2077
2197
   (0.1ms) begin transaction
2078
-  (0.2ms) commit transaction
2198
+  (0.1ms) commit transaction
2079
2199
  Redirected to http://www.example-client.com/restricted
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
2200
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
2201
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2082
2202
  Processing by ExampleController#restricted as HTML
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]]
2203
+ 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]]
2084
2204
  Rendering text template
2085
2205
  Rendered text template (0.0ms)
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
2206
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
2207
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:24 +0000
2088
2208
  Processing by ExampleController#restricted as HTML
2089
2209
  Authenticating with gds_sso strategy
2090
- Completed in 0ms (ActiveRecord: 0.0ms)
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
2210
+ Completed in 1ms (ActiveRecord: 0.0ms)
2211
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:24 +0000
2212
+ Started GET "/auth/gds/callback?code=ac6f1c431d4166e5553b1ef58651995276560e93a9013e0eb6731136a56b7f5c&state=68dbf137439dcf120ad9a65867e74bf10fa7ff120c00b2ba" for 127.0.0.1 at 2018-02-09 08:40:24 +0000
2093
2213
  Processing by AuthenticationsController#callback as HTML
2094
- Parameters: {"code"=>"adbddef8e27bcdb699d4e7da6151954aab434834ee9a31e9f488b25a6889fdbe", "state"=>"d829ac64295a4ec3ae1a8829e62b4e631a6702438523fe4e"}
2214
+ Parameters: {"code"=>"ac6f1c431d4166e5553b1ef58651995276560e93a9013e0eb6731136a56b7f5c", "state"=>"68dbf137439dcf120ad9a65867e74bf10fa7ff120c00b2ba"}
2095
2215
  Authenticating with gds_sso strategy
2096
- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2216
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2097
2217
   (0.1ms) begin transaction
2098
-  (0.0ms) commit transaction
2218
+  (0.2ms) commit transaction
2099
2219
  Redirected to http://www.example-client.com/restricted
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
2220
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
2221
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:24 +0000
2102
2222
  Processing by ExampleController#restricted as HTML
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]]
2223
+ 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]]
2104
2224
  Rendering text template
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
2225
+ Rendered text template (0.0ms)
2226
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2227
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2112
2228
  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]]
2114
2229
  Authenticating with gds_sso strategy
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
2230
+ Completed in 0ms (ActiveRecord: 0.0ms)
2231
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2232
+ Started GET "/auth/gds/callback?code=945580dad7da4b1a340f3032b838042b86947c400bc7a5ccf6e6bf0feccfbf25&state=322ddc743d54791baf5c3c8b31da6eaa55d337d579a8c3af" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2118
2233
  Processing by AuthenticationsController#callback as HTML
2119
- Parameters: {"code"=>"4156d050f22f9369523ef5c16050fe4010c77b30a5e6705de17cdd6862d644ca", "state"=>"9d23eeb323692c3ab4744a7cd99c4a2056bd77dfad6fcffd"}
2234
+ Parameters: {"code"=>"945580dad7da4b1a340f3032b838042b86947c400bc7a5ccf6e6bf0feccfbf25", "state"=>"322ddc743d54791baf5c3c8b31da6eaa55d337d579a8c3af"}
2120
2235
  Authenticating with gds_sso strategy
2121
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2236
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2122
2237
   (0.1ms) begin 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
2238
+  (0.1ms) commit transaction
2127
2239
  Redirected to http://www.example-client.com/restricted
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
2240
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
2241
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2130
2242
  Processing by ExampleController#restricted as HTML
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]]
2243
+ 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]]
2132
2244
  Rendering text template
2133
2245
  Rendered text template (0.0ms)
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
2246
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2247
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:30:24 +0000
2248
+ Processing by ExampleController#restricted as HTML
2249
+ 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]]
2156
2250
  Rendering text template
2157
2251
  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]]
2252
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2253
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2254
+ Processing by ExampleController#restricted as HTML
2255
+ Authenticating with gds_sso strategy
2256
+ Completed in 0ms (ActiveRecord: 0.0ms)
2257
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2258
+ Started GET "/auth/gds/callback?code=7aa6dc10642ec0a5a82aee1454d676ca106d20c6736dabc043c4d97fb0bf45e7&state=7ac6752753943390bc49aee8ee3c18989d98a72ce31f4f15" for 127.0.0.1 at 2018-02-08 12:35:24 +0000
2259
+ Processing by AuthenticationsController#callback as HTML
2260
+ Parameters: {"code"=>"7aa6dc10642ec0a5a82aee1454d676ca106d20c6736dabc043c4d97fb0bf45e7", "state"=>"7ac6752753943390bc49aee8ee3c18989d98a72ce31f4f15"}
2261
+ Authenticating with gds_sso strategy
2262
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2168
2263
   (0.1ms) begin transaction
2169
2264
   (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
2265
+ Redirected to http://www.example-client.com/restricted
2266
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
2267
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-08 12:35:25 +0000
2268
+ Processing by ExampleController#restricted as HTML
2269
+ 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]]
2173
2270
  Rendering text template
2174
2271
  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]]
2272
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2273
+ Started GET "/restricted" for 127.0.0.1 at 2018-02-09 08:40:25 +0000
2274
+ Processing by ExampleController#restricted as HTML
2275
+ Authenticating with gds_sso strategy
2276
+ Completed in 1ms (ActiveRecord: 0.0ms)
2277
+ Started GET "/auth/gds" for 127.0.0.1 at 2018-02-09 08:40:25 +0000