gds-sso 14.2.0 → 14.3.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
  SHA256:
3
- metadata.gz: 95bf2de025de5c337a13c925d961c8c1f08bca52f77917b36d4e75e77d7345ef
4
- data.tar.gz: 17c3bb01256c31341c9d0af13b3b3b67d0faaae52dcd46284e4d4bef277c3c0c
3
+ metadata.gz: b52e95e5c04761c7ee185a3ca4dca19430eef37d12d8a35cfa2b88269f94e31f
4
+ data.tar.gz: 7e5f31789917125be6019b9c130f82441bca12ae22f1e426a525a2a760ef5865
5
5
  SHA512:
6
- metadata.gz: f668f90319293437de03aac1e89219f9cda8b835924d18afc9d6318a3c39f6241fe8988255cd3b8e61f322a54d5c1bdb23ee850f44b664114f35368857ca7960
7
- data.tar.gz: ba086284e3ce65bc96270151f8013b90cada9ef1f2dbc4761c8a15ec91c4145cff8a57451ab279e7b485e980698ff8b21dfc0b8b6e10292b8364b0b34e61f50d
6
+ metadata.gz: 68cb0541a42c76c9141deab5cb9baba1806c2815a668192cc0fef2a2edafe24e7563b33206250f382bfe5a0b6c2c83544b3b4bf719c58ef7e1eec7ebf29575ce
7
+ data.tar.gz: 716775197b9749e0d8760c1890d4a1661d1a676db7d92a22b79296254745eae6d14ade4ceac1fe674c9c6d62f8c7032cb38a8d5b01773ad8f063b600cb921e8b
@@ -1,6 +1,7 @@
1
1
  require 'rails'
2
2
 
3
3
  require 'gds-sso/config'
4
+ require 'gds-sso/version'
4
5
  require 'gds-sso/warden_config'
5
6
  require 'omniauth'
6
7
  require 'omniauth-gds'
@@ -31,6 +32,11 @@ module GDS
31
32
  site: GDS::SSO::Config.oauth_root_url,
32
33
  authorize_url: "#{GDS::SSO::Config.oauth_root_url}/oauth/authorize",
33
34
  token_url: "#{GDS::SSO::Config.oauth_root_url}/oauth/access_token",
35
+ connection_opts: {
36
+ headers: {
37
+ user_agent: "gds-sso/#{GDS::SSO::VERSION} (#{ENV['GOVUK_APP_NAME']})"
38
+ }
39
+ }
34
40
  }
35
41
  end
36
42
 
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "14.2.0"
3
+ VERSION = "14.3.0"
4
4
  end
5
5
  end
@@ -1,419 +1,411 @@
1
-  (4.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') 
2
-  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (5.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
6
-  (0.1ms) begin transaction
7
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "7793"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
-  (8.0ms) commit transaction
9
-  (0.0ms) begin transaction
10
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
11
-  (6.1ms) commit transaction
12
-  (0.0ms) begin transaction
13
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39531"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
14
-  (3.8ms) commit transaction
15
-  (0.1ms) begin transaction
16
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33260"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
17
-  (4.9ms) commit transaction
18
- Processing by Api::UserController#reauth as HTML
19
- Parameters: {"uid"=>"a1s2d39531"}
20
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
21
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
22
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
23
- Completed 403 Forbidden in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms)
24
-  (0.1ms) begin transaction
25
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31518"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
26
-  (5.0ms) commit transaction
4
+  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
6
+ Processing by ExampleController#restricted as HTML
7
+ Authenticating with gds_sso strategy
8
+ Completed in 8ms (ActiveRecord: 0.0ms)
9
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
10
+ Processing by ExampleController#restricted as JSON
11
+ Completed in 131ms (ActiveRecord: 0.0ms)
12
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
13
+ Processing by ExampleController#restricted as JSON
14
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
15
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
27
16
   (0.1ms) begin transaction
28
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3998"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
29
-  (3.6ms) commit transaction
30
- Processing by Api::UserController#reauth as HTML
31
- Parameters: {"uid"=>"a1s2d31518"}
32
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31518"]]
17
+ 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]]
18
+  (6.2ms) commit transaction
19
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
33
20
   (0.0ms) begin transaction
34
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
35
-  (4.9ms) commit transaction
36
- Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
37
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
38
-  (0.1ms) begin transaction
39
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3654"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
40
-  (4.6ms) commit transaction
41
-  (0.1ms) begin transaction
42
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39034"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
43
-  (4.2ms) commit transaction
44
- Processing by Api::UserController#reauth as HTML
45
- Parameters: {"uid"=>"nonexistent-user"}
46
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
47
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
21
+  (0.1ms) commit transaction
22
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
48
23
   (0.1ms) begin transaction
49
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35460"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
50
-  (4.3ms) commit transaction
24
+  (0.1ms) commit transaction
25
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
51
26
   (0.1ms) begin transaction
52
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33715"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
53
-  (6.7ms) commit transaction
54
- Processing by Api::UserController#update as HTML
55
- Parameters: {"uid"=>"a1s2d35460"}
56
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35460"]]
27
+  (0.1ms) commit transaction
57
28
   (0.1ms) begin transaction
58
- 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]]
59
-  (6.7ms) commit transaction
60
- Completed 200 OK in 10ms (ActiveRecord: 7.1ms)
61
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
29
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
30
+  (3.6ms) commit transaction
31
+ Rendered text template (0.0ms)
32
+ Completed 200 OK in 239ms (Views: 8.5ms | ActiveRecord: 11.8ms)
33
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
34
+ Processing by ExampleController#this_requires_signin_permission as JSON
35
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
62
36
   (0.1ms) begin transaction
63
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38072"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
64
-  (4.3ms) commit transaction
65
-  (0.1ms) begin transaction
66
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37281"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
67
-  (5.2ms) commit transaction
68
- Processing by Api::UserController#update as HTML
69
- Parameters: {"uid"=>"a1s2d38072"}
70
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
71
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
72
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
73
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
74
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
75
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
76
-  (0.0ms) begin transaction
77
- SQL (0.3ms) 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]]
78
-  (5.4ms) commit transaction
79
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
80
-  (0.0ms) begin transaction
81
37
   (0.1ms) commit transaction
82
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:35:57 +0000
83
- Processing by ExampleController#restricted as HTML
84
- Authenticating with gds_sso strategy
85
- Completed in 8ms (ActiveRecord: 0.0ms)
86
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:35:57 +0000
87
- Processing by ExampleController#restricted as HTML
88
- Authenticating with gds_sso strategy
89
- Completed in 0ms (ActiveRecord: 0.0ms)
90
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:35:57 +0000
91
- Started GET "/auth/gds/callback?code=e26a2839aa4d8a1fd984f4e7ced9827f43adc37aeaba0e5d3b4402afaf0b85ed&state=fa3ddb76496c2dd3571dbc9400be9cafc43abd306736c38b" for 127.0.0.1 at 2019-11-05 10:36:43 +0000
92
- Processing by AuthenticationsController#callback as HTML
93
- Parameters: {"code"=>"e26a2839aa4d8a1fd984f4e7ced9827f43adc37aeaba0e5d3b4402afaf0b85ed", "state"=>"fa3ddb76496c2dd3571dbc9400be9cafc43abd306736c38b"}
94
- Authenticating with gds_sso strategy
95
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
96
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
38
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
39
+  (0.1ms) begin transaction
40
+  (0.1ms) commit transaction
41
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
97
42
   (0.1ms) begin transaction
98
- 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"]]
99
-  (14.6ms) commit transaction
100
-  (0.0ms) begin transaction
101
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
102
-  (4.7ms) commit transaction
103
- Redirected to http://www.example-client.com/restricted
104
- Completed 302 Found in 25ms (ActiveRecord: 20.0ms)
105
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
106
- Processing by ExampleController#restricted as HTML
107
- 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"]]
43
+  (0.1ms) commit transaction
44
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
45
+  (0.1ms) begin transaction
46
+  (0.1ms) commit transaction
47
+  (0.1ms) begin transaction
48
+  (0.1ms) commit transaction
108
49
  Rendered text template (0.0ms)
109
- Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
110
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
50
+ Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 0.8ms)
51
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
52
+ Processing by ExampleController#restricted as JSON
53
+ Completed in 21ms (ActiveRecord: 0.0ms)
54
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
111
55
  Processing by ExampleController#restricted as HTML
112
56
  Authenticating with gds_sso strategy
113
57
  Completed in 0ms (ActiveRecord: 0.0ms)
114
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
115
- Started GET "/auth/gds/callback?code=b00bb56f7da9c89c3b5527bd05f65b98165246e5fd3d680a06b9c03de35f69ba&state=76885491b2691cad0481abc11e894a8fb38d5add678688c6" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
58
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
59
+ Started GET "/auth/gds/callback?code=e1b59076e4f7d7e7f0de46ea514f6009dc4db8bf1ffa612872c13a6db67cc298&state=ba536dc898d9e9d5f62f9b7dcb2308aafa10d8018be7c2fa" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
116
60
  Processing by AuthenticationsController#callback as HTML
117
- Parameters: {"code"=>"b00bb56f7da9c89c3b5527bd05f65b98165246e5fd3d680a06b9c03de35f69ba", "state"=>"76885491b2691cad0481abc11e894a8fb38d5add678688c6"}
61
+ Parameters: {"code"=>"e1b59076e4f7d7e7f0de46ea514f6009dc4db8bf1ffa612872c13a6db67cc298", "state"=>"ba536dc898d9e9d5f62f9b7dcb2308aafa10d8018be7c2fa"}
118
62
  Authenticating with gds_sso strategy
119
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
63
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
120
64
   (0.1ms) begin transaction
121
-  (0.1ms) commit transaction
122
-  (0.0ms) begin transaction
123
-  (0.0ms) commit transaction
65
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
66
+  (7.4ms) commit transaction
67
+  (0.0ms) begin transaction
68
+  (0.1ms) commit transaction
124
69
  Redirected to http://www.example-client.com/restricted
125
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
126
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
70
+ Completed 302 Found in 13ms (ActiveRecord: 7.9ms)
71
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
127
72
  Processing by ExampleController#restricted as HTML
128
- 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"]]
73
+ 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"]]
129
74
  Rendered text template (0.0ms)
130
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
131
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
75
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
76
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
132
77
  Processing by ExampleController#restricted as HTML
133
78
  Authenticating with gds_sso strategy
134
79
  Completed in 0ms (ActiveRecord: 0.0ms)
135
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
136
- Started GET "/auth/gds/callback?code=96646ce0c89da1016212580c7c1578b05c1e60bf87517c7e2838020a4723a094&state=8f6876c00c44c5e0f1c8d189a6b0e931d05be98a10b3564e" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
80
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
81
+ Started GET "/auth/gds/callback?code=b8e1009bf9f623a1f56e714f506ec4ce849db7417a5a87bce5ebdec7ad49bca5&state=d70f4e5897597b11c93c7161370fbb89bbe2bd4ed611981d" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
137
82
  Processing by AuthenticationsController#callback as HTML
138
- Parameters: {"code"=>"96646ce0c89da1016212580c7c1578b05c1e60bf87517c7e2838020a4723a094", "state"=>"8f6876c00c44c5e0f1c8d189a6b0e931d05be98a10b3564e"}
83
+ Parameters: {"code"=>"b8e1009bf9f623a1f56e714f506ec4ce849db7417a5a87bce5ebdec7ad49bca5", "state"=>"d70f4e5897597b11c93c7161370fbb89bbe2bd4ed611981d"}
139
84
  Authenticating with gds_sso strategy
140
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
141
-  (0.1ms) begin transaction
142
-  (0.0ms) commit transaction
143
-  (0.0ms) begin transaction
144
-  (0.0ms) commit transaction
85
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
86
+  (0.1ms) begin transaction
87
+  (0.1ms) commit transaction
88
+  (0.0ms) begin transaction
89
+  (0.1ms) commit transaction
145
90
  Redirected to http://www.example-client.com/restricted
146
91
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
147
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
92
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
148
93
  Processing by ExampleController#restricted as HTML
149
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
94
+ 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"]]
150
95
  Rendered text template (0.0ms)
151
96
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
152
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
153
- Processing by ExampleController#index as HTML
154
- Rendered text template (0.0ms)
155
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
156
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
97
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
157
98
  Processing by ExampleController#this_requires_signin_permission as HTML
158
99
  Authenticating with gds_sso strategy
159
100
  Completed in 0ms (ActiveRecord: 0.0ms)
160
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
161
- Started GET "/auth/gds/callback?code=f0a4e0f5e3705292931e05573bf9798a6cc52df0518f7f6243c5eda88fe950de&state=daf77e0bf3c5c0eca9ab5fb5b0679be4401a7a5a8e906b40" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
101
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
102
+ Started GET "/auth/gds/callback?code=0468fef77903cb3307e1d8c25284fc29f55bd5f1d9c962abfa642198f188f92d&state=a89a83e83d4bc04bf70fbb55094aaf9e81e929da27b0a113" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
162
103
  Processing by AuthenticationsController#callback as HTML
163
- Parameters: {"code"=>"f0a4e0f5e3705292931e05573bf9798a6cc52df0518f7f6243c5eda88fe950de", "state"=>"daf77e0bf3c5c0eca9ab5fb5b0679be4401a7a5a8e906b40"}
104
+ Parameters: {"code"=>"0468fef77903cb3307e1d8c25284fc29f55bd5f1d9c962abfa642198f188f92d", "state"=>"a89a83e83d4bc04bf70fbb55094aaf9e81e929da27b0a113"}
164
105
  Authenticating with gds_sso strategy
165
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
166
-  (0.1ms) begin transaction
167
-  (0.0ms) commit transaction
168
-  (0.0ms) begin transaction
169
-  (0.0ms) commit transaction
106
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
107
+  (0.2ms) begin transaction
108
+  (0.1ms) commit transaction
109
+  (0.0ms) begin transaction
110
+  (0.1ms) commit transaction
170
111
  Redirected to http://www.example-client.com/this_requires_signin_permission
171
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
172
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
112
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
113
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
173
114
  Processing by ExampleController#this_requires_signin_permission as HTML
174
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
115
+ 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"]]
175
116
  Rendered text template (0.0ms)
176
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
177
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
117
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
118
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
178
119
  Processing by ExampleController#this_requires_signin_permission as HTML
179
120
  Authenticating with gds_sso strategy
180
121
  Completed in 0ms (ActiveRecord: 0.0ms)
181
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
182
- Started GET "/auth/gds/callback?code=0ebf77356e6570617f8b270eced2aeab54a46a54eafa6c9ea48069b9eb89fc21&state=9c835892d4cfad360eee257d58b75aa2437de571dcda5243" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
122
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
123
+ Started GET "/auth/gds/callback?code=92a9a318a2f438c1dd7b2c3160ae98a5374fa20c35b02a88df2270325ea0ed43&state=cb74969030c3d92af529044423c4853d3ea4c8031c927ada" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
183
124
  Processing by AuthenticationsController#callback as HTML
184
- Parameters: {"code"=>"0ebf77356e6570617f8b270eced2aeab54a46a54eafa6c9ea48069b9eb89fc21", "state"=>"9c835892d4cfad360eee257d58b75aa2437de571dcda5243"}
125
+ Parameters: {"code"=>"92a9a318a2f438c1dd7b2c3160ae98a5374fa20c35b02a88df2270325ea0ed43", "state"=>"cb74969030c3d92af529044423c4853d3ea4c8031c927ada"}
185
126
  Authenticating with gds_sso strategy
186
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
187
-  (0.1ms) begin transaction
188
-  (0.0ms) commit transaction
189
-  (0.0ms) begin transaction
190
-  (0.1ms) commit transaction
127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
128
+  (0.1ms) begin transaction
129
+  (0.0ms) commit transaction
130
+  (0.0ms) begin transaction
131
+  (0.0ms) commit transaction
191
132
  Redirected to http://www.example-client.com/this_requires_signin_permission
