gds-sso 14.1.0 → 14.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,829 +1,833 @@
1
-  (6.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (3.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (10.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
6
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
4
+  (3.9ms) 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", "4384"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
+  (4.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
+  (4.1ms) commit transaction
12
+  (0.1ms) begin transaction
13
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38708"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
14
+  (3.4ms) commit transaction
7
15
   (0.1ms) begin transaction
8
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
16
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31275"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
17
+  (4.2ms) commit transaction
18
+ Processing by Api::UserController#reauth as HTML
19
+ Parameters: {"uid"=>"nonexistent-user"}
20
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
21
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
22
+  (0.1ms) begin transaction
23
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38949"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
9
24
   (6.1ms) commit transaction
10
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
25
+  (0.1ms) begin transaction
26
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38757"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
27
+  (4.4ms) commit transaction
28
+ Processing by Api::UserController#reauth as HTML
29
+ Parameters: {"uid"=>"a1s2d38949"}
30
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38949"]]
31
+  (0.0ms) begin transaction
32
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
33
+  (4.2ms) commit transaction
34
+ Completed 200 OK in 8ms (ActiveRecord: 4.5ms)
35
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
36
+  (0.1ms) begin transaction
37
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36058"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
38
+  (5.2ms) commit transaction
11
39
   (0.1ms) begin transaction
40
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39319"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
41
+  (3.9ms) commit transaction
42
+ Processing by Api::UserController#reauth as HTML
43
+ Parameters: {"uid"=>"a1s2d36058"}
44
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
45
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
46
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
47
+ Completed 403 Forbidden in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms)
48
+  (0.1ms) begin transaction
49
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34081"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
50
+  (3.2ms) commit transaction
51
+  (0.1ms) begin transaction
52
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32179"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
53
+  (3.9ms) commit transaction
54
+ Processing by Api::UserController#update as HTML
55
+ Parameters: {"uid"=>"a1s2d34081"}
56
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34081"]]
57
+  (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
+  (5.9ms) commit transaction
60
+ Completed 200 OK in 9ms (ActiveRecord: 6.3ms)
61
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
62
+  (0.1ms) begin transaction
63
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33491"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
64
+  (13.7ms) commit transaction
65
+  (0.1ms) begin transaction
66
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38692"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
67
+  (3.1ms) commit transaction
68
+ Processing by Api::UserController#update as HTML
69
+ Parameters: {"uid"=>"a1s2d33491"}
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/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.9ms | 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
+  (3.5ms) 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
12
81
   (0.1ms) commit transaction
13
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:19:54 +0000
82
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:25:38 +0000
14
83
  Processing by ExampleController#restricted as HTML
15
84
  Authenticating with gds_sso strategy
16
85
  Completed in 8ms (ActiveRecord: 0.0ms)
17
- Started GET "/" for 127.0.0.1 at 2019-07-18 13:19:54 +0000
18
- Processing by ExampleController#index as HTML
19
- Rendered text template (0.0ms)
20
- Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
21
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:19:55 +0000
22
- Processing by ExampleController#restricted as HTML
23
- Authenticating with gds_sso strategy
24
- Completed in 0ms (ActiveRecord: 0.0ms)
25
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:19:55 +0000
26
- Started GET "/auth/gds/callback?code=8d7e5bdfd9a69d1b2ca7791874d376db4ba73d99388bd26d4095863911902802&state=b87daedd52b66dd90c1e9fba1f68f4c9e733457ea90cb7af" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
86
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:25:38 +0000
87
+ Started GET "/auth/gds/callback?code=fbb8d4307c2fdd275fe442a5e566b856c86ff5ee5359b6ac3c13dd93ab56d794&state=6baf9387e2083581ddea707e4fd8f1ba2aac420fb3fb4f6b" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
27
88
  Processing by AuthenticationsController#callback as HTML
28
- Parameters: {"code"=>"8d7e5bdfd9a69d1b2ca7791874d376db4ba73d99388bd26d4095863911902802", "state"=>"b87daedd52b66dd90c1e9fba1f68f4c9e733457ea90cb7af"}
89
+ Parameters: {"code"=>"fbb8d4307c2fdd275fe442a5e566b856c86ff5ee5359b6ac3c13dd93ab56d794", "state"=>"6baf9387e2083581ddea707e4fd8f1ba2aac420fb3fb4f6b"}
29
90
  Authenticating with gds_sso strategy
30
91
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
31
92
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
32
93
   (0.1ms) begin transaction
33
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
34
-  (30.1ms) commit transaction
35
-  (0.1ms) begin transaction
36
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
37
-  (5.9ms) commit transaction
94
+ 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"]]
95
+  (48.8ms) commit transaction
96
+  (0.0ms) begin transaction
97
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
98
+  (18.4ms) commit transaction
38
99
  Redirected to http://www.example-client.com/restricted
39
- Completed 302 Found in 43ms (ActiveRecord: 36.9ms)
40
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
100
+ Completed 302 Found in 73ms (ActiveRecord: 67.9ms)
101
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
41
102
  Processing by ExampleController#restricted as HTML
42
103
  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"]]
43
104
  Rendered text template (0.0ms)
44
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
45
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
105
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
106
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
46
107
  Processing by ExampleController#restricted as HTML
47
108
  Authenticating with gds_sso strategy
48
109
  Completed in 0ms (ActiveRecord: 0.0ms)
49
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
50
- Started GET "/auth/gds/callback?code=ab6dcfcbd97d5ef13dd49c8e273ed75e940b4fdc9ab056b748dd0044582581b4&state=b66b3599d42e68ddc5b152dead114350292e0451510c8671" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
110
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
111
+ Started GET "/auth/gds/callback?code=8529a7a4a943ba21953f5adb145051ffe880e471a607ba8ca392718521a9b152&state=876ca422f3433c9b4c5a02eefeb4f9e03a3996ef94aa95a7" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
51
112
  Processing by AuthenticationsController#callback as HTML
52
- Parameters: {"code"=>"ab6dcfcbd97d5ef13dd49c8e273ed75e940b4fdc9ab056b748dd0044582581b4", "state"=>"b66b3599d42e68ddc5b152dead114350292e0451510c8671"}
113
+ Parameters: {"code"=>"8529a7a4a943ba21953f5adb145051ffe880e471a607ba8ca392718521a9b152", "state"=>"876ca422f3433c9b4c5a02eefeb4f9e03a3996ef94aa95a7"}
53
114
  Authenticating with gds_sso strategy
54
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
55
116
   (0.1ms) begin transaction
56
-  (0.1ms) commit transaction
117
+  (0.0ms) commit transaction
57
118
   (0.0ms) begin transaction
58
-  (0.1ms) commit transaction
119
+  (0.0ms) commit transaction
59
120
  Redirected to http://www.example-client.com/restricted
60
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
61
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
121
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
122
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
62
123
  Processing by ExampleController#restricted as HTML
63
124
  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"]]
64
125
  Rendered text template (0.0ms)
65
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
66
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
67
- Processing by ExampleController#restricted as HTML
126
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
127
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
128
+ Processing by ExampleController#this_requires_signin_permission as HTML
68
129
  Authenticating with gds_sso strategy
69
130
  Completed in 0ms (ActiveRecord: 0.0ms)
70
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
71
- Started GET "/auth/gds/callback?code=5ebe1a25850e1b13ffe39d6f4f42d5e9404071ca07c03b8411b039c1f41a437c&state=9e0d0d1a401d8f68b76e12fee88df6e0f3a03abb71b09651" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
131
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
132
+ Started GET "/auth/gds/callback?code=b9f216e19ba1a2c722018ff13af4210369ccaf9eb98fd6f4e630e2c7b05efc9a&state=fe719a7832263aec9fdd7ab7a7302b89930d488c84d40ad9" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
72
133
  Processing by AuthenticationsController#callback as HTML
73
- Parameters: {"code"=>"5ebe1a25850e1b13ffe39d6f4f42d5e9404071ca07c03b8411b039c1f41a437c", "state"=>"9e0d0d1a401d8f68b76e12fee88df6e0f3a03abb71b09651"}
134
+ Parameters: {"code"=>"b9f216e19ba1a2c722018ff13af4210369ccaf9eb98fd6f4e630e2c7b05efc9a", "state"=>"fe719a7832263aec9fdd7ab7a7302b89930d488c84d40ad9"}
74
135
  Authenticating with gds_sso strategy
75
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
76
-  (0.1ms) begin transaction
77
-  (0.0ms) commit transaction
136
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
78
137
   (0.1ms) begin transaction
79
138
   (0.1ms) commit transaction
80
- Redirected to http://www.example-client.com/restricted
139
+  (0.0ms) begin transaction
140
+  (0.0ms) commit transaction
141
+ Redirected to http://www.example-client.com/this_requires_signin_permission
81
142
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
82
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
83
- Processing by ExampleController#restricted as HTML
143
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
144
+ Processing by ExampleController#this_requires_signin_permission as HTML
84
145
  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"]]
85
146
  Rendered text template (0.0ms)
86
147
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
87
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
148
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
88
149
  Processing by ExampleController#this_requires_signin_permission as HTML
89
150
  Authenticating with gds_sso strategy
90
151
  Completed in 0ms (ActiveRecord: 0.0ms)
91
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:40 +0000
92
- Started GET "/auth/gds/callback?code=0d79451222bd557300d6952c85ee1279b69115c513d8c27a809804062e95c2ce&state=8b3f70c4ee8757a986854cdf06e25ac2f1af95e689d99e69" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
152
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
153
+ Started GET "/auth/gds/callback?code=a0be5d9c9c06ccc9932a2b1e4510eb97e8388c6b8b30f3843adfbcc0dd80d8b8&state=f3618b335a95889c1708c9590205255410e7dabb15d0947e" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
93
154
  Processing by AuthenticationsController#callback as HTML
94
- Parameters: {"code"=>"0d79451222bd557300d6952c85ee1279b69115c513d8c27a809804062e95c2ce", "state"=>"8b3f70c4ee8757a986854cdf06e25ac2f1af95e689d99e69"}
155
+ Parameters: {"code"=>"a0be5d9c9c06ccc9932a2b1e4510eb97e8388c6b8b30f3843adfbcc0dd80d8b8", "state"=>"f3618b335a95889c1708c9590205255410e7dabb15d0947e"}
95
156
  Authenticating with gds_sso strategy
96
157
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
97
158
   (0.1ms) begin transaction
98
-  (0.1ms) commit transaction
99
-  (0.1ms) begin transaction
100
-  (0.1ms) commit transaction
159
+  (0.0ms) commit transaction
160
+  (0.0ms) begin transaction
161
+  (0.0ms) commit transaction
101
162
  Redirected to http://www.example-client.com/this_requires_signin_permission
102
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
103
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
163
+ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
164
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
104
165
  Processing by ExampleController#this_requires_signin_permission as HTML
105
166
  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"]]
106
167
  Rendered text template (0.0ms)
107
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
108
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
109
- Processing by ExampleController#this_requires_signin_permission as HTML
168
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
169
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
170
+ Processing by ExampleController#restricted as HTML
110
171
  Authenticating with gds_sso strategy
111
172
  Completed in 0ms (ActiveRecord: 0.0ms)
112
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
113
- Started GET "/auth/gds/callback?code=57ae25ed1ee0b62331844920110cd61ec92bd9c9bc826b03c730745e444a1335&state=dc06bae45b15ee9a126f23c3d01c25295a0b1f66bede43cf" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
173
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
174
+ Started GET "/auth/gds/callback?code=598e793cd9647b0b6b638603a39936be44ea312b07ed79e0b0be9dcb2f6be47c&state=3c80e27a90f70f0500e2d27d650b5f82763d08653323223f" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
114
175
  Processing by AuthenticationsController#callback as HTML
115
- Parameters: {"code"=>"57ae25ed1ee0b62331844920110cd61ec92bd9c9bc826b03c730745e444a1335", "state"=>"dc06bae45b15ee9a126f23c3d01c25295a0b1f66bede43cf"}
176
+ Parameters: {"code"=>"598e793cd9647b0b6b638603a39936be44ea312b07ed79e0b0be9dcb2f6be47c", "state"=>"3c80e27a90f70f0500e2d27d650b5f82763d08653323223f"}
116
177
  Authenticating with gds_sso strategy
117
178
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
118
-  (0.2ms) begin transaction
119
-  (0.0ms) commit transaction
120
179
   (0.1ms) begin transaction
180
+  (0.0ms) commit transaction
181
+  (0.0ms) begin transaction
121
182
   (0.1ms) commit transaction
122
- Redirected to http://www.example-client.com/this_requires_signin_permission
123
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
124
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
125
- Processing by ExampleController#this_requires_signin_permission as HTML
183
+ Redirected to http://www.example-client.com/restricted
184
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
185
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
186
+ Processing by ExampleController#restricted as HTML
126
187
  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"]]
127
188
  Rendered text template (0.0ms)
128
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
129
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
189
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
190
+ Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
191
+ Processing by ExampleController#index as HTML
192
+ Rendered text template (0.0ms)
193
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
194
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
130
195
  Processing by ExampleController#restricted as HTML
131
196
  Authenticating with gds_sso strategy
132
197
  Completed in 0ms (ActiveRecord: 0.0ms)
133
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
134
- Started GET "/auth/gds/callback?code=784118b583090d76be49442132dcb408f1e9129c11b3089ca64dc12ed916541d&state=1846de528ec034693a26abe983d29e72c6c0105c5081efde" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
198
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
199
+ Started GET "/auth/gds/callback?code=677c61dbc795e855d5e57c049356ba963546ebd9ae4aa3c5330d40ee8429035a&state=612df93287d65b72d5a98b66bdcfce8bd9843d28b8979986" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
135
200
  Processing by AuthenticationsController#callback as HTML
136
- Parameters: {"code"=>"784118b583090d76be49442132dcb408f1e9129c11b3089ca64dc12ed916541d", "state"=>"1846de528ec034693a26abe983d29e72c6c0105c5081efde"}
201
+ Parameters: {"code"=>"677c61dbc795e855d5e57c049356ba963546ebd9ae4aa3c5330d40ee8429035a", "state"=>"612df93287d65b72d5a98b66bdcfce8bd9843d28b8979986"}
137
202
  Authenticating with gds_sso strategy
138
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
139
204
   (0.1ms) begin transaction
140
205
   (0.1ms) commit transaction
141
206
   (0.0ms) begin transaction
142
-  (0.0ms) commit transaction
207
+  (0.1ms) commit transaction
143
208
  Redirected to http://www.example-client.com/restricted
144
209
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
145
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
210
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
146
211
  Processing by ExampleController#restricted as HTML
147
212
  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"]]
148
213
  Rendered text template (0.0ms)
149
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
214
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
150
215
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
151
216
   (0.1ms) begin transaction
152
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
153
-  (26.6ms) commit transaction
154
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
217
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
218
+  (5.4ms) commit transaction
219
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
155
220
  Processing by ExampleController#restricted as HTML
156
221
  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
222
  Authenticating with gds_sso strategy
158
223
  Completed in 1ms (ActiveRecord: 0.1ms)
159
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
160
- Started GET "/auth/gds/callback?code=a189adc1df385a1a79f4de65e99268e5cebb68292ae3260303d9dadb75cfc267&state=6aa33b5023a58c9089a85e7644b9252d44a1d1908f2bf0d6" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
224
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
225
+ Started GET "/auth/gds/callback?code=394134dedb139a470475224132368b152f1063f79b5fdae2e4977b5f2ce7c617&state=e9de8c671c6db63407dbc56bbebde50e0415379a57094bff" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
161
226
  Processing by AuthenticationsController#callback as HTML
162
- Parameters: {"code"=>"a189adc1df385a1a79f4de65e99268e5cebb68292ae3260303d9dadb75cfc267", "state"=>"6aa33b5023a58c9089a85e7644b9252d44a1d1908f2bf0d6"}
227
+ Parameters: {"code"=>"394134dedb139a470475224132368b152f1063f79b5fdae2e4977b5f2ce7c617", "state"=>"e9de8c671c6db63407dbc56bbebde50e0415379a57094bff"}
163
228
  Authenticating with gds_sso strategy
164
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
229
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
165
230
   (0.1ms) begin transaction
166
-  (0.0ms) commit transaction
231
+  (0.1ms) commit transaction
167
232
   (0.0ms) begin transaction
168
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
169
-  (85.9ms) commit transaction
233
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
234
+  (4.0ms) commit transaction
170
235
  Redirected to http://www.example-client.com/restricted
171
- Completed 302 Found in 91ms (ActiveRecord: 86.4ms)
172
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
236
+ Completed 302 Found in 8ms (ActiveRecord: 4.5ms)
237
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
173
238
  Processing by ExampleController#restricted as HTML
174
239
  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
240
  Rendered text template (0.0ms)
176
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
177
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
241
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
242
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
178
243
  Processing by ExampleController#restricted as HTML
179
244
  Authenticating with gds_sso strategy
180
245
  Completed in 0ms (ActiveRecord: 0.0ms)
181
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:41 +0000
182
- Started GET "/auth/gds/callback?code=592bfd178a8308a0f8a705fd0f2b90e8b7f6fa1859d298c409edd939c67fc879&state=2b0daf05e92b8f209d308044afe46f9bd341310b25e2c142" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
246
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
247
+ Started GET "/auth/gds/callback?code=e67621665e1784bb93dd29187071779a3cd78d4fad1d3df8d83d28fdc667e712&state=170f6f22a08993c0d969f402dfd74aa571a93e0e660ad875" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
183
248
  Processing by AuthenticationsController#callback as HTML
184
- Parameters: {"code"=>"592bfd178a8308a0f8a705fd0f2b90e8b7f6fa1859d298c409edd939c67fc879", "state"=>"2b0daf05e92b8f209d308044afe46f9bd341310b25e2c142"}
249
+ Parameters: {"code"=>"e67621665e1784bb93dd29187071779a3cd78d4fad1d3df8d83d28fdc667e712", "state"=>"170f6f22a08993c0d969f402dfd74aa571a93e0e660ad875"}
185
250
  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
251
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
189
252
   (0.0ms) begin transaction
190
253
   (0.0ms) commit transaction
254
+  (0.1ms) begin transaction
255
+  (0.1ms) commit transaction
191
256
  Redirected to http://www.example-client.com/restricted
192
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
193
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
257
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
258
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
194
259
  Processing by ExampleController#restricted as HTML
195
260
  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
261
  Rendered text template (0.0ms)
197
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
198
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
262
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
263
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
199
264
  Processing by ExampleController#restricted as HTML
200
265
  Authenticating with gds_sso strategy
201
- Completed in 1ms (ActiveRecord: 0.0ms)
202
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
203
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
266
+ Completed in 0ms (ActiveRecord: 0.0ms)
267
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
268
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
204
269
  Processing by ExampleController#restricted as HTML
205
270
  Authenticating with gds_sso strategy
206
271
  Completed in 0ms (ActiveRecord: 0.0ms)
207
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
208
- Started GET "/auth/gds/callback?code=7111ec79675d5bb4bdb3ceb6f938c6a57123044030c297e2d51686e8a0c808d3&state=216200e7750683bffb550477564c990af5836c0899fd389e" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
272
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
273
+ Started GET "/auth/gds/callback?code=2e251537d340cfacd123bd9b66e52a214731b959b64982f8fa09a5af8b741d08&state=f6508620b6c6f5ee95731e73a418f73529981c5c15a23ac4" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
209
274
  Processing by AuthenticationsController#callback as HTML
210
- Parameters: {"code"=>"7111ec79675d5bb4bdb3ceb6f938c6a57123044030c297e2d51686e8a0c808d3", "state"=>"216200e7750683bffb550477564c990af5836c0899fd389e"}
275
+ Parameters: {"code"=>"2e251537d340cfacd123bd9b66e52a214731b959b64982f8fa09a5af8b741d08", "state"=>"f6508620b6c6f5ee95731e73a418f73529981c5c15a23ac4"}
211
276
  Authenticating with gds_sso strategy
212
277
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
213
-  (0.1ms) begin transaction
214
-  (0.1ms) commit transaction
215
278
   (0.0ms) begin transaction
216
279
   (0.1ms) commit transaction
280
+  (0.1ms) begin transaction
281
+  (0.1ms) commit transaction
217
282
  Redirected to http://www.example-client.com/restricted
218
283
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
219
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
284
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
220
285
  Processing by ExampleController#restricted as HTML
221
286
  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"]]
222
287
  Rendered text template (0.0ms)
223
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
224
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:15:42 +0000
225
- Processing by ExampleController#restricted as HTML
226
- 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"]]
227
- Rendered text template (0.1ms)
228
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
229
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
288
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
289
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
230
290
  Processing by ExampleController#restricted as HTML
231
291
  Authenticating with gds_sso strategy
232
292
  Completed in 0ms (ActiveRecord: 0.0ms)
233
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
234
- Started GET "/auth/gds/callback?code=f85feda8636fbaef2971fb12f5e4319c098feae537b7a0a24abefd4e35f2d624&state=3de3d1c0576fd8df13d4437203dc72d3dab7107fc87e1bb9" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
293
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
294
+ Started GET "/auth/gds/callback?code=16872e9d646aeb4524d6fd237a96bee8acefb2a657ff05416af5e8c310b4111f&state=2e2f3ada1d55bd05ebca28d803274ee11eaa54d0fed00112" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
235
295
  Processing by AuthenticationsController#callback as HTML
236
- Parameters: {"code"=>"f85feda8636fbaef2971fb12f5e4319c098feae537b7a0a24abefd4e35f2d624", "state"=>"3de3d1c0576fd8df13d4437203dc72d3dab7107fc87e1bb9"}
296
+ Parameters: {"code"=>"16872e9d646aeb4524d6fd237a96bee8acefb2a657ff05416af5e8c310b4111f", "state"=>"2e2f3ada1d55bd05ebca28d803274ee11eaa54d0fed00112"}
237
297
  Authenticating with gds_sso strategy
238
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
239
-  (0.1ms) begin transaction
240
-  (0.0ms) commit transaction
241
-  (0.0ms) begin transaction
242
-  (0.0ms) commit transaction
298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
299
+  (0.1ms) begin transaction
300
+  (0.1ms) commit transaction
301
+  (0.1ms) begin transaction
302
+  (0.1ms) commit transaction
243
303
  Redirected to http://www.example-client.com/restricted
244
304
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
245
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
305
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
246
306
  Processing by ExampleController#restricted as HTML
247
- 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"]]
307
+ 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"]]
248
308
  Rendered text template (0.0ms)
249
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
250
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
309
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
310
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
251
311
  Processing by ExampleController#restricted as HTML
252
312
  Authenticating with gds_sso strategy
253
- Completed in 1ms (ActiveRecord: 0.0ms)
254
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
255
- Started GET "/auth/gds/callback?code=e8d44a09bf41edf3e448713122ec214cf2718a2a0f0011a30753966bcb8daf74&state=35b5dd0527e23f7f94b4434871a1088b5582e022c39bcb4a" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
313
+ Completed in 0ms (ActiveRecord: 0.0ms)
314
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
315
+ Started GET "/auth/gds/callback?code=792cfc2584e8bcb217fed4c791a76a722200c04a87aad03e2cf5d2ed228d7e9d&state=d9ce97d145b5beebad889e2c33bfd7020965b094aae9554f" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
256
316
  Processing by AuthenticationsController#callback as HTML
257
- Parameters: {"code"=>"e8d44a09bf41edf3e448713122ec214cf2718a2a0f0011a30753966bcb8daf74", "state"=>"35b5dd0527e23f7f94b4434871a1088b5582e022c39bcb4a"}
317
+ Parameters: {"code"=>"792cfc2584e8bcb217fed4c791a76a722200c04a87aad03e2cf5d2ed228d7e9d", "state"=>"d9ce97d145b5beebad889e2c33bfd7020965b094aae9554f"}
258
318
  Authenticating with gds_sso strategy
259
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
260
-  (0.1ms) begin transaction
261
-  (0.1ms) commit transaction
262
-  (0.1ms) begin transaction
263
-  (0.1ms) commit transaction
319
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
320
+  (0.1ms) begin transaction
321
+  (0.1ms) commit transaction
322
+  (0.1ms) begin transaction
323
+  (0.0ms) commit transaction
264
324
  Redirected to http://www.example-client.com/restricted
265
- Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
266
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:42 +0000
325
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
326
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
267
327
  Processing by ExampleController#restricted as HTML
268
- 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"]]
328
+ 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"]]
269
329
  Rendered text template (0.0ms)
270
330
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
271
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
331
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:22 +0000
332
+ Processing by ExampleController#restricted as HTML
333
+ 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"]]
334
+ Rendered text template (0.0ms)
335
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
336
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
337
+ Processing by ExampleController#restricted as HTML
338
+ Authenticating with gds_sso strategy
339
+ Completed in 0ms (ActiveRecord: 0.0ms)
340
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
272
341
  Processing by ExampleController#restricted as JSON
273
- Completed in 14ms (ActiveRecord: 0.0ms)
274
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
342
+ Completed in 20ms (ActiveRecord: 0.0ms)
343
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
344
+ Processing by ExampleController#restricted as JSON
345
+ Completed in 11ms (ActiveRecord: 0.0ms)
346
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
275
347
  Processing by ExampleController#restricted as JSON
276
348
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
277
-  (0.1ms) begin transaction
278
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
279
-  (5.4ms) commit transaction
349
+  (0.0ms) begin transaction
350
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
351
+  (3.7ms) commit transaction
280
352
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
281
-  (0.1ms) begin transaction
353
+  (0.0ms) begin transaction
282
354
   (0.0ms) commit transaction
283
355
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
284
356
   (0.1ms) begin transaction
285
357
   (0.0ms) commit transaction
286
358
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
287
-  (0.1ms) begin transaction
359
+  (0.0ms) begin transaction
288
360
   (0.0ms) commit transaction
289
361
   (0.0ms) begin transaction
290
362
   (0.0ms) commit transaction
291
363
  Rendered text template (0.0ms)
292
- Completed 200 OK in 65ms (Views: 0.3ms | ActiveRecord: 6.4ms)
293
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
364
+ Completed 200 OK in 55ms (Views: 0.3ms | ActiveRecord: 4.6ms)
365
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
294
366
  Processing by ExampleController#this_requires_signin_permission as JSON
295
367
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
296
-  (0.1ms) begin transaction
297
-  (0.0ms) commit transaction
368
+  (0.0ms) begin transaction
369
+  (0.1ms) commit transaction
298
370
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
299
371
   (0.0ms) begin transaction
300
-  (0.0ms) commit transaction
372
+  (0.1ms) commit transaction
301
373
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
302
-  (0.1ms) begin transaction
374
+  (0.0ms) begin transaction
303
375
   (0.0ms) commit transaction
304
376
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
305
-  (0.1ms) begin transaction
377
+  (0.0ms) begin transaction
306
378
   (0.0ms) commit transaction
307
379
   (0.0ms) begin transaction
308
380
   (0.0ms) commit transaction
309
381
  Rendered text template (0.0ms)
310
- Completed 200 OK in 56ms (Views: 0.3ms | ActiveRecord: 0.7ms)
311
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:42 +0000
312
- Processing by ExampleController#restricted as JSON
313
- Completed in 20ms (ActiveRecord: 0.0ms)
314
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
315
-  (0.1ms) begin transaction
316
- SQL (0.3ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "8602"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
317
-  (13.6ms) commit transaction
318
-  (0.1ms) begin transaction
319
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
320
-  (4.7ms) commit transaction
321
-  (0.1ms) begin transaction
322
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34463"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
323
-  (6.0ms) commit transaction
324
-  (0.0ms) begin transaction
325
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38090"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
326
-  (5.0ms) commit transaction
327
- Processing by Api::UserController#update as HTML
328
- Parameters: {"uid"=>"a1s2d34463"}
329
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34463"]]
330
-  (0.0ms) begin transaction
331
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
332
-  (4.4ms) commit transaction
333
- Completed 200 OK in 8ms (ActiveRecord: 4.8ms)
334
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
335
-  (0.0ms) begin transaction
336
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39485"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
337
-  (4.8ms) commit transaction
338
-  (0.0ms) begin transaction
339
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36642"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
340
-  (5.6ms) commit transaction
341
- Processing by Api::UserController#update as HTML
342
- Parameters: {"uid"=>"a1s2d39485"}
343
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
344
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
345
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
346
- Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
347
-  (0.0ms) begin transaction
348
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3420"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
349
-  (4.2ms) commit transaction
350
-  (0.0ms) begin transaction
351
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39997"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
352
-  (4.8ms) commit transaction
353
- Processing by Api::UserController#reauth as HTML
354
- Parameters: {"uid"=>"a1s2d3420"}
355
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
356
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
357
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
358
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
359
-  (0.0ms) begin transaction
360
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35084"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
361
-  (3.4ms) commit transaction
362
-  (0.0ms) begin transaction
363
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39027"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
364
-  (3.3ms) commit transaction
365
- Processing by Api::UserController#reauth as HTML
366
- Parameters: {"uid"=>"nonexistent-user"}
367
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
368
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
369
-  (0.0ms) begin transaction
370
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33305"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
371
-  (6.0ms) commit transaction
372
-  (0.0ms) begin transaction
373
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39773"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
374
-  (6.5ms) commit transaction
375
- Processing by Api::UserController#reauth as HTML
376
- Parameters: {"uid"=>"a1s2d33305"}
377
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33305"]]
378
-  (0.0ms) begin transaction
379
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
380
-  (4.3ms) commit transaction
381
- Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
382
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12]]
382
+ Completed 200 OK in 49ms (Views: 0.2ms | ActiveRecord: 0.6ms)
383
383
   (0.1ms) DROP TABLE IF EXISTS "users"
384
-  (1.5ms) SELECT sqlite_version(*)
385
-  (49.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
-  (27.3ms) 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.6ms) SELECT sqlite_version(*)
385
+  (5.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')
386
+  (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)
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.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-07-18 13:20:52.152457"], ["updated_at", "2019-07-18 13:20:52.152457"]]
390
-  (26.7ms) commit transaction
391
-  (28.9ms) 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", "2019-07-19 11:26:35.370566"], ["updated_at", "2019-07-19 11:26:35.370566"]]
390
+  (4.0ms) commit transaction
391
+  (3.3ms) 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
+  (0.0ms) begin transaction
394
+  (0.0ms) commit transaction
395
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
393
396
   (0.1ms) begin transaction
394
-  (0.1ms) commit transaction
395
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
396
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
397
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "588"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
+  (3.9ms) commit transaction
397
399
   (0.1ms) begin transaction
398
- 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]]
399
-  (8.5ms) commit transaction
400
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
401
-  (0.0ms) begin transaction
402
-  (0.1ms) commit transaction
400
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
401
+  (4.7ms) commit transaction
402
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:35 +0000
403
+ Processing by ExampleController#restricted as JSON
404
+ Completed in 29ms (ActiveRecord: 0.0ms)
405
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
406
+ Processing by ExampleController#restricted as JSON
407
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
408
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
403
409
   (0.0ms) begin transaction
404
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36257"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
405
-  (4.8ms) commit transaction
410
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
411
+  (4.6ms) commit transaction
412
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
406
413
   (0.1ms) begin transaction
407
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35645"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
408
-  (5.9ms) commit transaction
409
- Processing by Api::UserController#reauth as HTML
410
- Parameters: {"uid"=>"a1s2d36257"}
411
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
412
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
413
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
414
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
415
- Completed 403 Forbidden in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
414
+  (0.1ms) commit transaction
415
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
416
416
   (0.1ms) begin transaction
417
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3640"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
418
-  (5.8ms) commit transaction
419
-  (0.0ms) begin transaction
420
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34330"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
421
-  (5.8ms) commit transaction
422
- Processing by Api::UserController#reauth as HTML
423
- Parameters: {"uid"=>"a1s2d3640"}
424
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3640"], ["LIMIT", 1]]
417
+  (0.1ms) commit transaction
418
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
425
419
   (0.1ms) begin transaction
426
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
427
-  (6.2ms) commit transaction
428
- Completed 200 OK in 9ms (ActiveRecord: 6.6ms)
429
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
420
+  (0.1ms) commit transaction
430
421
   (0.1ms) begin transaction
431
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38729"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
432
-  (17.6ms) commit transaction
433
-  (0.0ms) begin transaction
434
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36711"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
435
-  (3.7ms) commit transaction
436
- Processing by Api::UserController#reauth as HTML
437
- Parameters: {"uid"=>"nonexistent-user"}
438
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
439
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
422
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
423
+  (4.5ms) commit transaction
424
+ Rendering text template
425
+ Rendered text template (0.0ms)
426
+ Completed 200 OK in 68ms (Views: 4.6ms | ActiveRecord: 10.5ms)
427
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
428
+ Processing by ExampleController#restricted as JSON
429
+ Completed in 11ms (ActiveRecord: 0.0ms)
430
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
431
+ Processing by ExampleController#this_requires_signin_permission as JSON
432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
440
433
   (0.1ms) begin transaction
441
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37027"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
442
-  (6.7ms) commit transaction
443
-  (0.0ms) begin transaction
444
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35089"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
445
-  (4.8ms) commit transaction
446
- Processing by Api::UserController#update as HTML
447
- Parameters: {"uid"=>"a1s2d37027"}
448
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37027"], ["LIMIT", 1]]
434
+  (0.1ms) commit transaction
435
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
449
436
   (0.1ms) begin transaction
450
- 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", 8]]
451
-  (4.7ms) commit transaction
452
- Completed 200 OK in 8ms (ActiveRecord: 5.1ms)
453
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
437
+  (0.1ms) commit transaction
438
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
454
439
   (0.1ms) begin transaction
455
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38493"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
456
-  (5.4ms) commit transaction
440
+  (0.1ms) commit transaction
441
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
457
442
   (0.1ms) begin transaction
458
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32185"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
459
-  (10.4ms) commit transaction
460
- Processing by Api::UserController#update as HTML
461
- Parameters: {"uid"=>"a1s2d38493"}
462
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
463
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
464
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
465
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
466
- Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
467
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:52 +0000
443
+  (0.1ms) commit transaction
444
+  (0.0ms) begin transaction
445
+  (0.1ms) commit transaction
446
+ Rendering text template
447
+ Rendered text template (0.0ms)
448
+ Completed 200 OK in 50ms (Views: 0.3ms | ActiveRecord: 0.7ms)
449
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
468
450
  Processing by ExampleController#restricted as HTML
469
451
  Authenticating with gds_sso strategy
470
- Completed in 5ms (ActiveRecord: 0.0ms)
471
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
472
- Processing by ExampleController#this_requires_signin_permission as HTML
473
- Authenticating with gds_sso strategy
474
452
  Completed in 0ms (ActiveRecord: 0.0ms)
475
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
476
- Started GET "/auth/gds/callback?code=4d99a0f025395eeb7c62b53599529f2c19b1ff934bc3854207c3dd7ba5d9af8e&state=414f80cb8313cbe357b402e348704cc9804963994402ad00" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
453
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
454
+ Started GET "/auth/gds/callback?code=0012adb6a6a047a6affe347cbed73f500b417d764425ac83b864d51268abb246&state=e95fad5c31cc5489f48e07d36f02584d4dee9106f7c5c43a" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
477
455
  Processing by AuthenticationsController#callback as HTML
478
- Parameters: {"code"=>"4d99a0f025395eeb7c62b53599529f2c19b1ff934bc3854207c3dd7ba5d9af8e", "state"=>"414f80cb8313cbe357b402e348704cc9804963994402ad00"}
456
+ Parameters: {"code"=>"0012adb6a6a047a6affe347cbed73f500b417d764425ac83b864d51268abb246", "state"=>"e95fad5c31cc5489f48e07d36f02584d4dee9106f7c5c43a"}
479
457
  Authenticating with gds_sso strategy
480
458
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
481
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
482
459
   (0.1ms) begin transaction
483
- 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"]]
484
-  (9.0ms) commit transaction
460
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
461
+  (4.7ms) commit transaction
485
462
   (0.0ms) begin transaction
486
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
487
-  (13.5ms) commit transaction
488
- Redirected to http://www.example-client.com/this_requires_signin_permission
489
- Completed 302 Found in 28ms (ActiveRecord: 23.4ms)
490
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
491
- Processing by ExampleController#this_requires_signin_permission as HTML
463
+  (0.1ms) commit transaction
464
+ Redirected to http://www.example-client.com/restricted
465
+ Completed 302 Found in 10ms (ActiveRecord: 5.3ms)
466
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
467
+ Processing by ExampleController#restricted as HTML
492
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]]
493
469
  Rendering text template
