gds-sso 14.1.0 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +11 -6
  3. data/app/controllers/api/user_controller.rb +30 -28
  4. data/app/controllers/authentications_controller.rb +3 -5
  5. data/app/views/layouts/unauthorised.html.erb +1 -1
  6. data/config/routes.rb +6 -5
  7. data/lib/gds-sso.rb +24 -17
  8. data/lib/gds-sso/api_access.rb +1 -1
  9. data/lib/gds-sso/bearer_token.rb +24 -23
  10. data/lib/gds-sso/config.rb +13 -2
  11. data/lib/gds-sso/controller_methods.rb +5 -6
  12. data/lib/gds-sso/failure_app.rb +7 -7
  13. data/lib/gds-sso/lint/user_spec.rb +27 -28
  14. data/lib/gds-sso/lint/user_test.rb +28 -28
  15. data/lib/gds-sso/user.rb +13 -13
  16. data/lib/gds-sso/version.rb +1 -1
  17. data/lib/gds-sso/warden_config.rb +21 -31
  18. data/spec/controller/api_user_controller_spec.rb +40 -37
  19. data/spec/controller/controller_methods_spec.rb +28 -28
  20. data/spec/internal/app/assets/config/manifest.js +0 -0
  21. data/spec/internal/app/controllers/application_controller.rb +1 -1
  22. data/spec/internal/app/controllers/example_controller.rb +1 -2
  23. data/spec/internal/config/initializers/gds-sso.rb +2 -2
  24. data/spec/internal/config/routes.rb +5 -2
  25. data/spec/internal/config/storage.yml +3 -0
  26. data/spec/internal/db/combustion_test.sqlite +0 -0
  27. data/spec/internal/db/schema.rb +9 -5
  28. data/spec/internal/log/test.log +1048 -1114
  29. data/spec/requests/end_to_end_spec.rb +45 -46
  30. data/spec/spec_helper.rb +12 -13
  31. data/spec/support/signon_integration_helpers.rb +9 -7
  32. data/spec/support/timecop.rb +1 -1
  33. data/spec/unit/api_access_spec.rb +7 -7
  34. data/spec/unit/bearer_token_spec.rb +14 -15
  35. data/spec/unit/config_spec.rb +5 -5
  36. data/spec/unit/mock_bearer_token_spec.rb +4 -4
  37. data/spec/unit/session_serialisation_spec.rb +5 -5
  38. data/spec/unit/user_spec.rb +23 -24
  39. metadata +80 -63
@@ -1,3 +1,3 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  include GDS::SSO::ControllerMethods
3
- end
3
+ end
@@ -1,6 +1,5 @@
1
1
  class ExampleController < ApplicationController
2
-
3
- before_action :authenticate_user!, :only => [:restricted, :this_requires_signin_permission]
2
+ before_action :authenticate_user!, only: %i[restricted this_requires_signin_permission]
4
3
 
5
4
  def index
6
5
  render body: "jabberwocky"
@@ -1,6 +1,6 @@
1
1
  GDS::SSO.config do |config|
2
2
  config.user_model = "User"
3
- config.oauth_id = 'gds-sso-test'
4
- config.oauth_secret = 'secret'
3
+ config.oauth_id = "gds-sso-test"
4
+ config.oauth_secret = "secret"
5
5
  config.oauth_root_url = "http://localhost:4567"
6
6
  end
@@ -1,5 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
- root :to => 'example#index'
3
- get "/restricted" => 'example#restricted'
4
+ # Add your own routes here, or remove this file if you don't have need for it.
5
+ root to: "example#index"
6
+ get "/restricted" => "example#restricted"
4
7
  get "/this_requires_signin_permission" => "example#this_requires_signin_permission"
5
8
  end
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
@@ -1,12 +1,16 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ActiveRecord::Schema.define do
2
- create_table "users", :force => true do |t|
3
- t.string "name", :null => false
4
- t.string "uid", :null => false
5
- t.string "email", :null => false
4
+ # Set up any tables you need to exist for your test suite that don't belong
5
+ # in migrations.
6
+ create_table "users", force: true do |t|
7
+ t.string "name", null: false
8
+ t.string "uid", null: false
9
+ t.string "email", null: false
6
10
  t.boolean "remotely_signed_out"
7
11
  t.text "permissions"
8
12
  t.string "organisation_slug"
9
13
  t.string "organisation_content_id"
10
- t.boolean "disabled", :default => false
14
+ t.boolean "disabled", default: false
11
15
  end
12
16
  end