192
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
193
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
133
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
134
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
194
135
  Processing by ExampleController#this_requires_signin_permission as HTML
195
- 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"]]
196
- Rendered text template (0.1ms)
136
+ 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"]]
137
+ Rendered text template (0.0ms)
197
138
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
198
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
139
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
199
140
  Processing by ExampleController#restricted as HTML
200
141
  Authenticating with gds_sso strategy
201
142
  Completed in 0ms (ActiveRecord: 0.0ms)
202
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
203
- Started GET "/auth/gds/callback?code=28baebd9049cd335acb77fc39f25deb13d94858a7b355e11e0d14b2ecb6c0446&state=e3d8db893276610d212d98274bf5c14a710d19c1c6cfb6b3" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
143
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
144
+ Started GET "/auth/gds/callback?code=88875f3fc0462f6c47a3e5199156d94fafaad97b4dc4b808cca257d0806c5e42&state=4aface7075e9f989d578d26c0058afe5764e6cc66af83c09" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
204
145
  Processing by AuthenticationsController#callback as HTML
205
- Parameters: {"code"=>"28baebd9049cd335acb77fc39f25deb13d94858a7b355e11e0d14b2ecb6c0446", "state"=>"e3d8db893276610d212d98274bf5c14a710d19c1c6cfb6b3"}
146
+ Parameters: {"code"=>"88875f3fc0462f6c47a3e5199156d94fafaad97b4dc4b808cca257d0806c5e42", "state"=>"4aface7075e9f989d578d26c0058afe5764e6cc66af83c09"}
206
147
  Authenticating with gds_sso strategy
207
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
208
-  (0.1ms) begin transaction
209
-  (0.0ms) commit transaction
210
-  (0.0ms) begin transaction
211
-  (0.0ms) commit transaction
148
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
149
+  (0.1ms) begin transaction
150
+  (0.0ms) commit transaction
151
+  (0.0ms) begin transaction
152
+  (0.0ms) commit transaction
212
153
  Redirected to http://www.example-client.com/restricted
213
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
214
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
154
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
155
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
215
156
  Processing by ExampleController#restricted as HTML
216
- 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
+ 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"]]
217
158
  Rendered text template (0.0ms)
218
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
219
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
220
-  (0.0ms) begin transaction
221
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
222
-  (10.5ms) commit transaction
223
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
159
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
160
+ Started GET "/" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
161
+ Processing by ExampleController#index as HTML
162
+ Rendered text template (0.0ms)
163
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
164
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
224
165
  Processing by ExampleController#restricted as HTML
225
- 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"]]
226
166
  Authenticating with gds_sso strategy
227
- Completed in 1ms (ActiveRecord: 0.1ms)
228
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
229
- Started GET "/auth/gds/callback?code=9276365039e856285ad76e2c22865d35df5c497ba3cb0bf826efcd7b724c05ca&state=0d906fc158a582e83a4fc8dcdb2e5bb0624f98e45a2dc6fb" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
167
+ Completed in 0ms (ActiveRecord: 0.0ms)
168
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
169
+ Started GET "/auth/gds/callback?code=85391d3bf603207eb36a90fd7fb0a988c0e22f569c7247f086954ea511d6fd05&state=96ccf264e2be29f11731d57701c1e85e2d84204e3cae4082" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
230
170
  Processing by AuthenticationsController#callback as HTML
231
- Parameters: {"code"=>"9276365039e856285ad76e2c22865d35df5c497ba3cb0bf826efcd7b724c05ca", "state"=>"0d906fc158a582e83a4fc8dcdb2e5bb0624f98e45a2dc6fb"}
171
+ Parameters: {"code"=>"85391d3bf603207eb36a90fd7fb0a988c0e22f569c7247f086954ea511d6fd05", "state"=>"96ccf264e2be29f11731d57701c1e85e2d84204e3cae4082"}
232
172
  Authenticating with gds_sso strategy
233
173
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
234
174
   (0.1ms) begin transaction
235
175
   (0.0ms) commit transaction
236
176
   (0.0ms) begin transaction
237
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
238
-  (100.1ms) commit transaction
177
+  (0.0ms) commit transaction
239
178
  Redirected to http://www.example-client.com/restricted
240
- Completed 302 Found in 105ms (ActiveRecord: 100.6ms)
241
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
179
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
180
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
242
181
  Processing by ExampleController#restricted as HTML
243
- 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"]]
182
+ 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"]]
244
183
  Rendered text template (0.0ms)
245
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
246
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
184
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
185
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
247
186
  Processing by ExampleController#restricted as HTML
248
187
  Authenticating with gds_sso strategy
249
188
  Completed in 0ms (ActiveRecord: 0.0ms)
250
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
251
- Started GET "/auth/gds/callback?code=07b5460a4dbb15ad451e7c0041d89a3650743bc25d2f934b4d2f15f4b8afb08c&state=86cd5b771ee6289f5c79bfbaf90b48317a3f5de08e683001" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
189
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
190
+ Started GET "/auth/gds/callback?code=26b6691d6ecd3c02df89d664e862dc07f8e65dc0c7ed6a6ad8651aded9b11a78&state=0a4d99e830d75ac5d8635078b8b43579373dc4eab819d658" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
252
191
  Processing by AuthenticationsController#callback as HTML
253
- Parameters: {"code"=>"07b5460a4dbb15ad451e7c0041d89a3650743bc25d2f934b4d2f15f4b8afb08c", "state"=>"86cd5b771ee6289f5c79bfbaf90b48317a3f5de08e683001"}
192
+ Parameters: {"code"=>"26b6691d6ecd3c02df89d664e862dc07f8e65dc0c7ed6a6ad8651aded9b11a78", "state"=>"0a4d99e830d75ac5d8635078b8b43579373dc4eab819d658"}
254
193
  Authenticating with gds_sso strategy
255
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
256
-  (0.1ms) begin transaction
257
-  (0.0ms) commit transaction
258
-  (0.0ms) begin transaction
259
-  (0.0ms) commit transaction
194
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
195
+  (0.1ms) begin transaction
196
+  (0.1ms) commit transaction
197
+  (0.1ms) begin transaction
198
+  (0.1ms) commit transaction
260
199
  Redirected to http://www.example-client.com/restricted
261
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
262
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
200
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
201
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
263
202
  Processing by ExampleController#restricted as HTML
264
- 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"]]
203
+ 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"]]
265
204
  Rendered text template (0.0ms)
266
205
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
267
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
268
- Processing by ExampleController#restricted as HTML
269
- Authenticating with gds_sso strategy
270
- Completed in 0ms (ActiveRecord: 0.0ms)
271
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
272
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
206
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
273
207
  Processing by ExampleController#restricted as HTML
274
208
  Authenticating with gds_sso strategy
275
209
  Completed in 0ms (ActiveRecord: 0.0ms)
276
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
277
- Started GET "/auth/gds/callback?code=f55be5cb7439c98de54393c012012a67df678a55a062095a08222dadaa36305f&state=5f8e3421c820ef5b7e016ede6b5c23b6c2f38b15452adfb0" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
210
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
211
+ Started GET "/auth/gds/callback?code=a511233760c58ed49bc2248c2af21616413b693372d304be4cfc8f17e8eb9679&state=55f11ffda7c6ed29b0de0e6bb2fbeb7264ff8840f51a6039" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
278
212
  Processing by AuthenticationsController#callback as HTML
279
- Parameters: {"code"=>"f55be5cb7439c98de54393c012012a67df678a55a062095a08222dadaa36305f", "state"=>"5f8e3421c820ef5b7e016ede6b5c23b6c2f38b15452adfb0"}
213
+ Parameters: {"code"=>"a511233760c58ed49bc2248c2af21616413b693372d304be4cfc8f17e8eb9679", "state"=>"55f11ffda7c6ed29b0de0e6bb2fbeb7264ff8840f51a6039"}
280
214
  Authenticating with gds_sso strategy
281
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
282
-  (0.1ms) begin transaction
283
-  (0.0ms) commit transaction
284
-  (0.0ms) begin transaction
285
-  (0.0ms) commit transaction
215
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
216
+  (0.1ms) begin transaction
217
+  (0.0ms) commit transaction
218
+  (0.0ms) begin transaction
219
+  (0.0ms) commit transaction
286
220
  Redirected to http://www.example-client.com/restricted
287
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
288
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
289
- Processing by ExampleController#restricted as HTML
290
- 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"]]
291
- Rendered text template (0.0ms)
292
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
293
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:31:45 +0000
221
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
222
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
294
223
  Processing by ExampleController#restricted as HTML
295
224
  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"]]
296
225
  Rendered text template (0.0ms)
297
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
298
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
226
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
227
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:51 +0000
228
+ Processing by ExampleController#restricted as HTML
229
+ Authenticating with gds_sso strategy
230
+ Completed in 1ms (ActiveRecord: 0.0ms)
231
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:34:51 +0000
232
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
299
233
  Processing by ExampleController#restricted as HTML
300
234
  Authenticating with gds_sso strategy
301
235
  Completed in 0ms (ActiveRecord: 0.0ms)
302
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
303
- Started GET "/auth/gds/callback?code=a10f54b3e687884a617a438a9de1dd30c59985e265ecd2ce774497587e725ab7&state=306c554964802cacf30180436cc4330bb517d504434ec88c" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
236
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
237
+ Started GET "/auth/gds/callback?code=37bb3145b691628a0fc5750413e5d6898c65255cc91d932b63b0f7f80f7c93a1&state=df00753a2f20674d122e783451254b90c53d08215b7126ce" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
304
238
  Processing by AuthenticationsController#callback as HTML
305
- Parameters: {"code"=>"a10f54b3e687884a617a438a9de1dd30c59985e265ecd2ce774497587e725ab7", "state"=>"306c554964802cacf30180436cc4330bb517d504434ec88c"}
239
+ Parameters: {"code"=>"37bb3145b691628a0fc5750413e5d6898c65255cc91d932b63b0f7f80f7c93a1", "state"=>"df00753a2f20674d122e783451254b90c53d08215b7126ce"}
306
240
  Authenticating with gds_sso strategy
307
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
241
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
308
242
   (0.1ms) begin transaction
309
243
   (0.0ms) commit transaction
310
-  (0.0ms) begin transaction
244
+  (0.1ms) begin transaction
311
245
   (0.0ms) commit transaction
312
246
  Redirected to http://www.example-client.com/restricted
313
247
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
314
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
248
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
315
249
  Processing by ExampleController#restricted as HTML
316
250
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
317
251
  Rendered text template (0.0ms)
318
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
319
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
252
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
253
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:24:51 +0000
254
+ Processing by ExampleController#restricted as HTML
255
+ 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"]]
256
+ Rendered text template (0.0ms)
257
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
258
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
320
259
  Processing by ExampleController#restricted as HTML
321
260
  Authenticating with gds_sso strategy
322
261
  Completed in 0ms (ActiveRecord: 0.0ms)
323
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
324
- Started GET "/auth/gds/callback?code=f61a3fae0e6f379c8a721a6a6073e51b97ec84cfdbfeb0c04b7eab90898ba450&state=40e7abcdeecdf94beb7addfdb8522e25b65f540380a5f3dc" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
262
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
263
+ Started GET "/auth/gds/callback?code=a9045f07f86382c5448721355c2726a8a72437cb892b98fb57489a64ce9f63fc&state=2f3cc07d8eb63374a87b786b70f095f14efc89696fa9c95a" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
325
264
  Processing by AuthenticationsController#callback as HTML
326
- Parameters: {"code"=>"f61a3fae0e6f379c8a721a6a6073e51b97ec84cfdbfeb0c04b7eab90898ba450", "state"=>"40e7abcdeecdf94beb7addfdb8522e25b65f540380a5f3dc"}
265
+ Parameters: {"code"=>"a9045f07f86382c5448721355c2726a8a72437cb892b98fb57489a64ce9f63fc", "state"=>"2f3cc07d8eb63374a87b786b70f095f14efc89696fa9c95a"}
327
266
  Authenticating with gds_sso strategy
328
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
329
-  (0.1ms) begin transaction
330
-  (0.1ms) commit transaction
331
-  (0.1ms) begin transaction
332
-  (0.1ms) commit transaction
267
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
268
+  (0.1ms) begin transaction
269
+  (0.0ms) commit transaction
270
+  (0.0ms) begin transaction
271
+  (0.1ms) commit transaction
333
272
  Redirected to http://www.example-client.com/restricted
334
273
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
335
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
274
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
336
275
  Processing by ExampleController#restricted as HTML
337
- 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"]]
276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
338
277
  Rendered text template (0.0ms)
339
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
340
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
341
- Processing by ExampleController#this_requires_signin_permission as JSON
342
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
343
-  (0.1ms) begin transaction
344
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
345
-  (5.5ms) commit transaction
278
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
279
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
280
+  (0.0ms) begin transaction
281
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
282
+  (4.6ms) commit transaction
283
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
284
+ Processing by ExampleController#restricted as HTML
285
+ 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"]]
286
+ Authenticating with gds_sso strategy
287
+ Completed in 1ms (ActiveRecord: 0.1ms)
288
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
289
+ Started GET "/auth/gds/callback?code=d0346b4fc520ec80b1f696dcd4af42a7b1bad2245256910e243220ead50dfbe8&state=c09460cc3bfbc7967bcf913f08846fb2f1906eaa661c6072" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
290
+ Processing by AuthenticationsController#callback as HTML
291
+ Parameters: {"code"=>"d0346b4fc520ec80b1f696dcd4af42a7b1bad2245256910e243220ead50dfbe8", "state"=>"c09460cc3bfbc7967bcf913f08846fb2f1906eaa661c6072"}
292
+ Authenticating with gds_sso strategy
346
293
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
347
-  (0.0ms) begin transaction
348
-  (0.1ms) commit transaction
349
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
350
-  (0.1ms) begin transaction
351
-  (0.0ms) commit transaction
352
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
353
294
   (0.1ms) begin transaction
354
295
   (0.0ms) commit transaction
355
-  (0.0ms) begin transaction
356
-  (0.0ms) commit transaction
296
+  (0.1ms) begin transaction
297
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
298
+  (4.5ms) commit transaction
299
+ Redirected to http://www.example-client.com/restricted
300
+ Completed 302 Found in 9ms (ActiveRecord: 5.0ms)
301
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
302
+ Processing by ExampleController#restricted as HTML
303
+ 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"]]
357
304
  Rendered text template (0.0ms)
358
- Completed 200 OK in 59ms (Views: 0.3ms | ActiveRecord: 6.5ms)
359
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
360
- Processing by ExampleController#restricted as JSON
361
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
305
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
306
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
362
307
   (0.0ms) begin transaction
363
-  (0.0ms) commit transaction
364
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
308
+ SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "8633"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
309
+  (9.3ms) commit transaction
365
310
   (0.0ms) begin transaction
366
-  (0.0ms) commit transaction
367
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
311
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 2]]
312
+  (5.1ms) commit transaction
368
313
   (0.0ms) begin transaction