494
470
  Rendered text template (0.0ms)
495
- Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
496
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
471
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
472
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
497
473
  Processing by ExampleController#this_requires_signin_permission as HTML
498
474
  Authenticating with gds_sso strategy
499
475
  Completed in 0ms (ActiveRecord: 0.0ms)
500
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
501
- Started GET "/auth/gds/callback?code=10277d28085e87477266a3fa396866f1bde0193be130a09b01346b742c42799f&state=6416e65181e599096e87d30e8496161aec3a2ba5e8f5aa9a" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
476
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
477
+ Started GET "/auth/gds/callback?code=491743882f66eef9e4d03bcc98cb8095601af27d7192edbef81dfbc3be0c66cb&state=057c5f4c2c1b280a2796518f6ab93353102a71df5a9411d3" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
502
478
  Processing by AuthenticationsController#callback as HTML
503
- Parameters: {"code"=>"10277d28085e87477266a3fa396866f1bde0193be130a09b01346b742c42799f", "state"=>"6416e65181e599096e87d30e8496161aec3a2ba5e8f5aa9a"}
479
+ Parameters: {"code"=>"491743882f66eef9e4d03bcc98cb8095601af27d7192edbef81dfbc3be0c66cb", "state"=>"057c5f4c2c1b280a2796518f6ab93353102a71df5a9411d3"}
504
480
  Authenticating with gds_sso strategy