@@ -1,1204 +1,797 @@
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)
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"]]
7
-  (0.1ms) begin transaction
8
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
9
-  (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"]]
11
-  (0.1ms) begin transaction
12
-  (0.1ms) commit transaction
13
- Started GET "/restricted" for 127.0.0.1 at 2019-07-18 13:19:54 +0000
14
- Processing by ExampleController#restricted as HTML
15
- Authenticating with gds_sso strategy
16
- 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
27
- Processing by AuthenticationsController#callback as HTML
28
- Parameters: {"code"=>"8d7e5bdfd9a69d1b2ca7791874d376db4ba73d99388bd26d4095863911902802", "state"=>"b87daedd52b66dd90c1e9fba1f68f4c9e733457ea90cb7af"}
29
- Authenticating with gds_sso strategy
30
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
31
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
32
-  (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
38
- 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
41
- Processing by ExampleController#restricted as HTML
42
- 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
- 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
46
- Processing by ExampleController#restricted as HTML
47
- Authenticating with gds_sso strategy
48
- 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
51
- Processing by AuthenticationsController#callback as HTML
52
- Parameters: {"code"=>"ab6dcfcbd97d5ef13dd49c8e273ed75e940b4fdc9ab056b748dd0044582581b4", "state"=>"b66b3599d42e68ddc5b152dead114350292e0451510c8671"}
53
- 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"]]
55
-  (0.1ms) begin transaction
56
-  (0.1ms) commit transaction
57
-  (0.0ms) begin transaction
58
-  (0.1ms) commit transaction
59
- 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
62
- Processing by ExampleController#restricted as HTML
63
- 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
- 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
68
- Authenticating with gds_sso strategy
69
- 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
72
- Processing by AuthenticationsController#callback as HTML
73
- Parameters: {"code"=>"5ebe1a25850e1b13ffe39d6f4f42d5e9404071ca07c03b8411b039c1f41a437c", "state"=>"9e0d0d1a401d8f68b76e12fee88df6e0f3a03abb71b09651"}
74
- 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
78
-  (0.1ms) begin transaction
79
-  (0.1ms) commit transaction
80
- Redirected to http://www.example-client.com/restricted
81
- 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
84
- 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
- Rendered text template (0.0ms)
86
- 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
88
- Processing by ExampleController#this_requires_signin_permission as HTML
89
- Authenticating with gds_sso strategy
90
- 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
93
- Processing by AuthenticationsController#callback as HTML
94
- Parameters: {"code"=>"0d79451222bd557300d6952c85ee1279b69115c513d8c27a809804062e95c2ce", "state"=>"8b3f70c4ee8757a986854cdf06e25ac2f1af95e689d99e69"}
95
- Authenticating with gds_sso strategy
96
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
97
-  (0.1ms) begin transaction
98
-  (0.1ms) commit transaction
99
-  (0.1ms) begin transaction
100
-  (0.1ms) commit transaction
101
- 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
104
- Processing by ExampleController#this_requires_signin_permission as HTML
105
- 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
- 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
110
- Authenticating with gds_sso strategy
111
- 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
114
- Processing by AuthenticationsController#callback as HTML
115
- Parameters: {"code"=>"57ae25ed1ee0b62331844920110cd61ec92bd9c9bc826b03c730745e444a1335", "state"=>"dc06bae45b15ee9a126f23c3d01c25295a0b1f66bede43cf"}
116
- Authenticating with gds_sso strategy
117
- 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
-  (0.1ms) begin transaction
121
-  (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
126
- 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
- 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
130
- Processing by ExampleController#restricted as HTML
131
- Authenticating with gds_sso strategy
132
- 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
135
- Processing by AuthenticationsController#callback as HTML
136
- Parameters: {"code"=>"784118b583090d76be49442132dcb408f1e9129c11b3089ca64dc12ed916541d", "state"=>"1846de528ec034693a26abe983d29e72c6c0105c5081efde"}
137
- 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"]]
139
-  (0.1ms) begin transaction
140
-  (0.1ms) commit transaction
141
-  (0.0ms) begin transaction
142
-  (0.0ms) commit transaction
143
- Redirected to http://www.example-client.com/restricted
144
- 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
146
- Processing by ExampleController#restricted as HTML
147
- 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
- Rendered text template (0.0ms)
149
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
150
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
151
-  (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
155
- Processing by ExampleController#restricted as HTML
156
- 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
- Authenticating with gds_sso strategy
158
- 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
161
- Processing by AuthenticationsController#callback as HTML
162
- Parameters: {"code"=>"a189adc1df385a1a79f4de65e99268e5cebb68292ae3260303d9dadb75cfc267", "state"=>"6aa33b5023a58c9089a85e7644b9252d44a1d1908f2bf0d6"}
163
- 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"]]
165
-  (0.1ms) begin transaction
166
-  (0.0ms) commit transaction
167
-  (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
170
- 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
173
- Processing by ExampleController#restricted as HTML
174
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
175
- 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
178
- Processing by ExampleController#restricted as HTML
179
- Authenticating with gds_sso strategy
180
- 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
183
- Processing by AuthenticationsController#callback as HTML
184
- Parameters: {"code"=>"592bfd178a8308a0f8a705fd0f2b90e8b7f6fa1859d298c409edd939c67fc879", "state"=>"2b0daf05e92b8f209d308044afe46f9bd341310b25e2c142"}
185
- Authenticating with gds_sso strategy
186
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
187
-  (0.1ms) begin transaction
188
-  (0.0ms) commit transaction
189
-  (0.0ms) begin transaction
190
-  (0.0ms) commit transaction
191
- 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
194
- Processing by ExampleController#restricted as HTML
195
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
196
- Rendered text template (0.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
199
- Processing by ExampleController#restricted as HTML
200
- 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
204
- Processing by ExampleController#restricted as HTML
205
- Authenticating with gds_sso strategy
206
- 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
209
- Processing by AuthenticationsController#callback as HTML
210
- Parameters: {"code"=>"7111ec79675d5bb4bdb3ceb6f938c6a57123044030c297e2d51686e8a0c808d3", "state"=>"216200e7750683bffb550477564c990af5836c0899fd389e"}
211
- Authenticating with gds_sso strategy
212
- 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
-  (0.0ms) begin transaction
216
-  (0.1ms) commit transaction
217
- Redirected to http://www.example-client.com/restricted
218
- 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
220
- Processing by ExampleController#restricted as HTML
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"]]
222
- 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
230
- Processing by ExampleController#restricted as HTML
231
- Authenticating with gds_sso strategy
232
- 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
235
- Processing by AuthenticationsController#callback as HTML
236
- Parameters: {"code"=>"f85feda8636fbaef2971fb12f5e4319c098feae537b7a0a24abefd4e35f2d624", "state"=>"3de3d1c0576fd8df13d4437203dc72d3dab7107fc87e1bb9"}
237
- 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
243
- Redirected to http://www.example-client.com/restricted
244
- 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
246
- 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"]]
248
- 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
251
- Processing by ExampleController#restricted as HTML
252
- 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
256
- Processing by AuthenticationsController#callback as HTML
257
- Parameters: {"code"=>"e8d44a09bf41edf3e448713122ec214cf2718a2a0f0011a30753966bcb8daf74", "state"=>"35b5dd0527e23f7f94b4434871a1088b5582e022c39bcb4a"}
258
- 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
264
- 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
267
- 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"]]
269
- Rendered text template (0.0ms)
270
- 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
272
- 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
275
- Processing by ExampleController#restricted as JSON
276
- 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
280
- 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
282
-  (0.0ms) commit transaction
283
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
284
-  (0.1ms) begin transaction
285
-  (0.0ms) commit transaction
286
- 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
288
-  (0.0ms) commit transaction
289
-  (0.0ms) begin transaction
290
-  (0.0ms) commit transaction
291
- 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
294
- Processing by ExampleController#this_requires_signin_permission as JSON
295
- 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
298
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
299
-  (0.0ms) begin transaction
300
-  (0.0ms) commit transaction
301
- 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
303
-  (0.0ms) commit transaction
304
- 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
306
-  (0.0ms) commit transaction
307
-  (0.0ms) begin transaction
308
-  (0.0ms) commit transaction
309
- 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]]
383
1
   (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)
2
+  (1.1ms) SELECT sqlite_version(*)
3
+  (6.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
387
5
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
388
6
   (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)
7
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:10:58.659218"], ["updated_at", "2020-07-28 10:10:58.659218"]]
8
+  (5.4ms) commit transaction
9
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
392
10
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
393
11
   (0.1ms) begin transaction
394
-  (0.1ms) commit transaction
12
+  (0.0ms) commit transaction
395
13
  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
-  (0.1ms) begin transaction
14
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15
+  (0.0ms) begin transaction
398
16
  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]]
17
+  (4.2ms) commit transaction
18
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
401
19
   (0.0ms) begin transaction
402
20
   (0.1ms) commit transaction
403
-  (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
406
21
   (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
22
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33188"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
23
+  (4.4ms) commit transaction
24
+  (0.0ms) begin transaction
25
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32885"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
26
+  (3.4ms) commit transaction
409
27
  Processing by Api::UserController#reauth as HTML
410
- Parameters: {"uid"=>"a1s2d36257"}
28
+ Parameters: {"uid"=>"a1s2d33188"}
411
29
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
412
30
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
413
31
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
414
32
  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)
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
33
+ Completed 403 Forbidden in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
419
34
   (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]]
425
-  (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]]
35
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39666"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
36
+  (4.0ms) commit transaction
430
37
   (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
38
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35794"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
39
+  (4.3ms) commit transaction
436
40
  Processing by Api::UserController#reauth as HTML
437
41
  Parameters: {"uid"=>"nonexistent-user"}
438
42
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
439
43
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
440
44
   (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]]
449
-  (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]]
454
-  (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
45
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32544"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
46
+  (4.3ms) commit transaction
457
47
   (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
48
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3705"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
49
+  (3.3ms) commit transaction
50
+ Processing by Api::UserController#reauth as HTML
51
+ Parameters: {"uid"=>"a1s2d32544"}
52
+ User Load (11.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32544"], ["LIMIT", 1]]
53
+  (0.5ms) begin transaction
54
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
55
+  (4.0ms) commit transaction
56
+ Completed 200 OK in 18ms (ActiveRecord: 16.0ms)
57
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
58
+  (0.0ms) begin transaction
59
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32525"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
60
+  (3.6ms) commit transaction
61
+  (0.0ms) begin transaction
62
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38924"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
63
+  (4.0ms) commit transaction
460
64
  Processing by Api::UserController#update as HTML
461
- Parameters: {"uid"=>"a1s2d38493"}
65
+ Parameters: {"uid"=>"a1s2d32525"}
462
66
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
463
67
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
464
68
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
465
69
  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
70
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
71
+  (0.1ms) begin transaction
72
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33880"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
73
+  (4.4ms) commit transaction
74
+  (0.0ms) begin transaction
75
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31256"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
76
+  (3.3ms) commit transaction
77
+ Processing by Api::UserController#update as HTML
78
+ Parameters: {"uid"=>"a1s2d33880"}
79
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33880"], ["LIMIT", 1]]
80
+  (0.0ms) begin transaction
81
+ 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]]
82
+  (4.4ms) commit transaction
83
+ Completed 200 OK in 7ms (ActiveRecord: 4.8ms)
84
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
85
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
86
+  (0.0ms) begin transaction
87
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "4114"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
88
+  (3.6ms) commit transaction
89
+  (0.0ms) begin transaction
90
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
91
+  (4.5ms) commit transaction
92
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
468
93
  Processing by ExampleController#restricted as HTML
469
94
  Authenticating with gds_sso strategy
470
95
  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
96
+ Started GET "/" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
97
+ Processing by ExampleController#index as HTML
98
+ Rendering text template
99
+ Rendered text template (0.0ms)
100
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
101
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
102
+ Processing by ExampleController#restricted as HTML
473
103
  Authenticating with gds_sso strategy
474
104
  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
105
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
106
+ Started GET "/auth/gds/callback?code=XIrk0A1OcJZLjwOKsphEfEP_i18paaY1G6XKN85PNoA&state=a663c9e16160f9fd0c5ed4cb4ded2075230c98d848c828cc" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
477
107
  Processing by AuthenticationsController#callback as HTML
478
- Parameters: {"code"=>"4d99a0f025395eeb7c62b53599529f2c19b1ff934bc3854207c3dd7ba5d9af8e", "state"=>"414f80cb8313cbe357b402e348704cc9804963994402ad00"}
108
+ Parameters: {"code"=>"XIrk0A1OcJZLjwOKsphEfEP_i18paaY1G6XKN85PNoA", "state"=>"a663c9e16160f9fd0c5ed4cb4ded2075230c98d848c828cc"}
479
109
  Authenticating with gds_sso strategy
480
110
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
481
111
  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
-  (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
485
112
   (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
113
+ User Create (0.8ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
114
+  (8.4ms) commit transaction
115
+  (0.1ms) begin transaction
116
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
117
+  (3.3ms) commit transaction
118
+ Redirected to http://www.example-client.com/restricted
119
+ Completed 302 Found in 17ms (ActiveRecord: 13.1ms)
120
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
121
+ Processing by ExampleController#restricted as HTML
492
122
  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
123
  Rendering text template
494
124
  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
497
- Processing by ExampleController#this_requires_signin_permission as HTML
125
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
126
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
127
+ Processing by ExampleController#restricted as HTML
498
128
  Authenticating with gds_sso strategy
499
129
  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
130
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
131
+ Started GET "/auth/gds/callback?code=WD6GHKCg2CceSXQtOxpX5uX5Q52y3tLAYG4nJAjNBVw&state=64085a336fb8d8da6d3e32b6b7085cda856a0fb03fcaac46" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
502
132
  Processing by AuthenticationsController#callback as HTML
503
- Parameters: {"code"=>"10277d28085e87477266a3fa396866f1bde0193be130a09b01346b742c42799f", "state"=>"6416e65181e599096e87d30e8496161aec3a2ba5e8f5aa9a"}
133
+ Parameters: {"code"=>"WD6GHKCg2CceSXQtOxpX5uX5Q52y3tLAYG4nJAjNBVw", "state"=>"64085a336fb8d8da6d3e32b6b7085cda856a0fb03fcaac46"}
504
134
  Authenticating with gds_sso strategy
505
135
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
506
136
   (0.1ms) begin transaction
507
137
   (0.1ms) commit transaction
508
138
   (0.0ms) begin transaction
509
139
   (0.1ms) commit transaction
510
- 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
513
- 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
140
+ Redirected to http://www.example-client.com/restricted
141
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
142
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
143
+ Processing by ExampleController#restricted as HTML
144
+ 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
145
  Rendering text template
521
146
  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
147
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
148
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
524
149
  Processing by ExampleController#restricted as HTML
525
150
  Authenticating with gds_sso strategy
526
151
  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
152
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
153
+ Started GET "/auth/gds/callback?code=iwwQkvHOLQi9vgrkLGQiTUuM8AIMHyyDj57VPjM2zoQ&state=e3f1de3579ed6acfb19a247be93dadfaa4c02116c49718f6" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
529
154
  Processing by AuthenticationsController#callback as HTML
530
- Parameters: {"code"=>"8e727176b05c769d3ea2442ebd48d28733362aa2ffda67582cb058e19127e7f8", "state"=>"e32332b872012573cacb3137b7ed831a2327d41233e347be"}
155
+ Parameters: {"code"=>"iwwQkvHOLQi9vgrkLGQiTUuM8AIMHyyDj57VPjM2zoQ", "state"=>"e3f1de3579ed6acfb19a247be93dadfaa4c02116c49718f6"}
531
156
  Authenticating with gds_sso strategy
532
157
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
533
158
   (0.1ms) begin transaction
534
159
   (0.0ms) commit transaction
535
-  (0.1ms) begin transaction
160
+  (0.0ms) begin transaction
536
161
   (0.0ms) commit transaction
537
162
  Redirected to http://www.example-client.com/restricted
538
163
  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
164
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
540
165
  Processing by ExampleController#restricted as HTML
541
166
  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
167
  Rendering text template
543
168
  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
546
- Processing by ExampleController#restricted as HTML
169
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
170
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
171
+ Processing by ExampleController#this_requires_signin_permission as HTML
547
172
  Authenticating with gds_sso strategy
548
173
  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
174
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
175
+ Started GET "/auth/gds/callback?code=5fq0RKvlzv0B9qQsCEyhdd88h2JBCkiUtBUSdtGLpZE&state=8b5bf5abbd9de238e72dfe27d5122e14bcf1d9babe86c6f0" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
551
176
  Processing by AuthenticationsController#callback as HTML
552
- Parameters: {"code"=>"04f62a225a67e39c611275b4161fec63c8516f0b093d7d597a9069760fb71b78", "state"=>"a864cb7069d1818eaf19f6af75e68bc3b4085ec64b08e035"}
177
+ Parameters: {"code"=>"5fq0RKvlzv0B9qQsCEyhdd88h2JBCkiUtBUSdtGLpZE", "state"=>"8b5bf5abbd9de238e72dfe27d5122e14bcf1d9babe86c6f0"}
553
178
  Authenticating with gds_sso strategy
554
179
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
555
180
   (0.1ms) begin transaction
181
+  (0.1ms) commit transaction
182
+  (0.1ms) begin transaction
556
183
   (0.0ms) commit transaction
557
-  (0.0ms) begin transaction
558
-  (0.0ms) commit transaction
559
- 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
562
- Processing by ExampleController#restricted as HTML
184
+ Redirected to http://www.example-client.com/this_requires_signin_permission
185
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
186
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
187
+ Processing by ExampleController#this_requires_signin_permission as HTML
563
188
  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
189
  Rendering text template
565
190
  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
568
- Processing by ExampleController#restricted as HTML
191
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
192
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
193
+ Processing by ExampleController#this_requires_signin_permission as HTML
569
194
  Authenticating with gds_sso strategy
570
195
  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
196
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
197
+ Started GET "/auth/gds/callback?code=Y6UMFRXTtBvR0Xt7fmZMoYz7B_qLyB85fCAauwmGJVo&state=b9b2e0f203aa00fbc610c7399455b8e87c5b4ce94369d959" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
573
198
  Processing by AuthenticationsController#callback as HTML
574
- Parameters: {"code"=>"6d6fe48eeabc52238549d4fd542281a995719a985bff7e1060d759e2636a0d8f", "state"=>"21b3d7eb9d9b1520db878258b0e340fcf2f3bfcb445713bd"}
199
+ Parameters: {"code"=>"Y6UMFRXTtBvR0Xt7fmZMoYz7B_qLyB85fCAauwmGJVo", "state"=>"b9b2e0f203aa00fbc610c7399455b8e87c5b4ce94369d959"}
575
200
  Authenticating with gds_sso strategy
576
201
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
577
202
   (0.1ms) begin transaction
578
203
   (0.1ms) commit transaction
579
204
   (0.0ms) begin transaction
580
-  (0.1ms) commit transaction
581
- Redirected to http://www.example-client.com/restricted
582
- 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
584
- Processing by ExampleController#restricted as HTML
205
+  (0.0ms) commit transaction
206
+ Redirected to http://www.example-client.com/this_requires_signin_permission
207
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
208
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
209
+ Processing by ExampleController#this_requires_signin_permission as HTML
585
210
  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
211
  Rendering text template
587
212
  Rendered text template (0.0ms)
588
213
  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
214
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
590
215
  Processing by ExampleController#restricted as HTML
591
216
  Authenticating with gds_sso strategy
592
217
  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
218
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
219
+ Started GET "/auth/gds/callback?code=fteVPA642fJHI-UDcDBpcDoij_VODquH_w4dUBvrCk4&state=33f56805f43198fbf151d75bd5e80ea858af449826755474" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
595
220
  Processing by AuthenticationsController#callback as HTML
596
- Parameters: {"code"=>"961e788c3fd77c67f60e1cd0334e3a17f3fc5bcb4aee1518eef1035313fee88b", "state"=>"b85eae7348ef182b5666eceb37ce0dfce2e55bcadab44e91"}
221
+ Parameters: {"code"=>"fteVPA642fJHI-UDcDBpcDoij_VODquH_w4dUBvrCk4", "state"=>"33f56805f43198fbf151d75bd5e80ea858af449826755474"}
597
222
  Authenticating with gds_sso strategy
598
223
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
599
224
   (0.1ms) begin transaction
600
-  (0.1ms) commit transaction
225
+  (0.4ms) commit transaction
601
226
   (0.0ms) begin transaction
602
227
   (0.1ms) commit transaction
603
228
  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
229
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
230
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
606
231
  Processing by ExampleController#restricted as HTML
607
232
  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
233
  Rendering text template
609
234
  Rendered text template (0.0ms)
610
235
  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
236
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
612
237
  Processing by ExampleController#restricted as HTML
613
238
  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
239
+ Completed in 0ms (ActiveRecord: 0.0ms)
240
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
241
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
617
242
  Processing by ExampleController#restricted as HTML
618
243
  Authenticating with gds_sso strategy
619
244
  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
245
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
246
+ Started GET "/auth/gds/callback?code=I4g-SNUSGUIlrh0zevm1P9RkqZeEuUMGZ5IM5K6nfKc&state=3a1c7bfa60afd57a7f1eba98d4ec07a5391094b798b42295" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
622
247
  Processing by AuthenticationsController#callback as HTML
623
- Parameters: {"code"=>"f8cba4ccfab8ed122219b1ead2f141a0aec9934d7f3f7e8e5fc388d682798ef8", "state"=>"abe6cf832f1e39b4307067fd1548a80d42f2782f4d0bb4ea"}
248
+ Parameters: {"code"=>"I4g-SNUSGUIlrh0zevm1P9RkqZeEuUMGZ5IM5K6nfKc", "state"=>"3a1c7bfa60afd57a7f1eba98d4ec07a5391094b798b42295"}
624
249
  Authenticating with gds_sso strategy
625
250
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
626
251
   (0.1ms) begin transaction
627
-  (0.0ms) commit transaction
628
-  (0.0ms) begin transaction
629
-  (0.0ms) commit transaction
252
+  (0.1ms) commit transaction
253
+  (0.1ms) begin transaction
254
+  (0.1ms) commit transaction
630
255
  Redirected to http://www.example-client.com/restricted
631
256
  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
257
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
633
258
  Processing by ExampleController#restricted as HTML
634
259
  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
260
  Rendering text template
636
261
  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
262
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
263
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
639
264
  Processing by ExampleController#restricted as HTML
640
265
  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
266
+ Completed in 0ms (ActiveRecord: 0.0ms)
267
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
268
+ Started GET "/auth/gds/callback?code=uuYU7T9saWv_WHz16C37qVCQx1yhVm9TpQYrcxkYmFc&state=3a809c5e8ef281168837d2ffc744a23c5d863085b40a1c7b" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
644
269
  Processing by AuthenticationsController#callback as HTML
645
- Parameters: {"code"=>"0d58e769f806c8c5401d3b5d6e31ea9a290ef989c2439b99e9624c300c93a385", "state"=>"f611e196c22dfe8f4bf3751ab6ff6565a51ac35742596fb5"}
270
+ Parameters: {"code"=>"uuYU7T9saWv_WHz16C37qVCQx1yhVm9TpQYrcxkYmFc", "state"=>"3a809c5e8ef281168837d2ffc744a23c5d863085b40a1c7b"}
646
271
  Authenticating with gds_sso strategy
647
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
272
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
648
273
   (0.1ms) begin transaction
649
274
   (0.0ms) commit transaction
650
275
   (0.1ms) begin transaction
651
-  (0.0ms) commit transaction
276
+  (0.1ms) commit transaction
652
277
  Redirected to http://www.example-client.com/restricted
653
- 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
278
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
279
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
655
280
  Processing by ExampleController#restricted as HTML
656
281
  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
282
  Rendering text template
658
283
  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
284
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
285
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
661
286
  Processing by ExampleController#restricted as HTML
662
287
  Authenticating with gds_sso strategy
663
288
  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
289
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
290
+ Started GET "/auth/gds/callback?code=0KvD-U3mbOr7IQCo9xGjz5XFI2ISiBQ3-Fkard2qMss&state=03fcadf877cb14fd2d698e2a7259325f1db0a61891e8ef38" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
666
291
  Processing by AuthenticationsController#callback as HTML
667
- Parameters: {"code"=>"033889fd326c3f492e23791e3df0e59dfde9a3945ff01c882a271d7da8169b14", "state"=>"592865d4bb7d3cad9d12f44a426e52c8917aab6c6f1e825d"}
292
+ Parameters: {"code"=>"0KvD-U3mbOr7IQCo9xGjz5XFI2ISiBQ3-Fkard2qMss", "state"=>"03fcadf877cb14fd2d698e2a7259325f1db0a61891e8ef38"}
668
293
  Authenticating with gds_sso strategy
669
294
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
670
-  (0.1ms) begin transaction
295
+  (0.2ms) begin transaction
671
296
   (0.0ms) commit transaction
672
-  (0.1ms) begin transaction
297
+  (0.0ms) begin transaction
673
298
   (0.0ms) commit transaction
674
299
  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
300
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
301
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
677
302
  Processing by ExampleController#restricted as HTML
678
- 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]]
303
+ 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]]
679
304
  Rendering text template
680
305
  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
306
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
307
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:01 +0000
683
308
  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]]