369
-  (0.0ms) commit transaction
370
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
314
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39674"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
315
+  (3.7ms) commit transaction
316
+  (0.0ms) begin transaction
317
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32273"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
318
+  (4.8ms) commit transaction
319
+ Processing by Api::UserController#reauth as HTML
320
+ Parameters: {"uid"=>"a1s2d39674"}
321
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39674"]]
322
+  (0.0ms) begin transaction
323
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
324
+  (3.5ms) commit transaction
325
+ Completed 200 OK in 6ms (ActiveRecord: 3.9ms)
326
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
327
+  (0.0ms) begin transaction
328
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37530"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
329
+  (3.2ms) commit transaction
330
+  (0.0ms) begin transaction
331
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31850"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
332
+  (3.4ms) commit transaction
333
+ Processing by Api::UserController#reauth as HTML
334
+ Parameters: {"uid"=>"nonexistent-user"}
335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
336
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
337
+  (0.0ms) begin transaction
338
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3143"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
339
+  (3.8ms) commit transaction
340
+  (0.0ms) begin transaction
341
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34529"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
342
+  (4.3ms) commit transaction
343
+ Processing by Api::UserController#reauth as HTML
344
+ Parameters: {"uid"=>"a1s2d3143"}
345
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
346
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
347
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
348
+ Completed 403 Forbidden in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
349
+  (0.1ms) begin transaction
350
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33656"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
351
+  (3.5ms) commit transaction
352
+  (0.0ms) begin transaction
353
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31326"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
354
+  (5.1ms) commit transaction
355
+ Processing by Api::UserController#update as HTML
356
+ Parameters: {"uid"=>"a1s2d33656"}
357
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33656"]]
358
+  (0.0ms) begin transaction
359
+ 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]]
360
+  (4.1ms) commit transaction
361
+ Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
362
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
371
363
   (0.1ms) begin transaction
372
-  (0.1ms) commit transaction
364
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34761"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
365
+  (3.6ms) commit transaction
366
+  (0.1ms) begin transaction
367
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36956"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
368
+  (3.7ms) commit transaction
369
+ Processing by Api::UserController#update as HTML
370
+ Parameters: {"uid"=>"a1s2d34761"}
371
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
372
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
373
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
374
+ Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
376
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
377
+  (0.0ms) begin transaction
378
+ 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]]
379
+  (3.8ms) commit transaction
380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
373
381
   (0.0ms) begin transaction
374
382
   (0.0ms) commit transaction
375
- Rendered text template (0.0ms)
376
- Completed 200 OK in 48ms (Views: 0.3ms | ActiveRecord: 0.6ms)
377
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
378
- Processing by ExampleController#restricted as JSON
379
- Completed in 11ms (ActiveRecord: 0.0ms)
380
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
381
- Processing by ExampleController#restricted as JSON
382
- Completed in 18ms (ActiveRecord: 0.0ms)
383
383
   (0.1ms) DROP TABLE IF EXISTS "users"
384
-  (1.7ms) SELECT sqlite_version(*)
385
-  (5.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
386
-  (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
384
+  (1.1ms) SELECT sqlite_version(*)
385
+  (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')
386
+  (4.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
387
387
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
388
388
   (0.1ms) begin transaction
389
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-11-05 10:36:56.473576"], ["updated_at", "2019-11-05 10:36:56.473576"]]
390
-  (5.1ms) commit transaction
391
-  (5.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
389
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-03-02 14:30:02.427819"], ["updated_at", "2020-03-02 14:30:02.427819"]]
390
+  (3.1ms) commit transaction
391
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
392
392
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
393
393
   (0.0ms) begin transaction
394
394
   (0.0ms) commit transaction
395
395
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
396
396
   (0.1ms) begin transaction
397
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "260"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
-  (7.9ms) commit transaction
397
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2768"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
+  (3.9ms) commit transaction
399
399
   (0.1ms) begin transaction
400
400
  User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
401
-  (4.9ms) commit transaction
402
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
403
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
404
-  (0.0ms) begin transaction
405
- User Create (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]]
406
-  (5.4ms) commit transaction
407
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
408
-  (0.1ms) begin transaction
409
-  (0.1ms) commit transaction
410
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
411
- Processing by ExampleController#restricted as JSON
412
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
401
+  (3.9ms) commit transaction
402
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
403
+ Processing by ExampleController#this_requires_signin_permission as JSON
404
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
413
405
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
414
-  (0.1ms) begin transaction
406
+  (0.0ms) begin transaction
415
407
  User Create (0.3ms) 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]]
416
-  (5.4ms) commit transaction
408
+  (3.3ms) commit transaction
417
409
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
418
410
   (0.1ms) begin transaction
419
411
   (0.1ms) commit transaction
@@ -424,264 +416,259 @@ Processing by ExampleController#restricted as JSON
424
416
   (0.1ms) begin transaction
425
417
   (0.1ms) commit transaction
426
418
   (0.0ms) begin transaction
427
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
428
-  (3.9ms) commit transaction
419
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
420
+  (4.3ms) commit transaction
429
421
  Rendering text template
430
422
  Rendered text template (0.0ms)
431
- Completed 200 OK in 81ms (Views: 5.1ms | ActiveRecord: 10.9ms)
432
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
433
- Processing by ExampleController#this_requires_signin_permission as JSON
434
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
423
+ Completed 200 OK in 85ms (Views: 3.0ms | ActiveRecord: 9.1ms)
424
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
425
+ Processing by ExampleController#restricted as JSON
426
+ Completed in 21ms (ActiveRecord: 0.0ms)
427
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
428
+ Processing by ExampleController#restricted as JSON
429
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
435
430
   (0.1ms) begin transaction
436
431
   (0.1ms) commit transaction
437
432
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
438
433
   (0.1ms) begin transaction
439
-  (0.1ms) commit transaction
434
+  (0.0ms) commit transaction
440
435
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
441
436
   (0.1ms) begin transaction
442
-  (0.1ms) commit transaction
437
+  (0.0ms) commit transaction
443
438
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
444
439
   (0.1ms) begin transaction
445
-  (0.1ms) commit transaction
440
+  (0.0ms) commit transaction
446
441
   (0.0ms) begin transaction
447
442
   (0.1ms) commit transaction
448
443
  Rendering text template
449
444
  Rendered text template (0.0ms)
450
- Completed 200 OK in 51ms (Views: 0.3ms | ActiveRecord: 0.7ms)
451
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
445
+ Completed 200 OK in 65ms (Views: 0.4ms | ActiveRecord: 0.9ms)
446
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
452
447
  Processing by ExampleController#restricted as JSON
453
- Completed in 18ms (ActiveRecord: 0.0ms)
454
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
455
- Processing by ExampleController#restricted as JSON
456
- Completed in 11ms (ActiveRecord: 0.0ms)
457
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
458
- Processing by ExampleController#restricted as HTML
459
- Authenticating with gds_sso strategy
460
- Completed in 0ms (ActiveRecord: 0.0ms)
461
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
448
+ Completed in 13ms (ActiveRecord: 0.0ms)
449
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
462
450
  Processing by ExampleController#restricted as HTML
463
451
  Authenticating with gds_sso strategy
464
452
  Completed in 0ms (ActiveRecord: 0.0ms)
465
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
466
- Started GET "/auth/gds/callback?code=8417d3a8c5404071439ca0dfa70646880af054cdb1fcad3526895b259a868828&state=aaf589514a62bc8fdaca8760c2bfd215ba43e7d598323085" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
453
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
454
+ Started GET "/auth/gds/callback?code=26a437ebf35d91ccbbf3931bc52805af65db4af865f181516715c0b5ecee486b&state=202432597d5ac66426c29d82fb60e04328247fb9ed9d5090" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
467
455
  Processing by AuthenticationsController#callback as HTML
468
- Parameters: {"code"=>"8417d3a8c5404071439ca0dfa70646880af054cdb1fcad3526895b259a868828", "state"=>"aaf589514a62bc8fdaca8760c2bfd215ba43e7d598323085"}
456
+ Parameters: {"code"=>"26a437ebf35d91ccbbf3931bc52805af65db4af865f181516715c0b5ecee486b", "state"=>"202432597d5ac66426c29d82fb60e04328247fb9ed9d5090"}
469
457
  Authenticating with gds_sso strategy
470
458
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
471
459
   (0.1ms) begin transaction
472
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
473
-  (4.5ms) commit transaction
460
+ User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
461
+  (9.5ms) commit transaction
474
462
   (0.0ms) begin transaction
475
-  (0.1ms) commit transaction
463
+  (0.0ms) commit transaction
476
464
  Redirected to http://www.example-client.com/restricted
477
- Completed 302 Found in 9ms (ActiveRecord: 5.1ms)
478
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
465
+ Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
466
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
479
467
  Processing by ExampleController#restricted as HTML
480
468
  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]]
481
469
  Rendering text template
482
470
  Rendered text template (0.0ms)
483
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
484
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
485
- Processing by ExampleController#this_requires_signin_permission as HTML
471
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
472
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
473
+ Processing by ExampleController#restricted as HTML
486
474
  Authenticating with gds_sso strategy
487
- Completed in 0ms (ActiveRecord: 0.0ms)
488
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
489
- Started GET "/auth/gds/callback?code=231c4ad97849c253b552a504f10c24e3b60f0f36e1733bf4e46a85843af6c0f1&state=56783c285b1890579b0f11933e4511586c825d2e645c837e" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
475
+ Completed in 1ms (ActiveRecord: 0.0ms)
476
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
477
+ Started GET "/auth/gds/callback?code=9b8f1f2e4a4263d42da6783bd6f3bad776977eca11a787750a9c3e5f1c5aa736&state=69e48656f18319e86e10e48b15d1fcbf57b5b87a86957cc3" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
490
478
  Processing by AuthenticationsController#callback as HTML
491
- Parameters: {"code"=>"231c4ad97849c253b552a504f10c24e3b60f0f36e1733bf4e46a85843af6c0f1", "state"=>"56783c285b1890579b0f11933e4511586c825d2e645c837e"}
479
+ Parameters: {"code"=>"9b8f1f2e4a4263d42da6783bd6f3bad776977eca11a787750a9c3e5f1c5aa736", "state"=>"69e48656f18319e86e10e48b15d1fcbf57b5b87a86957cc3"}
492
480
  Authenticating with gds_sso strategy
493
481
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
494
482
   (0.1ms) begin transaction
495
-  (0.1ms) commit transaction
483
+  (0.0ms) commit transaction
496
484
   (0.1ms) begin transaction
497
485
   (0.1ms) commit transaction
498
- Redirected to http://www.example-client.com/this_requires_signin_permission
499
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
500
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
501
- Processing by ExampleController#this_requires_signin_permission as HTML
502
- User Load (0.1ms) 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]]
486
+ Redirected to http://www.example-client.com/restricted
487
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
488
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
489
+ Processing by ExampleController#restricted as HTML
490
+ 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]]
503
491
  Rendering text template
504
492
  Rendered text template (0.0ms)
505
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
506
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
507
- Processing by ExampleController#this_requires_signin_permission as HTML
493
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
494
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
495
+ Processing by ExampleController#restricted as HTML
508
496
  Authenticating with gds_sso strategy
509
497
  Completed in 0ms (ActiveRecord: 0.0ms)
510
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
511
- Started GET "/auth/gds/callback?code=fc50dbdd0434d4ca4e586edaee5d514225bb07afff3c04c35158f09f036a8e07&state=4e27d65b3904d6dc4b89dc74e472451d0fa4d1fae198b5e3" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
498
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
499
+ Started GET "/auth/gds/callback?code=ee4a57e58116494d0c02166c5a05c4ad933cc5aa0aab93f77daea0a374b0ca2a&state=c47303624bb886942aa490907c2ff490aa2833fa4c124ea0" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
512
500
  Processing by AuthenticationsController#callback as HTML
513
- Parameters: {"code"=>"fc50dbdd0434d4ca4e586edaee5d514225bb07afff3c04c35158f09f036a8e07", "state"=>"4e27d65b3904d6dc4b89dc74e472451d0fa4d1fae198b5e3"}
501
+ Parameters: {"code"=>"ee4a57e58116494d0c02166c5a05c4ad933cc5aa0aab93f77daea0a374b0ca2a", "state"=>"c47303624bb886942aa490907c2ff490aa2833fa4c124ea0"}
514
502
  Authenticating with gds_sso strategy
515
503
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
516
504
   (0.1ms) begin transaction
505
+  (0.1ms) commit transaction
506
+  (0.1ms) begin transaction
517
507
   (0.0ms) commit transaction
518
-  (0.0ms) begin transaction
519
-  (0.0ms) commit transaction
520
- Redirected to http://www.example-client.com/this_requires_signin_permission
508
+ Redirected to http://www.example-client.com/restricted
521
509
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
522
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
523
- Processing by ExampleController#this_requires_signin_permission as HTML
510
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
511
+ Processing by ExampleController#restricted as HTML
524
512
  User Load (0.1ms) 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]]
525
513
  Rendering text template
526
514
  Rendered text template (0.0ms)
527
515
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
528
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
516
+ Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
529
517
  Processing by ExampleController#index as HTML
530
518
  Rendering text template
531
519
  Rendered text template (0.0ms)
532
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
533
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
534
- Processing by ExampleController#restricted as HTML
520
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
521
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
522
+ Processing by ExampleController#this_requires_signin_permission as HTML
535
523
  Authenticating with gds_sso strategy
536
524
  Completed in 0ms (ActiveRecord: 0.0ms)
537
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
538
- Started GET "/auth/gds/callback?code=761ba4a299ad51ea8e79ea2f80d72c507c5806a3dee6237c1134e543db472a98&state=0b19863e49a7660e41acdf3ccb06bda32f3565cbc71577df" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
525
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
526
+ Started GET "/auth/gds/callback?code=1bfb6cff5b56de209f2a3562e97990f1fd5db0e301c941a9ec7b69b9e68d68a7&state=cb4ff4eaf6107b43a2bb7865e85070c44fbd401dfdba0a8e" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
539
527
  Processing by AuthenticationsController#callback as HTML
540
- Parameters: {"code"=>"761ba4a299ad51ea8e79ea2f80d72c507c5806a3dee6237c1134e543db472a98", "state"=>"0b19863e49a7660e41acdf3ccb06bda32f3565cbc71577df"}
528
+ Parameters: {"code"=>"1bfb6cff5b56de209f2a3562e97990f1fd5db0e301c941a9ec7b69b9e68d68a7", "state"=>"cb4ff4eaf6107b43a2bb7865e85070c44fbd401dfdba0a8e"}
541
529
  Authenticating with gds_sso strategy
542
530
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
543
531
   (0.1ms) begin transaction
544
532
   (0.1ms) commit transaction
545
-  (0.0ms) begin transaction
533
+  (0.1ms) begin transaction
546
534
   (0.1ms) commit transaction
547
- Redirected to http://www.example-client.com/restricted
548
- Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
549
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
550
- Processing by ExampleController#restricted as HTML
535
+ Redirected to http://www.example-client.com/this_requires_signin_permission
536
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
537
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
538
+ Processing by ExampleController#this_requires_signin_permission as HTML
551
539
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
552
540
  Rendering text template
553
541
  Rendered text template (0.0ms)
554
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
555
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
556
- Processing by ExampleController#restricted as HTML
542
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
543
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
544
+ Processing by ExampleController#this_requires_signin_permission as HTML
557
545
  Authenticating with gds_sso strategy
558
546
  Completed in 0ms (ActiveRecord: 0.0ms)
559
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
560
- Started GET "/auth/gds/callback?code=d3730010dcd39bcda60bf0b40c9ba09485513cfae055dc991909e65b3114aaa0&state=8e07618c105f20a16502a24dc4b7b812c92b7bd37570f1e5" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
547
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
548
+ Started GET "/auth/gds/callback?code=59b4eec00cf9f5c691224cccfe2ac7679b4a7ec5450a9605c616e94c1681cb8f&state=210750d633ae672abec2eadc7f94c982b8164af6b5635fc4" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
561
549
  Processing by AuthenticationsController#callback as HTML
562
- Parameters: {"code"=>"d3730010dcd39bcda60bf0b40c9ba09485513cfae055dc991909e65b3114aaa0", "state"=>"8e07618c105f20a16502a24dc4b7b812c92b7bd37570f1e5"}
550
+ Parameters: {"code"=>"59b4eec00cf9f5c691224cccfe2ac7679b4a7ec5450a9605c616e94c1681cb8f", "state"=>"210750d633ae672abec2eadc7f94c982b8164af6b5635fc4"}
563
551
  Authenticating with gds_sso strategy
564
552
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
565
553
   (0.1ms) begin transaction