505
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
506
482
   (0.1ms) begin transaction
507
-  (0.1ms) commit transaction
483
+  (0.0ms) commit transaction
508
484
   (0.0ms) begin transaction
509
-  (0.1ms) commit transaction
485
+  (0.0ms) commit transaction
510
486
  Redirected to http://www.example-client.com/this_requires_signin_permission
511
- Completed 302 Found in 11ms (ActiveRecord: 0.4ms)
512
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
487
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
488
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
513
489
  Processing by ExampleController#this_requires_signin_permission as HTML
514
- User Load (1.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]]
515
- Rendering text template
516
- Rendered text template (0.0ms)
517
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
518
- Started GET "/" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
519
- Processing by ExampleController#index as HTML
490
+ 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]]
520
491
  Rendering text template
521
492
  Rendered text template (0.0ms)
522
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
523
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
524
- Processing by ExampleController#restricted as HTML
493
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
494
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
495
+ Processing by ExampleController#this_requires_signin_permission as HTML
525
496
  Authenticating with gds_sso strategy
526
497
  Completed in 0ms (ActiveRecord: 0.0ms)
527
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
528
- Started GET "/auth/gds/callback?code=8e727176b05c769d3ea2442ebd48d28733362aa2ffda67582cb058e19127e7f8&state=e32332b872012573cacb3137b7ed831a2327d41233e347be" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
498
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
499
+ Started GET "/auth/gds/callback?code=e8564eb0e0a2fbbda8bfd317a2347a88d6f35007a718e4d030e9a7de8674d5ca&state=03ef5f8b7653fb4db7f496c620183beeca4fe4834214d3f9" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
529
500
  Processing by AuthenticationsController#callback as HTML
530
- Parameters: {"code"=>"8e727176b05c769d3ea2442ebd48d28733362aa2ffda67582cb058e19127e7f8", "state"=>"e32332b872012573cacb3137b7ed831a2327d41233e347be"}
501
+ Parameters: {"code"=>"e8564eb0e0a2fbbda8bfd317a2347a88d6f35007a718e4d030e9a7de8674d5ca", "state"=>"03ef5f8b7653fb4db7f496c620183beeca4fe4834214d3f9"}
531
502
  Authenticating with gds_sso strategy
532
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
533
-  (0.1ms) begin transaction
534
-  (0.0ms) commit transaction
535
-  (0.1ms) begin transaction
536
-  (0.0ms) commit transaction
537
- Redirected to http://www.example-client.com/restricted
538
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
539
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
540
- Processing by ExampleController#restricted as HTML
503
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
504
+  (0.0ms) begin transaction
505
+  (0.1ms) commit transaction
506
+  (0.0ms) begin transaction
507
+  (0.1ms) commit transaction
508
+ Redirected to http://www.example-client.com/this_requires_signin_permission
509
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
510
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
511
+ Processing by ExampleController#this_requires_signin_permission as HTML
541
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]]
542
513
  Rendering text template
543
514
  Rendered text template (0.0ms)
544
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
545
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
515
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
516
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
546
517
  Processing by ExampleController#restricted as HTML
547
518
  Authenticating with gds_sso strategy
548
519
  Completed in 0ms (ActiveRecord: 0.0ms)
549
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
550
- Started GET "/auth/gds/callback?code=04f62a225a67e39c611275b4161fec63c8516f0b093d7d597a9069760fb71b78&state=a864cb7069d1818eaf19f6af75e68bc3b4085ec64b08e035" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
520
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
521
+ Started GET "/auth/gds/callback?code=efc9ef7fe39829ad7749c7dc490924444e20aa5d2358ca6bbd777357d35c8900&state=61e5d724f46be0b2ae83bc6c8a759b8b664946d6466225ae" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
551
522
  Processing by AuthenticationsController#callback as HTML
552
- Parameters: {"code"=>"04f62a225a67e39c611275b4161fec63c8516f0b093d7d597a9069760fb71b78", "state"=>"a864cb7069d1818eaf19f6af75e68bc3b4085ec64b08e035"}
523
+ Parameters: {"code"=>"efc9ef7fe39829ad7749c7dc490924444e20aa5d2358ca6bbd777357d35c8900", "state"=>"61e5d724f46be0b2ae83bc6c8a759b8b664946d6466225ae"}
553
524
  Authenticating with gds_sso strategy
554
525
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
555
-  (0.1ms) begin transaction
556
-  (0.0ms) commit transaction
557
526
   (0.0ms) begin transaction
558
527
   (0.0ms) commit transaction
528
+  (0.0ms) begin transaction
529
+  (0.1ms) commit transaction
559
530
  Redirected to http://www.example-client.com/restricted
560
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
561
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
531
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
532
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
562
533
  Processing by ExampleController#restricted as HTML
563
534
  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]]
564
535
  Rendering text template
565
536
  Rendered text template (0.0ms)
566
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
567
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
537
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
538
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
568
539
  Processing by ExampleController#restricted as HTML
569
540
  Authenticating with gds_sso strategy
570
541
  Completed in 0ms (ActiveRecord: 0.0ms)
571
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
572
- Started GET "/auth/gds/callback?code=6d6fe48eeabc52238549d4fd542281a995719a985bff7e1060d759e2636a0d8f&state=21b3d7eb9d9b1520db878258b0e340fcf2f3bfcb445713bd" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
542
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
543
+ Started GET "/auth/gds/callback?code=7f20536fb710f51d674bfd314bee9a7ecb1c7e907299aad0bdfd2d294ca4426c&state=8cb2b639017dbe5997b6caabb8f9c507d9f3974b25e8050a" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
573
544
  Processing by AuthenticationsController#callback as HTML
574
- Parameters: {"code"=>"6d6fe48eeabc52238549d4fd542281a995719a985bff7e1060d759e2636a0d8f", "state"=>"21b3d7eb9d9b1520db878258b0e340fcf2f3bfcb445713bd"}
545
+ Parameters: {"code"=>"7f20536fb710f51d674bfd314bee9a7ecb1c7e907299aad0bdfd2d294ca4426c", "state"=>"8cb2b639017dbe5997b6caabb8f9c507d9f3974b25e8050a"}
575
546
  Authenticating with gds_sso strategy
576
547
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
577
548
   (0.1ms) begin transaction
578
-  (0.1ms) commit transaction
549
+  (0.0ms) commit transaction
579
550
   (0.0ms) begin transaction
580
-  (0.1ms) commit transaction
551
+  (0.0ms) commit transaction
581
552
  Redirected to http://www.example-client.com/restricted
582
553
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
583
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
554
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
584
555
  Processing by ExampleController#restricted as HTML
585
556
  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]]
586
557
  Rendering text template
587
558
  Rendered text template (0.0ms)
588
559
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
589
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
560
+ Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
561
+ Processing by ExampleController#index as HTML
562
+ Rendering text template
563
+ Rendered text template (0.0ms)
564
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
565
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
590
566
  Processing by ExampleController#restricted as HTML
591
567
  Authenticating with gds_sso strategy
592
568
  Completed in 0ms (ActiveRecord: 0.0ms)
593
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:53 +0000
594
- Started GET "/auth/gds/callback?code=961e788c3fd77c67f60e1cd0334e3a17f3fc5bcb4aee1518eef1035313fee88b&state=b85eae7348ef182b5666eceb37ce0dfce2e55bcadab44e91" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
569
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
570
+ Started GET "/auth/gds/callback?code=fc45f5524b68709e3a09578acc0a392938348efe71f42865968d0c20bc0ae9ec&state=6a83580cf0c11020d7edd96d3f44a1338c84f46b5272f1b4" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
595
571
  Processing by AuthenticationsController#callback as HTML
596
- Parameters: {"code"=>"961e788c3fd77c67f60e1cd0334e3a17f3fc5bcb4aee1518eef1035313fee88b", "state"=>"b85eae7348ef182b5666eceb37ce0dfce2e55bcadab44e91"}
572
+ Parameters: {"code"=>"fc45f5524b68709e3a09578acc0a392938348efe71f42865968d0c20bc0ae9ec", "state"=>"6a83580cf0c11020d7edd96d3f44a1338c84f46b5272f1b4"}
597
573
  Authenticating with gds_sso strategy
598
574
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
599
575
   (0.1ms) begin transaction
600
-  (0.1ms) commit transaction
576
+  (0.0ms) commit transaction
601
577
   (0.0ms) begin transaction
602
-  (0.1ms) commit transaction
578
+  (0.0ms) commit transaction
603
579
  Redirected to http://www.example-client.com/restricted
604
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
605
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
580
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
581
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
606
582
  Processing by ExampleController#restricted as HTML
607
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]]
608
584
  Rendering text template
609
585
  Rendered text template (0.0ms)