309
+ 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]]
685
310
  Rendering text template
686
311
  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
312
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
313
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
689
314
  Processing by ExampleController#restricted as HTML
690
315
  Authenticating with gds_sso strategy
691
316
  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
317
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
318
+ Started GET "/auth/gds/callback?code=lkMut4J9C-GGDBDF29-8lz6yZNhdI26xdK5sgAvBLaA&state=282d995502a62b1832b6f0220fd3996160caa61ac071b576" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
694
319
  Processing by AuthenticationsController#callback as HTML
695
- Parameters: {"code"=>"177c7471d786a86de94fa61842c0c5f09fa3bd8dc9f60e98c9afe931f93f70a3", "state"=>"4e5f22b896e5a47d8eba680cae5cfd4636998bfabb0f2d05"}
320
+ Parameters: {"code"=>"lkMut4J9C-GGDBDF29-8lz6yZNhdI26xdK5sgAvBLaA", "state"=>"282d995502a62b1832b6f0220fd3996160caa61ac071b576"}
696
321
  Authenticating with gds_sso strategy
697
322
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
698
323
   (0.1ms) begin transaction
699
324
   (0.0ms) commit transaction
700
325
   (0.0ms) begin transaction
701
-  (0.1ms) commit transaction
326
+  (0.0ms) commit transaction
702
327
  Redirected to http://www.example-client.com/restricted
703
328
  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
329
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
705
330
  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]]
331
+ 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
332
  Rendering text template
708
333
  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
334
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
335
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
336
+  (0.1ms) begin transaction
337
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
338
+  (7.1ms) commit transaction
339
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
715
340
  Processing by ExampleController#restricted as HTML
716
341
  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
342
  Authenticating with gds_sso strategy
718
343
  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
344
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
345
+ Started GET "/auth/gds/callback?code=0tod4KmKNl5dbJ9u5nGbam9VmIFAdW_tp6OAdsA1xr8&state=b577b9071423563943a94e5a61a755689c8818337e0e72c6" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
721
346
  Processing by AuthenticationsController#callback as HTML
722
- Parameters: {"code"=>"9739c22dcd6a521d7c674ab4dc44e2d53ecec6969df37f6045c691d69c550654", "state"=>"8d931df02077d88fc2dc9cf6769cbaef4f2f4baa4b33018c"}
347
+ Parameters: {"code"=>"0tod4KmKNl5dbJ9u5nGbam9VmIFAdW_tp6OAdsA1xr8", "state"=>"b577b9071423563943a94e5a61a755689c8818337e0e72c6"}
723
348
  Authenticating with gds_sso strategy
724
349
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
725
350
   (0.1ms) begin transaction
726
351
   (0.0ms) commit transaction
727
352
   (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
353
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
354
+  (6.0ms) commit transaction
730
355
  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
356
+ Completed 302 Found in 10ms (ActiveRecord: 6.6ms)
357
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
733
358
  Processing by ExampleController#restricted as HTML
734
- 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]]
359
+ 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]]
735
360
  Rendering text template
736
361
  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
362
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
363
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
742
364
  Processing by ExampleController#restricted as JSON
743
365
  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
366
+  (0.0ms) begin transaction
367
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
368
+  (3.9ms) commit transaction
369
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
370
+  (0.0ms) begin transaction
749
371
   (0.0ms) commit transaction
750
372
  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
373
+  (0.0ms) begin transaction
752
374
   (0.0ms) commit transaction
753
375
  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
376
+  (0.0ms) begin transaction
755
377
   (0.0ms) commit transaction
756
378
   (0.0ms) begin transaction
757
379
   (0.0ms) commit transaction
758
380
  Rendering text template
759
381
  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
382
+ Completed 200 OK in 55ms (Views: 0.3ms | ActiveRecord: 4.8ms)
383
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
762
384
  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
385
+ Completed in 11ms (ActiveRecord: 0.0ms)
386
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
765
387
  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
388
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
389
+  (0.0ms) begin transaction
390
+  (0.1ms) commit transaction
769
391
  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
392
+  (0.0ms) begin transaction
771
393
   (0.0ms) commit transaction
772
394
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
773
395
   (0.0ms) begin transaction
774
396
   (0.0ms) commit transaction
775
397
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
776
398
   (0.1ms) begin transaction
777
-  (0.0ms) commit transaction
778
-  (0.0ms) begin transaction
779
399
   (0.1ms) commit transaction
400
+  (0.0ms) begin transaction
401
+  (0.0ms) commit transaction
780
402
  Rendering text template
781
403
  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]]
404
+ Completed 200 OK in 50ms (Views: 0.4ms | ActiveRecord: 0.7ms)
405
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
406
+ Processing by ExampleController#restricted as JSON
407
+ Completed in 17ms (ActiveRecord: 0.0ms)
408
+  (1.4ms) SELECT sqlite_version(*)
409
+  (0.1ms) SELECT sqlite_version(*)
410
+  (0.2ms) DROP TABLE IF EXISTS "users"
411
+  (9.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 0)
412
+  (4.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
413
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
+  (0.1ms) begin transaction
415
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:11.696416"], ["updated_at", "2020-07-28 10:11:11.696416"]]
416
+  (4.7ms) commit transaction
417
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
418
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
419
+  (1.4ms) SELECT sqlite_version(*)
420
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
421
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
422
+  (0.1ms) begin transaction
423
+ 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]]
424
+  (5.0ms) commit transaction
425
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
784
426
   (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
427
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37378"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
428
+  (11.3ms) commit transaction
787
429
   (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)
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
430
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31593"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
431
+  (12.2ms) commit transaction
432
+ Processing by Api::UserController#update as HTML
433
+ Parameters: {"uid"=>"a1s2d37378"}
434
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
435
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
436
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.6ms | Allocations: 265)
437
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
438
+ Completed 403 Forbidden in 8ms (Views: 5.3ms | ActiveRecord: 0.0ms | Allocations: 3265)
439
+  (0.1ms) begin transaction
440
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33604"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
441
+  (3.5ms) commit transaction
442
+  (0.1ms) begin transaction
443
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38516"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
444
+  (3.2ms) commit transaction
445
+ Processing by Api::UserController#update as HTML
446
+ Parameters: {"uid"=>"a1s2d33604"}
447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33604"], ["LIMIT", 1]]
448
+  (0.1ms) begin transaction
449
+ 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", 4]]
450
+  (3.1ms) commit transaction
451
+ Completed 200 OK in 6ms (ActiveRecord: 3.5ms | Allocations: 1313)
452
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
453
+  (0.1ms) begin transaction
454
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31894"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
455
+  (4.5ms) commit transaction
456
+  (0.1ms) begin transaction
457
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36660"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
458
+  (3.2ms) commit transaction
459
+ Processing by Api::UserController#reauth as HTML
460
+ Parameters: {"uid"=>"nonexistent-user"}
461
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
462
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 522)
463
+  (0.1ms) begin transaction
464
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36194"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
465
+  (3.1ms) commit transaction
466
+  (0.1ms) begin transaction
467
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32577"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
468
+  (3.5ms) commit transaction
469
+ Processing by Api::UserController#reauth as HTML
470
+ Parameters: {"uid"=>"a1s2d36194"}
471
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
472
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
473
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.2ms | Allocations: 56)
474
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
475
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms | Allocations: 514)
476
+  (0.1ms) begin transaction
477
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31351"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
478
+  (3.2ms) commit transaction
479
+  (0.1ms) begin transaction
480
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32956"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
481
+  (3.9ms) commit transaction
482
+ Processing by Api::UserController#reauth as HTML
483
+ Parameters: {"uid"=>"a1s2d31351"}
484
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31351"], ["LIMIT", 1]]
485
+  (0.1ms) begin transaction
486
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 10]]
487
+  (3.2ms) commit transaction
488
+ Completed 200 OK in 6ms (ActiveRecord: 3.6ms | Allocations: 928)
489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
490
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
795
491
  Processing by ExampleController#restricted as HTML