566
554
   (0.1ms) commit transaction
567
555
   (0.1ms) begin transaction
568
556
   (0.1ms) commit transaction
569
- Redirected to http://www.example-client.com/restricted
557
+ Redirected to http://www.example-client.com/this_requires_signin_permission
570
558
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
571
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
572
- Processing by ExampleController#restricted as HTML
559
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
560
+ Processing by ExampleController#this_requires_signin_permission as HTML
573
561
  User Load (0.1ms) 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]]
574
562
  Rendering text template
575
563
  Rendered text template (0.0ms)
576
564
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
577
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
565
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
578
566
  Processing by ExampleController#restricted as HTML
579
567
  Authenticating with gds_sso strategy
580
568
  Completed in 0ms (ActiveRecord: 0.0ms)
581
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
582
- Started GET "/auth/gds/callback?code=6e50a16cceabac45045094f24a4cf08b7a3ddfbf130144681e1ef26dec0b8b12&state=75f5d7023cbc6890898875d493f2d9c2961e7c762bf28b3b" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
569
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
570
+ Started GET "/auth/gds/callback?code=fb866fa3f163776f28651689f620cb13d78a33d5a3efc09035312160fd6a0c72&state=56bb89cf61c27e21844485e510c5c404b3983e53d969baeb" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
583
571
  Processing by AuthenticationsController#callback as HTML
584
- Parameters: {"code"=>"6e50a16cceabac45045094f24a4cf08b7a3ddfbf130144681e1ef26dec0b8b12", "state"=>"75f5d7023cbc6890898875d493f2d9c2961e7c762bf28b3b"}
572
+ Parameters: {"code"=>"fb866fa3f163776f28651689f620cb13d78a33d5a3efc09035312160fd6a0c72", "state"=>"56bb89cf61c27e21844485e510c5c404b3983e53d969baeb"}
585
573
  Authenticating with gds_sso strategy
586
574
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
587
575
   (0.1ms) begin transaction
588
-  (0.0ms) commit transaction
589
-  (0.0ms) begin transaction
590
-  (0.0ms) commit transaction
576
+  (0.1ms) commit transaction
577
+  (0.1ms) begin transaction
578
+  (0.1ms) commit transaction
591
579
  Redirected to http://www.example-client.com/restricted
592
580
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
593
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
581
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
594
582
  Processing by ExampleController#restricted as HTML
595
- 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]]
583
+ User Load (0.1ms) 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]]
596
584
  Rendering text template
597
585
  Rendered text template (0.0ms)
598
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
599
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
600
-  (0.0ms) begin transaction
601
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
602
-  (5.7ms) commit transaction
603
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
586
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
587
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:04 +0000
604
588
  Processing by ExampleController#restricted as HTML
605
589
  User Load (0.1ms) 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]]
590
+ Rendering text template
591
+ Rendered text template (0.0ms)
592
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
593
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
594
+ Processing by ExampleController#restricted as HTML
606
595
  Authenticating with gds_sso strategy
607
- Completed in 1ms (ActiveRecord: 0.1ms)
608
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
609
- Started GET "/auth/gds/callback?code=8893a521f415ed2d2f7ea78551e01ca7b57d992199582ce31bbc0eaa73c16b37&state=e4a3b135a1da78755d07dc4913fe45070cf96fe33083f966" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
596
+ Completed in 0ms (ActiveRecord: 0.0ms)
597
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
598
+ Started GET "/auth/gds/callback?code=c8bc30a8a3b0e975ad27dbd80f796a0d85a1bdb8019608b7f74a2bcac1b78fe6&state=124ddb579e2e70c527e4b46d00ea0884951a3b3782eee0f5" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
610
599
  Processing by AuthenticationsController#callback as HTML
611
- Parameters: {"code"=>"8893a521f415ed2d2f7ea78551e01ca7b57d992199582ce31bbc0eaa73c16b37", "state"=>"e4a3b135a1da78755d07dc4913fe45070cf96fe33083f966"}
600
+ Parameters: {"code"=>"c8bc30a8a3b0e975ad27dbd80f796a0d85a1bdb8019608b7f74a2bcac1b78fe6", "state"=>"124ddb579e2e70c527e4b46d00ea0884951a3b3782eee0f5"}
612
601
  Authenticating with gds_sso strategy
613
602
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
614
603
   (0.1ms) begin transaction
615
604
   (0.1ms) commit transaction
616
605
   (0.0ms) begin transaction
617
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
618
-  (5.6ms) commit transaction
606
+  (0.1ms) commit transaction
619
607
  Redirected to http://www.example-client.com/restricted
620
- Completed 302 Found in 10ms (ActiveRecord: 6.2ms)
621
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
608
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
609
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
622
610
  Processing by ExampleController#restricted as HTML
623
611
  User Load (0.1ms) 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
612
  Rendering text template
625
613
  Rendered text template (0.0ms)
626
614
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
627
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
615
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
628
616
  Processing by ExampleController#restricted as HTML
629
617
  Authenticating with gds_sso strategy
630
618
  Completed in 0ms (ActiveRecord: 0.0ms)
631
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
632
- Started GET "/auth/gds/callback?code=f2e8ceb458c0d48a53ef450758922020273685229a1dd704af443eaac8ca868a&state=4a3c78d4f13f3bfdeb34caa8e7a9cc34ff51e7250a1aa114" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
619
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
620
+ Started GET "/auth/gds/callback?code=8d42028ea4207552ef2a41da9ac8989ff64fd60c564ccf6bc6930ea68faf5f49&state=caa3f5b0e77db2055efc6fc6d4571b9a28d9a0ff6aeb2376" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
633
621
  Processing by AuthenticationsController#callback as HTML
634
- Parameters: {"code"=>"f2e8ceb458c0d48a53ef450758922020273685229a1dd704af443eaac8ca868a", "state"=>"4a3c78d4f13f3bfdeb34caa8e7a9cc34ff51e7250a1aa114"}
622
+ Parameters: {"code"=>"8d42028ea4207552ef2a41da9ac8989ff64fd60c564ccf6bc6930ea68faf5f49", "state"=>"caa3f5b0e77db2055efc6fc6d4571b9a28d9a0ff6aeb2376"}
635
623
  Authenticating with gds_sso strategy
636
624
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
637
625
   (0.1ms) begin transaction
638
626
   (0.1ms) commit transaction
639
-  (0.0ms) begin transaction
627
+  (0.1ms) begin transaction
640
628
   (0.1ms) commit transaction
641
629
  Redirected to http://www.example-client.com/restricted
642
630
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
643
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
631
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
644
632
  Processing by ExampleController#restricted as HTML
645
633
  User Load (0.1ms) 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]]
646
634
  Rendering text template
647
635
  Rendered text template (0.0ms)
648
636
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
649
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:31:58 +0000
650
- Processing by ExampleController#restricted as HTML
651
- User Load (0.1ms) 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]]
652
- Rendering text template
653
- Rendered text template (0.0ms)
654
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
655
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
637
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
656
638
  Processing by ExampleController#restricted as HTML
657
639
  Authenticating with gds_sso strategy
658
640
  Completed in 0ms (ActiveRecord: 0.0ms)
659
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
660
- Started GET "/auth/gds/callback?code=0c34b659cb41fca2cc7afd0e1152a681880300a1c0a9b4ced3aeb4c4c8c91d10&state=6055cd0ea4a4e1f6b5709a4b8e104a542f5eb986f54527cd" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
641
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
642
+ Started GET "/auth/gds/callback?code=ba05f6ebbe9f543a6c59a5c2cbc61afac6dff2159199f41ee4fb45d0890ec208&state=0dc638a61e688a2095707f7546b6639392594e66291441c1" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
661
643
  Processing by AuthenticationsController#callback as HTML
662
- Parameters: {"code"=>"0c34b659cb41fca2cc7afd0e1152a681880300a1c0a9b4ced3aeb4c4c8c91d10", "state"=>"6055cd0ea4a4e1f6b5709a4b8e104a542f5eb986f54527cd"}
644
+ Parameters: {"code"=>"ba05f6ebbe9f543a6c59a5c2cbc61afac6dff2159199f41ee4fb45d0890ec208", "state"=>"0dc638a61e688a2095707f7546b6639392594e66291441c1"}
663
645
  Authenticating with gds_sso strategy
664
646
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
665
647
   (0.1ms) begin transaction
666
-  (0.0ms) commit transaction
648
+  (0.1ms) commit transaction
667
649
   (0.0ms) begin transaction
668
650
   (0.0ms) commit transaction
669
651
  Redirected to http://www.example-client.com/restricted
670
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
671
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
652
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
653
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
672
654
  Processing by ExampleController#restricted as HTML
673
655
  User Load (0.1ms) 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]]
674
656
  Rendering text template
675
657
  Rendered text template (0.0ms)
676
658
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
677
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
659
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
678
660
  Processing by ExampleController#restricted as HTML
679
661
  Authenticating with gds_sso strategy
680
662
  Completed in 1ms (ActiveRecord: 0.0ms)
681
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
682
- Started GET "/auth/gds/callback?code=3ce04ed5a5e9bd2ef870a951ce55476f4e9b2cc650f7f9ce93522a700438cdcd&state=15a787623a75992d694d65584705620f9565b074ed59b0bc" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
663
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
664
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
665
+ Processing by ExampleController#restricted as HTML
666
+ Authenticating with gds_sso strategy
667
+ Completed in 0ms (ActiveRecord: 0.0ms)
668
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
669
+ Started GET "/auth/gds/callback?code=f25757c86feb7dbc4bd328b8e8e80d9f0aa61a22cce18138b1f9ffaa906dd450&state=cfa3eede7cc3af1f8c800b96f7209b56067057ceac272a4c" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
683
670
  Processing by AuthenticationsController#callback as HTML
684
- Parameters: {"code"=>"3ce04ed5a5e9bd2ef870a951ce55476f4e9b2cc650f7f9ce93522a700438cdcd", "state"=>"15a787623a75992d694d65584705620f9565b074ed59b0bc"}
671
+ Parameters: {"code"=>"f25757c86feb7dbc4bd328b8e8e80d9f0aa61a22cce18138b1f9ffaa906dd450", "state"=>"cfa3eede7cc3af1f8c800b96f7209b56067057ceac272a4c"}
685
672
  Authenticating with gds_sso strategy
686
673
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
674
   (0.1ms) begin transaction
@@ -689,570 +676,583 @@ Authenticating with gds_sso strategy
689
676
   (0.0ms) begin transaction
690
677
   (0.0ms) commit transaction
691
678
  Redirected to http://www.example-client.com/restricted
692
- Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
693
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
679
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
680
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
694
681
  Processing by ExampleController#restricted as HTML
695
682
  User Load (0.1ms) 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]]
696
683
  Rendering text template
697
684
  Rendered text template (0.0ms)
698
685
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
699
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
687
+  (0.1ms) begin transaction
688
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
689
+  (5.4ms) commit transaction
690
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
700
691
  Processing by ExampleController#restricted as HTML
692
+ User Load (0.1ms) 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]]
701
693
  Authenticating with gds_sso strategy
702
- Completed in 0ms (ActiveRecord: 0.0ms)
703
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
704
- Started GET "/auth/gds/callback?code=a60f183429d93f0ff6b6093a6fe5076af39d01b0961bb8b88f816a68dde35b61&state=ab326e7608a6ab3763ae84c74ca0ef56b635ca845dae6d8a" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
694
+ Completed in 1ms (ActiveRecord: 0.1ms)
695
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
696
+ Started GET "/auth/gds/callback?code=2f18120d84e864a48f8f0d9abdf73868f1377630d70b779735a50ab304e20026&state=3806da0be94442742b5dff39d7928a0aaa3c8f424d58db63" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
705
697
  Processing by AuthenticationsController#callback as HTML
706
- Parameters: {"code"=>"a60f183429d93f0ff6b6093a6fe5076af39d01b0961bb8b88f816a68dde35b61", "state"=>"ab326e7608a6ab3763ae84c74ca0ef56b635ca845dae6d8a"}
698
+ Parameters: {"code"=>"2f18120d84e864a48f8f0d9abdf73868f1377630d70b779735a50ab304e20026", "state"=>"3806da0be94442742b5dff39d7928a0aaa3c8f424d58db63"}
707
699
  Authenticating with gds_sso strategy
708
700
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
709
701
   (0.1ms) begin transaction
710
702
   (0.0ms) commit transaction
711
-  (0.1ms) begin transaction
712
-  (0.0ms) commit transaction
703
+  (0.0ms) begin transaction
704
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
705
+  (3.1ms) commit transaction
713
706
  Redirected to http://www.example-client.com/restricted
714
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
715
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
707
+ Completed 302 Found in 7ms (ActiveRecord: 3.7ms)
708
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
716
709
  Processing by ExampleController#restricted as HTML
717
710
  User Load (0.1ms) 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]]
718
711
  Rendering text template
719
- Rendered text template (0.0ms)
712
+ Rendered text template (0.1ms)
720
713
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
721
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
714
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
722
715
  Processing by ExampleController#restricted as HTML
723
716
  Authenticating with gds_sso strategy
724
717
  Completed in 0ms (ActiveRecord: 0.0ms)
725
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
726
718
   (0.1ms) begin transaction
727
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38035"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
728
-  (5.7ms) commit transaction
729
-  (0.0ms) begin transaction
730
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33022"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
719
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39360"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
731
720
   (4.6ms) commit transaction
732
- Processing by Api::UserController#update as HTML
733
- Parameters: {"uid"=>"a1s2d38035"}
734
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
735
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
736
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
737
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
738
- Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
739
-  (0.0ms) begin transaction
740
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37622"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
741
-  (5.0ms) commit transaction
742
721
   (0.0ms) begin transaction