610
586
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
611
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
612
- Processing by ExampleController#restricted as HTML
613
- Authenticating with gds_sso strategy
614
- Completed in 1ms (ActiveRecord: 0.0ms)
615
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
616
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
587
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
588
+  (0.0ms) begin transaction
589
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
590
+  (5.3ms) commit transaction
591
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
617
592
  Processing by ExampleController#restricted as HTML
593
+ 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]]
618
594
  Authenticating with gds_sso strategy
619
- Completed in 0ms (ActiveRecord: 0.0ms)
620
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
621
- Started GET "/auth/gds/callback?code=f8cba4ccfab8ed122219b1ead2f141a0aec9934d7f3f7e8e5fc388d682798ef8&state=abe6cf832f1e39b4307067fd1548a80d42f2782f4d0bb4ea" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
595
+ Completed in 1ms (ActiveRecord: 0.1ms)
596
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
597
+ Started GET "/auth/gds/callback?code=21d6be0657ca17afde1c2376f29a3e4e2fe20a6d9a51dc126270d29838526c6a&state=138f9738a4a4755c19c118edf2f8de188c72c0dc5d074eee" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
622
598
  Processing by AuthenticationsController#callback as HTML
623
- Parameters: {"code"=>"f8cba4ccfab8ed122219b1ead2f141a0aec9934d7f3f7e8e5fc388d682798ef8", "state"=>"abe6cf832f1e39b4307067fd1548a80d42f2782f4d0bb4ea"}
599
+ Parameters: {"code"=>"21d6be0657ca17afde1c2376f29a3e4e2fe20a6d9a51dc126270d29838526c6a", "state"=>"138f9738a4a4755c19c118edf2f8de188c72c0dc5d074eee"}
624
600
  Authenticating with gds_sso strategy
625
601
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
626
602
   (0.1ms) begin transaction
627
-  (0.0ms) commit transaction
603
+  (0.1ms) commit transaction
628
604
   (0.0ms) begin transaction
629
-  (0.0ms) commit transaction
605
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
606
+  (6.6ms) commit transaction
630
607
  Redirected to http://www.example-client.com/restricted
631
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
632
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
608
+ Completed 302 Found in 11ms (ActiveRecord: 7.2ms)
609
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
633
610
  Processing by ExampleController#restricted as HTML
634
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]]
635
612
  Rendering text template
636
613
  Rendered text template (0.0ms)
637
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
638
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
614
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
615
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
639
616
  Processing by ExampleController#restricted as HTML
640
617
  Authenticating with gds_sso strategy
641
- Completed in 1ms (ActiveRecord: 0.0ms)
642
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
643
- Started GET "/auth/gds/callback?code=0d58e769f806c8c5401d3b5d6e31ea9a290ef989c2439b99e9624c300c93a385&state=f611e196c22dfe8f4bf3751ab6ff6565a51ac35742596fb5" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
618
+ Completed in 0ms (ActiveRecord: 0.0ms)
619
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
620
+ Started GET "/auth/gds/callback?code=a635eed314316682b07197ad261bdd39353d0372171f2c3cdc3b58b216c47cca&state=5e27068e841c4b6e765fe0c57819dc6f55da1eae2a7ea8ab" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
644
621
  Processing by AuthenticationsController#callback as HTML
645
- Parameters: {"code"=>"0d58e769f806c8c5401d3b5d6e31ea9a290ef989c2439b99e9624c300c93a385", "state"=>"f611e196c22dfe8f4bf3751ab6ff6565a51ac35742596fb5"}
622
+ Parameters: {"code"=>"a635eed314316682b07197ad261bdd39353d0372171f2c3cdc3b58b216c47cca", "state"=>"5e27068e841c4b6e765fe0c57819dc6f55da1eae2a7ea8ab"}
646
623
  Authenticating with gds_sso strategy
647
624
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
648
625
   (0.1ms) begin transaction
649
626
   (0.0ms) commit transaction
650
-  (0.1ms) begin transaction
627
+  (0.0ms) begin transaction
651
628
   (0.0ms) commit transaction
652
629
  Redirected to http://www.example-client.com/restricted
653
630
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
654
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:25:54 +0000
631
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
655
632
  Processing by ExampleController#restricted as HTML
656
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]]
657
634
  Rendering text template
658
635
  Rendered text template (0.0ms)
659
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
660
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
636
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
637
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
638
+ Processing by ExampleController#restricted as HTML
639
+ Authenticating with gds_sso strategy
640
+ Completed in 1ms (ActiveRecord: 0.0ms)
641
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
642
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
661
643
  Processing by ExampleController#restricted as HTML
662
644
  Authenticating with gds_sso strategy
663
645
  Completed in 0ms (ActiveRecord: 0.0ms)
664
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
665
- Started GET "/auth/gds/callback?code=033889fd326c3f492e23791e3df0e59dfde9a3945ff01c882a271d7da8169b14&state=592865d4bb7d3cad9d12f44a426e52c8917aab6c6f1e825d" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
646
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
647
+ Started GET "/auth/gds/callback?code=ca40aa30fb964ba5cd361184543601cc1b863dcccc03c1dcf8e0c6affa00a3ce&state=58a21355585a9e2fc0f526315479bf1f7bcb1a39c556bf44" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
666
648
  Processing by AuthenticationsController#callback as HTML
667
- Parameters: {"code"=>"033889fd326c3f492e23791e3df0e59dfde9a3945ff01c882a271d7da8169b14", "state"=>"592865d4bb7d3cad9d12f44a426e52c8917aab6c6f1e825d"}
649
+ Parameters: {"code"=>"ca40aa30fb964ba5cd361184543601cc1b863dcccc03c1dcf8e0c6affa00a3ce", "state"=>"58a21355585a9e2fc0f526315479bf1f7bcb1a39c556bf44"}
668
650
  Authenticating with gds_sso strategy
669
651
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
670
652
   (0.1ms) begin transaction
671
653
   (0.0ms) commit transaction
672
-  (0.1ms) begin transaction
654
+  (0.0ms) begin transaction
673
655
   (0.0ms) commit transaction
674
656
  Redirected to http://www.example-client.com/restricted
675
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
676
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
657
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
658
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
677
659
  Processing by ExampleController#restricted as HTML
678
660
  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]]
679
661
  Rendering text template
680
662
  Rendered text template (0.0ms)
681
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
682
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:15:54 +0000
683
- Processing by ExampleController#restricted as HTML
684
- 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]]
685
- Rendering text template
686
- Rendered text template (0.0ms)
687
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
688
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
663
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
664
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
689
665
  Processing by ExampleController#restricted as HTML
690
666
  Authenticating with gds_sso strategy
691
- Completed in 0ms (ActiveRecord: 0.0ms)
692
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
693
- Started GET "/auth/gds/callback?code=177c7471d786a86de94fa61842c0c5f09fa3bd8dc9f60e98c9afe931f93f70a3&state=4e5f22b896e5a47d8eba680cae5cfd4636998bfabb0f2d05" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
667
+ Completed in 1ms (ActiveRecord: 0.0ms)
668
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
669
+ Started GET "/auth/gds/callback?code=53d67701a72b7915a3ed0123f6ed0218efd6c8d3cda761eadcdc2fe07c7c2c3b&state=cfd24ecedc22e6f3f1b172beadf12314aec60bfcb22f6881" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
694
670
  Processing by AuthenticationsController#callback as HTML
695
- Parameters: {"code"=>"177c7471d786a86de94fa61842c0c5f09fa3bd8dc9f60e98c9afe931f93f70a3", "state"=>"4e5f22b896e5a47d8eba680cae5cfd4636998bfabb0f2d05"}
671
+ Parameters: {"code"=>"53d67701a72b7915a3ed0123f6ed0218efd6c8d3cda761eadcdc2fe07c7c2c3b", "state"=>"cfd24ecedc22e6f3f1b172beadf12314aec60bfcb22f6881"}
696
672
  Authenticating with gds_sso strategy
697
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
698
674
   (0.1ms) begin transaction
699
675
   (0.0ms) commit transaction
700
676
   (0.0ms) begin transaction
701
-  (0.1ms) commit transaction
677
+  (0.0ms) commit transaction
702
678
  Redirected to http://www.example-client.com/restricted
703
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
704
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
679
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
680
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
705
681
  Processing by ExampleController#restricted as HTML
706
- 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]]
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]]
707
683
  Rendering text template
708
684
  Rendered text template (0.0ms)
709
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
710
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
711
-  (0.0ms) begin transaction
712
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
713
-  (11.5ms) commit transaction
714
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
685
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
686
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
715
687
  Processing by ExampleController#restricted as HTML
716
- 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]]
717
688
  Authenticating with gds_sso strategy
718
- Completed in 1ms (ActiveRecord: 0.1ms)
719
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:20:54 +0000
720
- Started GET "/auth/gds/callback?code=9739c22dcd6a521d7c674ab4dc44e2d53ecec6969df37f6045c691d69c550654&state=8d931df02077d88fc2dc9cf6769cbaef4f2f4baa4b33018c" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
689
+ Completed in 0ms (ActiveRecord: 0.0ms)
690
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
691
+ Started GET "/auth/gds/callback?code=a7d7a1fc47a22bb51de8afbfc3f311b20e4e8f4ada3f8b71698b681115a9b132&state=55575dbe38c4b3652a5ba2ba952d5ee410198fd5a725f66f" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
721
692
  Processing by AuthenticationsController#callback as HTML
722
- Parameters: {"code"=>"9739c22dcd6a521d7c674ab4dc44e2d53ecec6969df37f6045c691d69c550654", "state"=>"8d931df02077d88fc2dc9cf6769cbaef4f2f4baa4b33018c"}
693
+ Parameters: {"code"=>"a7d7a1fc47a22bb51de8afbfc3f311b20e4e8f4ada3f8b71698b681115a9b132", "state"=>"55575dbe38c4b3652a5ba2ba952d5ee410198fd5a725f66f"}
723
694
  Authenticating with gds_sso strategy
724
695
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
725
696
   (0.1ms) begin transaction
726
697
   (0.0ms) commit transaction
727
698
   (0.0ms) begin transaction
728
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
729
-  (8.5ms) commit transaction
699
+  (0.0ms) commit transaction
730
700
  Redirected to http://www.example-client.com/restricted
731
- Completed 302 Found in 13ms (ActiveRecord: 9.0ms)
732
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
701
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
702
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
733
703
  Processing by ExampleController#restricted as HTML
734
704
  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]]
735
705
  Rendering text template
736
706
  Rendered text template (0.0ms)
737
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
738
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
739
- Processing by ExampleController#restricted as JSON
740
- Completed in 31ms (ActiveRecord: 0.0ms)
741
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
742
- Processing by ExampleController#restricted as JSON
743
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
744
-  (0.1ms) begin transaction
745
- User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
746
-  (8.3ms) commit transaction
747
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
748
-  (0.1ms) begin transaction
749
-  (0.0ms) commit transaction
750
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
751
-  (0.1ms) begin transaction
752
-  (0.0ms) commit transaction
753
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
754
-  (0.1ms) begin transaction
755
-  (0.0ms) commit transaction
756
-  (0.0ms) begin transaction
757
-  (0.0ms) commit transaction
707
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
708
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:38 +0000
709
+ Processing by ExampleController#restricted as HTML
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]]
758
711
  Rendering text template
759
712
  Rendered text template (0.0ms)
760
- Completed 200 OK in 104ms (Views: 0.4ms | ActiveRecord: 9.5ms)
761
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
762
- Processing by ExampleController#restricted as JSON
763
- Completed in 14ms (ActiveRecord: 0.0ms)
764
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:20:55 +0000
765
- Processing by ExampleController#this_requires_signin_permission as JSON
766
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
767
-  (0.1ms) begin transaction
768
-  (0.0ms) commit transaction
769
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
770
-  (0.1ms) begin transaction
771
-  (0.0ms) commit transaction
772
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
713
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
714
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
715
+ Processing by ExampleController#restricted as HTML
716
+ Authenticating with gds_sso strategy
717
+ Completed in 0ms (ActiveRecord: 0.0ms)
773
718
   (0.0ms) begin transaction
774
-  (0.0ms) commit transaction
775
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
776
-  (0.1ms) begin transaction
777
-  (0.0ms) commit transaction
719
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34228"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
720
+  (4.0ms) commit transaction
778
721
   (0.0ms) begin transaction
779
-  (0.1ms) commit transaction
780
- Rendering text template
781
- Rendered text template (0.0ms)
782
- Completed 200 OK in 65ms (Views: 0.4ms | ActiveRecord: 0.7ms)
783
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
722
+ User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33316"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
723
+  (3.3ms) commit transaction
724
+ Processing by Api::UserController#update as HTML
725
+ Parameters: {"uid"=>"a1s2d34228"}
726
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34228"], ["LIMIT", 1]]
727
+  (0.0ms) begin transaction
728
+ 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", 3]]
729
+  (4.1ms) commit transaction
730
+ Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
732
+  (0.0ms) begin transaction
733
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32448"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
734
+  (4.2ms) 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", "a1s2d35385"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
737
+  (2.9ms) commit transaction
738
+ Processing by Api::UserController#update as HTML
739
+ Parameters: {"uid"=>"a1s2d32448"}
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.2ms)
743
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
744
+ Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
745
+  (0.0ms) begin transaction
746
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36336"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
747
+  (3.3ms) commit transaction
748
+  (0.0ms) begin transaction
749
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3676"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
+  (3.0ms) commit transaction
751
+ Processing by Api::UserController#reauth as HTML
752
+ Parameters: {"uid"=>"a1s2d36336"}
753
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
754
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
755
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
756
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
757
+ Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
758
+  (0.0ms) begin transaction
759
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39533"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
760
+  (4.3ms) commit transaction
761
+  (0.0ms) begin transaction
762
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33794"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
+  (3.1ms) commit transaction
764
+ Processing by Api::UserController#reauth as HTML
765
+ Parameters: {"uid"=>"nonexistent-user"}
766
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
767
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
784
768
   (0.1ms) begin transaction
785
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "6750"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
786
-  (22.1ms) commit transaction
769
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35568"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
770
+  (3.9ms) commit transaction
771
+  (0.0ms) begin transaction
772
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38626"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
773
+  (3.3ms) commit transaction
774
+ Processing by Api::UserController#reauth as HTML
775
+ Parameters: {"uid"=>"a1s2d35568"}
776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35568"], ["LIMIT", 1]]
777
+  (0.0ms) begin transaction
778
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
779
+  (3.6ms) commit transaction
780
+ Completed 200 OK in 6ms (ActiveRecord: 4.0ms)
781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]
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]]
787
784
   (0.1ms) begin transaction