796
492
  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"]]
802
-  (0.1ms) begin transaction
803
- 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
805
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
806
-  (0.0ms) begin transaction
807
-  (0.1ms) commit transaction
808
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
809
-  (0.1ms) begin transaction
810
-  (0.1ms) commit transaction
811
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
812
-  (0.1ms) begin transaction
813
-  (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
817
- 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
820
- 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
823
- 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
828
-  (0.1ms) begin transaction
829
-  (0.0ms) commit transaction
830
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
831
-  (0.1ms) begin transaction
832
-  (0.1ms) commit transaction
833
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
834
-  (0.1ms) begin transaction
835
-  (0.0ms) commit transaction
836
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
837
-  (0.1ms) begin transaction
838
-  (0.0ms) commit transaction
839
-  (0.0ms) begin transaction
840
-  (0.0ms) commit transaction
841
- 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
493
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 162)
494
+ Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
495
+ Processing by ExampleController#index as HTML
496
+ Rendering text template
497
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
498
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms | Allocations: 475)
499
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
500
+ Processing by ExampleController#restricted as HTML
501
+ Authenticating with gds_sso strategy
502
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 115)
503
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
504
+ Started GET "/auth/gds/callback?code=aFjAs4wwnCYsih8y8lFaG-GVdG2n1uHgaHiDbqvWGRA&state=105756fa9458618cf24e279350e44cb409bd6b25b1ee0d79" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
505
+ Processing by AuthenticationsController#callback as HTML
506
+ Parameters: {"code"=>"aFjAs4wwnCYsih8y8lFaG-GVdG2n1uHgaHiDbqvWGRA", "state"=>"105756fa9458618cf24e279350e44cb409bd6b25b1ee0d79"}
507
+ Authenticating with gds_sso strategy
508
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
510
+  (0.1ms) begin transaction
511
+ 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"]]
512
+  (4.7ms) commit transaction
513
+  (0.1ms) begin transaction
514
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 12]]
515
+  (4.4ms) commit transaction
516
+ Redirected to http://www.example-client.com/restricted
517
+ Completed 302 Found in 14ms (ActiveRecord: 10.0ms | Allocations: 1592)
518
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
519
+ Processing by ExampleController#restricted as HTML
520
+ 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", 0], ["LIMIT", 1]]
521
+ Rendering text template
522
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
523
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 731)
524
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
844
525
  Processing by ExampleController#this_requires_signin_permission as HTML
845
526
  Authenticating with gds_sso strategy
846
- 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
527
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
528
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
529
+ Started GET "/auth/gds/callback?code=UoqQuZKYHON4cJVzd03wNP0Fzj09csPTYFNMMJ6B7hA&state=230f7021c6c21a0e3ae9a32d44d76634f4b5eada178a37e8" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
849
530
  Processing by AuthenticationsController#callback as HTML
850
- Parameters: {"code"=>"1daaa6e4ddb8e1ba1e3a4850f9adf705ba0ece145fd701d64212a91116513d1b", "state"=>"6d99f207fdba5c429ecac0411f28357a529cfaf8438e5f38"}
851
- 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"]]
853
-  (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
531
+ Parameters: {"code"=>"UoqQuZKYHON4cJVzd03wNP0Fzj09csPTYFNMMJ6B7hA", "state"=>"230f7021c6c21a0e3ae9a32d44d76634f4b5eada178a37e8"}
532
+ Authenticating with gds_sso strategy
533
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
858
534
  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
535
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
536
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
861
537
  Processing by ExampleController#this_requires_signin_permission as HTML
862
- 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
- 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
538
+ 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", 0], ["LIMIT", 1]]
539
+ Rendering text template
540
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
541
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
542
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
866
543
  Processing by ExampleController#this_requires_signin_permission as HTML
867
544
  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
545
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
546
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
547
+ Started GET "/auth/gds/callback?code=70nwMjegd4XlaKu7HNf13FrTkz5W_rk7F6FreB_m2r8&state=5ef9993d6f09d4d162928d9173a1d5d3c570c16c49f8eee5" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
871
548
  Processing by AuthenticationsController#callback as HTML
872
- Parameters: {"code"=>"f3dc4ed45f29632531def7e6e461779aa7b5342082a6bea66742afe965891368", "state"=>"befad7a29a90b5052d3c7eadb14484e06befb9c9a2b67b78"}
549
+ Parameters: {"code"=>"70nwMjegd4XlaKu7HNf13FrTkz5W_rk7F6FreB_m2r8", "state"=>"5ef9993d6f09d4d162928d9173a1d5d3c570c16c49f8eee5"}
873
550
  Authenticating with gds_sso strategy
874
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
875
-  (0.1ms) begin transaction
876
-  (0.0ms) commit transaction
877
-  (0.0ms) begin transaction
878
-  (0.0ms) commit transaction
551
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
879
552
  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
553
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
554
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
882
555
  Processing by ExampleController#this_requires_signin_permission as HTML
883
- 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
- Rendered text template (0.0ms)
885
- 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
887
- Processing by ExampleController#index as HTML
888
- Rendered text template (0.0ms)
889
- 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
556
+ 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", 0], ["LIMIT", 1]]
557
+ Rendering text template
558
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
559
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 706)
560
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
891
561
  Processing by ExampleController#restricted as HTML
892
562
  Authenticating with gds_sso strategy
893
- 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
563
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
564
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
565
+ Started GET "/auth/gds/callback?code=dTqlS-0Xq0T9HdEE0WoDRhvKL5K9-rfP6kF3c5gEAWo&state=c492c8c76e68cc3470317e8c77fbd009db706a37995d3447" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
896
566
  Processing by AuthenticationsController#callback as HTML
897
- Parameters: {"code"=>"0b7d079852d1063eda103321e446a2299bb2def8012143144dba23fef1483fb6", "state"=>"22d5557abacab9156fae901544db5c501520d43178ca5244"}
567
+ Parameters: {"code"=>"dTqlS-0Xq0T9HdEE0WoDRhvKL5K9-rfP6kF3c5gEAWo", "state"=>"c492c8c76e68cc3470317e8c77fbd009db706a37995d3447"}
898
568
  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"]]
900
-  (0.1ms) begin transaction
901
-  (0.0ms) commit transaction
902
-  (0.0ms) begin transaction
903
-  (0.1ms) commit transaction
569
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
904
570
  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
571
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
572
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
907
573
  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"]]
909
- 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
574
+ 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", 0], ["LIMIT", 1]]
575
+ Rendering text template
576
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
577
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
578
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
912
579
  Processing by ExampleController#restricted as HTML
913
580
  Authenticating with gds_sso strategy
914
- 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
581
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
582
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
583
+ Started GET "/auth/gds/callback?code=98uew1cTav8MSNecc31YVR8YDtu9OIeaOJb2qEomgD8&state=bab999a3c0d2952fd4f34d3ae7df1bd3cce905daaea0adc0" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
917
584
  Processing by AuthenticationsController#callback as HTML
918
- Parameters: {"code"=>"778fa4ffa39bc19f98fc8fa44bea55ce1f46bdccd288d0af7a9608ace8861453", "state"=>"606c5c48e2b4b512443fa69e2f3541dd8b8f4ca5f5c5ee27"}
585
+ Parameters: {"code"=>"98uew1cTav8MSNecc31YVR8YDtu9OIeaOJb2qEomgD8", "state"=>"bab999a3c0d2952fd4f34d3ae7df1bd3cce905daaea0adc0"}
919
586
  Authenticating with gds_sso strategy
920
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
921
-  (0.1ms) begin transaction
922
-  (0.1ms) commit transaction
923
-  (0.1ms) begin transaction
924
-  (0.1ms) commit transaction
587
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
925
588
  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
589
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
590
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
928
591
  Processing by ExampleController#restricted as HTML
929
- 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
- Rendered text template (0.0ms)
931
- 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
592
+ 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", 0], ["LIMIT", 1]]
593
+ Rendering text template
594
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
595
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 706)
596
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
933
597
  Processing by ExampleController#restricted as HTML
934
598
  Authenticating with gds_sso strategy
935
- 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
599
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
600
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
601
+ Started GET "/auth/gds/callback?code=eZufCW2sAKLT6PdExAMXK9drlUiuP8wALWbeeTdqbIY&state=533e795cc72dd064e022b56bee0acf097fdeb74cc209cd00" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
938
602
  Processing by AuthenticationsController#callback as HTML
939
- Parameters: {"code"=>"35f23863dd1a412d95cb71da1451af1e528b9527c8216c893b4e6c2be7532239", "state"=>"aa036e24b08ed799ca53f0627410ac37d037ee8f9122096c"}
603
+ Parameters: {"code"=>"eZufCW2sAKLT6PdExAMXK9drlUiuP8wALWbeeTdqbIY", "state"=>"533e795cc72dd064e022b56bee0acf097fdeb74cc209cd00"}
940
604
  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
-  (0.1ms) commit transaction
605
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
946
606
  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
607
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1020)
608
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
949
609
  Processing by ExampleController#restricted as HTML
950
- 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
- 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
610
+ 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", 0], ["LIMIT", 1]]
611
+ Rendering text template
612
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
613
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 709)
614
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:13 +0000
615
+ Processing by ExampleController#restricted as HTML
616
+ 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", 0], ["LIMIT", 1]]
617
+ Rendering text template
618
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
619
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 929)
620
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
954
621
  Processing by ExampleController#restricted as HTML
955
622
  Authenticating with gds_sso strategy
956
- 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
623
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
624
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
625
+ Started GET "/auth/gds/callback?code=5Unedqs9r-W_C-K_4WgsScBjKNJpiS31nHl3fzP7OMs&state=83d3e8d784318705bce7d00f45e6a4eb68039fa61e3e5141" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
959
626
  Processing by AuthenticationsController#callback as HTML
960
- Parameters: {"code"=>"7f9c2f521fdf21d3cbf7ed90b0f9bf724ac72ebfeb61c75ddb04b7916cf44764", "state"=>"e66ff4e95bf1b7cbf7543cd58a1e2105278afe1c2fc2f4b3"}
627
+ Parameters: {"code"=>"5Unedqs9r-W_C-K_4WgsScBjKNJpiS31nHl3fzP7OMs", "state"=>"83d3e8d784318705bce7d00f45e6a4eb68039fa61e3e5141"}
961
628
  Authenticating with gds_sso strategy
962
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
963
-  (0.1ms) begin transaction
964
-  (0.1ms) commit transaction
965
-  (0.1ms) begin transaction
966
-  (0.1ms) commit transaction
629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
967
630
  Redirected to http://www.example-client.com/restricted