743
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31596"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
744
-  (3.5ms) commit transaction
745
- Processing by Api::UserController#update as HTML
746
- Parameters: {"uid"=>"a1s2d37622"}
747
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37622"], ["LIMIT", 1]]
748
-  (0.1ms) begin transaction
749
- User Update (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", 6]]
722
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37317"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
723
   (4.1ms) commit transaction
751
- Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
752
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
724
+ Processing by Api::UserController#reauth as HTML
725
+ Parameters: {"uid"=>"a1s2d39360"}
726
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39360"], ["LIMIT", 1]]
753
727
   (0.1ms) begin transaction
754
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3221"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
755
-  (3.7ms) commit transaction
728
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
729
+  (3.6ms) commit transaction
730
+ Completed 200 OK in 6ms (ActiveRecord: 4.0ms)
731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
756
732
   (0.0ms) begin transaction
757
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31690"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
758
-  (4.8ms) commit transaction
733
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33753"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
734
+  (7.3ms) commit transaction
735
+  (0.0ms) begin transaction
736
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3305"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
737
+  (8.5ms) commit transaction
738
+ Processing by Api::UserController#reauth as HTML
739
+ Parameters: {"uid"=>"a1s2d33753"}
740
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
741
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
742
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
743
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
744
+ Completed 403 Forbidden in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
745
+  (0.1ms) begin transaction
746
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32284"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
747
+  (4.6ms) commit transaction
748
+  (0.1ms) begin transaction
749
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32264"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
+  (3.9ms) commit transaction
759
751
  Processing by Api::UserController#reauth as HTML
760
752
  Parameters: {"uid"=>"nonexistent-user"}
761
753
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
762
754
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
763
-  (0.1ms) begin transaction
764
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35266"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
765
-  (4.9ms) commit transaction
766
755
   (0.0ms) begin transaction
767
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36395"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
768
-  (3.2ms) commit transaction
769
- Processing by Api::UserController#reauth as HTML
770
- Parameters: {"uid"=>"a1s2d35266"}
771
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35266"], ["LIMIT", 1]]
756
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35431"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
757
+  (4.6ms) commit transaction
772
758
   (0.0ms) begin transaction
773
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
774
-  (4.1ms) commit transaction
775
- Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
776
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
759
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37098"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
760
+  (3.7ms) commit transaction
761
+ Processing by Api::UserController#update as HTML
762
+ Parameters: {"uid"=>"a1s2d35431"}
763
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35431"], ["LIMIT", 1]]
764
+  (0.0ms) begin transaction
765
+ User Update (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", 9]]
766
+  (3.5ms) commit transaction
767
+ Completed 200 OK in 7ms (ActiveRecord: 3.9ms)
768
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
777
769
   (0.0ms) begin transaction
778
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35714"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
779
-  (4.7ms) commit transaction
770
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31403"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
771
+  (7.4ms) commit transaction
780
772
   (0.0ms) begin transaction
781
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35711"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
782
-  (4.1ms) commit transaction
783
- Processing by Api::UserController#reauth as HTML
784
- Parameters: {"uid"=>"a1s2d35714"}
785
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
773
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36303"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
774
+  (4.0ms) commit transaction
775
+ Processing by Api::UserController#update as HTML
776
+ Parameters: {"uid"=>"a1s2d31403"}
777
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
786
778
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
787
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
779
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
788
780
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
789
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
790
-  (4.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') 
791
-  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
781
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
782
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
783
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
784
+  (0.1ms) begin transaction
785
+ User Create (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]]
786
+  (3.6ms) commit transaction
787
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
788
+  (0.0ms) begin transaction
789
+  (0.0ms) commit transaction
790
+  (3.5ms) 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') 
791
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
792
   (0.1ms) select sqlite_version(*)
793
-  (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
795
-  (0.1ms) begin transaction
796
- SQL (0.3ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "5322"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
797
-  (6.1ms) commit transaction
798
-  (0.1ms) begin transaction
799
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
800
-  (4.9ms) commit transaction
801
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
802
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
803
-  (0.1ms) begin transaction
804
- SQL (0.7ms) 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]]
805
-  (5.6ms) commit transaction
806
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
807
-  (0.0ms) begin transaction
808
-  (0.1ms) commit transaction
809
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
793
+  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
810
795
  Processing by ExampleController#this_requires_signin_permission as JSON
796
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
797
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
798
+  (0.1ms) begin transaction
799
+ 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]]
800
+  (4.5ms) commit transaction
811
801
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
812
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
802
+  (0.0ms) begin transaction
803
+  (0.1ms) commit transaction
804
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
813
805
   (0.1ms) begin transaction
814
- 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]]
815
-  (6.0ms) commit transaction
816
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
817
-  (0.0ms) begin transaction
818
806
   (0.1ms) commit transaction
819
807
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
808
   (0.1ms) begin transaction
821
809
   (0.1ms) commit transaction
822
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
823
-  (0.1ms) begin transaction
824
-  (0.1ms) commit transaction
825
-  (0.1ms) begin transaction
826
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
827
-  (5.9ms) commit transaction
810
+  (0.0ms) begin transaction
811
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
812
+  (6.1ms) commit transaction
828
813
  Rendered text template (0.0ms)
829
- Completed 200 OK in 113ms (Views: 12.6ms | ActiveRecord: 13.4ms)
830
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
814
+ Completed 200 OK in 108ms (Views: 9.1ms | ActiveRecord: 12.7ms)
815
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
831
816
  Processing by ExampleController#restricted as JSON
832
817
  Completed in 13ms (ActiveRecord: 0.0ms)
833
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
818
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
834
819
  Processing by ExampleController#restricted as JSON
835
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
821
+  (0.1ms) begin transaction
822
+  (0.1ms) commit transaction
823
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
836
824
   (0.1ms) begin transaction
837
825
   (0.1ms) commit transaction
838
826
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
839
-  (0.0ms) begin transaction
827
+  (0.1ms) begin transaction
840
828
   (0.1ms) commit transaction
841
829
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
842
830
   (0.1ms) begin transaction
843
831
   (0.1ms) commit transaction
844
- CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
845
-  (0.1ms) begin transaction
846
-  (0.0ms) commit transaction
847
-  (0.0ms) begin transaction
848
-  (0.1ms) commit transaction
832
+  (0.0ms) begin transaction
833
+  (0.1ms) commit transaction
849
834
  Rendered text template (0.0ms)
850
- Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 0.8ms)
851
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
835
+ Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 0.8ms)
836
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
852
837
  Processing by ExampleController#restricted as JSON
853
- Completed in 18ms (ActiveRecord: 0.0ms)
854
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
855
- Processing by ExampleController#restricted as HTML
856
- Authenticating with gds_sso strategy
857
- Completed in 0ms (ActiveRecord: 0.0ms)
858
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
838
+ Completed in 19ms (ActiveRecord: 0.0ms)
839
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
859
840
  Processing by ExampleController#restricted as HTML
860
841
  Authenticating with gds_sso strategy
861
842
  Completed in 0ms (ActiveRecord: 0.0ms)
862
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
863
- Started GET "/auth/gds/callback?code=65f0532d51b84821696b65646d3488c2b65db8be6d7a56090a5acc58996c0d6a&state=542207dc7276283bc1eff1b9ea6a354be2fccfd4856166ab" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
843
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
844
+ Started GET "/auth/gds/callback?code=dd812cdd5e46a8c52a3ecb64c9c8f864289af877d65ef992e6dd215eb9fce143&state=626d7df0b26b8530d06e1f84ea52490395c8be1ecbe1cfe4" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
864
845
  Processing by AuthenticationsController#callback as HTML
865
- Parameters: {"code"=>"65f0532d51b84821696b65646d3488c2b65db8be6d7a56090a5acc58996c0d6a", "state"=>"542207dc7276283bc1eff1b9ea6a354be2fccfd4856166ab"}
846
+ Parameters: {"code"=>"dd812cdd5e46a8c52a3ecb64c9c8f864289af877d65ef992e6dd215eb9fce143", "state"=>"626d7df0b26b8530d06e1f84ea52490395c8be1ecbe1cfe4"}
866
847
  Authenticating with gds_sso strategy
867
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
868
-  (0.1ms) begin transaction
869
- SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
870
-  (5.9ms) commit transaction
848
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
871
849
   (0.1ms) begin transaction
872
-  (0.1ms) commit transaction
850
+ SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
851
+  (4.1ms) commit transaction
852
+  (0.0ms) begin transaction
853
+  (0.0ms) commit transaction
873
854
  Redirected to http://www.example-client.com/restricted
874
- Completed 302 Found in 11ms (ActiveRecord: 6.6ms)
875
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
855
+ Completed 302 Found in 9ms (ActiveRecord: 4.6ms)
856
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
876
857
  Processing by ExampleController#restricted as HTML
877
- 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"]]
858
+ 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"]]
878
859
  Rendered text template (0.0ms)
879
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
880
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
860
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
861
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
881
862
  Processing by ExampleController#restricted as HTML
882
863
  Authenticating with gds_sso strategy
883
864
  Completed in 0ms (ActiveRecord: 0.0ms)
884
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
885
- Started GET "/auth/gds/callback?code=47970ddb0e24fe2b0a216f0ef7d8585257bfba4dc8a88713af3cb010a14d24dd&state=875701d7f824e509016238c4e374d89fa633e28ba8a1bda5" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
865
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
866
+ Started GET "/auth/gds/callback?code=ece0516949048a45623b71c607301ba87f2aa846f7ae0cd685d11791a1d8799f&state=39485c198da19461794feb47b78bb6fa2f3d0f6d64019e0e" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
886
867
  Processing by AuthenticationsController#callback as HTML
887
- Parameters: {"code"=>"47970ddb0e24fe2b0a216f0ef7d8585257bfba4dc8a88713af3cb010a14d24dd", "state"=>"875701d7f824e509016238c4e374d89fa633e28ba8a1bda5"}
868
+ Parameters: {"code"=>"ece0516949048a45623b71c607301ba87f2aa846f7ae0cd685d11791a1d8799f", "state"=>"39485c198da19461794feb47b78bb6fa2f3d0f6d64019e0e"}
888
869
  Authenticating with gds_sso strategy
889
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
890
-  (0.1ms) begin transaction
891
-  (0.1ms) commit transaction
892
-  (0.1ms) begin transaction
893
-  (0.1ms) commit transaction
870
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
871
+  (0.1ms) begin transaction
872
+  (0.0ms) commit transaction
873
+  (0.0ms) begin transaction
874
+  (0.0ms) commit transaction
894
875
  Redirected to http://www.example-client.com/restricted
895
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
896
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
876
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
877
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
897
878
  Processing by ExampleController#restricted as HTML
898
- 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"]]
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"]]
899
880
  Rendered text template (0.0ms)
900
881
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
901
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
882
+ Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
883
+ Processing by ExampleController#index as HTML
884
+ Rendered text template (0.0ms)
885
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
886
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
902
887
  Processing by ExampleController#this_requires_signin_permission as HTML
903
888
  Authenticating with gds_sso strategy
904
889
  Completed in 0ms (ActiveRecord: 0.0ms)
905
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
906
- Started GET "/auth/gds/callback?code=26847ed8dbe9621e9a46675fd9bbc4b18fbe56221a332926f27cc9afb14fdd39&state=c395c444a6019e0f8f7406be93f4f957dbfe0c443f93f8fc" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
890
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
891
+ Started GET "/auth/gds/callback?code=32380e0a6d719ec148ad119535ea4f817709a52ee13cf32a5a1f5d70b55fd503&state=21eb58a67be5eb8098d7970bf6bc70a8f266441561a711a9" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
907
892
  Processing by AuthenticationsController#callback as HTML
908
- Parameters: {"code"=>"26847ed8dbe9621e9a46675fd9bbc4b18fbe56221a332926f27cc9afb14fdd39", "state"=>"c395c444a6019e0f8f7406be93f4f957dbfe0c443f93f8fc"}
893
+ Parameters: {"code"=>"32380e0a6d719ec148ad119535ea4f817709a52ee13cf32a5a1f5d70b55fd503", "state"=>"21eb58a67be5eb8098d7970bf6bc70a8f266441561a711a9"}
909
894
  Authenticating with gds_sso strategy
910
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
911
-  (0.1ms) begin transaction
912
-  (0.0ms) commit transaction
913
-  (0.1ms) begin transaction
914
-  (0.1ms) commit transaction
895
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
896
+  (0.1ms) begin transaction
897
+  (0.1ms) commit transaction
898
+  (0.0ms) begin transaction
899
+  (0.0ms) commit transaction
915
900
  Redirected to http://www.example-client.com/this_requires_signin_permission
916
901
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
917
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
902
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
918
903
  Processing by ExampleController#this_requires_signin_permission as HTML
919
- 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"]]
904
+ 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"]]
920
905
  Rendered text template (0.0ms)
921
906
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
922
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
907
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
923
908
  Processing by ExampleController#this_requires_signin_permission as HTML
924
909
  Authenticating with gds_sso strategy
925
910
  Completed in 0ms (ActiveRecord: 0.0ms)
926
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
927
- Started GET "/auth/gds/callback?code=0c38c6a2b81cf239e53e051d8445d4904faa7c6e7f7094a8ab1a122046f4e04e&state=878a64c2b1a2569a27d5d597bcfcf2af9d9b950541d07fa8" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
911
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
912
+ Started GET "/auth/gds/callback?code=1b1fc01302bd1bc079f28eb2d0d054484b95b30e8db51dcd95281fc89e8666f3&state=fd73f5c93e145753164fa8d43dd9cc60dba86eb3ba6bf226" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
928
913
  Processing by AuthenticationsController#callback as HTML
929
- Parameters: {"code"=>"0c38c6a2b81cf239e53e051d8445d4904faa7c6e7f7094a8ab1a122046f4e04e", "state"=>"878a64c2b1a2569a27d5d597bcfcf2af9d9b950541d07fa8"}
914
+ Parameters: {"code"=>"1b1fc01302bd1bc079f28eb2d0d054484b95b30e8db51dcd95281fc89e8666f3", "state"=>"fd73f5c93e145753164fa8d43dd9cc60dba86eb3ba6bf226"}
930
915
  Authenticating with gds_sso strategy
931
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
932
-  (0.1ms) begin transaction
933
-  (0.1ms) commit transaction
934
-  (0.1ms) begin transaction
935
-  (0.1ms) commit transaction
916
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
917
+  (0.1ms) begin transaction
918
+  (0.0ms) commit transaction
919
+  (0.1ms) begin transaction
920
+  (0.1ms) commit transaction
936
921
  Redirected to http://www.example-client.com/this_requires_signin_permission
937
922
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
938
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
923
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
939
924
  Processing by ExampleController#this_requires_signin_permission as HTML
940
- 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"]]
941
- Rendered text template (0.0ms)
942
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
943
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
944
- Processing by ExampleController#index as HTML
945
- Rendered text template (0.0ms)
946
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
947
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
948
- Processing by ExampleController#restricted as HTML
949
- Authenticating with gds_sso strategy
950
- Completed in 0ms (ActiveRecord: 0.0ms)
951
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
952
- Started GET "/auth/gds/callback?code=70f890c37306f6a5847e7fc45efd74c818ac579937c406189bf2725e0976ba7e&state=3810aa6604f0446ea31f28ed3ae675050cf45142413ced60" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
953
- Processing by AuthenticationsController#callback as HTML
954
- Parameters: {"code"=>"70f890c37306f6a5847e7fc45efd74c818ac579937c406189bf2725e0976ba7e", "state"=>"3810aa6604f0446ea31f28ed3ae675050cf45142413ced60"}
955
- Authenticating with gds_sso strategy
956
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
957
-  (0.1ms) begin transaction
958
-  (0.1ms) commit transaction
959
-  (0.0ms) begin transaction
960
-  (0.0ms) commit transaction
961
- Redirected to http://www.example-client.com/restricted
962
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
963
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
964
- Processing by ExampleController#restricted as HTML
965
- 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"]]
925
+ 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"]]
966
926
  Rendered text template (0.0ms)
967
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
968
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
927
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
928
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
969
929
  Processing by ExampleController#restricted as HTML
970
930
  Authenticating with gds_sso strategy
971
931
  Completed in 0ms (ActiveRecord: 0.0ms)
972
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
973
- Started GET "/auth/gds/callback?code=8363cb484649d75ddc86f9176a100ece790303ee103be7b0ff73988c29d8bbd7&state=20782fda4f3d4c602ef93c9ee09841f445d62fbdaefad370" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
932
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
933
+ Started GET "/auth/gds/callback?code=79bcc1397f0c11b5303566dc40bdb7b4b58049757112daef86f414f5334b3b99&state=830bc8243c62b9320b873e83ba04c94e36044c30aa0255fc" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
974
934
  Processing by AuthenticationsController#callback as HTML
975
- Parameters: {"code"=>"8363cb484649d75ddc86f9176a100ece790303ee103be7b0ff73988c29d8bbd7", "state"=>"20782fda4f3d4c602ef93c9ee09841f445d62fbdaefad370"}
935
+ Parameters: {"code"=>"79bcc1397f0c11b5303566dc40bdb7b4b58049757112daef86f414f5334b3b99", "state"=>"830bc8243c62b9320b873e83ba04c94e36044c30aa0255fc"}
976
936
  Authenticating with gds_sso strategy
977
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
978
-  (0.1ms) begin transaction
979
-  (0.1ms) commit transaction
980
-  (0.1ms) begin transaction
981
-  (0.1ms) commit transaction
937
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
938
+  (0.1ms) begin transaction
939
+  (0.1ms) commit transaction
940
+  (0.0ms) begin transaction
941
+  (0.0ms) commit transaction
982
942
  Redirected to http://www.example-client.com/restricted
983
943
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
984
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
985
- Processing by ExampleController#restricted as HTML
986
- 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"]]
987
- Rendered text template (0.0ms)
988
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
989
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:32:08 +0000
944
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
990
945
  Processing by ExampleController#restricted as HTML
991
946
  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"]]