788
- User Update (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
789
-  (11.7ms) commit transaction
790
-  (16.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') 
791
-  (17.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
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
+  (4.3ms) 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
+  (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
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
792
   (0.1ms) select sqlite_version(*)
793
-  (8.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:01 +0000
795
- Processing by ExampleController#restricted as HTML
796
- Authenticating with gds_sso strategy
797
- Completed in 8ms (ActiveRecord: 0.0ms)
798
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:01 +0000
799
- Processing by ExampleController#restricted as JSON
800
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
801
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
793
+  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
795
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
802
796
   (0.1ms) begin transaction
797
+ 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]]
798
+  (3.6ms) commit transaction
799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
800
+  (0.0ms) begin transaction
801
+  (0.1ms) commit transaction
802
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
803
+ Processing by ExampleController#restricted as JSON
804
+ Completed in 34ms (ActiveRecord: 0.0ms)
805
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
806
+ Processing by ExampleController#this_requires_signin_permission as JSON
807
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
808
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
809
+  (0.0ms) begin transaction
803
810
  SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
804
-  (8.7ms) commit transaction
811
+  (5.1ms) commit transaction
805
812
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
806
813
   (0.0ms) begin transaction
807
-  (0.1ms) commit transaction
814
+  (0.0ms) commit transaction
808
815
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
809
816
   (0.1ms) begin transaction
810
-  (0.1ms) commit transaction
817
+  (0.0ms) commit transaction
811
818
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
812
819
   (0.1ms) begin transaction
813
820
   (0.1ms) commit transaction
814
-  (0.0ms) begin transaction
815
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
816
-  (7.4ms) commit transaction
821
+  (0.1ms) begin transaction
822
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
823
+  (3.7ms) commit transaction
817
824
  Rendered text template (0.0ms)
818
- Completed 200 OK in 117ms (Views: 9.2ms | ActiveRecord: 19.5ms)
819
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
825
+ Completed 200 OK in 72ms (Views: 10.4ms | ActiveRecord: 10.1ms)
826
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
820
827
  Processing by ExampleController#restricted as JSON
821
- Completed in 18ms (ActiveRecord: 0.0ms)
822
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
828
+ Completed in 11ms (ActiveRecord: 0.0ms)
829
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
823
830
  Processing by ExampleController#restricted as JSON
824
- Completed in 23ms (ActiveRecord: 0.0ms)
825
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
826
- Processing by ExampleController#this_requires_signin_permission as JSON
827
831
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
828
832
   (0.1ms) begin transaction
829
833
   (0.0ms) commit transaction
@@ -839,503 +843,549 @@ Processing by ExampleController#this_requires_signin_permission as JSON
839
843
   (0.0ms) begin transaction
840
844
   (0.0ms) commit transaction
841
845
  Rendered text template (0.0ms)
842
- Completed 200 OK in 61ms (Views: 0.3ms | ActiveRecord: 0.8ms)
843
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
844
- Processing by ExampleController#this_requires_signin_permission as HTML
846
+ Completed 200 OK in 51ms (Views: 0.2ms | ActiveRecord: 0.7ms)
847
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
848
+ Processing by ExampleController#restricted as HTML
845
849
  Authenticating with gds_sso strategy
846
850
  Completed in 0ms (ActiveRecord: 0.0ms)
847
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
848
- Started GET "/auth/gds/callback?code=1daaa6e4ddb8e1ba1e3a4850f9adf705ba0ece145fd701d64212a91116513d1b&state=6d99f207fdba5c429ecac0411f28357a529cfaf8438e5f38" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
851
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
852
+ Started GET "/auth/gds/callback?code=46491738f1aaddfb6b3ea4738a6a7bdec78409001eb1fa35af500390d47874a5&state=893a3935dda233f21be1a28576524d7ba723084adcf2bcd3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
849
853
  Processing by AuthenticationsController#callback as HTML
850
- Parameters: {"code"=>"1daaa6e4ddb8e1ba1e3a4850f9adf705ba0ece145fd701d64212a91116513d1b", "state"=>"6d99f207fdba5c429ecac0411f28357a529cfaf8438e5f38"}
854
+ Parameters: {"code"=>"46491738f1aaddfb6b3ea4738a6a7bdec78409001eb1fa35af500390d47874a5", "state"=>"893a3935dda233f21be1a28576524d7ba723084adcf2bcd3"}
851
855
  Authenticating with gds_sso strategy
852
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
853
857
   (0.1ms) begin transaction
854
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
855
-  (230.3ms) commit transaction
856
-  (0.1ms) begin transaction
857
-  (0.1ms) commit transaction
858
- Redirected to http://www.example-client.com/this_requires_signin_permission
859
- Completed 302 Found in 239ms (ActiveRecord: 230.9ms)
860
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
861
- Processing by ExampleController#this_requires_signin_permission as HTML
858
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
859
+  (3.5ms) commit transaction
860
+  (0.0ms) begin transaction
861
+  (0.8ms) commit transaction
862
+ Redirected to http://www.example-client.com/restricted
863
+ Completed 302 Found in 10ms (ActiveRecord: 4.8ms)
864
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
865
+ Processing by ExampleController#restricted as HTML
862
866
  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"]]
863
867
  Rendered text template (0.0ms)
864
- Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.2ms)
865
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
866
- Processing by ExampleController#this_requires_signin_permission as HTML
868
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
869
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
870
+ Processing by ExampleController#restricted as HTML
867
871
  Authenticating with gds_sso strategy
868
- Completed in 0ms (ActiveRecord: 0.0ms)
869
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
870
- Started GET "/auth/gds/callback?code=f3dc4ed45f29632531def7e6e461779aa7b5342082a6bea66742afe965891368&state=befad7a29a90b5052d3c7eadb14484e06befb9c9a2b67b78" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
872
+ Completed in 1ms (ActiveRecord: 0.0ms)
873
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
874
+ Started GET "/auth/gds/callback?code=278b47d54129f3dd2bad638d0a46a7053f2c7be1b862e8ddff5cf33a23dd98e8&state=31513a37b3ea74a950c3de0164cc26a17715c2847b201edf" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
871
875
  Processing by AuthenticationsController#callback as HTML
872
- Parameters: {"code"=>"f3dc4ed45f29632531def7e6e461779aa7b5342082a6bea66742afe965891368", "state"=>"befad7a29a90b5052d3c7eadb14484e06befb9c9a2b67b78"}
876
+ Parameters: {"code"=>"278b47d54129f3dd2bad638d0a46a7053f2c7be1b862e8ddff5cf33a23dd98e8", "state"=>"31513a37b3ea74a950c3de0164cc26a17715c2847b201edf"}
873
877
  Authenticating with gds_sso strategy
874
878
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
875
879
   (0.1ms) begin transaction
876
880
   (0.0ms) commit transaction
877
881
   (0.0ms) begin transaction
878
882
   (0.0ms) commit transaction
879
- Redirected to http://www.example-client.com/this_requires_signin_permission
880
- Completed 302 Found in 12ms (ActiveRecord: 0.3ms)
881
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
882
- Processing by ExampleController#this_requires_signin_permission as HTML
883
+ Redirected to http://www.example-client.com/restricted
884
+ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
885
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
886
+ Processing by ExampleController#restricted as HTML
883
887
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
884
888
  Rendered text template (0.0ms)
885
889
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
886
- Started GET "/" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
890
+ Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
887
891
  Processing by ExampleController#index as HTML
888
892
  Rendered text template (0.0ms)
889
893
  Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
890
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
891
- Processing by ExampleController#restricted as HTML
894
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
895
+ Processing by ExampleController#this_requires_signin_permission as HTML
892
896
  Authenticating with gds_sso strategy
893
897
  Completed in 0ms (ActiveRecord: 0.0ms)
894
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:02 +0000
895
- Started GET "/auth/gds/callback?code=0b7d079852d1063eda103321e446a2299bb2def8012143144dba23fef1483fb6&state=22d5557abacab9156fae901544db5c501520d43178ca5244" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
898
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
899
+ Started GET "/auth/gds/callback?code=a05dea05377b77097cf1d1a787a42a6a257fa8b649771b02480ec3639380f69c&state=f06d1e2b7dcee87954727a48556fe69ff1aad3ed826200dc" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
896
900
  Processing by AuthenticationsController#callback as HTML
897
- Parameters: {"code"=>"0b7d079852d1063eda103321e446a2299bb2def8012143144dba23fef1483fb6", "state"=>"22d5557abacab9156fae901544db5c501520d43178ca5244"}
901
+ Parameters: {"code"=>"a05dea05377b77097cf1d1a787a42a6a257fa8b649771b02480ec3639380f69c", "state"=>"f06d1e2b7dcee87954727a48556fe69ff1aad3ed826200dc"}
898
902
  Authenticating with gds_sso strategy
899
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
900
904
   (0.1ms) begin transaction
901
-  (0.0ms) commit transaction
905
+  (0.1ms) commit transaction
902
906
   (0.0ms) begin transaction
903
907
   (0.1ms) commit transaction
904
- Redirected to http://www.example-client.com/restricted
905
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
906
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
907
- Processing by ExampleController#restricted as HTML
908
- 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"]]
908
+ Redirected to http://www.example-client.com/this_requires_signin_permission
909
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
910
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
911
+ Processing by ExampleController#this_requires_signin_permission as HTML
912
+ 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"]]
909
913
  Rendered text template (0.0ms)
910
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
911
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
912
- Processing by ExampleController#restricted as HTML
914
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
915
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
916
+ Processing by ExampleController#this_requires_signin_permission as HTML
913
917
  Authenticating with gds_sso strategy
914
918
  Completed in 0ms (ActiveRecord: 0.0ms)
915
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
916
- Started GET "/auth/gds/callback?code=778fa4ffa39bc19f98fc8fa44bea55ce1f46bdccd288d0af7a9608ace8861453&state=606c5c48e2b4b512443fa69e2f3541dd8b8f4ca5f5c5ee27" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
919
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
920
+ Started GET "/auth/gds/callback?code=78fd4c0dfda27773d11b80e8a676f87bf352ea9dd6663a1cf982c7bfbf5da528&state=bc56e631805f2d03729c6768484c09c7a3d4062949f55aa3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
917
921
  Processing by AuthenticationsController#callback as HTML
918
- Parameters: {"code"=>"778fa4ffa39bc19f98fc8fa44bea55ce1f46bdccd288d0af7a9608ace8861453", "state"=>"606c5c48e2b4b512443fa69e2f3541dd8b8f4ca5f5c5ee27"}
922
+ Parameters: {"code"=>"78fd4c0dfda27773d11b80e8a676f87bf352ea9dd6663a1cf982c7bfbf5da528", "state"=>"bc56e631805f2d03729c6768484c09c7a3d4062949f55aa3"}
919
923
  Authenticating with gds_sso strategy
920
924
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
921
925
   (0.1ms) begin transaction
922
926
   (0.1ms) commit transaction
923
-  (0.1ms) begin transaction
924
-  (0.1ms) commit transaction
925
- Redirected to http://www.example-client.com/restricted
926
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
927
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
928
- Processing by ExampleController#restricted as HTML
927
+  (0.0ms) begin transaction
928
+  (0.0ms) commit transaction
929
+ Redirected to http://www.example-client.com/this_requires_signin_permission
930
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
931
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
932
+ Processing by ExampleController#this_requires_signin_permission as HTML
929
933
  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"]]
930
934
  Rendered text template (0.0ms)
931
935
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
932
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
936
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
933
937
  Processing by ExampleController#restricted as HTML
934
938
  Authenticating with gds_sso strategy
935
939
  Completed in 0ms (ActiveRecord: 0.0ms)
936
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
937
- Started GET "/auth/gds/callback?code=35f23863dd1a412d95cb71da1451af1e528b9527c8216c893b4e6c2be7532239&state=aa036e24b08ed799ca53f0627410ac37d037ee8f9122096c" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
940
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
941
+ Started GET "/auth/gds/callback?code=4ebaa83e246a308282e405b5fa0d67fd9b94a7ae97883460d2b3270ec6b0342b&state=d73a86aa2c6b4cb1d8311d775aac6d3c39010f11750115d3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
938
942
  Processing by AuthenticationsController#callback as HTML
939
- Parameters: {"code"=>"35f23863dd1a412d95cb71da1451af1e528b9527c8216c893b4e6c2be7532239", "state"=>"aa036e24b08ed799ca53f0627410ac37d037ee8f9122096c"}
943
+ Parameters: {"code"=>"4ebaa83e246a308282e405b5fa0d67fd9b94a7ae97883460d2b3270ec6b0342b", "state"=>"d73a86aa2c6b4cb1d8311d775aac6d3c39010f11750115d3"}
940
944
  Authenticating with gds_sso strategy
941
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
942
-  (0.1ms) begin transaction
943
-  (0.1ms) commit transaction
944
-  (0.1ms) begin transaction
945
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
946
+  (0.0ms) begin transaction
945
947
   (0.1ms) commit transaction
948
+  (0.0ms) begin transaction
949
+  (0.0ms) commit transaction
946
950
  Redirected to http://www.example-client.com/restricted
947
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
948
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
951
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
952
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
949
953
  Processing by ExampleController#restricted as HTML
950
954
  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"]]
951
955
  Rendered text template (0.0ms)
952
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
953
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
956
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
957
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
954
958
  Processing by ExampleController#restricted as HTML
955
959
  Authenticating with gds_sso strategy
956
960
  Completed in 0ms (ActiveRecord: 0.0ms)
957
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
958
- Started GET "/auth/gds/callback?code=7f9c2f521fdf21d3cbf7ed90b0f9bf724ac72ebfeb61c75ddb04b7916cf44764&state=e66ff4e95bf1b7cbf7543cd58a1e2105278afe1c2fc2f4b3" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
961
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
962
+ Started GET "/auth/gds/callback?code=72595e36995298969be3e0e57c14e3bc110dc3352ee056555ee1a96621fe2fd5&state=68cbe4da58fb5978ead14a7cee63f44dc10f9d30258f42b1" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
959
963
  Processing by AuthenticationsController#callback as HTML
960
- Parameters: {"code"=>"7f9c2f521fdf21d3cbf7ed90b0f9bf724ac72ebfeb61c75ddb04b7916cf44764", "state"=>"e66ff4e95bf1b7cbf7543cd58a1e2105278afe1c2fc2f4b3"}
964
+ Parameters: {"code"=>"72595e36995298969be3e0e57c14e3bc110dc3352ee056555ee1a96621fe2fd5", "state"=>"68cbe4da58fb5978ead14a7cee63f44dc10f9d30258f42b1"}
961
965
  Authenticating with gds_sso strategy
962
966
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
963
967
   (0.1ms) begin transaction
964
968
   (0.1ms) commit transaction
965
-  (0.1ms) begin transaction
969
+  (0.0ms) begin transaction
966
970
   (0.1ms) commit transaction
967
971
  Redirected to http://www.example-client.com/restricted
968
972
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
969
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
973
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
970
974
  Processing by ExampleController#restricted as HTML
971
975
  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"]]
972
976
  Rendered text template (0.0ms)
973
977
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
974
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
975
-  (0.0ms) begin transaction
976
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
977
-  (7.2ms) commit transaction
978
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
978
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
979
979
  Processing by ExampleController#restricted as HTML
980
- 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"]]
981
980
  Authenticating with gds_sso strategy
982
- Completed in 1ms (ActiveRecord: 0.1ms)
983
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
984
- Started GET "/auth/gds/callback?code=44670b319d1ebb0cd8cd0ae781761411fce7ef026401886e8dd7fc44dcc2259a&state=20ccd7838bf03ce30b723e41e9198ac1acb5069f35d7c52b" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
981
+ Completed in 0ms (ActiveRecord: 0.0ms)
982
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
983
+ Started GET "/auth/gds/callback?code=5e3aae247f586f8b66e8b3435c40eadd94306eb1228b18083c23a7f5c6505de0&state=9877cea207b7932fac6c73e7476c0e8d556fc58b89f482e0" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
985
984
  Processing by AuthenticationsController#callback as HTML
986
- Parameters: {"code"=>"44670b319d1ebb0cd8cd0ae781761411fce7ef026401886e8dd7fc44dcc2259a", "state"=>"20ccd7838bf03ce30b723e41e9198ac1acb5069f35d7c52b"}
985
+ Parameters: {"code"=>"5e3aae247f586f8b66e8b3435c40eadd94306eb1228b18083c23a7f5c6505de0", "state"=>"9877cea207b7932fac6c73e7476c0e8d556fc58b89f482e0"}
987
986
  Authenticating with gds_sso strategy
988
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
989
-  (0.1ms) begin transaction
990
-  (0.1ms) commit transaction
991
-  (0.0ms) begin transaction
992
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
993
-  (6.1ms) commit transaction
987
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
988
+  (0.1ms) begin transaction
989
+  (0.1ms) commit transaction
990
+  (0.1ms) begin transaction
991
+  (0.1ms) commit transaction
994
992
  Redirected to http://www.example-client.com/restricted
995
- Completed 302 Found in 11ms (ActiveRecord: 6.6ms)
996
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
993
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
994
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
997
995
  Processing by ExampleController#restricted as HTML
998
996
  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"]]
999
997
  Rendered text template (0.0ms)
1000
998
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1001
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
999
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1002
1000
  Processing by ExampleController#restricted as HTML
1003
1001
  Authenticating with gds_sso strategy
1004
1002
  Completed in 0ms (ActiveRecord: 0.0ms)
1005
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:03 +0000
1006
- Started GET "/auth/gds/callback?code=ca9ab11b8b92f43b6e5f1dce2301a9e16567570a2940233328864f4cb1f7b25d&state=3ff8ad1937d33c1582b2a1bdd03e14039aef65ac0f1098fb" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1003
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1004
+ Started GET "/auth/gds/callback?code=ba3c185aaf43f4e8cc0a3cdbb5b2aaa3b937f1851a05cf9733b34599c5e0deb8&state=ffd2d8c355fb34666ae467cd78ac26b51034736fbdb2c38c" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1007
1005
  Processing by AuthenticationsController#callback as HTML
1008
- Parameters: {"code"=>"ca9ab11b8b92f43b6e5f1dce2301a9e16567570a2940233328864f4cb1f7b25d", "state"=>"3ff8ad1937d33c1582b2a1bdd03e14039aef65ac0f1098fb"}
1006
+ Parameters: {"code"=>"ba3c185aaf43f4e8cc0a3cdbb5b2aaa3b937f1851a05cf9733b34599c5e0deb8", "state"=>"ffd2d8c355fb34666ae467cd78ac26b51034736fbdb2c38c"}
1009
1007
  Authenticating with gds_sso strategy
1010
1008
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1011
-  (0.1ms) begin transaction
1012
-  (0.1ms) commit transaction
1013
1009
   (0.0ms) begin transaction
1014
1010
   (0.1ms) commit transaction
1011
+  (0.1ms) begin transaction
1012
+  (0.1ms) commit transaction
1015
1013
  Redirected to http://www.example-client.com/restricted
1016
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1017
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1014
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1015
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1018
1016
  Processing by ExampleController#restricted as HTML
1019
1017
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1020
1018
  Rendered text template (0.0ms)
1021
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1022
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1019
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1020
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:47 +0000
1023
1021
  Processing by ExampleController#restricted as HTML
1024
- Authenticating with gds_sso strategy
1025
- Completed in 0ms (ActiveRecord: 0.0ms)
1026
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1027
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1022
+ 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"]]
1023
+ Rendered text template (0.0ms)
1024
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1025
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1028
1026
  Processing by ExampleController#restricted as HTML
1029
1027
  Authenticating with gds_sso strategy
1030
1028
  Completed in 0ms (ActiveRecord: 0.0ms)
1031
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1032
- Started GET "/auth/gds/callback?code=c468ef9e0a871405ff2b64e8acbdff9690a9051820ea10b2ed13feb438e429f2&state=3a591136efea0c7b669201693f33bf0663da4126469201b7" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1029
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1030
+ Started GET "/auth/gds/callback?code=1dfe530737f211bd9a913fa02b68fd7f638a3be297beb3402524249abdfa449c&state=b379062b6bb4c84dbf5f0704e2c8064fef216b66389dce09" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1033
1031
  Processing by AuthenticationsController#callback as HTML
1034
- Parameters: {"code"=>"c468ef9e0a871405ff2b64e8acbdff9690a9051820ea10b2ed13feb438e429f2", "state"=>"3a591136efea0c7b669201693f33bf0663da4126469201b7"}
1032
+ Parameters: {"code"=>"1dfe530737f211bd9a913fa02b68fd7f638a3be297beb3402524249abdfa449c", "state"=>"b379062b6bb4c84dbf5f0704e2c8064fef216b66389dce09"}
1035
1033
  Authenticating with gds_sso strategy
1036
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1037
-  (0.1ms) begin transaction
1038
-  (0.1ms) commit transaction
1039
-  (0.0ms) begin transaction
1040
-  (0.1ms) commit transaction
1034
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1035
+  (0.1ms) begin transaction
1036
+  (0.1ms) commit transaction
1037
+  (0.1ms) begin transaction
1038
+  (0.1ms) commit transaction
1041
1039
  Redirected to http://www.example-client.com/restricted
1042
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1043
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1040
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1041
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1044
1042
  Processing by ExampleController#restricted as HTML
1045
- 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"]]
1043
+ 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"]]
1046
1044
  Rendered text template (0.0ms)
1047
1045
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1048
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1046
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
1047
+ Processing by ExampleController#restricted as HTML
1048
+ Authenticating with gds_sso strategy
1049
+ Completed in 0ms (ActiveRecord: 0.0ms)
1050
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
1051
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1049
1052
  Processing by ExampleController#restricted as HTML
1050
1053
  Authenticating with gds_sso strategy
1051
1054
  Completed in 0ms (ActiveRecord: 0.0ms)
1052
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1053
- Started GET "/auth/gds/callback?code=123f389651ae560e448f138d7002516de5fb3ca397c7d2205def37e5f9f4f05d&state=cfb2545536fac5275b1f0f43fa8d40b2f7c5b53b8033cb31" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1055
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1056
+ Started GET "/auth/gds/callback?code=cc580a0f368a72a4ebcbb72025608f86068af9270475f95b901115159cf3f8f2&state=5220d96d9701fe227cc6f8979240d05dc630cfdf4bfcc3d6" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1054
1057
  Processing by AuthenticationsController#callback as HTML
1055
- Parameters: {"code"=>"123f389651ae560e448f138d7002516de5fb3ca397c7d2205def37e5f9f4f05d", "state"=>"cfb2545536fac5275b1f0f43fa8d40b2f7c5b53b8033cb31"}
1058
+ Parameters: {"code"=>"cc580a0f368a72a4ebcbb72025608f86068af9270475f95b901115159cf3f8f2", "state"=>"5220d96d9701fe227cc6f8979240d05dc630cfdf4bfcc3d6"}
1056
1059
  Authenticating with gds_sso strategy
1057
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1058
-  (0.1ms) begin transaction
1059
-  (0.1ms) commit transaction
1060
-  (0.1ms) begin transaction
1061
-  (0.1ms) commit transaction
1060
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1061
+  (0.1ms) begin transaction
1062
+  (0.0ms) commit transaction
1063
+  (0.0ms) begin transaction
1064
+  (0.1ms) commit transaction
1062
1065
  Redirected to http://www.example-client.com/restricted
1063
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1064
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:04 +0000
1066
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1067
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1065
1068
  Processing by ExampleController#restricted as HTML
1066
- 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"]]
1069
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1067
1070
  Rendered text template (0.0ms)
1068
1071
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1069
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1073
+  (0.0ms) begin transaction
1074
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1075
+  (4.6ms) commit transaction
1076
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1070
1077
  Processing by ExampleController#restricted as HTML
1078
+ 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"]]
1071
1079
  Authenticating with gds_sso strategy
1072
- Completed in 0ms (ActiveRecord: 0.0ms)
1073
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1074
- Started GET "/auth/gds/callback?code=4ac7194730fb09acb958ec1985c175a6bdbd3e9236fe205d96057be051bb002b&state=d793a4ad36a964917485aa085ea20c7ef615485eac049e88" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1080
+ Completed in 1ms (ActiveRecord: 0.1ms)
1081
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1082
+ Started GET "/auth/gds/callback?code=bb9e4a1274526f706447b6fa318b3560a622f09c28290d9c47c7f5173c002925&state=cc568eb11fc265c2c4a6eb6a5bca4b08923b83dca0c7fb66" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1075
1083
  Processing by AuthenticationsController#callback as HTML
1076
- Parameters: {"code"=>"4ac7194730fb09acb958ec1985c175a6bdbd3e9236fe205d96057be051bb002b", "state"=>"d793a4ad36a964917485aa085ea20c7ef615485eac049e88"}
1084
+ Parameters: {"code"=>"bb9e4a1274526f706447b6fa318b3560a622f09c28290d9c47c7f5173c002925", "state"=>"cc568eb11fc265c2c4a6eb6a5bca4b08923b83dca0c7fb66"}
1077
1085
  Authenticating with gds_sso strategy
1078
1086
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1079
1087
   (0.1ms) begin transaction
1080
-  (0.2ms) commit transaction
1081
-  (0.0ms) begin transaction
1082
1088
   (0.0ms) commit transaction
1089
+  (0.0ms) begin transaction
1090
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1091
+  (4.5ms) commit transaction
1083
1092
  Redirected to http://www.example-client.com/restricted
1084
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1085
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:04 +0000
1093
+ Completed 302 Found in 8ms (ActiveRecord: 4.9ms)
1094
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1086
1095
  Processing by ExampleController#restricted as HTML
1087
- 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"]]
1096
+ 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
1097
  Rendered text template (0.0ms)
1089
1098
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1090
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:16:04 +0000
1099
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1091
1100
  Processing by ExampleController#restricted as HTML
1092
- 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"]]
1093
- Rendered text template (0.0ms)
1094
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
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"]]
1101
+ Authenticating with gds_sso strategy
1102
+ Completed in 0ms (ActiveRecord: 0.0ms)
1097
1103
   (0.1ms) begin transaction
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]]
1099
-  (23.3ms) commit transaction
1100
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1101
-  (0.0ms) begin transaction
1102
-  (0.0ms) commit transaction
1104
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35190"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1105
+  (5.4ms) commit transaction
1106
+  (0.0ms) begin transaction
1107
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36517"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1108
+  (7.9ms) commit transaction
1109
+ Processing by Api::UserController#reauth as HTML
1110
+ Parameters: {"uid"=>"a1s2d35190"}
1111
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35190"]]
1112
+  (0.0ms) begin transaction
1113
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1114
+  (4.1ms) commit transaction
1115
+ Completed 200 OK in 6ms (ActiveRecord: 4.4ms)
1116
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1117
+  (0.0ms) begin transaction
1118
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39409"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1119
+  (4.0ms) commit transaction
1103
1120
   (0.0ms) begin transaction