968
- 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
631
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
632
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
970
633
  Processing by ExampleController#restricted as HTML
971
- 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
- Rendered text template (0.0ms)
973
- 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
634
+ 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", 0], ["LIMIT", 1]]
635
+ Rendering text template
636
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
637
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
638
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
979
639
  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
640
  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
641
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 499)
642
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
643
+ Started GET "/auth/gds/callback?code=xMQ-HoOr0S2m7lo11s9LSrZjM7OcnnWvhEzjHLAo9yI&state=f75c8a45dfff87d84935f9c9775eb862203bf372a0158ecc" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
985
644
  Processing by AuthenticationsController#callback as HTML
986
- Parameters: {"code"=>"44670b319d1ebb0cd8cd0ae781761411fce7ef026401886e8dd7fc44dcc2259a", "state"=>"20ccd7838bf03ce30b723e41e9198ac1acb5069f35d7c52b"}
987
- 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
645
+ Parameters: {"code"=>"xMQ-HoOr0S2m7lo11s9LSrZjM7OcnnWvhEzjHLAo9yI", "state"=>"f75c8a45dfff87d84935f9c9775eb862203bf372a0158ecc"}
646
+ Authenticating with gds_sso strategy
647
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
994
648
  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
649
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1218)
650
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
997
651
  Processing by ExampleController#restricted as HTML
998
- 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
- Rendered text template (0.0ms)
1000
- 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
652
+ 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", 0], ["LIMIT", 1]]
653
+ Rendering text template
654
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
655
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 931)
656
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1002
657
  Processing by ExampleController#restricted as HTML
1003
658
  Authenticating with gds_sso strategy
1004
- 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
659
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
660
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
661
+ Started GET "/auth/gds/callback?code=Agxoyv8mKmmRsiQnuIFYhe5fSfvO2G3qkzq_TL5SRfI&state=408db98efb6da62cb34c6f41e01cb5715e72ac856538e8fe" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1007
662
  Processing by AuthenticationsController#callback as HTML
1008
- Parameters: {"code"=>"ca9ab11b8b92f43b6e5f1dce2301a9e16567570a2940233328864f4cb1f7b25d", "state"=>"3ff8ad1937d33c1582b2a1bdd03e14039aef65ac0f1098fb"}
663
+ Parameters: {"code"=>"Agxoyv8mKmmRsiQnuIFYhe5fSfvO2G3qkzq_TL5SRfI", "state"=>"408db98efb6da62cb34c6f41e01cb5715e72ac856538e8fe"}
1009
664
  Authenticating with gds_sso strategy
1010
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1011
-  (0.1ms) begin transaction
1012
-  (0.1ms) commit transaction
1013
-  (0.0ms) begin transaction
1014
-  (0.1ms) commit transaction
665
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1015
666
  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
667
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
668
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1018
669
  Processing by ExampleController#restricted as HTML
1019
- 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
- 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
670
+ 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", 0], ["LIMIT", 1]]
671
+ Rendering text template
672
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
673
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 706)
674
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
1023
675
  Processing by ExampleController#restricted as HTML
1024
676
  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
677
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 499)
678
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
679
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1028
680
  Processing by ExampleController#restricted as HTML
1029
681
  Authenticating with gds_sso strategy
1030
- 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
682
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
683
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
684
+ Started GET "/auth/gds/callback?code=JAilgkkSwSh7mM0JcpjQ_pHblu106hx6MxAA_a3NVzM&state=9e438e307f854d56ff9e71f8662eeb4781f366b28276370c" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1033
685
  Processing by AuthenticationsController#callback as HTML
1034
- Parameters: {"code"=>"c468ef9e0a871405ff2b64e8acbdff9690a9051820ea10b2ed13feb438e429f2", "state"=>"3a591136efea0c7b669201693f33bf0663da4126469201b7"}
686
+ Parameters: {"code"=>"JAilgkkSwSh7mM0JcpjQ_pHblu106hx6MxAA_a3NVzM", "state"=>"9e438e307f854d56ff9e71f8662eeb4781f366b28276370c"}
1035
687
  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
688
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1041
689
  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
1044
- 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"]]
1046
- Rendered text template (0.0ms)
1047
- 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
690
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
691
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1049
692
  Processing by ExampleController#restricted as HTML
1050
- Authenticating with gds_sso strategy
1051
- 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
1054
- Processing by AuthenticationsController#callback as HTML
1055
- Parameters: {"code"=>"123f389651ae560e448f138d7002516de5fb3ca397c7d2205def37e5f9f4f05d", "state"=>"cfb2545536fac5275b1f0f43fa8d40b2f7c5b53b8033cb31"}
1056
- 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
1062
- 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
1065
- 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"]]
1067
- Rendered text template (0.0ms)
1068
- 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
693
+ 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", 0], ["LIMIT", 1]]
694
+ Rendering text template
695
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
696
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 706)
697
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
698
+  (0.1ms) begin transaction
699
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 12]]
700
+  (4.9ms) commit transaction
701
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1070
702
  Processing by ExampleController#restricted as HTML
703
+ 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", 0], ["LIMIT", 1]]
1071
704
  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
705
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 575)
706
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
707
+ Started GET "/auth/gds/callback?code=0CKodWNlhfpLIzo7X1jEXf3Vp2MlJhPeMvagU2OhLqU&state=6dc239a4a1e50e667c93ec1a9ff694589798cd05bcc3a671" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
1075
708
  Processing by AuthenticationsController#callback as HTML
1076
- Parameters: {"code"=>"4ac7194730fb09acb958ec1985c175a6bdbd3e9236fe205d96057be051bb002b", "state"=>"d793a4ad36a964917485aa085ea20c7ef615485eac049e88"}
709
+ Parameters: {"code"=>"0CKodWNlhfpLIzo7X1jEXf3Vp2MlJhPeMvagU2OhLqU", "state"=>"6dc239a4a1e50e667c93ec1a9ff694589798cd05bcc3a671"}
1077
710
  Authenticating with gds_sso strategy
1078
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1079
-  (0.1ms) begin transaction
1080
-  (0.2ms) commit transaction
1081
-  (0.0ms) begin transaction
1082
-  (0.0ms) commit transaction
711
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
712
+  (0.1ms) begin transaction
713
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 12]]
714
+  (5.0ms) commit transaction
1083
715
  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
1086
- 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"]]
1088
- Rendered text template (0.0ms)
1089
- 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
716
+ Completed 302 Found in 9ms (ActiveRecord: 5.6ms | Allocations: 1226)
717
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
1091
718
  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"]]
1097
-  (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
1103
-  (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
1109
- Processing by Api::UserController#reauth as HTML
1110
- Parameters: {"uid"=>"a1s2d3383"}
1111
- 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)
1113
- 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
1118
-  (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
1135
- Processing by Api::UserController#reauth as HTML
1136
- Parameters: {"uid"=>"nonexistent-user"}
1137
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1138
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
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
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
1145
- Processing by Api::UserController#update as HTML
1146
- Parameters: {"uid"=>"a1s2d35000"}
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)
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
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
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
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)
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
1169
-  (0.1ms) begin transaction
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
719
+ 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", 0], ["LIMIT", 1]]
720
+ Rendering text template
721
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
722
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 704)
723
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
724
+ Processing by ExampleController#this_requires_signin_permission as JSON
725
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
726
+  (0.1ms) begin transaction
727
+ User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
728
+  (3.4ms) commit transaction
729
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
730
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
731
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
732
+ Rendering text template
733
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
734
+ Completed 200 OK in 96ms (Views: 0.3ms | ActiveRecord: 4.2ms | Allocations: 7451)
735
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
736
+ Processing by ExampleController#restricted as JSON
737
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
738
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
739
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
740
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
741
+ Rendering text template
742
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
743
+ Completed 200 OK in 87ms (Views: 0.3ms | ActiveRecord: 0.3ms | Allocations: 6804)
744
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
745
+ Processing by ExampleController#restricted as JSON
746
+ Completed in 31ms (ActiveRecord: 0.0ms | Allocations: 1852)
747
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
748
+ Processing by ExampleController#restricted as JSON
749
+ Completed in 16ms (ActiveRecord: 0.0ms | Allocations: 1958)
750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
751
+  (0.1ms) begin transaction
752
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2568"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
753
+  (4.2ms) commit transaction
754
+  (0.1ms) begin transaction
755
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
756
+  (4.0ms) commit transaction
1172
757
   (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)
758
+  (1.4ms) SELECT sqlite_version(*)
759
+  (4.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
760
+  (4.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1176
761
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1177
762
   (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)
763
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:20.563604"], ["updated_at", "2020-07-28 10:11:20.563604"]]
764
+  (4.7ms) commit transaction
765
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1181
766
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1182
767
   (0.0ms) begin transaction
1183
768
   (0.0ms) commit transaction
1184
769
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1185
770
   (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
771
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "567"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
772
+  (18.5ms) commit transaction
1188
773
   (0.1ms) begin transaction
1189
774
  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
775
+  (29.7ms) commit transaction
776
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
777
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
778
+  (0.0ms) begin transaction
779
+ 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]]
780
+  (14.3ms) commit transaction
781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
782
+  (0.0ms) begin transaction
783
+  (0.1ms) commit transaction
784
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
1192
785
  Processing by ExampleController#restricted as HTML
1193
786
  Authenticating with gds_sso strategy
1194
787
  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
788
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
1196
789
  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]]
790
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1198
791
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1199
792
   (0.1ms) begin transaction
1200
793
  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
794
+  (5.8ms) commit transaction
1202
795
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1203
796
   (0.1ms) begin transaction
1204
797
   (0.0ms) commit transaction
@@ -1207,171 +800,171 @@ Processing by ExampleController#this_requires_signin_permission as JSON
1207
800
   (0.0ms) commit transaction
1208
801
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1209
802
   (0.1ms) begin transaction
1210
-  (0.1ms) commit transaction
803
+  (0.0ms) commit transaction
1211
804
   (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
805
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
806
+  (16.6ms) commit transaction
1214
807
  Rendering text template
1215
808
  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
809
+ Completed 200 OK in 104ms (Views: 3.5ms | ActiveRecord: 24.1ms)
810
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
811
+ Processing by ExampleController#restricted as JSON
812
+ Completed in 18ms (ActiveRecord: 0.0ms)
813
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
1218
814
  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
815
+ Completed in 23ms (ActiveRecord: 0.0ms)
816
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
1221
817
  Processing by ExampleController#restricted as JSON
1222
818
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1223
819
   (0.1ms) begin transaction
1224
820
   (0.0ms) commit transaction
1225
821
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1226
-  (0.1ms) begin transaction
1227
-  (0.1ms) commit transaction
822
+  (0.0ms) begin transaction
823
+  (0.0ms) commit transaction
1228
824
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1229
825
   (0.1ms) begin transaction
1230
-  (0.1ms) commit transaction
826
+  (0.0ms) commit transaction
1231
827
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1232
828
   (0.1ms) begin transaction
1233
-  (0.1ms) commit transaction
829
+  (0.2ms) commit transaction
1234
830
   (0.0ms) begin transaction
1235
831
   (0.0ms) commit transaction
1236
832
  Rendering text template
1237
833
  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
834
+ Completed 200 OK in 59ms (Views: 0.4ms | ActiveRecord: 0.9ms)
835
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
836
+ Processing by ExampleController#restricted as HTML
837
+ Authenticating with gds_sso strategy
838
+ Completed in 0ms (ActiveRecord: 0.0ms)
839
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
840
+ Started GET "/auth/gds/callback?code=P_LklHe2gx1uTfoC98GPH4WLvzyBTLts-VPXCS2FP7Y&state=f84bb098719835d98b54b321d635174357451dcf2d7fb07c" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
841
+ Processing by AuthenticationsController#callback as HTML
842
+ Parameters: {"code"=>"P_LklHe2gx1uTfoC98GPH4WLvzyBTLts-VPXCS2FP7Y", "state"=>"f84bb098719835d98b54b321d635174357451dcf2d7fb07c"}
843
+ Authenticating with gds_sso strategy
844
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
845
+  (0.1ms) begin transaction
846
+ User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
847
+  (14.9ms) commit transaction
848
+  (0.0ms) begin transaction
849
+  (0.0ms) commit transaction
850
+ Redirected to http://www.example-client.com/restricted
851
+ Completed 302 Found in 20ms (ActiveRecord: 15.5ms)
852
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
853
+ Processing by ExampleController#restricted as HTML
854
+ 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]]
855
+ Rendering text template
856
+ Rendered text template (0.0ms)
857
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
858
+ Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
859
+ Processing by ExampleController#index as HTML
860
+ Rendering text template
861
+ Rendered text template (0.0ms)
862
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
863
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1243
864
  Processing by ExampleController#this_requires_signin_permission as HTML