992
947
  Rendered text template (0.0ms)
993
948
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
994
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
949
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
995
950
  Processing by ExampleController#restricted as HTML
996
951
  Authenticating with gds_sso strategy
997
952
  Completed in 0ms (ActiveRecord: 0.0ms)
998
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
999
- Started GET "/auth/gds/callback?code=754071cdf58d47b324fe03ccc52d23a31c4ff6ebae4048d48ba9c4d77652ebe6&state=77285998fb01c1418d985d3781fdfb01bf8eac9c657b1215" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
953
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
954
+ Started GET "/auth/gds/callback?code=a85d986c64bcd23d6ac88f6d6879f0d0c72396e7bc5372a406c9a9b72bc4fe25&state=5617262dffa6731048617294e6a233f068b014b1a35ce823" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1000
955
  Processing by AuthenticationsController#callback as HTML
1001
- Parameters: {"code"=>"754071cdf58d47b324fe03ccc52d23a31c4ff6ebae4048d48ba9c4d77652ebe6", "state"=>"77285998fb01c1418d985d3781fdfb01bf8eac9c657b1215"}
956
+ Parameters: {"code"=>"a85d986c64bcd23d6ac88f6d6879f0d0c72396e7bc5372a406c9a9b72bc4fe25", "state"=>"5617262dffa6731048617294e6a233f068b014b1a35ce823"}
1002
957
  Authenticating with gds_sso strategy
1003
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1004
959
   (0.1ms) begin transaction
1005
960
   (0.0ms) commit transaction
1006
961
   (0.0ms) begin transaction
1007
962
   (0.0ms) commit transaction
1008
963
  Redirected to http://www.example-client.com/restricted
1009
964
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1010
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
965
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1011
966
  Processing by ExampleController#restricted as HTML
1012
967
  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"]]
1013
968
  Rendered text template (0.0ms)
1014
969
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1015
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:08 +0000
970
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:13 +0000
971
+ Processing by ExampleController#restricted as HTML
972
+ 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"]]
973
+ Rendered text template (0.0ms)
974
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
975
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
976
+ Processing by ExampleController#restricted as HTML
977
+ Authenticating with gds_sso strategy
978
+ Completed in 0ms (ActiveRecord: 0.0ms)
979
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
980
+ Started GET "/auth/gds/callback?code=cd337cef55f20dbb455571c6882f0182824a8193a3476077b64826d8abc1a2b3&state=74f60128482fb3095cf8075baf672f84ae42c7de839e3368" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
981
+ Processing by AuthenticationsController#callback as HTML
982
+ Parameters: {"code"=>"cd337cef55f20dbb455571c6882f0182824a8193a3476077b64826d8abc1a2b3", "state"=>"74f60128482fb3095cf8075baf672f84ae42c7de839e3368"}
983
+ Authenticating with gds_sso strategy
984
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
985
+  (0.1ms) begin transaction
986
+  (0.0ms) commit transaction
987
+  (0.0ms) begin transaction
988
+  (0.0ms) commit transaction
989
+ 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 2020-03-02 14:30:13 +0000
1016
992
  Processing by ExampleController#restricted as HTML
1017
- Authenticating with gds_sso strategy
1018
- Completed in 0ms (ActiveRecord: 0.0ms)
1019
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:08 +0000
1020
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
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"]]
994
+ Rendered text template (0.0ms)
995
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
996
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1021
997
  Processing by ExampleController#restricted as HTML
1022
998
  Authenticating with gds_sso strategy
1023
999
  Completed in 0ms (ActiveRecord: 0.0ms)
1024
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1025
- Started GET "/auth/gds/callback?code=791d52d3c37c24bd5cc03d4695b7fd0a52277c378c2542af00dffeaeeba9b28f&state=32208253b8e8dbcc2b0397cf8b0adf8dadf08fdf85e07201" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1000
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1001
+ Started GET "/auth/gds/callback?code=768f547a0848cbf0440df0ed7630a4bb35c2bb4331ed4477365bebc9df96b844&state=547ea3f901138f73c5b206a53ec5e35e49a4b84800b06e53" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1026
1002
  Processing by AuthenticationsController#callback as HTML
1027
- Parameters: {"code"=>"791d52d3c37c24bd5cc03d4695b7fd0a52277c378c2542af00dffeaeeba9b28f", "state"=>"32208253b8e8dbcc2b0397cf8b0adf8dadf08fdf85e07201"}
1003
+ Parameters: {"code"=>"768f547a0848cbf0440df0ed7630a4bb35c2bb4331ed4477365bebc9df96b844", "state"=>"547ea3f901138f73c5b206a53ec5e35e49a4b84800b06e53"}
1028
1004
  Authenticating with gds_sso strategy
1029
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1030
-  (0.1ms) begin transaction
1031
-  (0.0ms) commit transaction
1032
-  (0.1ms) begin transaction
1033
-  (0.0ms) commit transaction
1005
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1006
+  (0.1ms) begin transaction
1007
+  (0.1ms) commit transaction
1008
+  (0.1ms) begin transaction
1009
+  (0.1ms) commit transaction
1034
1010
  Redirected to http://www.example-client.com/restricted
1035
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1036
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1011
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1012
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1037
1013
  Processing by ExampleController#restricted as HTML
1038
- 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"]]
1014
+ 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"]]
1039
1015
  Rendered text template (0.0ms)
1040
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1041
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1016
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1017
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1042
1018
  Processing by ExampleController#restricted as HTML
1043
1019
  Authenticating with gds_sso strategy
1044
1020
  Completed in 0ms (ActiveRecord: 0.0ms)
1045
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1046
- Started GET "/auth/gds/callback?code=d276d5d03cc7ba7a594ee4ee7044b4efe034434d589aa54c835d8301a312e3f0&state=8b0ee869793cea797d0a4f1d57c32371aee69282bfc7a061" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1021
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1022
+ Started GET "/auth/gds/callback?code=15b9ba3e07690c6db51b357a084750c4f0d2bcb6687acb93d5a64074c38b7cf4&state=13016dbd3c76bd970b967c37c6e6db88e55df6e956f65e16" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1047
1023
  Processing by AuthenticationsController#callback as HTML
1048
- Parameters: {"code"=>"d276d5d03cc7ba7a594ee4ee7044b4efe034434d589aa54c835d8301a312e3f0", "state"=>"8b0ee869793cea797d0a4f1d57c32371aee69282bfc7a061"}
1024
+ Parameters: {"code"=>"15b9ba3e07690c6db51b357a084750c4f0d2bcb6687acb93d5a64074c38b7cf4", "state"=>"13016dbd3c76bd970b967c37c6e6db88e55df6e956f65e16"}
1049
1025
  Authenticating with gds_sso strategy
1050
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1051
-  (0.1ms) begin transaction
1052
-  (0.1ms) commit transaction
1053
-  (0.1ms) begin transaction
1054
-  (0.1ms) commit transaction
1026
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1027
+  (0.1ms) begin transaction
1028
+  (0.0ms) commit transaction
1029
+  (0.0ms) begin transaction
1030
+  (0.0ms) commit transaction
1055
1031
  Redirected to http://www.example-client.com/restricted
1056
1032
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1057
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1033
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1058
1034
  Processing by ExampleController#restricted as HTML
1059
- 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"]]
1035
+ 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"]]
1060
1036
  Rendered text template (0.0ms)
1061
1037
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1062
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1038
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1039
+ Processing by ExampleController#restricted as HTML
1040
+ Authenticating with gds_sso strategy
1041
+ Completed in 0ms (ActiveRecord: 0.0ms)
1042
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1043
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1063
1044
  Processing by ExampleController#restricted as HTML
1064
1045
  Authenticating with gds_sso strategy
1065
1046
  Completed in 0ms (ActiveRecord: 0.0ms)
1066
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1067
- Started GET "/auth/gds/callback?code=1b3fd05a055e9c704be76891b72bf1ac9bf62c8a8483d8c6349a1087618af5e6&state=484476ed341b3343fa78a4aeef1091a32aa34782fefd867c" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1047
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1048
+ Started GET "/auth/gds/callback?code=95669eeef70fddf935f37a9e082a21c4d4d29f30ff355011aee035459a209941&state=190ad76b731783db4fb8201905d65d645e815e20be639000" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1068
1049
  Processing by AuthenticationsController#callback as HTML
1069
- Parameters: {"code"=>"1b3fd05a055e9c704be76891b72bf1ac9bf62c8a8483d8c6349a1087618af5e6", "state"=>"484476ed341b3343fa78a4aeef1091a32aa34782fefd867c"}
1050
+ Parameters: {"code"=>"95669eeef70fddf935f37a9e082a21c4d4d29f30ff355011aee035459a209941", "state"=>"190ad76b731783db4fb8201905d65d645e815e20be639000"}
1070
1051
  Authenticating with gds_sso strategy
1071
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1072
-  (0.1ms) begin transaction
1073
-  (0.0ms) commit transaction
1074
-  (0.0ms) begin transaction
1075
-  (0.0ms) commit transaction
1052
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1053
+  (0.1ms) begin transaction
1054
+  (0.0ms) commit transaction
1055
+  (0.0ms) begin transaction
1056
+  (0.0ms) commit transaction
1076
1057
  Redirected to http://www.example-client.com/restricted
1077
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1078
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1058
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1059
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1079
1060
  Processing by ExampleController#restricted as HTML
1080
- 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"]]
1061
+ 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"]]
1081
1062
  Rendered text template (0.0ms)
1082
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1083
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1084
-  (0.0ms) begin transaction
1085
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1086
-  (5.7ms) commit transaction
1087
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1063
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1065
+  (0.0ms) begin transaction
1066
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
1067
+  (5.9ms) commit transaction
1068
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1088
1069
  Processing by ExampleController#restricted as HTML
1089
- 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"]]
1070
+ 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"]]
1090
1071
  Authenticating with gds_sso strategy
1091
1072
  Completed in 1ms (ActiveRecord: 0.1ms)
1092
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1093
- Started GET "/auth/gds/callback?code=774988f3c64378d72974ef2cf91381de0f7128f10c1da845bb742da0778d9500&state=48999f245a06b1b4c4841b7aeaf4a55471f5a3195e74eff8" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1073
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1074
+ Started GET "/auth/gds/callback?code=3a476b2813ed5ee3c0192a09318149e921a04fc20da35f0bee773ea5dd4260a7&state=98cd0ee42509e856d23aab42d6bb804f4094de674b7cf362" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1094
1075
  Processing by AuthenticationsController#callback as HTML
1095
- Parameters: {"code"=>"774988f3c64378d72974ef2cf91381de0f7128f10c1da845bb742da0778d9500", "state"=>"48999f245a06b1b4c4841b7aeaf4a55471f5a3195e74eff8"}
1076
+ Parameters: {"code"=>"3a476b2813ed5ee3c0192a09318149e921a04fc20da35f0bee773ea5dd4260a7", "state"=>"98cd0ee42509e856d23aab42d6bb804f4094de674b7cf362"}
1096
1077
  Authenticating with gds_sso strategy
1097
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1098
-  (0.1ms) begin transaction
1099
-  (0.0ms) commit transaction
1100
-  (0.0ms) begin transaction
1101
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
1102
-  (4.7ms) commit transaction
1078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1079
+  (0.1ms) begin transaction
1080
+  (0.0ms) commit transaction
1081
+  (0.0ms) begin transaction
1082
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
1083
+  (18.8ms) commit transaction
1103
1084
  Redirected to http://www.example-client.com/restricted
1104
- Completed 302 Found in 9ms (ActiveRecord: 5.2ms)
1105
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1085
+ Completed 302 Found in 23ms (ActiveRecord: 19.3ms)
1086
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:14 +0000
1106
1087
  Processing by ExampleController#restricted as HTML
1107
- 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"]]
1088
+ 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"]]
1108
1089
  Rendered text template (0.0ms)
1109
1090
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1110
-  (0.0ms) begin transaction
1111
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33715"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1112
-  (4.0ms) commit transaction
1113
-  (0.3ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31363"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1115
-  (4.7ms) commit transaction
1116
- Processing by Api::UserController#update as HTML
1117
- Parameters: {"uid"=>"a1s2d33715"}
1118
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1119
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1120
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1121
- Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
1122
-  (0.0ms) begin transaction
1123
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3115"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1124
-  (4.7ms) commit transaction
1125
-  (0.0ms) begin transaction
1126
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38221"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1127
-  (3.4ms) commit transaction
1128
- Processing by Api::UserController#update as HTML
1129
- Parameters: {"uid"=>"a1s2d3115"}
1130
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3115"]]
1091
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:14 +0000
1092
+ Processing by ExampleController#restricted as HTML
1093
+ Authenticating with gds_sso strategy
1094
+ Completed in 0ms (ActiveRecord: 0.0ms)
1095
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1096
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1131
1097
   (0.0ms) begin transaction
1132
- 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", 6]]
1098
+ 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]]
1133
1099
   (3.7ms) commit transaction
1134
- Completed 200 OK in 7ms (ActiveRecord: 4.1ms)
1135
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1100
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1101
+  (0.1ms) begin transaction
1102
+  (0.0ms) commit transaction
1103
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1104
+  (0.0ms) begin transaction
1105
+ SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "2118"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1106
+  (3.9ms) commit transaction
1136
1107
   (0.0ms) begin transaction