1104
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3383"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1105
-  (97.6ms) commit transaction
1106
-  (0.1ms) begin transaction
1107
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34711"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1108
-  (16.5ms) commit transaction
1121
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37934"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1122
+  (3.6ms) commit transaction
1109
1123
  Processing by Api::UserController#reauth as HTML
1110
- Parameters: {"uid"=>"a1s2d3383"}
1124
+ Parameters: {"uid"=>"a1s2d39409"}
1111
1125
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1112
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1126
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1113
1127
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1114
- Completed 403 Forbidden in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
1115
-  (0.1ms) begin transaction
1116
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33429"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1117
-  (42.8ms) commit transaction
1128
+ Completed 403 Forbidden in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1118
1129
   (0.1ms) begin transaction
1119
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37175"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1120
-  (6.1ms) commit transaction
1121
- Processing by Api::UserController#reauth as HTML
1122
- Parameters: {"uid"=>"a1s2d33429"}
1123
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33429"]]
1124
-  (0.0ms) begin transaction
1125
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1126
-  (5.7ms) commit transaction
1127
- Completed 200 OK in 8ms (ActiveRecord: 6.0ms)
1128
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1129
-  (0.0ms) begin transaction
1130
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38152"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1131
-  (4.4ms) commit transaction
1132
-  (0.0ms) begin transaction
1133
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34363"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1134
-  (5.1ms) commit transaction
1130
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34378"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1131
+  (3.5ms) commit transaction
1132
+  (0.1ms) begin transaction
1133
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34681"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1134
+  (4.2ms) commit transaction
1135
1135
  Processing by Api::UserController#reauth as HTML
1136
1136
  Parameters: {"uid"=>"nonexistent-user"}
1137
1137
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1138
1138
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1139
1139
   (0.0ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35000"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1141
-  (3.8ms) commit transaction
1140
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38945"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1141
+  (4.5ms) commit transaction
1142
1142
   (0.0ms) begin transaction
1143
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35750"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1144
-  (3.6ms) commit transaction
1143
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31389"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1144
+  (3.4ms) commit transaction
1145
1145
  Processing by Api::UserController#update as HTML
1146
- Parameters: {"uid"=>"a1s2d35000"}
1146
+ Parameters: {"uid"=>"a1s2d38945"}
1147
1147
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1148
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1148
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1149
1149
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1150
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1151
-  (0.0ms) begin transaction
1152
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3182"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1153
-  (6.0ms) commit transaction
1150
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1151
+  (0.1ms) begin transaction
1152
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31593"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1153
+  (3.6ms) commit transaction
1154
1154
   (0.0ms) begin transaction
1155
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31071"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1156
-  (4.7ms) commit transaction
1155
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35797"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1156
+  (4.1ms) commit transaction
1157
1157
  Processing by Api::UserController#update as HTML
1158
- Parameters: {"uid"=>"a1s2d3182"}
1159
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3182"]]
1160
-  (0.1ms) begin transaction
1158
+ Parameters: {"uid"=>"a1s2d31593"}
1159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31593"]]
1160
+  (0.0ms) begin transaction
1161
1161
  SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 11]]
1162
-  (4.9ms) commit transaction
1163
- Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
1162
+  (3.4ms) commit transaction
1163
+ Completed 200 OK in 6ms (ActiveRecord: 3.8ms)
1164
1164
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 11]]
1165
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1166
-  (0.0ms) begin transaction
1167
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "2932"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1168
-  (4.2ms) commit transaction
1165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1166
+  (0.3ms) begin transaction
1167
+ SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "3224"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1168
+  (3.9ms) commit transaction
1169
1169
   (0.1ms) begin transaction
1170
1170
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
1171
-  (5.3ms) commit transaction
1171
+  (4.5ms) commit transaction
1172
1172
   (0.1ms) DROP TABLE IF EXISTS "users"