1244
865
  Authenticating with gds_sso strategy
1245
866
  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
867
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
868
+ Started GET "/auth/gds/callback?code=ZN0r75qfZtwcnW6sVRGBHXb0qIrOaa3n93X6wzYWnSc&state=bb5593d63fd3eda7b2055ad46376964c8772acef1320a183" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1248
869
  Processing by AuthenticationsController#callback as HTML
1249
- Parameters: {"code"=>"1c652196e3fd2e07d670c10b591c11e68ee2f7d4f0529de3c1c1819d95e26275", "state"=>"3f6cbcf6a6fb7035413cc42d9ce14f3c2c68ea0ed6a46b93"}
870
+ Parameters: {"code"=>"ZN0r75qfZtwcnW6sVRGBHXb0qIrOaa3n93X6wzYWnSc", "state"=>"bb5593d63fd3eda7b2055ad46376964c8772acef1320a183"}
1250
871
  Authenticating with gds_sso strategy
1251
872
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1252
873
   (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
874
+  (0.0ms) commit transaction
1255
875
   (0.0ms) begin transaction
1256
876
   (0.0ms) commit transaction
1257
877
  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
878
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
879
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1260
880
  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]]
881
+ 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
882
  Rendering text template
1263
883
  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
884
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
885
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1266
886
  Processing by ExampleController#this_requires_signin_permission as HTML
1267
887
  Authenticating with gds_sso strategy
1268
888
  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
889
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
890
+ Started GET "/auth/gds/callback?code=XtsuQ4QET_S_LEFerL4SktH8OuB2fop_qw4VQPvNw6c&state=5a09c642a67e0fbe4c5ca5ccf72f98dd5b4c377fe563f392" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1271
891
  Processing by AuthenticationsController#callback as HTML
1272
- Parameters: {"code"=>"00ed07545cfae12634fdbaf344c518cbcba85a287d0a350bbf5039b054bc5a85", "state"=>"f1f30b81904350f34aa12754e6fa1dae8f9c2e475a768921"}
892
+ Parameters: {"code"=>"XtsuQ4QET_S_LEFerL4SktH8OuB2fop_qw4VQPvNw6c", "state"=>"5a09c642a67e0fbe4c5ca5ccf72f98dd5b4c377fe563f392"}
1273
893
  Authenticating with gds_sso strategy
1274
894
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1275
895
   (0.1ms) begin transaction
1276
896
   (0.0ms) commit transaction
1277
897
   (0.0ms) begin transaction
1278
-  (0.6ms) commit transaction
898
+  (0.0ms) commit transaction
1279
899
  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
900
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
901
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1282
902
  Processing by ExampleController#this_requires_signin_permission as HTML
1283
903
  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
904
  Rendering text template
1285
905
  Rendered text template (0.0ms)
1286
906
  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
907
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1288
908
  Processing by ExampleController#restricted as HTML
1289
909
  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
910
+ Completed in 0ms (ActiveRecord: 0.0ms)
911
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
912
+ Started GET "/auth/gds/callback?code=J8lwR8nnXnHwMNcdF_S81OwcCWATJVORinj2_XO5f18&state=1569939c766c6757642d0842377794a7f6e2aa0da000f731" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1293
913
  Processing by AuthenticationsController#callback as HTML
1294
- Parameters: {"code"=>"d45f34db17f4015d83d02d4e0264acd92caa226cd529f4905262cfbf66ec8f92", "state"=>"36f281e3ef0106d5f67206be1172c4b714bf691cb10dfcb1"}
914
+ Parameters: {"code"=>"J8lwR8nnXnHwMNcdF_S81OwcCWATJVORinj2_XO5f18", "state"=>"1569939c766c6757642d0842377794a7f6e2aa0da000f731"}
1295
915
  Authenticating with gds_sso strategy
1296
916
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1297
917
   (0.1ms) begin transaction
1298
-  (0.1ms) commit transaction
1299
-  (0.1ms) begin transaction
1300
-  (0.1ms) commit transaction
918
+  (0.0ms) commit transaction
919
+  (0.0ms) begin transaction
920
+  (0.0ms) commit transaction
1301
921
  Redirected to http://www.example-client.com/restricted
1302
922
  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
923
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1304
924
  Processing by ExampleController#restricted as HTML
1305
925
  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
926
  Rendering text template
1307
927
  Rendered text template (0.0ms)
1308
928
  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
929
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
1310
930
  Processing by ExampleController#restricted as HTML
1311
931
  Authenticating with gds_sso strategy
1312
932
  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
933
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
934
+ Started GET "/auth/gds/callback?code=blV2C8QALQ9e_f_NxQbtbqmeUixHRtnNwyHwEEr_k8o&state=520555c8cc018aadbfa6bee8f3f70f698a9b24bcafe43b85" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1315
935
  Processing by AuthenticationsController#callback as HTML
1316
- Parameters: {"code"=>"de1c4c98610ac5c5e8523e18dd18d6199183557964ec16d3ce338731621afb97", "state"=>"15321cc1de3dbb08f06bd9ab6f3cf84f804ac256387c412a"}
936
+ Parameters: {"code"=>"blV2C8QALQ9e_f_NxQbtbqmeUixHRtnNwyHwEEr_k8o", "state"=>"520555c8cc018aadbfa6bee8f3f70f698a9b24bcafe43b85"}
1317
937
  Authenticating with gds_sso strategy
1318
938
  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
1320
-  (0.1ms) commit transaction
1321
-  (0.0ms) begin transaction
939
+  (0.1ms) begin transaction
940
+  (0.2ms) commit transaction
941
+  (0.1ms) begin transaction
1322
942
   (0.0ms) commit transaction
1323
943
  Redirected to http://www.example-client.com/restricted
1324
944
  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
945
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1326
946
  Processing by ExampleController#restricted as HTML
1327
947
  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
948
  Rendering text template
1329
949
  Rendered text template (0.0ms)
1330
950
  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
951
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1332
952
  Processing by ExampleController#restricted as HTML
1333
953
  Authenticating with gds_sso strategy
1334
954
  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
955
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
956
+ Started GET "/auth/gds/callback?code=nYFRLgvp9Vh7yfvxdfyHawy3FV2pA008ZSkUYGAtagQ&state=5210e4a9a5a51d3b2702667414ec72d5149a6e5fc6c5c3bc" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1337
957
  Processing by AuthenticationsController#callback as HTML
1338
- Parameters: {"code"=>"73f9218a5c277c82e6c1089d1cd294c1d7446a9e2874b8c156dedb7d23d8eb97", "state"=>"817531a2b884783998ada9141caec466e9a0477435819513"}
958
+ Parameters: {"code"=>"nYFRLgvp9Vh7yfvxdfyHawy3FV2pA008ZSkUYGAtagQ", "state"=>"5210e4a9a5a51d3b2702667414ec72d5149a6e5fc6c5c3bc"}
1339
959
  Authenticating with gds_sso strategy
1340
960
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1341
961
   (0.1ms) begin transaction
1342
-  (0.1ms) commit transaction
1343
-  (0.1ms) begin transaction
1344
962
   (0.0ms) commit transaction
1345
- 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
1348
- 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
1355
- Rendering text template
1356
- 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
1359
- Processing by ExampleController#restricted as HTML
1360
- Authenticating with gds_sso strategy
1361
- 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
1364
- Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"0736760cebe296a160898ed52b3443a379fb986b53667d2caa95e137f979536c", "state"=>"78082f113110abfee6a9b8e7828776c8949866c0945efc54"}
1366
- 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
1369
-  (0.1ms) commit transaction
1370
-  (0.1ms) begin transaction
963
+  (0.0ms) begin transaction
1371
964
   (0.0ms) commit transaction
1372
965
  Redirected to http://www.example-client.com/restricted
1373
966
  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
967
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1375
968
  Processing by ExampleController#restricted as HTML
1376
969
  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
970
  Rendering text template
@@ -1379,200 +972,541 @@ Processing by ExampleController#restricted as HTML
1379
972
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1380
973
  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
974
   (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
975
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
976
+  (4.1ms) commit transaction
977
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1385
978
  Processing by ExampleController#restricted as HTML
1386
979
  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
980
  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
981
+ Completed in 1ms (ActiveRecord: 0.1ms)
982
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
983
+ Started GET "/auth/gds/callback?code=fCAi8JIcOFPJoTA2vL5a-PXCiUw9rzKafqtA0re-IgE&state=1938240ddcc5b1d715fd2191a14b8b0d0fd4bc733a50ae01" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1391
984
  Processing by AuthenticationsController#callback as HTML
1392
- Parameters: {"code"=>"ac26589187f9ac0428e902f57452753eb5d6b222074118e6d31a27c18c11cec7", "state"=>"ebd42d309327d20d6a7c090000695de68355b8c3798c79a1"}
985
+ Parameters: {"code"=>"fCAi8JIcOFPJoTA2vL5a-PXCiUw9rzKafqtA0re-IgE", "state"=>"1938240ddcc5b1d715fd2191a14b8b0d0fd4bc733a50ae01"}
1393
986
  Authenticating with gds_sso strategy
1394
987
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1395
988
   (0.1ms) begin transaction
1396
989
   (0.0ms) commit transaction
1397
-  (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
990
+  (0.0ms) begin transaction
991
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
992
+  (4.1ms) commit transaction
1400
993
  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
994
+ Completed 302 Found in 8ms (ActiveRecord: 4.7ms)
995
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1403
996
  Processing by ExampleController#restricted as HTML
1404
997
  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]]
1405
998
  Rendering text template
1406
999
  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
1000
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1001
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1409
1002
  Processing by ExampleController#restricted as HTML
1410
1003
  Authenticating with gds_sso strategy
1411
1004
  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
1005
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1006
+ Started GET "/auth/gds/callback?code=WPs6YBEZPQypco2N5D-vHK55aJbmPOM12Ptdpm-G910&state=34cf706bcca8af2534e84758deb3357d60aa0e70ad1f4d2f" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1414
1007
  Processing by AuthenticationsController#callback as HTML
1415
- Parameters: {"code"=>"5088af1026f8add98b778a9b381770a98485dcab1f32fb74ad7685cc5f479efb", "state"=>"aaba9dfc79a91a6512a5b2d551ec285ef98ccdd4e3414af9"}
1008
+ Parameters: {"code"=>"WPs6YBEZPQypco2N5D-vHK55aJbmPOM12Ptdpm-G910", "state"=>"34cf706bcca8af2534e84758deb3357d60aa0e70ad1f4d2f"}
1416
1009
  Authenticating with gds_sso strategy
1417
1010
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1418
1011
   (0.1ms) begin transaction
1419
-  (0.1ms) commit transaction
1012
+  (0.0ms) commit transaction
1420
1013
   (0.0ms) begin transaction
1421
-  (0.1ms) commit transaction
1014
+  (0.0ms) commit transaction
1422
1015
  Redirected to http://www.example-client.com/restricted
1423
1016
  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
1425
- Processing by ExampleController#restricted as HTML
1426
- 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
- Rendering text template
1428
- 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
1017
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1431
1018
  Processing by ExampleController#restricted as HTML
1432
1019
  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
1020
  Rendering text template
1434
1021
  Rendered text template (0.0ms)
1435
- 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
1022
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1023
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1437
1024
  Processing by ExampleController#restricted as HTML
1438
1025
  Authenticating with gds_sso strategy