1137
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34531"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1138
-  (3.8ms) commit transaction
1108
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
1109
+  (3.5ms) commit transaction
1139
1110
   (0.0ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31528"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1141
-  (5.4ms) commit transaction
1111
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37628"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1112
+  (3.7ms) commit transaction
1113
+  (0.0ms) begin transaction
1114
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34291"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1115
+  (3.9ms) commit transaction
1142
1116
  Processing by Api::UserController#reauth as HTML
1143
- Parameters: {"uid"=>"nonexistent-user"}
1144
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1145
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1146
-  (0.0ms) begin transaction
1147
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3743"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1117
+ Parameters: {"uid"=>"a1s2d37628"}
1118
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1119
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1120
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1121
+ Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
1122
+  (0.1ms) begin transaction
1123
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35348"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1148
1124
   (3.7ms) commit transaction
1149
1125
   (0.0ms) begin transaction
1150
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37037"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1151
-  (3.5ms) commit transaction
1126
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35349"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1127
+  (4.0ms) commit transaction
1152
1128
  Processing by Api::UserController#reauth as HTML
1153
- Parameters: {"uid"=>"a1s2d3743"}
1154
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3743"]]
1155
-  (0.1ms) begin transaction
1156
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1157
-  (3.2ms) commit transaction
1158
- Completed 200 OK in 5ms (ActiveRecord: 3.5ms)
1159
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
1129
+ Parameters: {"uid"=>"nonexistent-user"}
1130
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1131
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1160
1132
   (0.0ms) begin transaction
1161
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3892"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1162
-  (4.9ms) commit transaction
1133
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37757"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1134
+  (5.4ms) commit transaction
1163
1135
   (0.0ms) begin transaction
1164
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35421"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1136
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39708"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1165
1137
   (3.9ms) commit transaction
1166
1138
  Processing by Api::UserController#reauth as HTML
1167
- Parameters: {"uid"=>"a1s2d3892"}
1139
+ Parameters: {"uid"=>"a1s2d37757"}
1140
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d37757"]]
1141
+  (0.0ms) begin transaction
1142
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1143
+  (2.5ms) commit transaction
1144
+ Completed 200 OK in 4ms (ActiveRecord: 2.8ms)
1145
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1146
+  (0.0ms) begin transaction
1147
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36279"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1148
+  (3.7ms) commit transaction
1149
+  (0.0ms) begin transaction
1150
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3930"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1151
+  (3.4ms) commit transaction
1152
+ Processing by Api::UserController#update as HTML
1153
+ Parameters: {"uid"=>"a1s2d36279"}
1168
1154
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1169
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1155
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1170
1156
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1171
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1172
-  (0.2ms) DROP TABLE IF EXISTS "users"
1173
-  (1.7ms) SELECT sqlite_version(*)
1174
-  (3.9ms) 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')
1175
-  (5.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1157
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1158
+  (0.0ms) begin transaction
1159
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33911"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1160
+  (6.8ms) commit transaction
1161
+  (0.1ms) begin transaction
1162
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32990"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1163
+  (4.8ms) commit transaction
1164
+ Processing by Api::UserController#update as HTML
1165
+ Parameters: {"uid"=>"a1s2d33911"}
1166
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33911"]]
1167
+  (0.1ms) begin transaction
1168
+ 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", 12]]
1169
+  (6.5ms) commit transaction
1170
+ Completed 200 OK in 10ms (ActiveRecord: 6.9ms)
1171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12]]
1172
+  (0.1ms) DROP TABLE IF EXISTS "users"
1173
+  (1.2ms) SELECT sqlite_version(*)
1174
+  (3.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')
1175
+  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1176
1176
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1177
1177
   (0.1ms) begin transaction
1178
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-11-05 10:37:16.110864"], ["updated_at", "2019-11-05 10:37:16.110864"]]
1179
-  (4.2ms) commit transaction
1180
-  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1178
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-03-02 14:30:20.186663"], ["updated_at", "2020-03-02 14:30:20.186663"]]
1179
+  (3.2ms) commit transaction
1180
+  (5.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1181
1181
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1182
-  (0.1ms) begin transaction
1183
-  (0.1ms) commit transaction
1182
+  (0.0ms) begin transaction
1183
+  (0.0ms) commit transaction
1184
1184
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1185
1185
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1186
1186
   (0.1ms) begin transaction
1187
1187
  User Create (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]]
1188
-  (3.8ms) commit transaction
1188
+  (3.9ms) commit transaction
1189
1189
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1190
1190
   (0.0ms) begin transaction
1191
1191
   (0.1ms) commit transaction
1192
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1192
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1193
1193
  Processing by ExampleController#restricted as HTML
1194
1194
  Authenticating with gds_sso strategy
1195
1195
  Completed in 5ms (ActiveRecord: 0.0ms)
1196
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1197
- Processing by ExampleController#index as HTML
1198
- Rendering text template
1199
- Rendered text template (0.0ms)
1200
- Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
1201
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1196
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1202
1197
  Processing by ExampleController#restricted as HTML
1203
1198
  Authenticating with gds_sso strategy
1204
1199
  Completed in 0ms (ActiveRecord: 0.0ms)
1205
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1206
- Started GET "/auth/gds/callback?code=b2e081a01c55852ec968628695b40215d03080d7531026c03f97d2ac5c871013&state=249ab4ad21fe2e9024498cdd741f8717458f8aa3f3deaa0a" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1200
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1201
+ Started GET "/auth/gds/callback?code=626790cbc5ceba33fa24e7224b17c82d37bc78f8df92274c1c794222f36f96ff&state=9bb03a8550932fe10fc993b13a886530d8e2467c3401a2c5" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1207
1202
  Processing by AuthenticationsController#callback as HTML
1208
- Parameters: {"code"=>"b2e081a01c55852ec968628695b40215d03080d7531026c03f97d2ac5c871013", "state"=>"249ab4ad21fe2e9024498cdd741f8717458f8aa3f3deaa0a"}
1203
+ Parameters: {"code"=>"626790cbc5ceba33fa24e7224b17c82d37bc78f8df92274c1c794222f36f96ff", "state"=>"9bb03a8550932fe10fc993b13a886530d8e2467c3401a2c5"}
1209
1204
  Authenticating with gds_sso strategy
1210
1205
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1211
1206
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1212
1207
   (0.1ms) begin transaction
1213
1208
  User Create (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"]]
1214
-  (3.9ms) commit transaction
1215
-  (0.0ms) begin transaction
1209
+  (5.1ms) commit transaction
1210
+  (0.1ms) begin transaction
1216
1211
  User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1217
-  (4.1ms) commit transaction
1212
+  (5.2ms) commit transaction
1218
1213
  Redirected to http://www.example-client.com/restricted
1219
- Completed 302 Found in 13ms (ActiveRecord: 8.9ms)
1220
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1214
+ Completed 302 Found in 16ms (ActiveRecord: 11.3ms)
1215
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1221
1216
  Processing by ExampleController#restricted as HTML
1222
1217
  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]]
1223
1218
  Rendering text template
1224
1219
  Rendered text template (0.0ms)
1225
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1226
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1220
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1221
+ Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1222
+ Processing by ExampleController#index as HTML
1223
+ Rendering text template
1224
+ Rendered text template (0.0ms)
1225
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1226
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1227
1227
  Processing by ExampleController#restricted as HTML
1228
1228
  Authenticating with gds_sso strategy
1229
1229
  Completed in 0ms (ActiveRecord: 0.0ms)
1230
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1231
- Started GET "/auth/gds/callback?code=7df0dd3451444a31de346f5b20a14c71527ed8b036a039e0cac40beec027eca4&state=291ed638f67556685ff7799b4fa5fa0f6d521bf97f0ac862" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1230
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1231
+ Started GET "/auth/gds/callback?code=7a1ca26d7a6215c7696dbea073651aabf12a9476c14f3261329d857fcfe58530&state=7f9ab544e0b3ba84927f418032838afef62945a7eb4348da" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1232
1232
  Processing by AuthenticationsController#callback as HTML
1233
- Parameters: {"code"=>"7df0dd3451444a31de346f5b20a14c71527ed8b036a039e0cac40beec027eca4", "state"=>"291ed638f67556685ff7799b4fa5fa0f6d521bf97f0ac862"}
1233
+ Parameters: {"code"=>"7a1ca26d7a6215c7696dbea073651aabf12a9476c14f3261329d857fcfe58530", "state"=>"7f9ab544e0b3ba84927f418032838afef62945a7eb4348da"}
1234
1234
  Authenticating with gds_sso strategy
1235
1235
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1236
1236
   (0.1ms) begin transaction
1237
1237
   (0.1ms) commit transaction
1238
-  (0.0ms) begin transaction
1238
+  (0.1ms) begin transaction
1239
1239
   (0.1ms) commit transaction
1240
1240
  Redirected to http://www.example-client.com/restricted
1241
1241
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1242
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1242
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1243
1243
  Processing by ExampleController#restricted as HTML
1244
1244
  User Load (0.1ms) 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]]
1245
1245
  Rendering text template
1246
1246
  Rendered text template (0.0ms)
1247
1247
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1248
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1248
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1249
1249
  Processing by ExampleController#restricted as HTML
1250
1250
  Authenticating with gds_sso strategy
1251
1251
  Completed in 0ms (ActiveRecord: 0.0ms)
1252
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1253
- Started GET "/auth/gds/callback?code=4de88ba0ebc5c15a6099eabf2a2fafabcd21b5f5e7d75ae37ec2cd2d9b78eac0&state=51f49ecc9afa91d10d125c173901b82c833fabe9502c8bb7" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1252
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1253
+ Started GET "/auth/gds/callback?code=b16dcb8e40320f38403e25cd0c23c56e5a3480752a950a5fc212fc875daefde0&state=04a2f73151bfd8a64f2ff4241c137eb3e42328102142c300" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1254
1254
  Processing by AuthenticationsController#callback as HTML
1255
- Parameters: {"code"=>"4de88ba0ebc5c15a6099eabf2a2fafabcd21b5f5e7d75ae37ec2cd2d9b78eac0", "state"=>"51f49ecc9afa91d10d125c173901b82c833fabe9502c8bb7"}
1255
+ Parameters: {"code"=>"b16dcb8e40320f38403e25cd0c23c56e5a3480752a950a5fc212fc875daefde0", "state"=>"04a2f73151bfd8a64f2ff4241c137eb3e42328102142c300"}
1256
1256
  Authenticating with gds_sso strategy
1257
1257
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1258
1258
   (0.1ms) begin transaction
@@ -1261,20 +1261,20 @@ Authenticating with gds_sso strategy
1261
1261
   (0.0ms) commit transaction
1262
1262
  Redirected to http://www.example-client.com/restricted
1263
1263
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1264
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1264
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1265
1265
  Processing by ExampleController#restricted as HTML
1266
1266
  User Load (0.1ms) 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
1267
  Rendering text template
1268
1268
  Rendered text template (0.0ms)
1269
1269
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1270
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1270
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1271
1271
  Processing by ExampleController#this_requires_signin_permission as HTML
1272
1272
  Authenticating with gds_sso strategy
1273
1273
  Completed in 0ms (ActiveRecord: 0.0ms)
1274
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1275
- Started GET "/auth/gds/callback?code=20f4fe844a3dc8b6dcdb1e7eb96c9e91cbd7c897cf3360d3232733b83ee63934&state=eb5558636d7cb4b0d399be8c0b48d6fd186e01667f9f1170" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1274
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1275
+ Started GET "/auth/gds/callback?code=c5067ee091130c71216b3b8b91b03b96a72786634d88126fc1daac4dd7c73746&state=c279600a9c2ba5699334bfc8945825e5bde3472b484d0ee5" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1276
1276
  Processing by AuthenticationsController#callback as HTML
1277
- Parameters: {"code"=>"20f4fe844a3dc8b6dcdb1e7eb96c9e91cbd7c897cf3360d3232733b83ee63934", "state"=>"eb5558636d7cb4b0d399be8c0b48d6fd186e01667f9f1170"}
1277
+ Parameters: {"code"=>"c5067ee091130c71216b3b8b91b03b96a72786634d88126fc1daac4dd7c73746", "state"=>"c279600a9c2ba5699334bfc8945825e5bde3472b484d0ee5"}
1278
1278
  Authenticating with gds_sso strategy
1279
1279
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1280
1280
   (0.1ms) begin transaction
@@ -1282,43 +1282,43 @@ Authenticating with gds_sso strategy
1282
1282
   (0.0ms) begin transaction
1283
1283
   (0.0ms) commit transaction
1284
1284
  Redirected to http://www.example-client.com/this_requires_signin_permission
1285
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1286
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1285
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1286
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1287
1287
  Processing by ExampleController#this_requires_signin_permission as HTML
1288
1288
  User Load (0.1ms) 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]]
1289
1289
  Rendering text template
1290
1290
  Rendered text template (0.0ms)
1291
1291
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1292
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1292
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1293
1293
  Processing by ExampleController#this_requires_signin_permission as HTML
1294
1294
  Authenticating with gds_sso strategy
1295
1295
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1297
- Started GET "/auth/gds/callback?code=0ae763a239c7b43caf93cfaee132480e286f5dc230ae5bb32e03c66dfe41b683&state=0b60eb44ef52a74ac1ebb901c641ca79cb6a8feddccd58bd" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1296
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1297
+ Started GET "/auth/gds/callback?code=ce170146f1a9fc5c8b1ca145de07d59f0db643828a1f59af5081c5278e00de6d&state=bd1c94079d6f5db32407967b9c274ad8e62eb4f2db479bcd" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1298
1298
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"0ae763a239c7b43caf93cfaee132480e286f5dc230ae5bb32e03c66dfe41b683", "state"=>"0b60eb44ef52a74ac1ebb901c641ca79cb6a8feddccd58bd"}
1299
+ Parameters: {"code"=>"ce170146f1a9fc5c8b1ca145de07d59f0db643828a1f59af5081c5278e00de6d", "state"=>"bd1c94079d6f5db32407967b9c274ad8e62eb4f2db479bcd"}
1300
1300
  Authenticating with gds_sso strategy
1301
1301
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
1302
   (0.1ms) begin transaction
1303
-  (0.1ms) commit transaction
1303
+  (0.0ms) commit transaction
1304
1304
   (0.0ms) begin transaction
1305
1305
   (0.0ms) commit transaction
1306
1306
  Redirected to http://www.example-client.com/this_requires_signin_permission
1307
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1308
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1307
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1308
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1309
1309
  Processing by ExampleController#this_requires_signin_permission as HTML
1310
1310
  User Load (0.1ms) 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]]
1311
1311
  Rendering text template
1312
1312
  Rendered text template (0.0ms)
1313
1313
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1314
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1314
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1315
1315
  Processing by ExampleController#restricted as HTML
1316
1316
  Authenticating with gds_sso strategy
1317
1317
  Completed in 0ms (ActiveRecord: 0.0ms)
1318
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1319
- Started GET "/auth/gds/callback?code=78691f45bb1ed98b1a2fed82c0baad5fde2ede137e6e65e6b527042415effc36&state=18ff591da4849b7c6838d2060d95b8791c30931d92884246" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1318
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1319
+ Started GET "/auth/gds/callback?code=8e00c01772841ff655c5d18d34825c00956262dacb5bc11c8964766111fa5207&state=ec05d99780afc9407694c9127cd060c0324cd7121b2a7b69" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1320
1320
  Processing by AuthenticationsController#callback as HTML
1321
- Parameters: {"code"=>"78691f45bb1ed98b1a2fed82c0baad5fde2ede137e6e65e6b527042415effc36", "state"=>"18ff591da4849b7c6838d2060d95b8791c30931d92884246"}
1321
+ Parameters: {"code"=>"8e00c01772841ff655c5d18d34825c00956262dacb5bc11c8964766111fa5207", "state"=>"ec05d99780afc9407694c9127cd060c0324cd7121b2a7b69"}
1322
1322
  Authenticating with gds_sso strategy
1323
1323
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
1324
   (0.1ms) begin transaction
@@ -1326,98 +1326,93 @@ Authenticating with gds_sso strategy
1326
1326
   (0.0ms) begin transaction
1327
1327
   (0.0ms) commit transaction
1328
1328
  Redirected to http://www.example-client.com/restricted
1329
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1330
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1329
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1330
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1331
1331
  Processing by ExampleController#restricted as HTML
1332
1332
  User Load (0.1ms) 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]]
1333
1333
  Rendering text template
1334
1334
  Rendered text template (0.0ms)
1335
1335
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1336
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
1336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1337
+  (0.1ms) begin transaction
1338
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1339
+  (3.3ms) commit transaction
1340
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1337
1341
  Processing by ExampleController#restricted as HTML
1342
+ 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]]
1338
1343
  Authenticating with gds_sso strategy
1339
- Completed in 0ms (ActiveRecord: 0.0ms)
1340
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
1341
- Started GET "/auth/gds/callback?code=7dc0f6a4d4f88dcad43ea690887235dc7b8cf82f811c502f7609a95180869731&state=1636d454b8dfd92f7ef19ef7b79cf57f6e60036baa1bc9a5" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
1344
+ Completed in 1ms (ActiveRecord: 0.2ms)
1345
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1346
+ Started GET "/auth/gds/callback?code=a837e0cb98b649eced542dee4503af1d5d69c71f3b06e9f283b391c17045d839&state=b5cc52d039fed338ce80f9fd2a9e7af207922325a01ca0c4" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1342
1347
  Processing by AuthenticationsController#callback as HTML
1343
- Parameters: {"code"=>"7dc0f6a4d4f88dcad43ea690887235dc7b8cf82f811c502f7609a95180869731", "state"=>"1636d454b8dfd92f7ef19ef7b79cf57f6e60036baa1bc9a5"}
1348
+ Parameters: {"code"=>"a837e0cb98b649eced542dee4503af1d5d69c71f3b06e9f283b391c17045d839", "state"=>"b5cc52d039fed338ce80f9fd2a9e7af207922325a01ca0c4"}
1344
1349
  Authenticating with gds_sso strategy
1345
1350
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1346
1351
   (0.1ms) begin transaction
1347
-  (0.0ms) commit transaction
1352
+  (0.1ms) commit transaction
1348
1353
   (0.0ms) begin transaction
1349
-  (0.0ms) commit transaction
1354
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1355
+  (7.3ms) commit transaction
1350
1356
  Redirected to http://www.example-client.com/restricted