1173
-  (1.1ms) SELECT sqlite_version(*)
1174
-  (36.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1175
-  (12.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1173
+  (1.6ms) SELECT sqlite_version(*)
1174
+  (5.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1175
+  (5.9ms) 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.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-07-18 13:21:11.010130"], ["updated_at", "2019-07-18 13:21:11.010130"]]
1179
-  (8.6ms) commit transaction
1180
-  (9.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", "2019-07-19 11:26:54.144424"], ["updated_at", "2019-07-19 11:26:54.144424"]]
1179
+  (4.8ms) commit transaction
1180
+  (5.9ms) 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
1182
   (0.0ms) begin transaction
1183
1183
   (0.0ms) commit transaction
1184
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1185
1184
   (0.1ms) begin transaction
1186
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "5487"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1187
-  (29.9ms) commit transaction
1185
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37605"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1186
+  (5.2ms) commit transaction
1188
1187
   (0.1ms) begin transaction
1189
- User Update (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
1190
-  (3.6ms) commit transaction
1191
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1192
- Processing by ExampleController#restricted as HTML
1193
- Authenticating with gds_sso strategy
1194
- Completed in 5ms (ActiveRecord: 0.0ms)
1195
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1196
- Processing by ExampleController#this_requires_signin_permission as JSON
1197
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1198
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1188
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31300"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1189
+  (3.3ms) commit transaction
1190
+ Processing by Api::UserController#update as HTML
1191
+ Parameters: {"uid"=>"a1s2d37605"}
1192
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1193
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1194
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1195
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1196
+ Completed 403 Forbidden in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
1197
+  (0.0ms) begin transaction
1198
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39703"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1199
+  (3.8ms) commit transaction
1200
+  (0.0ms) begin transaction
1201
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33001"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1202
+  (3.4ms) commit transaction
1203
+ Processing by Api::UserController#update as HTML
1204
+ Parameters: {"uid"=>"a1s2d39703"}
1205
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39703"], ["LIMIT", 1]]
1199
1206
   (0.1ms) begin transaction
1200
- 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]]
1201
-  (27.3ms) commit transaction
1202
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1207
+ 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", 3]]
1208
+  (4.7ms) commit transaction
1209
+ Completed 200 OK in 8ms (ActiveRecord: 5.2ms)
1210
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1203
1211
   (0.1ms) begin transaction
1204
-  (0.0ms) commit transaction
1205
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1212
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37686"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1213
+  (4.6ms) commit transaction
1214
+  (0.0ms) begin transaction
1215
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34277"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1216
+  (3.5ms) commit transaction
1217
+ Processing by Api::UserController#reauth as HTML
1218
+ Parameters: {"uid"=>"a1s2d37686"}
1219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37686"], ["LIMIT", 1]]
1206
1220
   (0.1ms) begin transaction
1207
-  (0.0ms) commit transaction
1208
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1221
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1222
+  (4.7ms) commit transaction
1223
+ Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
1224
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1209
1225
   (0.1ms) begin transaction
1210
-  (0.1ms) commit transaction
1226
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37925"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1227
+  (4.7ms) commit transaction
1211
1228
   (0.0ms) begin transaction
1212
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1213
-  (5.7ms) commit transaction
1214
- Rendering text template
1215
- Rendered text template (0.0ms)
1216
- Completed 200 OK in 118ms (Views: 2.9ms | ActiveRecord: 34.5ms)
1217
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1218
- Processing by ExampleController#restricted as JSON
1219
- Completed in 21ms (ActiveRecord: 0.0ms)
1220
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1221
- Processing by ExampleController#restricted as JSON
1222
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1229
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34651"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1230
+  (3.7ms) commit transaction
1231
+ Processing by Api::UserController#reauth as HTML
1232
+ Parameters: {"uid"=>"a1s2d37925"}
1233
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1234
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1235
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
1236
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1237
+ Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1223
1238
   (0.1ms) begin transaction
1224
-  (0.0ms) commit transaction
1225
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1239
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34735"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1240
+  (5.2ms) commit transaction
1241
+  (0.0ms) begin transaction
1242
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38075"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1243
+  (3.8ms) commit transaction
1244
+ Processing by Api::UserController#reauth as HTML
1245
+ Parameters: {"uid"=>"nonexistent-user"}
1246
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1247
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1248
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1226
1249
   (0.1ms) begin transaction
1227
-  (0.1ms) commit transaction
1228
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1250
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "8130"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1251
+  (5.2ms) commit transaction
1229
1252
   (0.1ms) begin transaction
1230
-  (0.1ms) commit transaction
1231
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1253
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
1254
+  (5.4ms) commit transaction
1255
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1256
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1257
+  (0.1ms) begin transaction
1258
+ 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]]
1259
+  (5.4ms) commit transaction
1260
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1232
1261
   (0.1ms) begin transaction
1233
1262
   (0.1ms) commit transaction
1263
+ Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
1264
+ Processing by ExampleController#index as HTML
1265
+ Rendering text template
1266
+ Rendered text template (0.0ms)
1267
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1268
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
1269
+ Processing by ExampleController#restricted as HTML
1270
+ Authenticating with gds_sso strategy
1271
+ Completed in 4ms (ActiveRecord: 0.0ms)
1272
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
1273
+ Started GET "/auth/gds/callback?code=d91419d9d1ed524cf71a9ecab46b4ec9eb27a8a8ca600b6b585c399c4e9c9c7f&state=a6ba4a3ae92f7ea8aaf8278b6e9833f5064b46ae1aa26217" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1274
+ Processing by AuthenticationsController#callback as HTML
1275
+ Parameters: {"code"=>"d91419d9d1ed524cf71a9ecab46b4ec9eb27a8a8ca600b6b585c399c4e9c9c7f", "state"=>"a6ba4a3ae92f7ea8aaf8278b6e9833f5064b46ae1aa26217"}
1276
+ Authenticating with gds_sso strategy
1277
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1278
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1279
+  (0.1ms) begin transaction
1280
+ 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"]]
1281
+  (4.8ms) commit transaction
1234
1282
   (0.0ms) begin transaction
1235
-  (0.0ms) commit transaction
1283
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1284
+  (3.6ms) commit transaction
1285
+ Redirected to http://www.example-client.com/restricted
1286
+ Completed 302 Found in 15ms (ActiveRecord: 9.3ms)
1287
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1288
+ Processing by ExampleController#restricted as HTML
1289
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1236
1290
  Rendering text template
1237
1291
  Rendered text template (0.0ms)
1238
- Completed 200 OK in 57ms (Views: 0.3ms | ActiveRecord: 0.9ms)
1239
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1240
- Processing by ExampleController#restricted as JSON
1241
- Completed in 13ms (ActiveRecord: 0.0ms)
1242
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1292
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1293
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1243
1294
  Processing by ExampleController#this_requires_signin_permission as HTML
1244
1295
  Authenticating with gds_sso strategy
1245
1296
  Completed in 0ms (ActiveRecord: 0.0ms)
1246
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:11 +0000
1247
- Started GET "/auth/gds/callback?code=1c652196e3fd2e07d670c10b591c11e68ee2f7d4f0529de3c1c1819d95e26275&state=3f6cbcf6a6fb7035413cc42d9ce14f3c2c68ea0ed6a46b93" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1297
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1298
+ Started GET "/auth/gds/callback?code=5dc889012262516e49c995500209e1100a2a9789c0ef30c2832dd509e420f9bb&state=99bcb84816bcf2a092aa87f8b1948b620e8417c3af17ad42" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1248
1299
  Processing by AuthenticationsController#callback as HTML
1249
- Parameters: {"code"=>"1c652196e3fd2e07d670c10b591c11e68ee2f7d4f0529de3c1c1819d95e26275", "state"=>"3f6cbcf6a6fb7035413cc42d9ce14f3c2c68ea0ed6a46b93"}
1300
+ Parameters: {"code"=>"5dc889012262516e49c995500209e1100a2a9789c0ef30c2832dd509e420f9bb", "state"=>"99bcb84816bcf2a092aa87f8b1948b620e8417c3af17ad42"}
1250
1301
  Authenticating with gds_sso strategy
1251
1302
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1252
1303
   (0.1ms) begin transaction
1253
- User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
1254
-  (7.7ms) commit transaction
1304
+  (0.0ms) commit transaction
1255
1305
   (0.0ms) begin transaction
1256
1306
   (0.0ms) commit transaction
1257
1307
  Redirected to http://www.example-client.com/this_requires_signin_permission
1258
- Completed 302 Found in 14ms (ActiveRecord: 8.3ms)
1259
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1308
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1309
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1260
1310
  Processing by ExampleController#this_requires_signin_permission as HTML
1261
- 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]]
1311
+ 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]]
1262
1312
  Rendering text template
1263
1313
  Rendered text template (0.0ms)
1264
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1265
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1314
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms)
1315
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1266
1316
  Processing by ExampleController#this_requires_signin_permission as HTML
1267
1317
  Authenticating with gds_sso strategy
1268
1318
  Completed in 0ms (ActiveRecord: 0.0ms)
1269
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1270
- Started GET "/auth/gds/callback?code=00ed07545cfae12634fdbaf344c518cbcba85a287d0a350bbf5039b054bc5a85&state=f1f30b81904350f34aa12754e6fa1dae8f9c2e475a768921" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1319
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1320
+ Started GET "/auth/gds/callback?code=91c0c976c74c6be97ea3ee4de5129873b52c146817592b0bb7cc939fe716d283&state=b837df18c315ea5f940db30a0a4d4160c751ebc654148a13" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1271
1321
  Processing by AuthenticationsController#callback as HTML
1272
- Parameters: {"code"=>"00ed07545cfae12634fdbaf344c518cbcba85a287d0a350bbf5039b054bc5a85", "state"=>"f1f30b81904350f34aa12754e6fa1dae8f9c2e475a768921"}
1322
+ Parameters: {"code"=>"91c0c976c74c6be97ea3ee4de5129873b52c146817592b0bb7cc939fe716d283", "state"=>"b837df18c315ea5f940db30a0a4d4160c751ebc654148a13"}
1273
1323
  Authenticating with gds_sso strategy
1274
1324
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1275
1325
   (0.1ms) begin transaction
1276
-  (0.0ms) commit transaction
1326
+  (0.1ms) commit transaction
1277
1327
   (0.0ms) begin transaction
1278
-  (0.6ms) commit transaction
1328
+  (0.1ms) commit transaction
1279
1329
  Redirected to http://www.example-client.com/this_requires_signin_permission
1280
- Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
1281
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1330
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1331
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1282
1332
  Processing by ExampleController#this_requires_signin_permission as HTML
1283
1333
  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]]
1284
1334
  Rendering text template
1285
1335
  Rendered text template (0.0ms)
1286
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1287
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1336
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1337
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1288
1338
  Processing by ExampleController#restricted as HTML
1289
1339
  Authenticating with gds_sso strategy
1290
- Completed in 1ms (ActiveRecord: 0.0ms)
1291
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1292
- Started GET "/auth/gds/callback?code=d45f34db17f4015d83d02d4e0264acd92caa226cd529f4905262cfbf66ec8f92&state=36f281e3ef0106d5f67206be1172c4b714bf691cb10dfcb1" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1340
+ Completed in 0ms (ActiveRecord: 0.0ms)
1341
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1342
+ Started GET "/auth/gds/callback?code=4ca028d7ee7b476394cbf8bf9ac445fbea75af04b456a5325a95ee72c4757dd6&state=2a2e2707e608c0f8fa30758bfb18eeff968f748fa37e944d" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1293
1343
  Processing by AuthenticationsController#callback as HTML
1294
- Parameters: {"code"=>"d45f34db17f4015d83d02d4e0264acd92caa226cd529f4905262cfbf66ec8f92", "state"=>"36f281e3ef0106d5f67206be1172c4b714bf691cb10dfcb1"}
1344
+ Parameters: {"code"=>"4ca028d7ee7b476394cbf8bf9ac445fbea75af04b456a5325a95ee72c4757dd6", "state"=>"2a2e2707e608c0f8fa30758bfb18eeff968f748fa37e944d"}
1295
1345
  Authenticating with gds_sso strategy
1296
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1297
-  (0.1ms) begin transaction
1298
-  (0.1ms) commit transaction
1299
-  (0.1ms) begin transaction
1346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1347
+  (0.0ms) begin transaction
1348
+  (0.0ms) commit transaction
1349
+  (0.0ms) begin transaction
1300
1350
   (0.1ms) commit transaction
1301
1351
  Redirected to http://www.example-client.com/restricted
1302
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1303
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1352
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1353
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1304
1354
  Processing by ExampleController#restricted as HTML
1305
1355
  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]]
1306
1356
  Rendering text template
1307
1357
  Rendered text template (0.0ms)
1308
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1309
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1358
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1359
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1310
1360
  Processing by ExampleController#restricted as HTML
1311
1361
  Authenticating with gds_sso strategy
1312
1362
  Completed in 0ms (ActiveRecord: 0.0ms)
1313
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1314
- Started GET "/auth/gds/callback?code=de1c4c98610ac5c5e8523e18dd18d6199183557964ec16d3ce338731621afb97&state=15321cc1de3dbb08f06bd9ab6f3cf84f804ac256387c412a" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1363
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1364
+ Started GET "/auth/gds/callback?code=d88d75aa083d9084c03adcaab9b2d4d62782d19480f8db93eb97f6df90460cc9&state=1bb6e3d5c333b4344918ce4a167186442ec76644e9cd0bdc" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1315
1365
  Processing by AuthenticationsController#callback as HTML
1316
- Parameters: {"code"=>"de1c4c98610ac5c5e8523e18dd18d6199183557964ec16d3ce338731621afb97", "state"=>"15321cc1de3dbb08f06bd9ab6f3cf84f804ac256387c412a"}
1366
+ Parameters: {"code"=>"d88d75aa083d9084c03adcaab9b2d4d62782d19480f8db93eb97f6df90460cc9", "state"=>"1bb6e3d5c333b4344918ce4a167186442ec76644e9cd0bdc"}
1317
1367
  Authenticating with gds_sso strategy
1318
1368
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1319
-  (0.3ms) begin transaction
1369
+  (0.1ms) begin transaction
1370
+  (0.1ms) commit transaction
1371
+  (0.1ms) begin transaction
1320
1372
   (0.1ms) commit transaction
1321
-  (0.0ms) begin transaction
1322
-  (0.0ms) commit transaction
1323
1373
  Redirected to http://www.example-client.com/restricted
1324
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
1325
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1374
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1375
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1326
1376
  Processing by ExampleController#restricted as HTML
1327
1377
  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]]
1328
1378
  Rendering text template
1329
1379
  Rendered text template (0.0ms)
1330
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1331
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1380
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1381
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1332
1382
  Processing by ExampleController#restricted as HTML
1333
1383
  Authenticating with gds_sso strategy
1334
1384
  Completed in 0ms (ActiveRecord: 0.0ms)
1335
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1336
- Started GET "/auth/gds/callback?code=73f9218a5c277c82e6c1089d1cd294c1d7446a9e2874b8c156dedb7d23d8eb97&state=817531a2b884783998ada9141caec466e9a0477435819513" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1385
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1386
+ Started GET "/auth/gds/callback?code=dcf7afaee1cf9dda09ad071b0dde16aef6f0311221c5816222b4df37dcab910c&state=1c7258e1dd0b5e5a44eded341edd52b57134b295727962dd" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1337
1387
  Processing by AuthenticationsController#callback as HTML
1338
- Parameters: {"code"=>"73f9218a5c277c82e6c1089d1cd294c1d7446a9e2874b8c156dedb7d23d8eb97", "state"=>"817531a2b884783998ada9141caec466e9a0477435819513"}
1388
+ Parameters: {"code"=>"dcf7afaee1cf9dda09ad071b0dde16aef6f0311221c5816222b4df37dcab910c", "state"=>"1c7258e1dd0b5e5a44eded341edd52b57134b295727962dd"}
1339
1389
  Authenticating with gds_sso strategy
1340
1390
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1341
1391
   (0.1ms) begin transaction
@@ -1343,236 +1393,186 @@ Authenticating with gds_sso strategy
1343
1393
   (0.1ms) begin transaction
1344
1394
   (0.0ms) commit transaction
1345
1395
  Redirected to http://www.example-client.com/restricted
1346
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1347
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1396
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1397
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1348
1398
  Processing by ExampleController#restricted as HTML
1349
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1350
- Rendering text template
1351
- Rendered text template (0.0ms)
1352
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.5ms)
1353
- Started GET "/" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1354
- Processing by ExampleController#index as HTML
1399
+ 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]]
1355
1400
  Rendering text template
1356
1401
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1402
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1403
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1359
1404
  Processing by ExampleController#restricted as HTML
1360
1405
  Authenticating with gds_sso strategy
1361
1406
  Completed in 1ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:12 +0000