1439
- 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
1026
+ Completed in 1ms (ActiveRecord: 0.0ms)
1027
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1028
+ Started GET "/auth/gds/callback?code=OYWbMAH0X6LIjZDJMTZT-57akHXHJ0dc5gsvchFSfYU&state=780869fba9ba3290e6a5ed74cb4dc1f4be362e657275990a" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1442
1029
  Processing by AuthenticationsController#callback as HTML
1443
- Parameters: {"code"=>"08efbfb868aea0b2f650fd8a52e0113d491ebfa63993acc7567f7c8039de9708", "state"=>"737848c59b116b0b11a9e39543f9c2798ff95bf69b32bdb3"}
1030
+ Parameters: {"code"=>"OYWbMAH0X6LIjZDJMTZT-57akHXHJ0dc5gsvchFSfYU", "state"=>"780869fba9ba3290e6a5ed74cb4dc1f4be362e657275990a"}
1444
1031
  Authenticating with gds_sso strategy
1445
1032
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1446
1033
   (0.1ms) begin transaction
1447
-  (0.1ms) commit transaction
1034
+  (0.0ms) commit transaction
1448
1035
   (0.0ms) begin transaction
1449
-  (0.1ms) commit transaction
1036
+  (0.0ms) commit transaction
1450
1037
  Redirected to http://www.example-client.com/restricted
1451
1038
  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
1039
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1453
1040
  Processing by ExampleController#restricted as HTML
1454
1041
  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
1042
  Rendering text template
1456
1043
  Rendered text template (0.0ms)
1457
1044
  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
1045
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1464
1046
  Processing by ExampleController#restricted as HTML
1465
1047
  Authenticating with gds_sso strategy
1466
1048
  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
1049
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1050
+ Started GET "/auth/gds/callback?code=uLPgIDvNdONxlHYAhrP-Z9qFihfQw8JccqQTnst9sFk&state=6dd140252e8d98b66bd282ff41d795913891fc09025b10b6" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1469
1051
  Processing by AuthenticationsController#callback as HTML
1470
- Parameters: {"code"=>"346e6610d3bd127c60884a627f5df4025440fa0ae34367478f89ddf855c35156", "state"=>"ba0eb84bdb6bf08968e06ee1a7be9961b38950688a9226aa"}
1052
+ Parameters: {"code"=>"uLPgIDvNdONxlHYAhrP-Z9qFihfQw8JccqQTnst9sFk", "state"=>"6dd140252e8d98b66bd282ff41d795913891fc09025b10b6"}
1471
1053
  Authenticating with gds_sso strategy
1472
1054
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1473
1055
   (0.1ms) begin transaction
1474
-  (0.2ms) commit transaction
1475
-  (0.0ms) begin transaction
1056
+  (0.0ms) commit transaction
1057
+  (0.1ms) begin transaction
1476
1058
   (0.0ms) commit transaction
1477
1059
  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
1060
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1061
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1480
1062
  Processing by ExampleController#restricted as HTML
1481
1063
  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
1064
  Rendering text template
1483
1065
  Rendered text template (0.0ms)
1484
- 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
1066
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1067
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:24 +0000
1068
+ Processing by ExampleController#restricted as HTML
1069
+ 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]]
1070
+ Rendering text template
1071
+ Rendered text template (0.0ms)
1072
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1073
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1486
1074
  Processing by ExampleController#restricted as HTML
1487
1075
  Authenticating with gds_sso strategy
1488
1076
  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
1077
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1078
+ Started GET "/auth/gds/callback?code=HyaBgBCoecHgzI0rmkV0BmJo4Gm3yU719FzMP8B5Z5I&state=f6ad088570995cb0cd16ad099e57194bba41b9e0d79e4095" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1491
1079
  Processing by AuthenticationsController#callback as HTML
1492
- Parameters: {"code"=>"cff627a10180703e255cb6ecfacd0aa7e462acfb22a58da89ee2701ac2ed9d4b", "state"=>"bb672dd6503e0cd758355d1169a4e9d98b72266d4b8ebf48"}
1080
+ Parameters: {"code"=>"HyaBgBCoecHgzI0rmkV0BmJo4Gm3yU719FzMP8B5Z5I", "state"=>"f6ad088570995cb0cd16ad099e57194bba41b9e0d79e4095"}
1493
1081
  Authenticating with gds_sso strategy
1494
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
-  (0.0ms) begin transaction
1082
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1083
+  (0.1ms) begin transaction
1496
1084
   (0.0ms) commit transaction
1497
1085
   (0.0ms) begin transaction
1498
1086
   (0.0ms) commit transaction
1499
1087
  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
1088
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1089
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1502
1090
  Processing by ExampleController#restricted as HTML
1503
1091
  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
1092
  Rendering text template
1505
1093
  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]]
1094
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1095
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:24 +0000
1096
+ Processing by ExampleController#restricted as HTML
1097
+ Authenticating with gds_sso strategy
1098
+ Completed in 1ms (ActiveRecord: 0.0ms)
1099
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:24 +0000
1100
+  (0.1ms) begin transaction
1101
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31368"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1102
+  (3.5ms) commit transaction
1509
1103
   (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]]
1104
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39668"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1105
+  (3.1ms) commit transaction
1106
+ Processing by Api::UserController#update as HTML
1107
+ Parameters: {"uid"=>"a1s2d31368"}
1108
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1109
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1110
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1111
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1112
+ Completed 403 Forbidden in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
1513
1113
   (0.0ms) begin transaction
1514
-  (0.0ms) commit transaction
1114
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31349"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
+  (3.3ms) commit transaction
1116
+  (0.0ms) begin transaction
1117
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39882"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
+  (3.4ms) commit transaction
1119
+ Processing by Api::UserController#update as HTML
1120
+ Parameters: {"uid"=>"a1s2d31349"}
1121
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31349"], ["LIMIT", 1]]
1122
+  (0.1ms) begin transaction
1123
+ User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 6]]
1124
+  (3.0ms) commit transaction
1125
+ Completed 200 OK in 6ms (ActiveRecord: 3.5ms)
1126
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1515
1127
   (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
1128
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37989"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1129
+  (4.9ms) commit transaction
1518
1130
   (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
1131
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31905"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1132
+  (2.9ms) commit transaction
1521
1133
  Processing by Api::UserController#reauth as HTML
1522
1134
  Parameters: {"uid"=>"nonexistent-user"}
1523
1135
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1524
1136
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1525
1137
   (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
1138
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35833"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1139
+  (3.3ms) commit transaction
1528
1140
   (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
1141
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37396"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1142
+  (3.0ms) commit transaction
1143
+ Processing by Api::UserController#reauth as HTML
1144
+ Parameters: {"uid"=>"a1s2d35833"}
1145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35833"], ["LIMIT", 1]]
1146
+  (0.0ms) begin transaction
1147
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1148
+  (4.0ms) commit transaction
1149
+ Completed 200 OK in 6ms (ActiveRecord: 4.3ms)
1150
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1151
+  (0.0ms) begin transaction
1152
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34035"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1153
+  (3.8ms) commit transaction
1154
+  (0.0ms) begin transaction
1155
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31271"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1156
+  (3.7ms) commit transaction
1531
1157
  Processing by Api::UserController#reauth as HTML
1532
- Parameters: {"uid"=>"a1s2d34120"}
1158
+ Parameters: {"uid"=>"a1s2d34035"}
1533
1159
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1534
1160
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1535
1161
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1536
1162
  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)
1163
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1164
+  (1.5ms) SELECT sqlite_version(*)
1165
+  (0.1ms) SELECT sqlite_version(*)
1166
+  (0.2ms) DROP TABLE IF EXISTS "users"
1167
+  (5.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 0)
1168
+  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1169
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1538
1170
   (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
1171
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:32.682361"], ["updated_at", "2020-07-28 10:11:32.682361"]]
1172
+  (3.6ms) commit transaction
1173
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1174
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1175
+  (0.1ms) SELECT sqlite_version(*)
1176
+  (0.1ms) begin transaction
1177
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36619"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1178
+  (4.1ms) commit transaction
1179
+  (0.1ms) begin transaction
1180
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35636"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1181
+  (3.4ms) commit transaction
1544
1182
  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]]
1566
-  (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
1569
-  (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
1183
+ Parameters: {"uid"=>"nonexistent-user"}
1184
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1185
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms | Allocations: 1427)
1186
+  (0.1ms) begin transaction
1187
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35989"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1188
+  (6.0ms) commit transaction
1189
+  (0.1ms) begin transaction
1190
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33992"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1191
+  (3.5ms) commit transaction
1192
+ Processing by Api::UserController#reauth as HTML
1193
+ Parameters: {"uid"=>"a1s2d35989"}
1194
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1195
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1196
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 1.1ms | Allocations: 201)
1197
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1198
+ Completed 403 Forbidden in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms | Allocations: 1977)
1199
+  (0.1ms) begin transaction
1200
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38773"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1201
+  (4.3ms) commit transaction
1202
+  (0.1ms) begin transaction
1203
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36879"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1204
+  (3.5ms) commit transaction
1205
+ Processing by Api::UserController#reauth as HTML
1206
+ Parameters: {"uid"=>"a1s2d38773"}
1207
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38773"], ["LIMIT", 1]]
1208
+  (0.1ms) begin transaction
1209
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 5]]
1210
+  (3.4ms) commit transaction
1211
+ Completed 200 OK in 6ms (ActiveRecord: 3.9ms | Allocations: 930)
1212
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1213
+  (0.1ms) begin transaction
1214
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35174"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1215
+  (4.2ms) commit transaction
1216
+  (0.1ms) begin transaction
1217
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33679"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1218
+  (3.4ms) commit transaction
1572
1219
  Processing by Api::UserController#update as HTML
1573
- Parameters: {"uid"=>"a1s2d3818"}
1220
+ Parameters: {"uid"=>"a1s2d35174"}
1574
1221
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1575
1222
  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)
1223
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.2ms | Allocations: 47)
1577
1224
  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)