1351
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1352
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
1357
+ Completed 302 Found in 11ms (ActiveRecord: 7.9ms)
1358
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1353
1359
  Processing by ExampleController#restricted as HTML
1354
1360
  User Load (0.1ms) 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]]
1355
1361
  Rendering text template
1356
1362
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1363
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1364
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1359
1365
  Processing by ExampleController#restricted as HTML
1360
1366
  Authenticating with gds_sso strategy
1361
1367
  Completed in 0ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1363
- Started GET "/auth/gds/callback?code=496d67acf30546bde6deb88e4c61a94ddb0d2a704879ccde618123523c9d0e77&state=0356c4f71f5602aeb4d69ae588a39ebb795907cb50f770a8" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1368
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1369
+ Started GET "/auth/gds/callback?code=09bb090192a3fb641c49521957157840b3250ccda499b4ccdd5aaf3797b7cec5&state=8a26a0f2a5c76d7081c032c348e7563af4cb3d1bcc72190a" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1364
1370
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"496d67acf30546bde6deb88e4c61a94ddb0d2a704879ccde618123523c9d0e77", "state"=>"0356c4f71f5602aeb4d69ae588a39ebb795907cb50f770a8"}
1371
+ Parameters: {"code"=>"09bb090192a3fb641c49521957157840b3250ccda499b4ccdd5aaf3797b7cec5", "state"=>"8a26a0f2a5c76d7081c032c348e7563af4cb3d1bcc72190a"}
1366
1372
  Authenticating with gds_sso strategy
1367
1373
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
1374
   (0.1ms) begin transaction
1369
-  (0.0ms) commit transaction
1375
+  (0.1ms) commit transaction
1370
1376
   (0.0ms) begin transaction
1371
-  (0.0ms) commit transaction
1377
+  (0.1ms) commit transaction
1372
1378
  Redirected to http://www.example-client.com/restricted
1373
1379
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1374
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1380
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1375
1381
  Processing by ExampleController#restricted as HTML
1376
1382
  User Load (0.1ms) 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]]
1377
1383
  Rendering text template
1378
1384
  Rendered text template (0.0ms)
1379
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1380
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:18 +0000
1385
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1386
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1381
1387
  Processing by ExampleController#restricted as HTML
1382
1388
  Authenticating with gds_sso strategy
1383
1389
  Completed in 1ms (ActiveRecord: 0.0ms)
1384
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:18 +0000
1385
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1386
- Processing by ExampleController#restricted as HTML
1387
- Authenticating with gds_sso strategy
1388
- Completed in 0ms (ActiveRecord: 0.0ms)
1389
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1390
- Started GET "/auth/gds/callback?code=4980c916a888a66457c5c984268d7867a04bb14c635a06ec75075f73beb6a0ec&state=fd0776eb9d3c5dda9207e87e3878d7353df8534299dafd65" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1390
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1391
+ Started GET "/auth/gds/callback?code=c9423215c28c868fccb983d4ca9d72d3a7d88e4f6ef854e1c558e9e1f8afc0a9&state=c93fe7a89ba326850f02ebac1ad95edca138e89cae6be8bc" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1391
1392
  Processing by AuthenticationsController#callback as HTML
1392
- Parameters: {"code"=>"4980c916a888a66457c5c984268d7867a04bb14c635a06ec75075f73beb6a0ec", "state"=>"fd0776eb9d3c5dda9207e87e3878d7353df8534299dafd65"}
1393
+ Parameters: {"code"=>"c9423215c28c868fccb983d4ca9d72d3a7d88e4f6ef854e1c558e9e1f8afc0a9", "state"=>"c93fe7a89ba326850f02ebac1ad95edca138e89cae6be8bc"}
1393
1394
  Authenticating with gds_sso strategy
1394
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1395
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1395
1396
   (0.1ms) begin transaction
1396
1397
   (0.0ms) commit transaction
1397
1398
   (0.0ms) begin transaction
1398
1399
   (0.0ms) commit transaction
1399
1400
  Redirected to http://www.example-client.com/restricted
1400
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1401
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1401
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1402
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1402
1403
  Processing by ExampleController#restricted as HTML
1403
1404
  User Load (0.1ms) 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]]
1404
1405
  Rendering text template
1405
1406
  Rendered text template (0.0ms)
1406
1407
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1407
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:32:18 +0000
1408
- Processing by ExampleController#restricted as HTML
1409
- User Load (0.1ms) 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]]
1410
- Rendering text template
1411
- Rendered text template (0.0ms)
1412
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1413
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1408
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1414
1409
  Processing by ExampleController#restricted as HTML
1415
1410
  Authenticating with gds_sso strategy
1416
1411
  Completed in 0ms (ActiveRecord: 0.0ms)
1417
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1418
- Started GET "/auth/gds/callback?code=b194100bb695bc4201debbe43d10fefca7155102e2c51d312e96687375df6a38&state=9b50e61bdf56172092baac1246ea661e96f88d0bf6789b6b" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1412
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1413
+ Started GET "/auth/gds/callback?code=fc42762943c3692c1bac1d077ce46106280af432c787a006968631eca7f18a8e&state=46ee961f49dee5ee19c62b5fc7ce19b947da04b571fdedfd" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1419
1414
  Processing by AuthenticationsController#callback as HTML
1420
- Parameters: {"code"=>"b194100bb695bc4201debbe43d10fefca7155102e2c51d312e96687375df6a38", "state"=>"9b50e61bdf56172092baac1246ea661e96f88d0bf6789b6b"}
1415
+ Parameters: {"code"=>"fc42762943c3692c1bac1d077ce46106280af432c787a006968631eca7f18a8e", "state"=>"46ee961f49dee5ee19c62b5fc7ce19b947da04b571fdedfd"}
1421
1416
  Authenticating with gds_sso strategy
1422
1417
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1423
1418
   (0.1ms) begin transaction
@@ -1426,73 +1421,75 @@ Authenticating with gds_sso strategy
1426
1421
   (0.0ms) commit transaction
1427
1422
  Redirected to http://www.example-client.com/restricted
1428
1423
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1429
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1424
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1430
1425
  Processing by ExampleController#restricted as HTML
1431
- 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]]
1426
+ User Load (0.1ms) 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]]
1432
1427
  Rendering text template
1433
1428
  Rendered text template (0.0ms)
1434
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1435
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1436
-  (0.1ms) begin transaction
1437
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1438
-  (4.5ms) commit transaction
1439
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1429
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1430
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1440
1431
  Processing by ExampleController#restricted as HTML
1441
- User Load (0.1ms) 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]]
1442
1432
  Authenticating with gds_sso strategy
1443
- Completed in 1ms (ActiveRecord: 0.1ms)
1444
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1445
- Started GET "/auth/gds/callback?code=41604fc965529d3edf884d099dceea04f3426d635fd37c51a3ff8ae6229e497a&state=18d1c74926dbea628bd8ccd9b2b584931ba5bef91bc83b43" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1433
+ Completed in 1ms (ActiveRecord: 0.0ms)
1434
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1435
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1436
+ Processing by ExampleController#restricted as HTML
1437
+ Authenticating with gds_sso strategy
1438
+ Completed in 0ms (ActiveRecord: 0.0ms)
1439
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1440
+ Started GET "/auth/gds/callback?code=10ac9f7faf9d82745efd4d8c9964a65a31fa5559dbf3945c94f91b8aa28eb737&state=19ef884d3d6f613b15aede46430ada937b86469378a5da77" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1446
1441
  Processing by AuthenticationsController#callback as HTML
1447
- Parameters: {"code"=>"41604fc965529d3edf884d099dceea04f3426d635fd37c51a3ff8ae6229e497a", "state"=>"18d1c74926dbea628bd8ccd9b2b584931ba5bef91bc83b43"}
1442
+ Parameters: {"code"=>"10ac9f7faf9d82745efd4d8c9964a65a31fa5559dbf3945c94f91b8aa28eb737", "state"=>"19ef884d3d6f613b15aede46430ada937b86469378a5da77"}
1448
1443
  Authenticating with gds_sso strategy
1449
1444
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1450
1445
   (0.1ms) begin transaction
1451
1446
   (0.1ms) commit transaction
1452
-  (0.0ms) begin transaction
1453
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1454
-  (3.8ms) commit transaction
1447
+  (0.1ms) begin transaction
1448
+  (0.0ms) commit transaction
1455
1449
  Redirected to http://www.example-client.com/restricted
1456
- Completed 302 Found in 8ms (ActiveRecord: 4.5ms)
1457
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1450
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1451
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1458
1452
  Processing by ExampleController#restricted as HTML
1459
1453
  User Load (0.1ms) 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]]
1460
1454
  Rendering text template
1461
1455
  Rendered text template (0.0ms)
1462
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1463
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1464
- Processing by ExampleController#this_requires_signin_permission as JSON
1465
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1466
-  (0.1ms) begin transaction
1467
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1468
-  (5.0ms) commit transaction
1456
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1457
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:22 +0000
1458
+ Processing by ExampleController#restricted as HTML
1459
+ User Load (0.1ms) 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]]
1460
+ Rendering text template
1461
+ Rendered text template (0.0ms)
1462
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1463
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1464
+ Processing by ExampleController#restricted as JSON
1469
1465
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1470
-  (0.1ms) begin transaction
1466
+  (0.0ms) begin transaction
1467
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1468
+  (7.4ms) commit transaction
1469
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1470
+  (0.0ms) begin transaction
1471
1471
   (0.0ms) commit transaction
1472
1472
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1473
-  (0.1ms) begin transaction
1473
+  (0.0ms) begin transaction
1474
1474
   (0.0ms) commit transaction
1475
1475
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1476
-  (0.1ms) begin transaction
1477
-  (0.1ms) commit transaction
1476
+  (0.0ms) begin transaction
1477
+  (0.0ms) commit transaction
1478
1478
   (0.0ms) begin transaction
1479
1479
   (0.0ms) commit transaction
1480
1480
  Rendering text template
1481
1481
  Rendered text template (0.0ms)
1482
- Completed 200 OK in 66ms (Views: 0.3ms | ActiveRecord: 6.1ms)
1483
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1482
+ Completed 200 OK in 62ms (Views: 0.3ms | ActiveRecord: 8.3ms)
1483
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1484
1484
  Processing by ExampleController#restricted as JSON
1485
1485
  Completed in 12ms (ActiveRecord: 0.0ms)
1486
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1487
- Processing by ExampleController#restricted as JSON
1488
- Completed in 19ms (ActiveRecord: 0.0ms)
1489
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1490
- Processing by ExampleController#restricted as JSON
1486
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:23 +0000
1487
+ Processing by ExampleController#this_requires_signin_permission as JSON
1491
1488
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1492
1489
   (0.1ms) begin transaction
1493
-  (0.1ms) commit transaction
1490
+  (0.0ms) commit transaction
1494
1491
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
-  (0.1ms) begin transaction
1492
+  (0.0ms) begin transaction
1496
1493
   (0.0ms) commit transaction
1497
1494
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1498
1495
   (0.0ms) begin transaction
@@ -1504,75 +1501,78 @@ Processing by ExampleController#restricted as JSON
1504
1501
   (0.0ms) commit transaction
1505
1502
  Rendering text template
1506
1503
  Rendered text template (0.0ms)
1507
- Completed 200 OK in 51ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1508
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1509
-  (0.1ms) begin transaction
1510
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1607"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1511
-  (3.9ms) commit transaction
1504
+ Completed 200 OK in 57ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1505
+ Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:23 +0000
1506
+ Processing by ExampleController#restricted as JSON
1507
+ Completed in 18ms (ActiveRecord: 0.0ms)
1508
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1509
+  (0.0ms) begin transaction
1510
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2217"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1511
+  (6.0ms) commit transaction
1512
1512
   (0.0ms) begin transaction
1513
1513
  User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
1514
-  (4.9ms) commit transaction
1514
+  (5.4ms) commit transaction
1515
1515
   (0.0ms) begin transaction
1516
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31530"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1517
-  (3.8ms) commit transaction
1516
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33333"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1517
+  (11.3ms) commit transaction
1518
1518
   (0.0ms) begin transaction
1519
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37459"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1520
-  (3.3ms) commit transaction
1519
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34038"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1520
+  (5.7ms) commit transaction
1521
1521
  Processing by Api::UserController#update as HTML
1522
- Parameters: {"uid"=>"a1s2d31530"}
1523
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1522
+ Parameters: {"uid"=>"a1s2d33333"}
1523
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1524
1524
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1525
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1525
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1526
1526
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1527
- Completed 403 Forbidden in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
1527
+ Completed 403 Forbidden in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1528
1528
   (0.0ms) begin transaction
1529
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36308"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1530
-  (4.9ms) commit transaction
1529
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34776"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1530
+  (8.7ms) commit transaction
1531
1531
   (0.0ms) begin transaction
1532
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37479"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1533
-  (4.5ms) commit transaction
1532
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34840"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1533
+  (4.4ms) commit transaction
1534
1534
  Processing by Api::UserController#update as HTML
1535
- Parameters: {"uid"=>"a1s2d36308"}
1536
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36308"], ["LIMIT", 1]]
1537
-  (0.0ms) begin transaction
1538
- User Update (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", 6]]
1539
-  (3.4ms) commit transaction
1540
- Completed 200 OK in 6ms (ActiveRecord: 3.8ms)
1541
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1542
-  (0.0ms) begin transaction
1543
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39422"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1544
-  (4.3ms) commit transaction
1535
+ Parameters: {"uid"=>"a1s2d34776"}
1536
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34776"], ["LIMIT", 1]]
1545
1537
   (0.0ms) begin transaction
1546
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34116"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1538
+ User Update (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", 6]]
1547
1539
   (3.1ms) commit transaction
1548
- Processing by Api::UserController#reauth as HTML
1549
- Parameters: {"uid"=>"a1s2d39422"}
1550
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39422"], ["LIMIT", 1]]
1551
-  (0.0ms) begin transaction
1552
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1553
-  (4.1ms) commit transaction
1554
- Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
1555
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
1540
+ Completed 200 OK in 6ms (ActiveRecord: 3.5ms)
1541
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1556
1542
   (0.0ms) begin transaction
1557
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32983"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1558
-  (3.3ms) commit transaction
1543
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33605"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1544
+  (2.7ms) commit transaction
1559
1545
   (0.0ms) begin transaction
1560
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34457"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1561
-  (3.9ms) commit transaction
1546
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37908"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1547
+  (5.1ms) commit transaction
1562
1548
  Processing by Api::UserController#reauth as HTML
1563
1549
  Parameters: {"uid"=>"nonexistent-user"}
1564
1550
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1565
1551
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1552
+  (0.1ms) begin transaction
1553
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35409"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1554
+  (4.5ms) commit transaction
1555
+  (0.1ms) begin transaction
1556
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35522"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1557
+  (12.4ms) commit transaction
1558
+ Processing by Api::UserController#reauth as HTML
1559
+ Parameters: {"uid"=>"a1s2d35409"}
1560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35409"], ["LIMIT", 1]]
1566
1561
   (0.0ms) begin transaction
1567
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36303"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1568
-  (4.7ms) commit transaction
1562
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1563
+  (3.0ms) commit transaction
1564
+ Completed 200 OK in 5ms (ActiveRecord: 3.4ms)
1565
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1569
1566
   (0.0ms) begin transaction
1570
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37837"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1571
-  (3.7ms) commit transaction
1567
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33382"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1568
+  (4.2ms) commit transaction
1569
+  (0.0ms) begin transaction
1570
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35766"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1571
+  (2.9ms) commit transaction
1572
1572
  Processing by Api::UserController#reauth as HTML
1573
- Parameters: {"uid"=>"a1s2d36303"}
1574
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1573
+ Parameters: {"uid"=>"a1s2d33382"}
1574
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1575
1575
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1576
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1576
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1577
1577
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1578
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1578
+ Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)