1363
- Started GET "/auth/gds/callback?code=0736760cebe296a160898ed52b3443a379fb986b53667d2caa95e137f979536c&state=78082f113110abfee6a9b8e7828776c8949866c0945efc54" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1407
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1408
+ Started GET "/auth/gds/callback?code=cf0e35f4d703af8d490e8d8fbf87f29d04ad1c6f031884dbaf14a94a5dd6059d&state=3729185ec81911c097e929fcf60705b07a97c37d51fad8f7" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1364
1409
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"0736760cebe296a160898ed52b3443a379fb986b53667d2caa95e137f979536c", "state"=>"78082f113110abfee6a9b8e7828776c8949866c0945efc54"}
1410
+ Parameters: {"code"=>"cf0e35f4d703af8d490e8d8fbf87f29d04ad1c6f031884dbaf14a94a5dd6059d", "state"=>"3729185ec81911c097e929fcf60705b07a97c37d51fad8f7"}
1366
1411
  Authenticating with gds_sso strategy
1367
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
-  (0.1ms) begin transaction
1412
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1413
+  (0.0ms) begin transaction
1369
1414
   (0.1ms) commit transaction
1370
1415
   (0.1ms) begin transaction
1371
1416
   (0.0ms) commit transaction
1372
1417
  Redirected to http://www.example-client.com/restricted
1373
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1374
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1418
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1419
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1375
1420
  Processing by ExampleController#restricted as HTML
1376
1421
  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
1422
  Rendering text template
1378
1423
  Rendered text template (0.0ms)
1379
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1380
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1381
-  (0.0ms) begin transaction
1382
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1383
-  (23.3ms) commit transaction
1384
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1424
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1425
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1385
1426
  Processing by ExampleController#restricted as HTML
1386
- 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]]
1387
1427
  Authenticating with gds_sso strategy
1388
- Completed in 2ms (ActiveRecord: 0.1ms)
1389
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1390
- Started GET "/auth/gds/callback?code=ac26589187f9ac0428e902f57452753eb5d6b222074118e6d31a27c18c11cec7&state=ebd42d309327d20d6a7c090000695de68355b8c3798c79a1" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1428
+ Completed in 0ms (ActiveRecord: 0.0ms)
1429
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1430
+ Started GET "/auth/gds/callback?code=b7d5b81e4754fa04645a68efe8b0d2ed1c619937c59bf2057e6bf0a6cd90d8c1&state=81466a51d136642f1f288bb8f27337d2c4cc5c86ecfd1460" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1391
1431
  Processing by AuthenticationsController#callback as HTML
1392
- Parameters: {"code"=>"ac26589187f9ac0428e902f57452753eb5d6b222074118e6d31a27c18c11cec7", "state"=>"ebd42d309327d20d6a7c090000695de68355b8c3798c79a1"}
1432
+ Parameters: {"code"=>"b7d5b81e4754fa04645a68efe8b0d2ed1c619937c59bf2057e6bf0a6cd90d8c1", "state"=>"81466a51d136642f1f288bb8f27337d2c4cc5c86ecfd1460"}
1393
1433
  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]]
1434
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1395
1435
   (0.1ms) begin transaction
1396
-  (0.0ms) commit transaction
1436
+  (0.1ms) commit transaction
1397
1437
   (0.1ms) begin transaction
1398
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1399
-  (6.6ms) commit transaction
1438
+  (0.0ms) commit transaction
1400
1439
  Redirected to http://www.example-client.com/restricted
1401
- Completed 302 Found in 11ms (ActiveRecord: 7.2ms)
1402
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1440
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1441
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1403
1442
  Processing by ExampleController#restricted as HTML
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]]
1443
+ 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]]
1405
1444
  Rendering text template
1406
1445
  Rendered text template (0.0ms)
1407
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1408
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1446
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1447
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1448
+ Processing by ExampleController#restricted as HTML
1449
+ Authenticating with gds_sso strategy
1450
+ Completed in 0ms (ActiveRecord: 0.0ms)
1451
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1452
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1409
1453
  Processing by ExampleController#restricted as HTML
1410
1454
  Authenticating with gds_sso strategy
1411
1455
  Completed in 0ms (ActiveRecord: 0.0ms)
1412
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1413
- Started GET "/auth/gds/callback?code=5088af1026f8add98b778a9b381770a98485dcab1f32fb74ad7685cc5f479efb&state=aaba9dfc79a91a6512a5b2d551ec285ef98ccdd4e3414af9" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1456
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1457
+ Started GET "/auth/gds/callback?code=32df99fa134867a69e7dff16854ace74bee9e80e91d60bd530b5e6a3e501a050&state=7ef5b5a430660affcb058778e266b0bda9b0339ef48c5e15" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1414
1458
  Processing by AuthenticationsController#callback as HTML
1415
- Parameters: {"code"=>"5088af1026f8add98b778a9b381770a98485dcab1f32fb74ad7685cc5f479efb", "state"=>"aaba9dfc79a91a6512a5b2d551ec285ef98ccdd4e3414af9"}
1459
+ Parameters: {"code"=>"32df99fa134867a69e7dff16854ace74bee9e80e91d60bd530b5e6a3e501a050", "state"=>"7ef5b5a430660affcb058778e266b0bda9b0339ef48c5e15"}
1416
1460
  Authenticating with gds_sso strategy
1417
1461
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1418
-  (0.1ms) begin transaction
1462
+  (0.0ms) begin transaction
1419
1463
   (0.1ms) commit transaction
1420
1464
   (0.0ms) begin transaction
1421
1465
   (0.1ms) commit transaction
1422
1466
  Redirected to http://www.example-client.com/restricted
1423
1467
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1424
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1468
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1425
1469
  Processing by ExampleController#restricted as HTML
1426
1470
  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]]
1427
1471
  Rendering text template
1428
1472
  Rendered text template (0.0ms)
1429
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1430
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:16:13 +0000
1473
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1474
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:56 +0000
1431
1475
  Processing by ExampleController#restricted as HTML
1432
1476
  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]]
1433
1477
  Rendering text template
1434
1478
  Rendered text template (0.0ms)
1435
1479
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1436
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1480
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1437
1481
  Processing by ExampleController#restricted as HTML
1438
1482
  Authenticating with gds_sso strategy
1439
1483
  Completed in 0ms (ActiveRecord: 0.0ms)
1440
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1441
- Started GET "/auth/gds/callback?code=08efbfb868aea0b2f650fd8a52e0113d491ebfa63993acc7567f7c8039de9708&state=737848c59b116b0b11a9e39543f9c2798ff95bf69b32bdb3" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1484
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1485
+ Started GET "/auth/gds/callback?code=c0b01132a50a82493bc6e3df15541f70d8aad7723c56eaa2cfbec1e585ccdf88&state=2bcc8baf563dd7cdb8b615cecd3004a3cc865f6c678c965a" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1442
1486
  Processing by AuthenticationsController#callback as HTML
1443
- Parameters: {"code"=>"08efbfb868aea0b2f650fd8a52e0113d491ebfa63993acc7567f7c8039de9708", "state"=>"737848c59b116b0b11a9e39543f9c2798ff95bf69b32bdb3"}
1487
+ Parameters: {"code"=>"c0b01132a50a82493bc6e3df15541f70d8aad7723c56eaa2cfbec1e585ccdf88", "state"=>"2bcc8baf563dd7cdb8b615cecd3004a3cc865f6c678c965a"}
1444
1488
  Authenticating with gds_sso strategy
1445
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1446
1490
   (0.1ms) begin transaction
1447
1491
   (0.1ms) commit transaction
1448
-  (0.0ms) begin transaction
1492
+  (0.1ms) begin transaction
1449
1493
   (0.1ms) commit transaction
1450
1494
  Redirected to http://www.example-client.com/restricted
1451
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1452
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1495
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1496
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1453
1497
  Processing by ExampleController#restricted as HTML
1454
1498
  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]]
1455
1499
  Rendering text template
1456
1500
  Rendered text template (0.0ms)
1457
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1458
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:13 +0000
1459
- Processing by ExampleController#restricted as HTML
1460
- Authenticating with gds_sso strategy
1461
- Completed in 1ms (ActiveRecord: 0.0ms)
1462
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:26:13 +0000
1463
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1501
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1502
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1503
+  (0.0ms) begin transaction
1504
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1505
+  (4.2ms) commit transaction
1506
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1464
1507
  Processing by ExampleController#restricted as HTML
1508
+ 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]]
1465
1509
  Authenticating with gds_sso strategy
1466
- Completed in 0ms (ActiveRecord: 0.0ms)
1467
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-18 13:21:13 +0000
1468
- Started GET "/auth/gds/callback?code=346e6610d3bd127c60884a627f5df4025440fa0ae34367478f89ddf855c35156&state=ba0eb84bdb6bf08968e06ee1a7be9961b38950688a9226aa" for 127.0.0.1 at 2019-07-18 13:21:14 +0000
1510
+ Completed in 1ms (ActiveRecord: 0.1ms)
1511
+ Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1512
+ Started GET "/auth/gds/callback?code=d989689c488ffa44762c71b2bbe3aa26bfb11739a18d7025faf4d1341ac17c1a&state=590e39ae909689a98c4ee001cddccb689e9b825e8d10628f" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1469
1513
  Processing by AuthenticationsController#callback as HTML
1470
- Parameters: {"code"=>"346e6610d3bd127c60884a627f5df4025440fa0ae34367478f89ddf855c35156", "state"=>"ba0eb84bdb6bf08968e06ee1a7be9961b38950688a9226aa"}
1514
+ Parameters: {"code"=>"d989689c488ffa44762c71b2bbe3aa26bfb11739a18d7025faf4d1341ac17c1a", "state"=>"590e39ae909689a98c4ee001cddccb689e9b825e8d10628f"}
1471
1515
  Authenticating with gds_sso strategy
1472
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1516
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1473
1517
   (0.1ms) begin transaction
1474
-  (0.2ms) commit transaction
1518
+  (0.1ms) commit transaction
1475
1519
   (0.0ms) begin transaction
1476
-  (0.0ms) commit transaction
1520
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1521
+  (5.3ms) commit transaction
1477
1522
  Redirected to http://www.example-client.com/restricted
1478
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1479
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:21:14 +0000
1523
+ Completed 302 Found in 9ms (ActiveRecord: 5.8ms)
1524
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1480
1525
  Processing by ExampleController#restricted as HTML
1481
1526
  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]]
1482
1527
  Rendering text template
1483
1528
  Rendered text template (0.0ms)
1484
1529
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1485
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:14 +0000
1530
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1486
1531
  Processing by ExampleController#restricted as HTML
1487
1532
  Authenticating with gds_sso strategy
1488
1533
  Completed in 0ms (ActiveRecord: 0.0ms)
1489
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 09:26:14 +0000
1490
- Started GET "/auth/gds/callback?code=cff627a10180703e255cb6ecfacd0aa7e462acfb22a58da89ee2701ac2ed9d4b&state=bb672dd6503e0cd758355d1169a4e9d98b72266d4b8ebf48" for 127.0.0.1 at 2019-07-19 09:26:14 +0000
1491
- Processing by AuthenticationsController#callback as HTML
1492
- Parameters: {"code"=>"cff627a10180703e255cb6ecfacd0aa7e462acfb22a58da89ee2701ac2ed9d4b", "state"=>"bb672dd6503e0cd758355d1169a4e9d98b72266d4b8ebf48"}
1493
- Authenticating with gds_sso strategy
1534
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1535
+ Processing by ExampleController#restricted as JSON
1536
+ Completed in 22ms (ActiveRecord: 0.0ms)
1537
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1538
+ Processing by ExampleController#restricted as JSON
1539
+ Completed in 12ms (ActiveRecord: 0.0ms)
1540
+ Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1541
+ Processing by ExampleController#restricted as JSON
1542
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1543
+  (0.1ms) begin transaction
1544
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1545
+  (4.0ms) commit transaction
1494
1546
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
1547
   (0.0ms) begin transaction
1496
1548
   (0.0ms) commit transaction
1549
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1550
+  (0.1ms) begin transaction
1551
+  (0.0ms) commit transaction
1552
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1553
+  (0.0ms) begin transaction
1554
+  (0.0ms) commit transaction
1497
1555
   (0.0ms) begin transaction
1498
1556
   (0.0ms) commit transaction
1499
- Redirected to http://www.example-client.com/restricted
1500
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
1501
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 09:26:14 +0000
1502
- Processing by ExampleController#restricted as HTML
1503
- 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]]
1504
1557
  Rendering text template
1505
1558
  Rendered text template (0.0ms)
1506
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1507
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1508
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1509
-  (0.0ms) begin transaction
1510
- 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]]
1511
-  (9.2ms) commit transaction
1512
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1559
+ Completed 200 OK in 58ms (Views: 0.3ms | ActiveRecord: 4.9ms)
1560
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:57 +0000
1561
+ Processing by ExampleController#this_requires_signin_permission as JSON
1562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1513
1563
   (0.0ms) begin transaction
1514
1564
   (0.0ms) commit transaction
1565
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1515
1566
   (0.0ms) begin transaction
1516
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35134"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1517
-  (7.4ms) commit transaction
1518
-  (0.0ms) begin transaction
1519
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36507"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1520
-  (3.6ms) commit transaction
1521
- Processing by Api::UserController#reauth as HTML
1522
- Parameters: {"uid"=>"nonexistent-user"}
1523
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1524
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1525
-  (0.0ms) begin transaction
1526
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34120"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1527
-  (3.7ms) commit transaction
1528
-  (0.0ms) begin transaction
1529
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3562"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1530
-  (4.4ms) commit transaction
1531
- Processing by Api::UserController#reauth as HTML
1532
- Parameters: {"uid"=>"a1s2d34120"}
1533
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1534
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1535
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1536
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1537
- Completed 403 Forbidden in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
1538
-  (0.1ms) begin transaction
1539
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38855"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1540
-  (3.9ms) commit transaction
1541
-  (0.0ms) begin transaction
1542
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37123"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1543
-  (4.4ms) commit transaction
1544
- Processing by Api::UserController#reauth as HTML
1545
- Parameters: {"uid"=>"a1s2d38855"}
1546
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38855"], ["LIMIT", 1]]
1547
-  (0.0ms) begin transaction
1548
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1549
-  (4.5ms) commit transaction
1550
- Completed 200 OK in 7ms (ActiveRecord: 4.9ms)
1551
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
1552
-  (0.0ms) begin transaction
1553
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39348"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1554
-  (4.8ms) commit transaction
1555
-  (0.0ms) begin transaction
1556
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31812"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1557
-  (3.9ms) commit transaction
1558
- Processing by Api::UserController#update as HTML
1559
- Parameters: {"uid"=>"a1s2d39348"}
1560
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39348"], ["LIMIT", 1]]
1561
-  (0.0ms) begin transaction
1562
- 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", 10]]
1563
-  (5.0ms) commit transaction
1564
- Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
1565
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1567
+  (0.1ms) commit transaction
1568
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1566
1569
   (0.0ms) begin transaction
1567
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3818"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1568
-  (4.9ms) commit transaction
1570
+  (0.0ms) commit transaction
1571
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1572
+  (0.3ms) begin transaction
1573
+  (0.0ms) commit transaction
1569
1574
   (0.0ms) begin transaction
1570
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36663"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1571
-  (4.6ms) commit transaction
1572
- Processing by Api::UserController#update as HTML
1573
- Parameters: {"uid"=>"a1s2d3818"}
1574
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
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)
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.8ms | ActiveRecord: 0.0ms)
1575
+  (0.0ms) commit transaction
1576
+ Rendering text template
1577
+ Rendered text template (0.0ms)
1578
+ Completed 200 OK in 53ms (Views: 0.2ms | ActiveRecord: 0.9ms)