1225
+ Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 510)
1226
+  (0.1ms) begin transaction
1227
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34309"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1228
+  (3.7ms) commit transaction
1229
+  (0.1ms) begin transaction
1230
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35617"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1231
+  (4.2ms) commit transaction
1232
+ Processing by Api::UserController#update as HTML
1233
+ Parameters: {"uid"=>"a1s2d34309"}
1234
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34309"], ["LIMIT", 1]]
1235
+  (0.1ms) begin transaction
1236
+ User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1237
+  (3.9ms) commit transaction
1238
+ Completed 200 OK in 7ms (ActiveRecord: 4.4ms | Allocations: 1227)
1239
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1240
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1241
+  (0.1ms) begin transaction
1242
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "178"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1243
+  (3.6ms) commit transaction
1244
+  (0.1ms) begin transaction
1245
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
1246
+  (3.2ms) commit transaction
1247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1248
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1249
+  (0.1ms) begin transaction
1250
+ 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]]
1251
+  (3.6ms) commit transaction
1252
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1253
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1254
+ Processing by ExampleController#restricted as HTML
1255
+ Authenticating with gds_sso strategy
1256
+ Completed in 5ms (ActiveRecord: 0.0ms | Allocations: 151)
1257
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1258
+ Started GET "/auth/gds/callback?code=Oj1D9udBilzd78OsJhnpbTQJLx4hXFgbR67DHw727LI&state=a886423e6e48f93b1942ddd0d78f58401e450f76e8246dfd" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1259
+ Processing by AuthenticationsController#callback as HTML
1260
+ Parameters: {"code"=>"Oj1D9udBilzd78OsJhnpbTQJLx4hXFgbR67DHw727LI", "state"=>"a886423e6e48f93b1942ddd0d78f58401e450f76e8246dfd"}
1261
+ Authenticating with gds_sso strategy
1262
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1264
+  (0.1ms) begin transaction
1265
+ 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"]]
1266
+  (5.9ms) commit transaction
1267
+  (0.1ms) begin transaction
1268
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1269
+  (5.0ms) commit transaction
1270
+ Redirected to http://www.example-client.com/restricted
1271
+ Completed 302 Found in 17ms (ActiveRecord: 11.9ms | Allocations: 1447)
1272
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1273
+ Processing by ExampleController#restricted as HTML
1274
+ 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", 0], ["LIMIT", 1]]
1275
+ Rendering text template
1276
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1277
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.3ms | Allocations: 984)
1278
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1279
+ Processing by ExampleController#this_requires_signin_permission as HTML
1280
+ Authenticating with gds_sso strategy
1281
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1282
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1283
+ Started GET "/auth/gds/callback?code=XC0200_RbEtKPMFUFljPkmfCP9oONTmGQRHC7vHw-30&state=19e877bfb32e477fbefcad0bc8bdc4657ac412d389773cf1" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1284
+ Processing by AuthenticationsController#callback as HTML
1285
+ Parameters: {"code"=>"XC0200_RbEtKPMFUFljPkmfCP9oONTmGQRHC7vHw-30", "state"=>"19e877bfb32e477fbefcad0bc8bdc4657ac412d389773cf1"}
1286
+ Authenticating with gds_sso strategy
1287
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1288
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1289
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1290
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1291
+ Processing by ExampleController#this_requires_signin_permission as HTML
1292
+ 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", 0], ["LIMIT", 1]]
1293
+ Rendering text template
1294
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1295
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 652)
1296
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1297
+ Processing by ExampleController#this_requires_signin_permission as HTML
1298
+ Authenticating with gds_sso strategy
1299
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1300
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1301
+ Started GET "/auth/gds/callback?code=dso8fTwunwLSSxMq8aftUdfsCJmXMLWM7UVSkKwTKlM&state=80e4f134de98379e8f5d0caff3b19bea7a0c0f10247f2f53" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1302
+ Processing by AuthenticationsController#callback as HTML
1303
+ Parameters: {"code"=>"dso8fTwunwLSSxMq8aftUdfsCJmXMLWM7UVSkKwTKlM", "state"=>"80e4f134de98379e8f5d0caff3b19bea7a0c0f10247f2f53"}
1304
+ Authenticating with gds_sso strategy
1305
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1306
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1307
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1308
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1309
+ Processing by ExampleController#this_requires_signin_permission as HTML
1310
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1311
+ Rendering text template
1312
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1313
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 652)
1314
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1315
+ Processing by ExampleController#restricted as HTML
1316
+ Authenticating with gds_sso strategy
1317
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1318
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1319
+ Started GET "/auth/gds/callback?code=xVeVplpFbmzCdPKHt5pMQDxM4fDXTDnR3JuTFBQpwW4&state=83c0b531feddb39d11b6d324f20fc2e1a97d81e5124aed5d" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1320
+ Processing by AuthenticationsController#callback as HTML
1321
+ Parameters: {"code"=>"xVeVplpFbmzCdPKHt5pMQDxM4fDXTDnR3JuTFBQpwW4", "state"=>"83c0b531feddb39d11b6d324f20fc2e1a97d81e5124aed5d"}
1322
+ Authenticating with gds_sso strategy
1323
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
+ Redirected to http://www.example-client.com/restricted
1325
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1326
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1327
+ Processing by ExampleController#restricted as HTML
1328
+ 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", 0], ["LIMIT", 1]]
1329
+ Rendering text template
1330
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1331
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 655)
1332
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1333
+ Processing by ExampleController#restricted as HTML
1334
+ Authenticating with gds_sso strategy
1335
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1336
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1337
+ Started GET "/auth/gds/callback?code=vcaFlA1VZB0JvaIvCGfDWpZSZvixa97R1ikQNiZxK9I&state=fb740bb80a69463c6e419ce29d72f9e7439dc16d34826c9d" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1338
+ Processing by AuthenticationsController#callback as HTML
1339
+ Parameters: {"code"=>"vcaFlA1VZB0JvaIvCGfDWpZSZvixa97R1ikQNiZxK9I", "state"=>"fb740bb80a69463c6e419ce29d72f9e7439dc16d34826c9d"}
1340
+ Authenticating with gds_sso strategy
1341
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
+ Redirected to http://www.example-client.com/restricted
1343
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 915)
1344
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1345
+ Processing by ExampleController#restricted as HTML
1346
+ 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", 0], ["LIMIT", 1]]
1347
+ Rendering text template
1348
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1349
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 653)
1350
+ Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1351
+ Processing by ExampleController#index as HTML
1352
+ Rendering text template
1353
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1354
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 137)
1355
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1356
+ Processing by ExampleController#restricted as HTML
1357
+ Authenticating with gds_sso strategy
1358
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1359
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1360
+ Started GET "/auth/gds/callback?code=4H8LH6jbmLmbqb8xc0DJdHTb6II1aaCnOneJQZA7GFU&state=072113ca0beac7394405bcad7cd25d5d65e44f73af659c3d" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1361
+ Processing by AuthenticationsController#callback as HTML
1362
+ Parameters: {"code"=>"4H8LH6jbmLmbqb8xc0DJdHTb6II1aaCnOneJQZA7GFU", "state"=>"072113ca0beac7394405bcad7cd25d5d65e44f73af659c3d"}
1363
+ Authenticating with gds_sso strategy
1364
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1365
+ Redirected to http://www.example-client.com/restricted
1366
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 913)
1367
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1368
+ Processing by ExampleController#restricted as HTML
1369
+ 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", 0], ["LIMIT", 1]]
1370
+ Rendering text template
1371
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1372
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 652)
1373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1374
+  (0.1ms) begin transaction
1375
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
1376
+  (5.4ms) commit transaction
1377
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1378
+ Processing by ExampleController#restricted as HTML
1379
+ 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", 0], ["LIMIT", 1]]
1380
+ Authenticating with gds_sso strategy
1381
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 533)
1382
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1383
+ Started GET "/auth/gds/callback?code=4k3GTNNvVGyA_D7WzbeC1adZSkzeJyvzQP-zUEAerRM&state=faf8f1a7b56c569e308b9df75875150d993e06c7a6927412" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1384
+ Processing by AuthenticationsController#callback as HTML
1385
+ Parameters: {"code"=>"4k3GTNNvVGyA_D7WzbeC1adZSkzeJyvzQP-zUEAerRM", "state"=>"faf8f1a7b56c569e308b9df75875150d993e06c7a6927412"}
1386
+ Authenticating with gds_sso strategy
1387
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1388
+  (0.1ms) begin transaction
1389
+ User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1390
+  (3.6ms) commit transaction
1391
+ Redirected to http://www.example-client.com/restricted
1392
+ Completed 302 Found in 8ms (ActiveRecord: 4.2ms | Allocations: 1104)
1393
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1394
+ Processing by ExampleController#restricted as HTML
1395
+ 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", 0], ["LIMIT", 1]]
1396
+ Rendering text template
1397
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1398
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 650)
1399
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1400
+ Processing by ExampleController#restricted as HTML
1401
+ Authenticating with gds_sso strategy
1402
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1403
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1404
+ Started GET "/auth/gds/callback?code=n37NLIGMdzx5QimD-cSPPlTVH-9HFe5xu4O1d5TnnSc&state=264e446faf159b884add968d8ad5f004d32bff57cbe582e4" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1405
+ Processing by AuthenticationsController#callback as HTML
1406
+ Parameters: {"code"=>"n37NLIGMdzx5QimD-cSPPlTVH-9HFe5xu4O1d5TnnSc", "state"=>"264e446faf159b884add968d8ad5f004d32bff57cbe582e4"}
1407
+ Authenticating with gds_sso strategy
1408
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1409
+ Redirected to http://www.example-client.com/restricted
1410
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 914)
1411
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1412
+ Processing by ExampleController#restricted as HTML
1413
+ 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", 0], ["LIMIT", 1]]
1414
+ Rendering text template
1415
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1416
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 655)
1417
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1418
+ Processing by ExampleController#restricted as HTML
1419
+ Authenticating with gds_sso strategy
1420
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 480)
1421
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1422
+ Started GET "/auth/gds/callback?code=KIHHM2-vQD7P2spez07YxyRpTwjuwkBrAWakVC00ezk&state=aec0498ead34d9b6a62a15a9894ffec6ed6e34facb724d40" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1423
+ Processing by AuthenticationsController#callback as HTML
1424
+ Parameters: {"code"=>"KIHHM2-vQD7P2spez07YxyRpTwjuwkBrAWakVC00ezk", "state"=>"aec0498ead34d9b6a62a15a9894ffec6ed6e34facb724d40"}
1425
+ Authenticating with gds_sso strategy
1426
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1427
+ Redirected to http://www.example-client.com/restricted
1428
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 1115)
1429
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1430
+ Processing by ExampleController#restricted as HTML
1431
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1432
+ Rendering text template
1433
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1434
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 877)
1435
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1436
+ Processing by ExampleController#restricted as HTML
1437
+ Authenticating with gds_sso strategy
1438
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1439
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1440
+ Started GET "/auth/gds/callback?code=6Yrr-jvsw4txE1DJUE9cBsTcYutw-AEKGjzJfpmOPHY&state=15589942c994ae56728d00e99838552c7d35c8500859c285" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1441
+ Processing by AuthenticationsController#callback as HTML
1442
+ Parameters: {"code"=>"6Yrr-jvsw4txE1DJUE9cBsTcYutw-AEKGjzJfpmOPHY", "state"=>"15589942c994ae56728d00e99838552c7d35c8500859c285"}
1443
+ Authenticating with gds_sso strategy
1444
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1445
+ Redirected to http://www.example-client.com/restricted
1446
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms | Allocations: 913)
1447
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1448
+ Processing by ExampleController#restricted as HTML
1449
+ 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", 0], ["LIMIT", 1]]
1450
+ Rendering text template
1451
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1452
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 652)
1453
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1454
+ Processing by ExampleController#restricted as HTML
1455
+ Authenticating with gds_sso strategy
1456
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 480)
1457
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1458
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1459
+ Processing by ExampleController#restricted as HTML
1460
+ Authenticating with gds_sso strategy
1461
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1462
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1463
+ Started GET "/auth/gds/callback?code=V4C4G085QyxJZbkrmdwghKBuEppEmkyf5b1oOLW-A-0&state=486c0ea1075520065090312235e3f52e48d040b8df6cac5a" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1464
+ Processing by AuthenticationsController#callback as HTML
1465
+ Parameters: {"code"=>"V4C4G085QyxJZbkrmdwghKBuEppEmkyf5b1oOLW-A-0", "state"=>"486c0ea1075520065090312235e3f52e48d040b8df6cac5a"}
1466
+ Authenticating with gds_sso strategy
1467
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1468
+ Redirected to http://www.example-client.com/restricted
1469
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 915)
1470
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1471
+ Processing by ExampleController#restricted as HTML
1472
+ 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", 0], ["LIMIT", 1]]
1473
+ Rendering text template
1474
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1475
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 655)
1476
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:36 +0000
1477
+ Processing by ExampleController#restricted as HTML
1478
+ 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", 0], ["LIMIT", 1]]
1479
+ Rendering text template
1480
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1481
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 875)
1482
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1483
+ Processing by ExampleController#restricted as HTML
1484
+ Authenticating with gds_sso strategy
1485
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 105)
1486
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1487
+ Processing by ExampleController#this_requires_signin_permission as JSON
1488
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1489
+  (0.1ms) begin transaction
1490
+ User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1491
+  (3.6ms) commit transaction
1492
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1493
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1494
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
+ Rendering text template
1496
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1497
+ Completed 200 OK in 65ms (Views: 0.5ms | ActiveRecord: 4.5ms | Allocations: 6880)
1498
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1499
+ Processing by ExampleController#restricted as JSON
1500
+ Completed in 21ms (ActiveRecord: 0.0ms | Allocations: 1754)
1501
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1502
+ Processing by ExampleController#restricted as JSON
1503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1504
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1505
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1506
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1507
+ Rendering text template
1508
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1509
+ Completed 200 OK in 62ms (Views: 0.5ms | ActiveRecord: 0.3ms | Allocations: 6323)
1510
+ Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1511
+ Processing by ExampleController#restricted as JSON
1512
+ Completed in 15ms (ActiveRecord: 0.0ms | Allocations: 1855)