gds-sso 14.0.0 → 15.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7036817db86d0273dc3c3043b7c02eba7433cb83e4f4e56247adaa94c5bf2a2d
4
- data.tar.gz: 574ec4a52e3e22e9bf71418a4fc1b9d456f9a4b6481ac0336b7f77e7f18301b5
3
+ metadata.gz: 2f6e8e343ed76d12863efbbaa32b8cad40f6f1c089e425a4e9fa3fdde95ee0c8
4
+ data.tar.gz: c1556af8d9f7fb3a17708796e4ab5e63d00f57b1b05e67123eea37baacd77994
5
5
  SHA512:
6
- metadata.gz: 15a96eb588756d3cfbe852458857de8fd231d93c490b34bd814c71642d1f038325878be9aef1b7c47b3e49ea0b7927b693a2663c91fc689f9e8095d4ccdc04bb
7
- data.tar.gz: 8a7480215faa733cb3e318dc7914d32aa24234e6aceab00edbb5cbd8e51fe267dfb652631f8fd7bc8a7c525be6731ba71536430bc7d3cafc800118bedb379f47
6
+ metadata.gz: 7d6c7c78f8f04bbb7d19ed8dfb60427b0b16441206f14828f46edd46d4b94a0beab11c0b2697bc3677e0b711a9b8fcb80109b83eef7a272aca16d409be6fd831
7
+ data.tar.gz: e22e4728bc10f3f4b0c0ba791566512c5b855f80666dbc76e9abea6cdf17eb52a8d77d1ab37a2e3e95042bd80f19cc3cd769e3018c6603538455602ea17a9394
@@ -7,7 +7,7 @@
7
7
  <%= yield %>
8
8
  </div>
9
9
  <div id="footer" class="cf">
10
- &copy; <%= Date.today.year %> <a href="http://digital.cabinetoffice.gov.uk/"><abbr title="Government Digital Service">GDS</abbr></a>.
10
+ &copy; <%= Date.today.year %> <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
11
11
  </div>
12
12
  </body>
13
13
  </html>
@@ -1,6 +1,7 @@
1
1
  require 'rails'
2
2
 
3
3
  require 'gds-sso/config'
4
+ require 'gds-sso/version'
4
5
  require 'gds-sso/warden_config'
5
6
  require 'omniauth'
6
7
  require 'omniauth-gds'
@@ -31,6 +32,11 @@ module GDS
31
32
  site: GDS::SSO::Config.oauth_root_url,
32
33
  authorize_url: "#{GDS::SSO::Config.oauth_root_url}/oauth/authorize",
33
34
  token_url: "#{GDS::SSO::Config.oauth_root_url}/oauth/access_token",
35
+ connection_opts: {
36
+ headers: {
37
+ user_agent: "gds-sso/#{GDS::SSO::VERSION} (#{ENV['GOVUK_APP_NAME']})"
38
+ }
39
+ }
34
40
  }
35
41
  end
36
42
 
@@ -1,5 +1,6 @@
1
1
  require 'multi_json'
2
2
  require 'oauth2'
3
+ require 'gds-sso/version'
3
4
 
4
5
  module GDS
5
6
  module SSO
@@ -20,7 +21,12 @@ module GDS
20
21
  @oauth_client ||= OAuth2::Client.new(
21
22
  GDS::SSO::Config.oauth_id,
22
23
  GDS::SSO::Config.oauth_secret,
23
- :site => GDS::SSO::Config.oauth_root_url
24
+ :site => GDS::SSO::Config.oauth_root_url,
25
+ :connection_opts => {
26
+ :headers => {
27
+ :user_agent => "gds-sso/#{GDS::SSO::VERSION} (#{ENV['GOVUK_APP_NAME']})"
28
+ }
29
+ }.merge(GDS::SSO::Config.connection_opts)
24
30
  )
25
31
  end
26
32
 
@@ -27,6 +27,13 @@ module GDS
27
27
 
28
28
  mattr_accessor :additional_mock_permissions_required
29
29
 
30
+ mattr_accessor :connection_opts
31
+ @@connection_opts = {
32
+ :request => {
33
+ :open_timeout => 5,
34
+ }
35
+ }
36
+
30
37
  def self.permissions_for_dummy_api_user
31
38
  ["signin"].push(*additional_mock_permissions_required)
32
39
  end
@@ -15,8 +15,8 @@ RSpec.shared_examples "a gds-sso user class" do
15
15
  expect(subject).to be_remotely_signed_out
16
16
  end
17
17
 
18
- it "implements #update_attributes" do
19
- subject.update_attributes(email: "ab@c.com")
18
+ it "implements #update!" do
19
+ subject.update!(email: "ab@c.com")
20
20
  expect(subject.email).to eq("ab@c.com")
21
21
  end
22
22
 
@@ -30,19 +30,19 @@ RSpec.shared_examples "a gds-sso user class" do
30
30
 
31
31
  describe "#has_all_permissions?" do
32
32
  it "is false when there are no permissions" do
33
- subject.update_attributes(permissions: nil)
33
+ subject.update!(permissions: nil)
34
34
  required_permissions = ["signin"]
35
35
  expect(subject.has_all_permissions?(required_permissions)).to be_falsy
36
36
  end
37
37
 
38
38
  it "is false when it does not have all required permissions" do
39
- subject.update_attributes(permissions: ["signin"])
39
+ subject.update!(permissions: ["signin"])
40
40
  required_permissions = ["signin", "not_granted_permission_one", "not_granted_permission_two"]
41
41
  expect(subject.has_all_permissions?(required_permissions)).to be false
42
42
  end
43
43
 
44
44
  it "is true when it has all required permissions" do
45
- subject.update_attributes(permissions: ["signin", "internal_app"])
45
+ subject.update!(permissions: ["signin", "internal_app"])
46
46
  required_permissions = ["signin", "internal_app"]
47
47
  expect(subject.has_all_permissions?(required_permissions)).to be true
48
48
  end
@@ -34,8 +34,8 @@ module GDS
34
34
  assert @lint_user.remotely_signed_out?
35
35
  end
36
36
 
37
- test 'implement #update_attributes' do
38
- @lint_user.update_attributes(email: 'test@example.com')
37
+ test 'implement #update!' do
38
+ @lint_user.update!(email: 'test@example.com')
39
39
  assert_equal @lint_user.email, 'test@example.com'
40
40
  end
41
41
 
@@ -46,7 +46,7 @@ module GDS
46
46
  self.where(:email => user_params['email']).first
47
47
 
48
48
  if user
49
- user.update_attributes(user_params)
49
+ user.update!(user_params)
50
50
  user
51
51
  else # Create a new user.
52
52
  create!(user_params)
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "14.0.0"
3
+ VERSION = "15.0.0"
4
4
  end
5
5
  end
@@ -1,4 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
4
+ # Add your own routes here, or remove this file if you don't have need for it.
2
5
  root :to => 'example#index'
3
6
  get "/restricted" => 'example#restricted'
4
7
  get "/this_requires_signin_permission" => "example#this_requires_signin_permission"
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
@@ -1,4 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ActiveRecord::Schema.define do
4
+ # Set up any tables you need to exist for your test suite that don't belong
5
+ # in migrations.
2
6
  create_table "users", :force => true do |t|
3
7
  t.string "name", :null => false
4
8
  t.string "uid", :null => false
@@ -1,1208 +1,864 @@
1
-  (8.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (6.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
6
-  (0.1ms) begin transaction
7
- SQL (0.3ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "3905"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
-  (5.3ms) commit transaction
9
-  (0.1ms) begin transaction
10
- SQL (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
11
-  (3.3ms) commit transaction
12
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
13
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
14
-  (0.1ms) begin transaction
15
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
16
-  (4.4ms) commit transaction
17
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
18
-  (0.1ms) begin transaction
19
-  (0.1ms) commit transaction
20
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:56:28 +0000
21
- Processing by ExampleController#restricted as HTML
22
- Authenticating with gds_sso strategy
23
- Completed in 24ms (ActiveRecord: 0.0ms)
24
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:56:28 +0000
25
- Started GET "/auth/gds/callback?code=5c16bc7e567b325aef1232315f85f1c00c3cc199d1e64bf05ffb6828073a3cfa&state=880fbe4be04d9686465772ee7f6153ef270e757e147241d7" for 127.0.0.1 at 2018-12-17 11:57:11 +0000
26
- Processing by AuthenticationsController#callback as HTML
27
- Parameters: {"code"=>"5c16bc7e567b325aef1232315f85f1c00c3cc199d1e64bf05ffb6828073a3cfa", "state"=>"880fbe4be04d9686465772ee7f6153ef270e757e147241d7"}
28
- Authenticating with gds_sso strategy
29
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
30
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
31
-  (0.1ms) begin transaction
32
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
33
-  (5.8ms) commit transaction
34
-  (0.1ms) begin transaction
35
- SQL (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
36
-  (3.6ms) commit transaction
37
- Redirected to http://www.example-client.com/restricted
38
- Completed 302 Found in 21ms (ActiveRecord: 11.1ms)
39
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:11 +0000
40
- Processing by ExampleController#restricted as HTML
41
- User Load (0.5ms) 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"]]
42
- Rendered text template (0.0ms)
43
- Completed 200 OK in 27ms (Views: 21.3ms | ActiveRecord: 0.5ms)
44
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:11 +0000
45
- Processing by ExampleController#restricted as HTML
46
- Authenticating with gds_sso strategy
47
- Completed in 1ms (ActiveRecord: 0.0ms)
48
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:11 +0000
49
- Started GET "/auth/gds/callback?code=c2e56581ad3871c47203f710a6fa315f8ff55b6a124d7f69e617eac5dc7d9d40&state=650f065415a260568d2922e4765d3e88690202067cd3339f" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
50
- Processing by AuthenticationsController#callback as HTML
51
- Parameters: {"code"=>"c2e56581ad3871c47203f710a6fa315f8ff55b6a124d7f69e617eac5dc7d9d40", "state"=>"650f065415a260568d2922e4765d3e88690202067cd3339f"}
52
- Authenticating with gds_sso strategy
53
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
54
-  (0.1ms) begin transaction
55
-  (0.1ms) commit transaction
56
-  (0.1ms) begin transaction
57
-  (0.2ms) commit transaction
58
- Redirected to http://www.example-client.com/restricted
59
- Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
60
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
61
- Processing by ExampleController#restricted as HTML
62
- 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"]]
63
- Rendered text template (0.0ms)
64
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
65
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
66
- Processing by ExampleController#restricted as HTML
67
- Authenticating with gds_sso strategy
68
- Completed in 0ms (ActiveRecord: 0.0ms)
69
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
70
- Started GET "/auth/gds/callback?code=2a9f5d43d6d3d0e5897070068b051e78802f87fbb3c385efb2576d954ada08cb&state=9556622ff86ad8f30466b8d4785c923c54d0e714b3402ff2" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
71
- Processing by AuthenticationsController#callback as HTML
72
- Parameters: {"code"=>"2a9f5d43d6d3d0e5897070068b051e78802f87fbb3c385efb2576d954ada08cb", "state"=>"9556622ff86ad8f30466b8d4785c923c54d0e714b3402ff2"}
73
- Authenticating with gds_sso strategy
74
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
75
-  (0.1ms) begin transaction
76
-  (0.1ms) commit transaction
77
-  (0.1ms) begin transaction
78
-  (0.1ms) commit transaction
79
- Redirected to http://www.example-client.com/restricted
80
- Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
81
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
82
- Processing by ExampleController#restricted as HTML
83
- 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"]]
84
- Rendered text template (0.0ms)
85
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
86
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
87
- Processing by ExampleController#this_requires_signin_permission as HTML
88
- Authenticating with gds_sso strategy
89
- Completed in 0ms (ActiveRecord: 0.0ms)
90
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
91
- Started GET "/auth/gds/callback?code=bfef6f49cd139f096c2b5c6e25ea4c146f1097eba790739524f346bf92a50dfc&state=336a153e066e204e2640a70504d044c235db3a56e8d92f11" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
92
- Processing by AuthenticationsController#callback as HTML
93
- Parameters: {"code"=>"bfef6f49cd139f096c2b5c6e25ea4c146f1097eba790739524f346bf92a50dfc", "state"=>"336a153e066e204e2640a70504d044c235db3a56e8d92f11"}
94
- Authenticating with gds_sso strategy
95
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
96
-  (0.2ms) begin transaction
97
-  (0.1ms) commit transaction
98
-  (0.1ms) begin transaction
99
-  (0.1ms) commit transaction
100
- Redirected to http://www.example-client.com/this_requires_signin_permission
101
- Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
102
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
103
- Processing by ExampleController#this_requires_signin_permission as HTML
104
- 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"]]
105
- Rendered text template (0.0ms)
106
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
107
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
108
- Processing by ExampleController#this_requires_signin_permission as HTML
109
- Authenticating with gds_sso strategy
110
- Completed in 1ms (ActiveRecord: 0.0ms)
111
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
112
- Started GET "/auth/gds/callback?code=159af4e9004c9125b8a2039875ae4d19477f60a5c0d59a7c2fa5dbae9d8f9ddf&state=11be99e17fe4a19ec8d4486eae0bfeeb30a9396c5db37ff8" for 127.0.0.1 at 2018-12-17 11:57:12 +0000
113
- Processing by AuthenticationsController#callback as HTML
114
- Parameters: {"code"=>"159af4e9004c9125b8a2039875ae4d19477f60a5c0d59a7c2fa5dbae9d8f9ddf", "state"=>"11be99e17fe4a19ec8d4486eae0bfeeb30a9396c5db37ff8"}
115
- Authenticating with gds_sso strategy
116
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
117
-  (0.1ms) begin transaction
118
-  (0.1ms) commit transaction
119
-  (0.1ms) begin transaction
120
-  (0.1ms) commit transaction
121
- Redirected to http://www.example-client.com/this_requires_signin_permission
122
- Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
123
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
124
- Processing by ExampleController#this_requires_signin_permission as HTML
125
- 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"]]
126
- Rendered text template (0.0ms)
127
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
128
- Started GET "/" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
129
- Processing by ExampleController#index as HTML
130
- Rendered text template (0.0ms)
131
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
132
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
133
- Processing by ExampleController#restricted as HTML
134
- Authenticating with gds_sso strategy
135
- Completed in 0ms (ActiveRecord: 0.0ms)
136
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
137
- Started GET "/auth/gds/callback?code=fd8fc6f7f1a0b7ba4c6c903d39cbd6b8de85a9fc175d8beb49193076ad2c7e28&state=b902db2dc8b2438d8907e601712f7172d4f3cb2b11b89763" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
138
- Processing by AuthenticationsController#callback as HTML
139
- Parameters: {"code"=>"fd8fc6f7f1a0b7ba4c6c903d39cbd6b8de85a9fc175d8beb49193076ad2c7e28", "state"=>"b902db2dc8b2438d8907e601712f7172d4f3cb2b11b89763"}
140
- Authenticating with gds_sso strategy
141
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
142
-  (0.1ms) begin transaction
143
-  (0.1ms) commit transaction
144
-  (0.1ms) begin transaction
145
-  (0.1ms) commit transaction
146
- Redirected to http://www.example-client.com/restricted
147
- Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
148
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
149
- Processing by ExampleController#restricted as HTML
150
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
151
- Rendered text template (0.0ms)
152
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
153
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
154
-  (0.1ms) begin transaction
155
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
156
-  (5.8ms) commit transaction
157
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
158
- Processing by ExampleController#restricted as HTML
159
- 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"]]
160
- Authenticating with gds_sso strategy
161
- Completed in 2ms (ActiveRecord: 0.2ms)
162
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
163
- Started GET "/auth/gds/callback?code=2ffc6435a36a6f25ab2e87f367553c1ab73f7f1c90d1b0f253ad61008facbab1&state=1f18bb5b259a473ae4fa1d62d20e266f44c479ae72c70b93" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
164
- Processing by AuthenticationsController#callback as HTML
165
- Parameters: {"code"=>"2ffc6435a36a6f25ab2e87f367553c1ab73f7f1c90d1b0f253ad61008facbab1", "state"=>"1f18bb5b259a473ae4fa1d62d20e266f44c479ae72c70b93"}
166
- Authenticating with gds_sso strategy
167
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
168
-  (0.1ms) begin transaction
169
-  (0.1ms) commit transaction
170
-  (0.1ms) begin transaction
171
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
172
-  (6.4ms) commit transaction
173
- Redirected to http://www.example-client.com/restricted
174
- Completed 302 Found in 16ms (ActiveRecord: 7.4ms)
175
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
176
- Processing by ExampleController#restricted as HTML
177
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
178
- Rendered text template (0.0ms)
179
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
180
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
181
- Processing by ExampleController#restricted as HTML
182
- Authenticating with gds_sso strategy
183
- Completed in 1ms (ActiveRecord: 0.0ms)
184
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:13 +0000
185
- Started GET "/auth/gds/callback?code=2bf5952a934130ede8063814ca247d2226f51ad22d955167bad0ffdde83701ee&state=cda9f4d95c1c08b2eb8ffe723bbccdff2fa5fa67cae24db0" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
186
- Processing by AuthenticationsController#callback as HTML
187
- Parameters: {"code"=>"2bf5952a934130ede8063814ca247d2226f51ad22d955167bad0ffdde83701ee", "state"=>"cda9f4d95c1c08b2eb8ffe723bbccdff2fa5fa67cae24db0"}
188
- Authenticating with gds_sso strategy
189
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
190
-  (0.1ms) begin transaction
191
-  (0.1ms) commit transaction
192
-  (0.1ms) begin transaction
193
-  (0.1ms) commit transaction
194
- Redirected to http://www.example-client.com/restricted
195
- Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
196
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
197
- Processing by ExampleController#restricted as HTML
198
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
199
- Rendered text template (0.0ms)
200
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
201
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
202
- Processing by ExampleController#restricted as HTML
203
- Authenticating with gds_sso strategy
204
- Completed in 1ms (ActiveRecord: 0.0ms)
205
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
206
- Started GET "/auth/gds/callback?code=98ec63311f1d1320701fc05dd596b1f05c951cf4c6a9a61d0e3d62bb15de42eb&state=be4ed8825042cb77f19f00b1f106105e5acdcc463c06f019" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
207
- Processing by AuthenticationsController#callback as HTML
208
- Parameters: {"code"=>"98ec63311f1d1320701fc05dd596b1f05c951cf4c6a9a61d0e3d62bb15de42eb", "state"=>"be4ed8825042cb77f19f00b1f106105e5acdcc463c06f019"}
209
- Authenticating with gds_sso strategy
210
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
211
-  (0.1ms) begin transaction
212
-  (0.1ms) commit transaction
213
-  (0.1ms) begin transaction
214
-  (0.2ms) commit transaction
215
- Redirected to http://www.example-client.com/restricted
216
- Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
217
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
218
- Processing by ExampleController#restricted as HTML
219
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
220
- Rendered text template (0.0ms)
221
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
222
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
223
- Processing by ExampleController#restricted as HTML
224
- Authenticating with gds_sso strategy
225
- Completed in 1ms (ActiveRecord: 0.0ms)
226
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
227
- Started GET "/auth/gds/callback?code=daa8018c617fd05a6eee99f41cd8e7f71daed2b1d5a006ad1a7ec84178a3ee46&state=c6036a21ae05f8b5596de6cf2b881241054c6e1ad2389c9d" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
228
- Processing by AuthenticationsController#callback as HTML
229
- Parameters: {"code"=>"daa8018c617fd05a6eee99f41cd8e7f71daed2b1d5a006ad1a7ec84178a3ee46", "state"=>"c6036a21ae05f8b5596de6cf2b881241054c6e1ad2389c9d"}
230
- Authenticating with gds_sso strategy
231
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
232
-  (0.1ms) begin transaction
233
-  (0.1ms) commit transaction
234
-  (0.1ms) begin transaction
235
-  (0.1ms) commit transaction
236
- Redirected to http://www.example-client.com/restricted
237
- Completed 302 Found in 14ms (ActiveRecord: 0.8ms)
238
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
239
- Processing by ExampleController#restricted as HTML
240
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
241
- Rendered text template (0.0ms)
242
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
243
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
244
- Processing by ExampleController#restricted as HTML
245
- Authenticating with gds_sso strategy
246
- Completed in 1ms (ActiveRecord: 0.0ms)
247
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:14 +0000
248
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
249
- Processing by ExampleController#restricted as HTML
250
- Authenticating with gds_sso strategy
251
- Completed in 1ms (ActiveRecord: 0.0ms)
252
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:14 +0000
253
- Started GET "/auth/gds/callback?code=2ac7bc9cd0295e4afd4e0995fa5a96bfd2650a404841e14b3589efa5c75f36af&state=1cca2b49494fe16d3e61387db9dcc7af41504c4ddf75d69b" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
254
- Processing by AuthenticationsController#callback as HTML
255
- Parameters: {"code"=>"2ac7bc9cd0295e4afd4e0995fa5a96bfd2650a404841e14b3589efa5c75f36af", "state"=>"1cca2b49494fe16d3e61387db9dcc7af41504c4ddf75d69b"}
256
- Authenticating with gds_sso strategy
257
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
258
-  (0.2ms) begin transaction
259
-  (0.1ms) commit transaction
260
-  (0.1ms) begin transaction
261
-  (0.1ms) commit transaction
262
- Redirected to http://www.example-client.com/restricted
263
- Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
264
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
265
- Processing by ExampleController#restricted as HTML
266
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
267
- Rendered text template (0.0ms)
268
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
269
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 07:52:15 +0000
270
- Processing by ExampleController#restricted as HTML
271
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
272
- Rendered text template (0.1ms)
273
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
274
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
275
- Processing by ExampleController#restricted as JSON
276
- User Load (0.4ms) 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.6ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 3]]
279
-  (8.1ms) commit transaction
280
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
281
-  (0.3ms) begin transaction
282
-  (0.1ms) 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.1ms) 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.1ms) commit transaction
289
-  (0.1ms) begin transaction
290
-  (0.1ms) commit transaction
291
- Rendered text template (0.0ms)
292
- Completed 200 OK in 148ms (Views: 0.5ms | ActiveRecord: 10.6ms)
293
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
294
- Processing by ExampleController#restricted as JSON
295
- Completed in 55ms (ActiveRecord: 0.0ms)
296
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
297
- Processing by ExampleController#restricted as JSON
298
- Completed in 32ms (ActiveRecord: 0.0ms)
299
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
300
- Processing by ExampleController#this_requires_signin_permission as JSON
301
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
302
-  (0.1ms) begin transaction
303
-  (0.1ms) commit transaction
304
- CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
305
-  (0.2ms) begin transaction
306
-  (0.1ms) commit transaction
307
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
308
-  (0.2ms) begin transaction
309
-  (0.1ms) commit transaction
310
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
311
-  (0.1ms) begin transaction
312
-  (0.1ms) commit transaction
313
-  (0.1ms) begin transaction
314
-  (0.1ms) commit transaction
315
- Rendered text template (0.0ms)
316
- Completed 200 OK in 157ms (Views: 0.5ms | ActiveRecord: 1.5ms)
317
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:15 +0000
318
- Processing by ExampleController#restricted as HTML
319
- Authenticating with gds_sso strategy
320
- Completed in 1ms (ActiveRecord: 0.0ms)
321
-  (0.1ms) begin transaction
322
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36852"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
323
-  (7.7ms) commit transaction
324
-  (0.1ms) begin transaction
325
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3458"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
326
-  (5.4ms) commit transaction
1
+  (0.1ms) DROP TABLE IF EXISTS "users"
2
+  (1.3ms) SELECT sqlite_version(*)
3
+  (13.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
6
+  (0.1ms) begin transaction
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-06-12 15:52:40.841962"], ["updated_at", "2020-06-12 15:52:40.841962"]]
8
+  (4.8ms) commit transaction
9
+  (7.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
10
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
+  (0.0ms) begin transaction
12
+  (0.0ms) commit transaction
13
+  (0.0ms) begin transaction
14
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33734"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
15
+  (5.9ms) commit transaction
16
+  (0.0ms) begin transaction
17
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34315"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
+  (3.6ms) commit transaction
19
+ Processing by Api::UserController#update as HTML
20
+ Parameters: {"uid"=>"a1s2d33734"}
21
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33734"], ["LIMIT", 1]]
22
+  (0.0ms) begin transaction
23
+ 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", 1]]
24
+  (3.9ms) commit transaction
25
+ Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
26
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
27
+  (0.1ms) begin transaction
28
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33539"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
29
+  (7.7ms) commit transaction
30
+  (0.0ms) begin transaction
31
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35648"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
32
+  (5.0ms) commit transaction
327
33
  Processing by Api::UserController#update as HTML
328
- Parameters: {"uid"=>"a1s2d36852"}
34
+ Parameters: {"uid"=>"a1s2d33539"}
35
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
329
36
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
330
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
37
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
331
38
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
332
- Completed 403 Forbidden in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
333
-  (0.2ms) begin transaction
334
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38337"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
335
-  (4.6ms) commit transaction
336
-  (0.1ms) begin transaction
337
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34466"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
338
-  (9.7ms) commit transaction
339
- Processing by Api::UserController#update as HTML
340
- Parameters: {"uid"=>"a1s2d38337"}
341
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38337"]]
342
-  (2.0ms) begin transaction
343
- SQL (0.5ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 6]]
344
-  (6.0ms) commit transaction
345
- Completed 200 OK in 15ms (ActiveRecord: 8.8ms)
346
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
347
-  (0.1ms) begin transaction
348
- SQL (0.7ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3425"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
349
-  (5.0ms) commit transaction
350
-  (0.1ms) begin transaction
351
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39508"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
352
-  (3.5ms) commit transaction
39
+ Completed 403 Forbidden in 18ms (Views: 17.9ms | ActiveRecord: 0.0ms)
40
+  (0.0ms) begin transaction
41
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3721"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
42
+  (5.8ms) commit transaction
43
+  (0.0ms) begin transaction
44
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37894"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
45
+  (6.4ms) commit transaction
353
46
  Processing by Api::UserController#reauth as HTML
354
- Parameters: {"uid"=>"a1s2d3425"}
47
+ Parameters: {"uid"=>"a1s2d3721"}
48
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
355
49
  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.4ms)
50
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
357
51
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
358
- Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
359
-  (0.1ms) begin transaction
360
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35448"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
361
-  (4.7ms) commit transaction
362
-  (0.1ms) begin transaction
363
- SQL (0.6ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35123"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
364
-  (5.3ms) commit transaction
365
- Processing by Api::UserController#reauth as HTML
366
- Parameters: {"uid"=>"a1s2d35448"}
367
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35448"]]
368
-  (0.1ms) begin transaction
369
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
370
-  (4.5ms) commit transaction
371
- Completed 200 OK in 9ms (ActiveRecord: 5.1ms)
372
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
373
-  (0.1ms) begin transaction
374
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39462"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
375
-  (4.5ms) commit transaction
376
-  (0.1ms) begin transaction
377
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3712"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
378
-  (4.1ms) commit transaction
52
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
53
+  (0.0ms) begin transaction
54
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35360"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
55
+  (5.3ms) commit transaction
56
+  (0.0ms) begin transaction
57
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34311"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
58
+  (5.9ms) commit transaction
379
59
  Processing by Api::UserController#reauth as HTML
380
60
  Parameters: {"uid"=>"nonexistent-user"}
381
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
382
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
383
-  (0.3ms) DROP TABLE IF EXISTS "users"
384
-  (3.1ms) SELECT sqlite_version(*)
385
-  (6.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
386
-  (4.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
387
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
61
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
62
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
63
+  (0.0ms) begin transaction
64
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34411"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
65
+  (4.5ms) commit transaction
66
+  (0.0ms) begin transaction
67
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36843"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
68
+  (11.2ms) commit transaction
69
+ Processing by Api::UserController#reauth as HTML
70
+ Parameters: {"uid"=>"a1s2d34411"}
71
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34411"], ["LIMIT", 1]]
72
+  (0.0ms) begin transaction
73
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 9]]
74
+  (32.6ms) commit transaction
75
+ Completed 200 OK in 35ms (ActiveRecord: 33.0ms)
76
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
77
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
78
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
79
+  (0.0ms) begin transaction
80
+ 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]]
81
+  (36.0ms) commit transaction
82
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
83
+  (0.0ms) begin transaction
84
+  (0.0ms) commit transaction
85
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:41 +0000
86
+ Processing by ExampleController#this_requires_signin_permission as JSON
87
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
88
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
388
89
   (0.1ms) begin transaction
389
- ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-12-17 11:57:28.845671"], ["updated_at", "2018-12-17 11:57:28.845671"]]
390
-  (4.6ms) commit transaction
391
-  (4.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
392
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
90
+ User Create (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
91
+  (7.6ms) commit transaction
92
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
393
93
   (0.1ms) begin transaction
394
94
   (0.1ms) commit transaction
395
- Started GET "/" for 127.0.0.1 at 2018-12-17 11:57:29 +0000
396
- Processing by ExampleController#index as HTML
95
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
96
+  (0.1ms) begin transaction
97
+  (0.1ms) commit transaction
98
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
99
+  (0.1ms) begin transaction
100
+  (0.1ms) commit transaction
101
+  (0.1ms) begin transaction
102
+ User Update (2.9ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
103
+  (6.2ms) commit transaction
104
+ Rendering text template
105
+ Rendered text template (0.0ms)
106
+ Completed 200 OK in 572ms (Views: 4.5ms | ActiveRecord: 18.4ms)
107
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:42 +0000
108
+ Processing by ExampleController#restricted as JSON
109
+ Completed in 49ms (ActiveRecord: 0.0ms)
110
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:42 +0000
111
+ Processing by ExampleController#restricted as JSON
112
+ Completed in 85ms (ActiveRecord: 0.0ms)
113
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:42 +0000
114
+ Processing by ExampleController#restricted as JSON
115
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
116
+  (2.8ms) begin transaction
117
+  (0.1ms) commit transaction
118
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
119
+  (0.2ms) begin transaction
120
+  (0.2ms) commit transaction
121
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
122
+  (0.1ms) begin transaction
123
+  (0.1ms) commit transaction
124
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
125
+  (0.1ms) begin transaction
126
+  (0.2ms) commit transaction
127
+  (0.2ms) begin transaction
128
+  (0.1ms) commit transaction
397
129
  Rendering text template
398
130
  Rendered text template (0.0ms)
399
- Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
400
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:29 +0000
131
+ Completed 200 OK in 192ms (Views: 2.2ms | ActiveRecord: 4.5ms)
132
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:42 +0000
133
+ Processing by ExampleController#restricted as HTML
134
+ Authenticating with gds_sso strategy
135
+ Completed in 1ms (ActiveRecord: 0.0ms)
136
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
401
137
  Processing by ExampleController#this_requires_signin_permission as HTML
402
138
  Authenticating with gds_sso strategy
403
- Completed in 10ms (ActiveRecord: 0.0ms)
404
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:29 +0000
405
- Started GET "/auth/gds/callback?code=c32df0e77f35f70e7b6ec0a4e6b8a2e19ba8ac99f4ee487ca3e10579178942f9&state=350eee1903c8692b588c653932f096224a98e6d9cebb4ad7" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
139
+ Completed in 0ms (ActiveRecord: 0.0ms)
140
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
141
+ Started GET "/auth/gds/callback?code=AbT8SXs2YjD7WJqWc0VjMLIEqVD8gd3rLKwX4q7o6Pc&state=942a5af1a1114e63d229a53a3aabe299e05a74e59d19ad3b" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
406
142
  Processing by AuthenticationsController#callback as HTML
407
- Parameters: {"code"=>"c32df0e77f35f70e7b6ec0a4e6b8a2e19ba8ac99f4ee487ca3e10579178942f9", "state"=>"350eee1903c8692b588c653932f096224a98e6d9cebb4ad7"}
143
+ Parameters: {"code"=>"AbT8SXs2YjD7WJqWc0VjMLIEqVD8gd3rLKwX4q7o6Pc", "state"=>"942a5af1a1114e63d229a53a3aabe299e05a74e59d19ad3b"}
408
144
  Authenticating with gds_sso strategy
409
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
410
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
411
-  (0.2ms) begin transaction
412
- 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"]]
413
-  (7.1ms) commit transaction
145
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
414
146
   (0.1ms) begin transaction
415
- User Update (0.7ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
416
-  (3.6ms) commit transaction
147
+ User Update (0.5ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
148
+  (9.7ms) commit transaction
149
+  (0.1ms) begin transaction
150
+  (0.1ms) commit transaction
417
151
  Redirected to http://www.example-client.com/this_requires_signin_permission
418
- Completed 302 Found in 61ms (ActiveRecord: 15.9ms)
419
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
152
+ Completed 302 Found in 19ms (ActiveRecord: 10.9ms)
153
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
420
154
  Processing by ExampleController#this_requires_signin_permission as HTML
421
- User Load (0.6ms) 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]]
155
+ 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]]
422
156
  Rendering text template
423
157
  Rendered text template (0.0ms)
424
- Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)
425
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
158
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
159
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
426
160
  Processing by ExampleController#this_requires_signin_permission as HTML
427
161
  Authenticating with gds_sso strategy
428
- Completed in 1ms (ActiveRecord: 0.0ms)
429
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
430
- Started GET "/auth/gds/callback?code=396438fd926b8d609445524124b97320d14ce8fa96c09bf0cbde171216094117&state=921e97297d8617e325349e63fddc89806dc7df125497fcd1" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
162
+ Completed in 0ms (ActiveRecord: 0.0ms)
163
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
164
+ Started GET "/auth/gds/callback?code=gCzNxa0UYS9v1u34NFcJQBGWHthk7SL6AQp_IFUHTkQ&state=c33f8168dbdb2f49c4ea77084f5b3c640e941cae38533aad" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
431
165
  Processing by AuthenticationsController#callback as HTML
432
- Parameters: {"code"=>"396438fd926b8d609445524124b97320d14ce8fa96c09bf0cbde171216094117", "state"=>"921e97297d8617e325349e63fddc89806dc7df125497fcd1"}
166
+ Parameters: {"code"=>"gCzNxa0UYS9v1u34NFcJQBGWHthk7SL6AQp_IFUHTkQ", "state"=>"c33f8168dbdb2f49c4ea77084f5b3c640e941cae38533aad"}
433
167
  Authenticating with gds_sso strategy
434
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
435
-  (10.3ms) begin transaction
436
-  (0.1ms) commit transaction
168
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
169
+  (0.1ms) begin transaction
170
+  (0.2ms) commit transaction
437
171
   (0.1ms) begin transaction
438
172
   (0.1ms) commit transaction
439
173
  Redirected to http://www.example-client.com/this_requires_signin_permission
440
- Completed 302 Found in 18ms (ActiveRecord: 11.1ms)
441
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
174
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
175
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
442
176
  Processing by ExampleController#this_requires_signin_permission as HTML
443
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
177
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
444
178
  Rendering text template
445
179
  Rendered text template (0.0ms)
446
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
447
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
180
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
181
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
448
182
  Processing by ExampleController#restricted as HTML
449
183
  Authenticating with gds_sso strategy
450
184
  Completed in 0ms (ActiveRecord: 0.0ms)
451
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
452
- Started GET "/auth/gds/callback?code=888638c5bc11c99b8980dc6ea90c6c3e768b44ad3612446547bb7377dab2a878&state=8a3105453b2377c8ae54b5ece3eec747e8abbe869f54e4cc" for 127.0.0.1 at 2018-12-17 11:57:30 +0000
185
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:43 +0000
186
+ Started GET "/auth/gds/callback?code=D6vj8aToDosrjQog3mwDKymQBj5G6Nv9sd7lDD7C7vI&state=11faee918652964aede9dc6ac351b1a31333cabea007ce37" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
453
187
  Processing by AuthenticationsController#callback as HTML
454
- Parameters: {"code"=>"888638c5bc11c99b8980dc6ea90c6c3e768b44ad3612446547bb7377dab2a878", "state"=>"8a3105453b2377c8ae54b5ece3eec747e8abbe869f54e4cc"}
188
+ Parameters: {"code"=>"D6vj8aToDosrjQog3mwDKymQBj5G6Nv9sd7lDD7C7vI", "state"=>"11faee918652964aede9dc6ac351b1a31333cabea007ce37"}
455
189
  Authenticating with gds_sso strategy
456
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
190
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
457
191
   (0.1ms) begin transaction
458
192
   (0.1ms) commit transaction
459
193
   (0.1ms) begin transaction
460
194
   (0.1ms) commit transaction
461
195
  Redirected to http://www.example-client.com/restricted
462
- Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
463
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
196
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
197
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
464
198
  Processing by ExampleController#restricted as HTML
465
- 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]]
199
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
466
200
  Rendering text template
467
201
  Rendered text template (0.0ms)
468
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
469
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
202
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
203
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
470
204
  Processing by ExampleController#restricted as HTML
471
205
  Authenticating with gds_sso strategy
472
- Completed in 0ms (ActiveRecord: 0.0ms)
473
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
474
- Started GET "/auth/gds/callback?code=f6b2f91ff76ad9646d843b7bbad8224205be7a1f88a7336dbac25762a7736602&state=e5a840c5a35498327123f823064df0bb752e31d47e000961" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
206
+ Completed in 1ms (ActiveRecord: 0.0ms)
207
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
208
+ Started GET "/auth/gds/callback?code=GgVBx-pk8SdrXsHbI01gIAgtXSBJms0gCtHAjVNxF18&state=6b4c711f8a12ef292ee88de78c83b99a975fa2c9a123022d" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
475
209
  Processing by AuthenticationsController#callback as HTML
476
- Parameters: {"code"=>"f6b2f91ff76ad9646d843b7bbad8224205be7a1f88a7336dbac25762a7736602", "state"=>"e5a840c5a35498327123f823064df0bb752e31d47e000961"}
210
+ Parameters: {"code"=>"GgVBx-pk8SdrXsHbI01gIAgtXSBJms0gCtHAjVNxF18", "state"=>"6b4c711f8a12ef292ee88de78c83b99a975fa2c9a123022d"}
477
211
  Authenticating with gds_sso strategy
478
212
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
479
-  (0.1ms) begin transaction
480
-  (0.1ms) commit transaction
213
+  (0.2ms) begin transaction
214
+  (0.2ms) commit transaction
481
215
   (0.1ms) begin transaction
482
216
   (0.1ms) commit transaction
483
217
  Redirected to http://www.example-client.com/restricted
484
- Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
485
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
218
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
219
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
486
220
  Processing by ExampleController#restricted as HTML
487
221
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
488
222
  Rendering text template
489
223
  Rendered text template (0.0ms)
490
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
491
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
224
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
225
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
492
226
  Processing by ExampleController#restricted as HTML
493
227
  Authenticating with gds_sso strategy
494
- Completed in 0ms (ActiveRecord: 0.0ms)
495
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
496
- Started GET "/auth/gds/callback?code=e0023b0137d66c9d55cae8bd3e6f1bdd477f10bf5320381209af527076f2ed80&state=d8c48ca1b73126a078d14a4cedcf66602338ad57ef77b4e2" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
228
+ Completed in 1ms (ActiveRecord: 0.0ms)
229
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
230
+ Started GET "/auth/gds/callback?code=OCGbbCIr-vDoYGR_2sRzEFYdDFr7x9TP4fc2p16jWE8&state=3e3cb71f323db6b923ffdf61d0418b264a5ffebf6160f63d" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
497
231
  Processing by AuthenticationsController#callback as HTML
498
- Parameters: {"code"=>"e0023b0137d66c9d55cae8bd3e6f1bdd477f10bf5320381209af527076f2ed80", "state"=>"d8c48ca1b73126a078d14a4cedcf66602338ad57ef77b4e2"}
232
+ Parameters: {"code"=>"OCGbbCIr-vDoYGR_2sRzEFYdDFr7x9TP4fc2p16jWE8", "state"=>"3e3cb71f323db6b923ffdf61d0418b264a5ffebf6160f63d"}
499
233
  Authenticating with gds_sso strategy
500
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
234
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
501
235
   (0.1ms) begin transaction
502
236
   (0.1ms) commit transaction
503
237
   (0.1ms) begin transaction
504
238
   (0.1ms) commit transaction
505
239
  Redirected to http://www.example-client.com/restricted
506
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
507
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
240
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
241
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
508
242
  Processing by ExampleController#restricted as HTML
509
- User Load (0.6ms) 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]]
243
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
244
+ Rendering text template
245
+ Rendered text template (0.0ms)
246
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
247
+ Started GET "/" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
248
+ Processing by ExampleController#index as HTML
510
249
  Rendering text template
511
250
  Rendered text template (0.0ms)
512
- Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.6ms)
513
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
251
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
252
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
514
253
  Processing by ExampleController#restricted as HTML
515
254
  Authenticating with gds_sso strategy
516
- Completed in 1ms (ActiveRecord: 0.0ms)
517
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
518
- Started GET "/auth/gds/callback?code=4cf54c5342875f66404251e047f8ffffaf3fca783af297737c30177cc85da73a&state=c715948e942b8ffdfe2a42f540eb5da37ef95c572beb452d" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
255
+ Completed in 0ms (ActiveRecord: 0.0ms)
256
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:44 +0000
257
+ Started GET "/auth/gds/callback?code=NsjNUHfVtSG4vhV7N62Qa7PdOg7fEXWd_5P_PB67O7g&state=cc1ccab0a203831db61f52a6027fb073078780d82473dcb1" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
519
258
  Processing by AuthenticationsController#callback as HTML
520
- Parameters: {"code"=>"4cf54c5342875f66404251e047f8ffffaf3fca783af297737c30177cc85da73a", "state"=>"c715948e942b8ffdfe2a42f540eb5da37ef95c572beb452d"}
259
+ Parameters: {"code"=>"NsjNUHfVtSG4vhV7N62Qa7PdOg7fEXWd_5P_PB67O7g", "state"=>"cc1ccab0a203831db61f52a6027fb073078780d82473dcb1"}
521
260
  Authenticating with gds_sso strategy
522
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
523
-  (0.1ms) begin transaction
261
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
262
+  (0.2ms) begin transaction
524
263
   (0.1ms) commit transaction
525
264
   (0.1ms) begin transaction
526
265
   (0.1ms) commit transaction
527
266
  Redirected to http://www.example-client.com/restricted
528
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
529
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:31 +0000
267
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
530
269
  Processing by ExampleController#restricted as HTML
531
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
270
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
532
271
  Rendering text template
533
272
  Rendered text template (0.0ms)
534
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
535
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 07:52:31 +0000
273
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.3ms)
274
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
275
+  (0.2ms) begin transaction
276
+ User Update (0.6ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
277
+  (8.7ms) commit transaction
278
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
536
279
  Processing by ExampleController#restricted as HTML
537
280
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
538
- Rendering text template
539
- Rendered text template (0.0ms)
540
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
541
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
542
- Processing by ExampleController#restricted as HTML
543
281
  Authenticating with gds_sso strategy
544
- Completed in 0ms (ActiveRecord: 0.0ms)
545
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
546
- Started GET "/auth/gds/callback?code=00de59170d7be42978f13c0b93aaf7bcf5d2716440af5954c7e68c427a5d2c34&state=842399de52e0fcd007936856619b5d881adacfc4ff89fd67" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
282
+ Completed in 3ms (ActiveRecord: 0.4ms)
283
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
284
+ Started GET "/auth/gds/callback?code=AAHc6IBqdonjmnnQpy6FsaMe2irrObVMsXS454Jys0A&state=0cf6b1709a48471c092563aff55cc600aa927a910c57837b" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
547
285
  Processing by AuthenticationsController#callback as HTML
548
- Parameters: {"code"=>"00de59170d7be42978f13c0b93aaf7bcf5d2716440af5954c7e68c427a5d2c34", "state"=>"842399de52e0fcd007936856619b5d881adacfc4ff89fd67"}
286
+ Parameters: {"code"=>"AAHc6IBqdonjmnnQpy6FsaMe2irrObVMsXS454Jys0A", "state"=>"0cf6b1709a48471c092563aff55cc600aa927a910c57837b"}
549
287
  Authenticating with gds_sso strategy
550
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
551
-  (0.1ms) begin transaction
288
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
289
+  (0.2ms) begin transaction
552
290
   (0.1ms) commit transaction
553
291
   (0.1ms) begin transaction
554
-  (0.1ms) commit transaction
292
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
293
+  (8.0ms) commit transaction
555
294
  Redirected to http://www.example-client.com/restricted
556
- Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
557
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
295
+ Completed 302 Found in 17ms (ActiveRecord: 9.3ms)
296
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
558
297
  Processing by ExampleController#restricted as HTML
559
298
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
560
299
  Rendering text template
561
300
  Rendered text template (0.0ms)
562
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
563
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
564
- Processing by ExampleController#restricted as HTML
565
- Authenticating with gds_sso strategy
566
- Completed in 1ms (ActiveRecord: 0.0ms)
567
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
568
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
301
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
302
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
569
303
  Processing by ExampleController#restricted as HTML
570
304
  Authenticating with gds_sso strategy
571
- Completed in 1ms (ActiveRecord: 0.0ms)
572
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
573
- Started GET "/auth/gds/callback?code=ff822bf8974d28af9167ffd74ed5e170aa013a14c04a47c0d55f81b07b193532&state=9ca9e8c8ef956880412883aa57fab84202424f090b655fd9" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
305
+ Completed in 0ms (ActiveRecord: 0.0ms)
306
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:45 +0000
307
+ Started GET "/auth/gds/callback?code=9BOJnQTFGfLiQWtAWiryzU939095WY-FKCVh3f9WayI&state=d2123ae28df5944198b5ea755b51895a76fbeaf5aa945c75" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
574
308
  Processing by AuthenticationsController#callback as HTML
575
- Parameters: {"code"=>"ff822bf8974d28af9167ffd74ed5e170aa013a14c04a47c0d55f81b07b193532", "state"=>"9ca9e8c8ef956880412883aa57fab84202424f090b655fd9"}
309
+ Parameters: {"code"=>"9BOJnQTFGfLiQWtAWiryzU939095WY-FKCVh3f9WayI", "state"=>"d2123ae28df5944198b5ea755b51895a76fbeaf5aa945c75"}
576
310
  Authenticating with gds_sso strategy
577
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
311
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
578
312
   (0.1ms) begin transaction
579
313
   (0.1ms) commit transaction
580
314
   (0.1ms) begin transaction
581
315
   (0.1ms) commit transaction
582
316
  Redirected to http://www.example-client.com/restricted
583
- Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
584
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
317
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
318
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
585
319
  Processing by ExampleController#restricted as HTML
586
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
320
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
587
321
  Rendering text template
588
322
  Rendered text template (0.0ms)
589
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
590
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
323
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
324
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
591
325
  Processing by ExampleController#restricted as HTML
592
326
  Authenticating with gds_sso strategy
593
327
  Completed in 1ms (ActiveRecord: 0.0ms)
594
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
595
- Started GET "/auth/gds/callback?code=ccb18a0bcafbf99ea8f5039332ca046570e9b5072ec81a93d466a4d87fcdbbba&state=f03c4d01d321b241d74e3c136fe84b3c2871e53a20df134f" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
328
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
329
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
330
+ Processing by ExampleController#restricted as HTML
331
+ Authenticating with gds_sso strategy
332
+ Completed in 0ms (ActiveRecord: 0.0ms)
333
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
334
+ Started GET "/auth/gds/callback?code=AWNqZG3m-uIGse3YK1Rej37QoMdQjrZPyLc2xrbb5mY&state=c3aedbbad6bf9a88f2e32e1d7351acbb7fc1080e85baa97d" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
596
335
  Processing by AuthenticationsController#callback as HTML
597
- Parameters: {"code"=>"ccb18a0bcafbf99ea8f5039332ca046570e9b5072ec81a93d466a4d87fcdbbba", "state"=>"f03c4d01d321b241d74e3c136fe84b3c2871e53a20df134f"}
336
+ Parameters: {"code"=>"AWNqZG3m-uIGse3YK1Rej37QoMdQjrZPyLc2xrbb5mY", "state"=>"c3aedbbad6bf9a88f2e32e1d7351acbb7fc1080e85baa97d"}
598
337
  Authenticating with gds_sso strategy
599
- User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
338
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
600
339
   (0.1ms) begin transaction
601
340
   (0.1ms) commit transaction
602
341
   (0.1ms) begin transaction
603
342
   (0.1ms) commit transaction
604
343
  Redirected to http://www.example-client.com/restricted
605
- Completed 302 Found in 8ms (ActiveRecord: 1.2ms)
606
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:32 +0000
344
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
345
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
607
346
  Processing by ExampleController#restricted as HTML
608
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
347
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
609
348
  Rendering text template
610
349
  Rendered text template (0.0ms)
611
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
612
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
350
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
351
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
613
352
  Processing by ExampleController#restricted as HTML
614
353
  Authenticating with gds_sso strategy
615
354
  Completed in 1ms (ActiveRecord: 0.0ms)
616
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:32 +0000
617
- Started GET "/auth/gds/callback?code=0bff4d10540bff7f988b47153854a70f3c9ae2657c044d9f877d5ba6c3b3f2b7&state=c672e3b537cefb9c8d39605484269d46af42b650c3966023" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
355
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
356
+ Started GET "/auth/gds/callback?code=hnnbJVh7CLnARnqDPgl46iljnXXzRik6SpMXuknRRdg&state=4a9222d796b215689061c58a212391c4e3349824aebf6754" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
618
357
  Processing by AuthenticationsController#callback as HTML
619
- Parameters: {"code"=>"0bff4d10540bff7f988b47153854a70f3c9ae2657c044d9f877d5ba6c3b3f2b7", "state"=>"c672e3b537cefb9c8d39605484269d46af42b650c3966023"}
358
+ Parameters: {"code"=>"hnnbJVh7CLnARnqDPgl46iljnXXzRik6SpMXuknRRdg", "state"=>"4a9222d796b215689061c58a212391c4e3349824aebf6754"}
620
359
  Authenticating with gds_sso strategy
621
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
360
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
622
361
   (0.1ms) begin transaction
623
362
   (0.1ms) commit transaction
624
363
   (0.1ms) begin transaction
625
364
   (0.1ms) commit transaction
626
365
  Redirected to http://www.example-client.com/restricted
627
- Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
628
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
366
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
367
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:46 +0000
629
368
  Processing by ExampleController#restricted as HTML
630
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
369
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
631
370
  Rendering text template
632
371
  Rendered text template (0.0ms)
633
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
634
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
635
-  (0.1ms) begin transaction
636
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
637
-  (19.0ms) commit transaction
638
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
372
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
373
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
639
374
  Processing by ExampleController#restricted as HTML
640
- 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]]
641
375
  Authenticating with gds_sso strategy
642
- Completed in 3ms (ActiveRecord: 0.5ms)
643
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
644
- Started GET "/auth/gds/callback?code=ac9337710fec84ee9ead47be05ebf33e319dc810870d77001f28859ead9facad&state=03aad3fe16494faac60145094682178374048346fc92e45b" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
376
+ Completed in 0ms (ActiveRecord: 0.0ms)
377
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
378
+ Started GET "/auth/gds/callback?code=QpWFyXKxMVR094o1oISpgUJkKFDvfKV0900glRtQq1M&state=6ed8d7e0a8936f57670b834b8102d232165219569bd5dd69" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
645
379
  Processing by AuthenticationsController#callback as HTML
646
- Parameters: {"code"=>"ac9337710fec84ee9ead47be05ebf33e319dc810870d77001f28859ead9facad", "state"=>"03aad3fe16494faac60145094682178374048346fc92e45b"}
380
+ Parameters: {"code"=>"QpWFyXKxMVR094o1oISpgUJkKFDvfKV0900glRtQq1M", "state"=>"6ed8d7e0a8936f57670b834b8102d232165219569bd5dd69"}
647
381
  Authenticating with gds_sso strategy
648
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
382
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
649
383
   (0.1ms) begin transaction
650
384
   (0.1ms) commit transaction
651
385
   (0.1ms) begin transaction
652
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
653
-  (6.0ms) commit transaction
386
+  (0.1ms) commit transaction
654
387
  Redirected to http://www.example-client.com/restricted
655
- Completed 302 Found in 14ms (ActiveRecord: 7.2ms)
656
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
388
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
389
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:46 +0000
657
390
  Processing by ExampleController#restricted as HTML
658
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
391
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
659
392
  Rendering text template
660
- Rendered text template (0.1ms)
661
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
662
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
393
+ Rendered text template (0.0ms)
394
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
395
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:47:46 +0000
663
396
  Processing by ExampleController#restricted as HTML
664
- Authenticating with gds_sso strategy
665
- Completed in 1ms (ActiveRecord: 0.0ms)
666
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
397
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
398
+ Rendering text template
399
+ Rendered text template (0.0ms)
400
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
401
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
402
+  (0.1ms) begin transaction
403
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "290"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
404
+  (7.0ms) commit transaction
405
+  (0.1ms) begin transaction
406
+ User Update (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
407
+  (6.3ms) commit transaction
408
+  (1.4ms) SELECT sqlite_version(*)
409
+  (0.1ms) SELECT sqlite_version(*)
410
+  (0.2ms) DROP TABLE IF EXISTS "users"
411
+  (7.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 0)
412
+  (4.9ms) 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.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-06-12 15:52:54.919134"], ["updated_at", "2020-06-12 15:52:54.919134"]]
416
+  (4.2ms) commit transaction
417
+  (5.4ms) 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
+  (0.1ms) SELECT sqlite_version(*)
420
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:55 +0000
667
421
  Processing by ExampleController#restricted as JSON
668
- Completed in 53ms (ActiveRecord: 0.0ms)
669
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
422
+ Completed in 43ms (ActiveRecord: 0.0ms | Allocations: 3118)
423
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:55 +0000
670
424
  Processing by ExampleController#restricted as JSON
671
- Completed in 27ms (ActiveRecord: 0.0ms)
672
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:33 +0000
673
- Processing by ExampleController#this_requires_signin_permission as JSON
674
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
675
-  (0.1ms) begin transaction
676
- User Update (0.6ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
677
-  (3.8ms) commit transaction
678
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
679
-  (0.3ms) begin transaction
680
-  (0.1ms) commit transaction
681
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
682
-  (0.2ms) begin transaction
683
-  (0.1ms) commit transaction
684
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
425
+ Completed in 21ms (ActiveRecord: 0.0ms | Allocations: 1962)
426
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:55 +0000
427
+ Processing by ExampleController#restricted as JSON
428
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
429
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
685
430
   (0.1ms) begin transaction
686
-  (0.1ms) commit transaction
431
+ User Create (0.6ms) 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]]
432
+  (5.0ms) commit transaction
433
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
434
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
435
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
436
   (0.1ms) begin transaction
688
-  (0.1ms) commit transaction
437
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 1]]
438
+  (7.7ms) commit transaction
689
439
  Rendering text template
690
- Rendered text template (0.0ms)
691
- Completed 200 OK in 148ms (Views: 0.7ms | ActiveRecord: 6.8ms)
692
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:34 +0000
693
- Processing by ExampleController#restricted as JSON
694
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
695
-  (0.1ms) begin transaction
696
-  (0.1ms) commit transaction
697
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
698
-  (0.7ms) begin transaction
699
-  (0.1ms) commit transaction
700
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
701
-  (0.2ms) begin transaction
702
-  (0.1ms) commit transaction
703
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
704
-  (0.2ms) begin transaction
705
-  (0.1ms) commit transaction
706
-  (0.2ms) begin transaction
707
-  (0.1ms) commit transaction
440
+ Rendered text template (Duration: 0.1ms | Allocations: 3)
441
+ Completed 200 OK in 161ms (Views: 7.4ms | ActiveRecord: 17.6ms | Allocations: 16448)
442
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:55 +0000
443
+ Processing by ExampleController#this_requires_signin_permission as JSON
444
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
445
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
446
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
447
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
708
448
  Rendering text template
709
- Rendered text template (0.0ms)
710
- Completed 200 OK in 141ms (Views: 0.6ms | ActiveRecord: 2.7ms)
711
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
712
-  (0.1ms) begin transaction
713
- User Create (1.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1989"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
714
-  (8.2ms) commit transaction
715
-  (0.1ms) begin transaction
716
- User Update (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 2]]
717
-  (4.2ms) commit transaction
718
-  (0.1ms) begin transaction
719
- User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31564"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
720
-  (5.9ms) commit transaction
721
-  (0.1ms) begin transaction
722
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3795"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
723
-  (4.9ms) commit transaction
724
- Processing by Api::UserController#update as HTML
725
- Parameters: {"uid"=>"a1s2d31564"}
726
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
727
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
728
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
729
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
730
- Completed 403 Forbidden in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
731
-  (0.2ms) begin transaction
732
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31050"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
733
-  (4.3ms) commit transaction
734
-  (0.1ms) begin transaction
735
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31340"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
736
-  (3.2ms) commit transaction
737
- Processing by Api::UserController#update as HTML
738
- Parameters: {"uid"=>"a1s2d31050"}
739
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31050"], ["LIMIT", 1]]
740
-  (0.1ms) begin transaction
741
- User Update (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 5]]
742
-  (3.5ms) commit transaction
743
- Completed 200 OK in 10ms (ActiveRecord: 4.4ms)
744
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
745
-  (0.1ms) begin transaction
746
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37413"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
747
-  (3.5ms) commit transaction
748
-  (0.1ms) begin transaction
749
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39033"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
-  (4.0ms) commit transaction
751
- Processing by Api::UserController#reauth as HTML
752
- Parameters: {"uid"=>"nonexistent-user"}
753
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
754
- Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
755
-  (0.1ms) begin transaction
756
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31963"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
757
-  (3.5ms) commit transaction
758
-  (0.1ms) begin transaction
759
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39621"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
760
-  (4.0ms) commit transaction
761
- Processing by Api::UserController#reauth as HTML
762
- Parameters: {"uid"=>"a1s2d31963"}
763
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
764
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
765
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
766
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
767
- Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
768
-  (0.1ms) begin transaction
769
- User Create (1.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31667"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
770
-  (4.7ms) commit transaction
771
-  (0.1ms) begin transaction
772
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38552"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
773
-  (5.6ms) commit transaction
774
- Processing by Api::UserController#reauth as HTML
775
- Parameters: {"uid"=>"a1s2d31667"}
776
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31667"], ["LIMIT", 1]]
777
-  (0.1ms) begin transaction
778
- User Update (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
779
-  (3.2ms) commit transaction
780
- Completed 200 OK in 8ms (ActiveRecord: 4.0ms)
781
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]
782
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
783
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
784
-  (0.1ms) begin transaction
785
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
786
-  (4.4ms) commit transaction
787
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
788
-  (0.1ms) begin transaction
789
-  (0.1ms) commit transaction
790
-  (6.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
-  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
-  (0.1ms) select sqlite_version(*)
793
-  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
-  (0.1ms) begin transaction
795
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35477"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
796
-  (6.4ms) commit transaction
797
-  (0.1ms) begin transaction
798
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38491"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
799
-  (3.7ms) commit transaction
800
- Processing by Api::UserController#update as HTML
801
- Parameters: {"uid"=>"a1s2d35477"}
802
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
803
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
804
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
805
- Completed 403 Forbidden in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)
806
-  (0.1ms) begin transaction
807
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3838"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
808
-  (5.5ms) commit transaction
809
-  (0.2ms) begin transaction
810
- SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35461"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
811
-  (4.0ms) commit transaction
812
- Processing by Api::UserController#update as HTML
813
- Parameters: {"uid"=>"a1s2d3838"}
814
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3838"]]
815
-  (0.1ms) begin transaction
816
- SQL (0.5ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
817
-  (4.5ms) commit transaction
818
- Completed 200 OK in 23ms (ActiveRecord: 5.5ms)
819
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
820
-  (0.1ms) begin transaction
821
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33818"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
822
-  (4.9ms) commit transaction
823
-  (0.1ms) begin transaction
824
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36731"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
825
-  (3.7ms) commit transaction
826
- Processing by Api::UserController#reauth as HTML
827
- Parameters: {"uid"=>"nonexistent-user"}
828
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
829
- Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
830
-  (0.1ms) begin transaction
831
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33467"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
832
-  (3.9ms) commit transaction
833
-  (0.1ms) begin transaction
834
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32804"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
835
-  (3.5ms) commit transaction
836
- Processing by Api::UserController#reauth as HTML
837
- Parameters: {"uid"=>"a1s2d33467"}
838
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33467"]]
839
-  (0.1ms) begin transaction
840
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
841
-  (4.4ms) commit transaction
842
- Completed 200 OK in 9ms (ActiveRecord: 5.2ms)
843
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
844
-  (0.1ms) begin transaction
845
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33865"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
846
-  (4.5ms) commit transaction
847
-  (0.2ms) begin transaction
848
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39681"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
849
-  (5.5ms) commit transaction
850
- Processing by Api::UserController#reauth as HTML
851
- Parameters: {"uid"=>"a1s2d33865"}
852
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
853
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
854
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
855
- Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
856
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
857
- Processing by ExampleController#this_requires_signin_permission as HTML
858
- Authenticating with gds_sso strategy
859
- Completed in 19ms (ActiveRecord: 0.0ms)
860
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
861
- Started GET "/auth/gds/callback?code=ec35c74ebefe0cb2c8a43cf083a492e974ffb26adb14c63f43e35fab9c2cc2ee&state=1e6e54162e7cae7c61953cbc8483045585d7c127f5199637" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
862
- Processing by AuthenticationsController#callback as HTML
863
- Parameters: {"code"=>"ec35c74ebefe0cb2c8a43cf083a492e974ffb26adb14c63f43e35fab9c2cc2ee", "state"=>"1e6e54162e7cae7c61953cbc8483045585d7c127f5199637"}
864
- Authenticating with gds_sso strategy
865
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
866
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
867
-  (0.1ms) begin transaction
868
- SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
869
-  (4.4ms) commit transaction
870
-  (0.1ms) begin transaction
871
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
872
-  (3.7ms) commit transaction
873
- Redirected to http://www.example-client.com/this_requires_signin_permission
874
- Completed 302 Found in 19ms (ActiveRecord: 9.8ms)
875
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
876
- Processing by ExampleController#this_requires_signin_permission as HTML
877
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
878
- Rendered text template (0.0ms)
879
- Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.4ms)
880
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
881
- Processing by ExampleController#this_requires_signin_permission as HTML
882
- Authenticating with gds_sso strategy
883
- Completed in 0ms (ActiveRecord: 0.0ms)
884
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
885
- Started GET "/auth/gds/callback?code=3797c7915f584a046e7a7eb8fd22cd49afa7291acd69216c4e6757c59c6ffab8&state=d3900aa72a456ce62aef7b93545b23c101db6046f004c1a2" for 127.0.0.1 at 2018-12-17 11:57:50 +0000
886
- Processing by AuthenticationsController#callback as HTML
887
- Parameters: {"code"=>"3797c7915f584a046e7a7eb8fd22cd49afa7291acd69216c4e6757c59c6ffab8", "state"=>"d3900aa72a456ce62aef7b93545b23c101db6046f004c1a2"}
888
- Authenticating with gds_sso strategy
889
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
890
-  (0.2ms) begin transaction
891
-  (0.1ms) commit transaction
892
-  (0.1ms) begin transaction
893
-  (0.1ms) commit transaction
894
- Redirected to http://www.example-client.com/this_requires_signin_permission
895
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
896
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
897
- Processing by ExampleController#this_requires_signin_permission as HTML
898
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
899
- Rendered text template (0.0ms)
900
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
901
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
449
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
450
+ Completed 200 OK in 113ms (Views: 0.7ms | ActiveRecord: 0.6ms | Allocations: 6800)
451
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
902
452
  Processing by ExampleController#restricted as HTML
903
453
  Authenticating with gds_sso strategy
904
- Completed in 1ms (ActiveRecord: 0.0ms)
905
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
906
- Started GET "/auth/gds/callback?code=95736180868cb9ad5943840033182bf44de41a0d59258ca61ffd821cd01b2007&state=77e2e89c91664026f42e02a369378ff309de85cd179bf9fb" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
454
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 118)
455
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
456
+ Started GET "/auth/gds/callback?code=b_2-Ib_r2oPjmZBVJNOIlRKR8KuTEsRD6FAPBlgj3uA&state=ef5ed429ff69d99cd311f3c998a730fea024b5bb42461073" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
907
457
  Processing by AuthenticationsController#callback as HTML
908
- Parameters: {"code"=>"95736180868cb9ad5943840033182bf44de41a0d59258ca61ffd821cd01b2007", "state"=>"77e2e89c91664026f42e02a369378ff309de85cd179bf9fb"}
458
+ Parameters: {"code"=>"b_2-Ib_r2oPjmZBVJNOIlRKR8KuTEsRD6FAPBlgj3uA", "state"=>"ef5ed429ff69d99cd311f3c998a730fea024b5bb42461073"}
909
459
  Authenticating with gds_sso strategy
910
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
911
-  (0.1ms) begin transaction
912
-  (0.2ms) commit transaction
913
-  (0.1ms) begin transaction
914
-  (0.1ms) commit transaction
460
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
461
+  (0.2ms) begin transaction
462
+ User Update (0.6ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", 0], ["id", 1]]
463
+  (5.7ms) commit transaction
915
464
  Redirected to http://www.example-client.com/restricted
916
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
917
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
465
+ Completed 302 Found in 19ms (ActiveRecord: 6.9ms | Allocations: 1273)
466
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
918
467
  Processing by ExampleController#restricted as HTML
919
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
920
- Rendered text template (0.0ms)
921
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
922
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
468
+ User Load (2.6ms) 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]]
469
+ Rendering text template
470
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
471
+ Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 2.6ms | Allocations: 778)
472
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
923
473
  Processing by ExampleController#restricted as HTML
924
474
  Authenticating with gds_sso strategy
925
- Completed in 0ms (ActiveRecord: 0.0ms)
926
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
927
- Started GET "/auth/gds/callback?code=e72c8f7ce94304401220f627156d37c31fb372742ac5979879ad4576a726b170&state=99b78d2c9a75f1effd75d7a0d2494bf58e612f0eb19e554f" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
475
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
476
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
477
+ Started GET "/auth/gds/callback?code=AJZBakZ1kYOAjgThoZP9jDQzffzNHapklcR02rTxEsY&state=70e7030a9f25bf91b727397b6b26e8bc55d1ab7eb3eb17a3" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
928
478
  Processing by AuthenticationsController#callback as HTML
929
- Parameters: {"code"=>"e72c8f7ce94304401220f627156d37c31fb372742ac5979879ad4576a726b170", "state"=>"99b78d2c9a75f1effd75d7a0d2494bf58e612f0eb19e554f"}
479
+ Parameters: {"code"=>"AJZBakZ1kYOAjgThoZP9jDQzffzNHapklcR02rTxEsY", "state"=>"70e7030a9f25bf91b727397b6b26e8bc55d1ab7eb3eb17a3"}
930
480
  Authenticating with gds_sso strategy
931
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
932
-  (0.1ms) begin transaction
933
-  (0.1ms) commit transaction
934
-  (0.1ms) begin transaction
935
-  (0.1ms) commit transaction
481
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
936
482
  Redirected to http://www.example-client.com/restricted
937
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
938
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
483
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms | Allocations: 1020)
484
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
939
485
  Processing by ExampleController#restricted as HTML
940
- 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"]]
941
- Rendered text template (0.0ms)
942
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
943
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
486
+ 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]]
487
+ Rendering text template
488
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
489
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 716)
490
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
944
491
  Processing by ExampleController#restricted as HTML
945
492
  Authenticating with gds_sso strategy
946
- Completed in 0ms (ActiveRecord: 0.0ms)
947
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
948
- Started GET "/auth/gds/callback?code=9316dc3d368fec2e32af9a6bc7d5e33be1814d281cd5c3f7a22a3cda2b8ca0f4&state=991adc69bbccb60d78a5e954f3cf210a1986f10291caba96" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
493
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
494
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:56 +0000
495
+ Started GET "/auth/gds/callback?code=DPCDsQu1AQQBnstzhyy8JQj49qACdapfJIWdPPri0f4&state=88752f4326da8a89f89eac02f30f2b38aaccf23d149ad603" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
949
496
  Processing by AuthenticationsController#callback as HTML
950
- Parameters: {"code"=>"9316dc3d368fec2e32af9a6bc7d5e33be1814d281cd5c3f7a22a3cda2b8ca0f4", "state"=>"991adc69bbccb60d78a5e954f3cf210a1986f10291caba96"}
497
+ Parameters: {"code"=>"DPCDsQu1AQQBnstzhyy8JQj49qACdapfJIWdPPri0f4", "state"=>"88752f4326da8a89f89eac02f30f2b38aaccf23d149ad603"}
951
498
  Authenticating with gds_sso strategy
952
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
953
-  (0.1ms) begin transaction
954
-  (0.1ms) commit transaction
955
-  (0.1ms) begin transaction
956
-  (0.1ms) commit transaction
499
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
957
500
  Redirected to http://www.example-client.com/restricted
958
- Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
959
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:51 +0000
501
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms | Allocations: 1016)
502
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
960
503
  Processing by ExampleController#restricted as HTML
961
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
962
- Rendered text template (0.0ms)
963
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
964
- Started GET "/" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
504
+ 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]]
505
+ Rendering text template
506
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
507
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 714)
508
+ Started GET "/" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
965
509
  Processing by ExampleController#index as HTML
966
- Rendered text template (0.0ms)
967
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
968
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
510
+ Rendering text template
511
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
512
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms | Allocations: 153)
513
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
514
+ Processing by ExampleController#this_requires_signin_permission as HTML
515
+ Authenticating with gds_sso strategy
516
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
517
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
518
+ Started GET "/auth/gds/callback?code=k-RDkHpeXDmdhstyHWuZ-Ow_UnlRhftWFB5Hmr19woo&state=42671e294792aec9bd0270d48a5c921f5119fe389c35a95c" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
519
+ Processing by AuthenticationsController#callback as HTML
520
+ Parameters: {"code"=>"k-RDkHpeXDmdhstyHWuZ-Ow_UnlRhftWFB5Hmr19woo", "state"=>"42671e294792aec9bd0270d48a5c921f5119fe389c35a95c"}
521
+ Authenticating with gds_sso strategy
522
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
523
+ Redirected to http://www.example-client.com/this_requires_signin_permission
524
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 1016)
525
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
526
+ Processing by ExampleController#this_requires_signin_permission as HTML
527
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
528
+ Rendering text template
529
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
530
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms | Allocations: 714)
531
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
532
+ Processing by ExampleController#this_requires_signin_permission as HTML
533
+ Authenticating with gds_sso strategy
534
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
535
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
536
+ Started GET "/auth/gds/callback?code=q5639lKIR09UopFgnm45-ZfwfHAiytUMJGvXZenppbQ&state=e7cddc284afd633a1da4cbbe6531e0bb0cbb306796328249" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
537
+ Processing by AuthenticationsController#callback as HTML
538
+ Parameters: {"code"=>"q5639lKIR09UopFgnm45-ZfwfHAiytUMJGvXZenppbQ", "state"=>"e7cddc284afd633a1da4cbbe6531e0bb0cbb306796328249"}
539
+ Authenticating with gds_sso strategy
540
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
541
+ Redirected to http://www.example-client.com/this_requires_signin_permission
542
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 1016)
543
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
544
+ Processing by ExampleController#this_requires_signin_permission as HTML
545
+ 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]]
546
+ Rendering text template
547
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
548
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.3ms | Allocations: 714)
549
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
969
550
  Processing by ExampleController#restricted as HTML
970
551
  Authenticating with gds_sso strategy
971
- Completed in 1ms (ActiveRecord: 0.0ms)
972
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
973
- Started GET "/auth/gds/callback?code=a570911d800e072254a1184405eb0ddd2e9d35058f4b59310b796010f147c9c3&state=e4edfaed5c3b2d335c053849760824eed62f435dbb3b5133" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
552
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
553
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:57 +0000
554
+ Started GET "/auth/gds/callback?code=N7bL-VXztK2wSG1Ggj72eOeXbR4t-IiNtNmvPpTDGAs&state=f0b15534380aeb9a3da9fee4d669204f5e206fe9ab5090e4" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
974
555
  Processing by AuthenticationsController#callback as HTML
975
- Parameters: {"code"=>"a570911d800e072254a1184405eb0ddd2e9d35058f4b59310b796010f147c9c3", "state"=>"e4edfaed5c3b2d335c053849760824eed62f435dbb3b5133"}
556
+ Parameters: {"code"=>"N7bL-VXztK2wSG1Ggj72eOeXbR4t-IiNtNmvPpTDGAs", "state"=>"f0b15534380aeb9a3da9fee4d669204f5e206fe9ab5090e4"}
976
557
  Authenticating with gds_sso strategy
977
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
978
-  (0.1ms) begin transaction
979
-  (0.1ms) commit transaction
980
-  (0.1ms) begin transaction
981
-  (0.1ms) commit transaction
558
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
982
559
  Redirected to http://www.example-client.com/restricted
983
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
984
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
560
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms | Allocations: 1016)
561
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
985
562
  Processing by ExampleController#restricted as HTML
986
- 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"]]
987
- Rendered text template (0.0ms)
988
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
989
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
990
-  (0.1ms) begin transaction
991
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
992
-  (6.8ms) commit transaction
993
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
563
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
564
+ Rendering text template
565
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
566
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms | Allocations: 714)
567
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
568
+  (0.2ms) begin transaction
569
+ User Update (0.6ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 1]]
570
+  (7.5ms) commit transaction
571
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
994
572
  Processing by ExampleController#restricted as HTML
995
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
573
+ 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]]
996
574
  Authenticating with gds_sso strategy
997
- Completed in 2ms (ActiveRecord: 0.3ms)
998
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
999
- Started GET "/auth/gds/callback?code=f13187952eb6228721ed981497b51b8e1732d03a2e924cf07e243eb48c4aabb1&state=24e9e27c97c29626ee8ac71b3d9045902a9d3069b490338d" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
575
+ Completed in 3ms (ActiveRecord: 0.3ms | Allocations: 583)
576
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
577
+ Started GET "/auth/gds/callback?code=7QHUtQfh2XG49CTFR8aw-2iTd6QOjfWBiWDrHihsE2Y&state=a559f084d4105bb1a40f327b63614cca5e0020555cfa08af" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1000
578
  Processing by AuthenticationsController#callback as HTML
1001
- Parameters: {"code"=>"f13187952eb6228721ed981497b51b8e1732d03a2e924cf07e243eb48c4aabb1", "state"=>"24e9e27c97c29626ee8ac71b3d9045902a9d3069b490338d"}
1002
- Authenticating with gds_sso strategy
1003
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1004
-  (0.1ms) begin transaction
1005
-  (0.1ms) commit transaction
1006
-  (0.1ms) begin transaction
1007
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1008
-  (4.9ms) commit transaction
579
+ Parameters: {"code"=>"7QHUtQfh2XG49CTFR8aw-2iTd6QOjfWBiWDrHihsE2Y", "state"=>"a559f084d4105bb1a40f327b63614cca5e0020555cfa08af"}
580
+ Authenticating with gds_sso strategy
581
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
582
+  (0.2ms) begin transaction
583
+ User Update (0.6ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 1]]
584
+  (6.5ms) commit transaction
1009
585
  Redirected to http://www.example-client.com/restricted
1010
- Completed 302 Found in 13ms (ActiveRecord: 5.8ms)
1011
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
586
+ Completed 302 Found in 16ms (ActiveRecord: 7.7ms | Allocations: 1226)
587
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1012
588
  Processing by ExampleController#restricted as HTML
1013
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1014
- Rendered text template (0.0ms)
1015
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1016
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
589
+ 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]]
590
+ Rendering text template
591
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
592
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 712)
593
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1017
594
  Processing by ExampleController#restricted as HTML
1018
595
  Authenticating with gds_sso strategy
1019
- Completed in 0ms (ActiveRecord: 0.0ms)
1020
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
1021
- Started GET "/auth/gds/callback?code=d125f591ab9076719712098298b83ea8778dba4cc93206c6a87b347b44066bea&state=85863db122a242dfd48ee6952e18b92f2efc702278403a89" for 127.0.0.1 at 2018-12-17 11:57:52 +0000
596
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
597
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
598
+ Started GET "/auth/gds/callback?code=xqlgPJm49_cEnbmq9W3ecIyz1-hRRCmwO8iOKM5Ldng&state=009439f00c662ca83b0bab98b996536e179293a5622ae9e7" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1022
599
  Processing by AuthenticationsController#callback as HTML
1023
- Parameters: {"code"=>"d125f591ab9076719712098298b83ea8778dba4cc93206c6a87b347b44066bea", "state"=>"85863db122a242dfd48ee6952e18b92f2efc702278403a89"}
600
+ Parameters: {"code"=>"xqlgPJm49_cEnbmq9W3ecIyz1-hRRCmwO8iOKM5Ldng", "state"=>"009439f00c662ca83b0bab98b996536e179293a5622ae9e7"}
1024
601
  Authenticating with gds_sso strategy
1025
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1026
-  (0.1ms) begin transaction
1027
-  (0.1ms) commit transaction
1028
-  (0.1ms) begin transaction
1029
-  (0.1ms) commit transaction
602
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1030
603
  Redirected to http://www.example-client.com/restricted
1031
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1032
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
1033
- Processing by ExampleController#restricted as HTML
1034
- 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"]]
1035
- Rendered text template (0.0ms)
1036
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1037
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
604
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 1016)
605
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1038
606
  Processing by ExampleController#restricted as HTML
1039
- Authenticating with gds_sso strategy
1040
- Completed in 1ms (ActiveRecord: 0.0ms)
1041
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
1042
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
607
+ 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]]
608
+ Rendering text template
609
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
610
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 714)
611
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:58 +0000
1043
612
  Processing by ExampleController#restricted as HTML
1044
613
  Authenticating with gds_sso strategy
1045
- Completed in 0ms (ActiveRecord: 0.0ms)
1046
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
1047
- Started GET "/auth/gds/callback?code=867704b4c36c94b44f0a189ab60121334428a3ea6dfdf9f1498397f4c214b76e&state=787ced8eea19c94fbcfa10ecfbf099ba96f37d17daf85b73" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
614
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 507)
615
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:57:58 +0000
616
+ Started GET "/auth/gds/callback?code=z1291mcVUg_s8ksaI-nNIokU7ECu3yv1YDNQiFa8i50&state=1ea28baeb6876edadccf890a879f7d369f750f9f3f27b31f" for 127.0.0.1 at 2020-06-13 11:57:58 +0000
1048
617
  Processing by AuthenticationsController#callback as HTML
1049
- Parameters: {"code"=>"867704b4c36c94b44f0a189ab60121334428a3ea6dfdf9f1498397f4c214b76e", "state"=>"787ced8eea19c94fbcfa10ecfbf099ba96f37d17daf85b73"}
618
+ Parameters: {"code"=>"z1291mcVUg_s8ksaI-nNIokU7ECu3yv1YDNQiFa8i50", "state"=>"1ea28baeb6876edadccf890a879f7d369f750f9f3f27b31f"}
1050
619
  Authenticating with gds_sso strategy
1051
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1052
-  (0.1ms) begin transaction
1053
-  (0.1ms) commit transaction
1054
-  (0.1ms) begin transaction
1055
-  (0.1ms) commit transaction
620
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1056
621
  Redirected to http://www.example-client.com/restricted
1057
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1058
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
622
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms | Allocations: 1218)
623
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:58 +0000
1059
624
  Processing by ExampleController#restricted as HTML
1060
- 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"]]
1061
- Rendered text template (0.0ms)
1062
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1063
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 07:52:53 +0000
1064
- Processing by ExampleController#restricted as HTML
1065
- 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"]]
1066
- Rendered text template (0.0ms)
1067
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1068
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
625
+ 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]]
626
+ Rendering text template
627
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
628
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 939)
629
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
1069
630
  Processing by ExampleController#restricted as HTML
1070
631
  Authenticating with gds_sso strategy
1071
- Completed in 1ms (ActiveRecord: 0.0ms)
1072
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
1073
- Started GET "/auth/gds/callback?code=d0d9b7e6b9c5cdeb9cd0c56fa8913a2140954c8b401750a569f36faa3d3079f3&state=db9500998f351a3a757daffc35bd12a549bfd3d700879025" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
632
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
633
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:58 +0000
634
+ Started GET "/auth/gds/callback?code=aaiEaWwk7_R0hXY0cdRRKscYM5RoxBuKEeSzkJzMrbo&state=5986582c6f804fbf03b80e2b1c92ff6cf3011ad9e32474f7" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
1074
635
  Processing by AuthenticationsController#callback as HTML
1075
- Parameters: {"code"=>"d0d9b7e6b9c5cdeb9cd0c56fa8913a2140954c8b401750a569f36faa3d3079f3", "state"=>"db9500998f351a3a757daffc35bd12a549bfd3d700879025"}
636
+ Parameters: {"code"=>"aaiEaWwk7_R0hXY0cdRRKscYM5RoxBuKEeSzkJzMrbo", "state"=>"5986582c6f804fbf03b80e2b1c92ff6cf3011ad9e32474f7"}
1076
637
  Authenticating with gds_sso strategy
1077
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1078
-  (0.1ms) begin transaction
1079
-  (0.1ms) commit transaction
1080
-  (0.1ms) begin transaction
1081
-  (0.1ms) commit transaction
638
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1082
639
  Redirected to http://www.example-client.com/restricted
1083
- Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
1084
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
640
+ Completed 302 Found in 31ms (ActiveRecord: 0.3ms | Allocations: 1020)
641
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
1085
642
  Processing by ExampleController#restricted as HTML
1086
- 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"]]
1087
- Rendered text template (0.0ms)
1088
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1089
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
643
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
644
+ Rendering text template
645
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
646
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms | Allocations: 716)
647
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:57:59 +0000
1090
648
  Processing by ExampleController#restricted as HTML
1091
649
  Authenticating with gds_sso strategy
1092
- Completed in 1ms (ActiveRecord: 0.0ms)
1093
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
1094
- Started GET "/auth/gds/callback?code=799cd6b510f4c2f7f319170c0c9be5898aad7530a4f2a5f6ead5ed242ad98294&state=0a20322216cf660570a492710e303e1396d6d80ec4d20ca0" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
650
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 507)
651
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:57:59 +0000
652
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
653
+ Processing by ExampleController#restricted as HTML
654
+ Authenticating with gds_sso strategy
655
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 117)
656
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
657
+ Started GET "/auth/gds/callback?code=CZGHcjZyGZDtRxEXepFZBkZn6RSGHZ8qgoJuFElI0AA&state=892b5375f170b477e9da34b832557ee1532a8fa048ed8e81" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
1095
658
  Processing by AuthenticationsController#callback as HTML
1096
- Parameters: {"code"=>"799cd6b510f4c2f7f319170c0c9be5898aad7530a4f2a5f6ead5ed242ad98294", "state"=>"0a20322216cf660570a492710e303e1396d6d80ec4d20ca0"}
659
+ Parameters: {"code"=>"CZGHcjZyGZDtRxEXepFZBkZn6RSGHZ8qgoJuFElI0AA", "state"=>"892b5375f170b477e9da34b832557ee1532a8fa048ed8e81"}
1097
660
  Authenticating with gds_sso strategy
1098
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1099
-  (0.1ms) begin transaction
1100
-  (0.1ms) commit transaction
1101
-  (0.1ms) begin transaction
1102
-  (0.1ms) commit transaction
661
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1103
662
  Redirected to http://www.example-client.com/restricted
1104
- Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
1105
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:02:53 +0000
663
+ Completed 302 Found in 8ms (ActiveRecord: 0.4ms | Allocations: 1016)
664
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
1106
665
  Processing by ExampleController#restricted as HTML
1107
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1108
- Rendered text template (0.0ms)
1109
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1110
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:53 +0000
1111
- Processing by ExampleController#restricted as JSON
1112
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1113
-  (0.1ms) begin transaction
1114
- SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 11]]
1115
-  (13.4ms) commit transaction
1116
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1117
-  (0.2ms) begin transaction
1118
-  (0.1ms) commit transaction
1119
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1120
-  (0.1ms) begin transaction
1121
-  (0.1ms) commit transaction
1122
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1123
-  (0.1ms) begin transaction
1124
-  (0.1ms) commit transaction
1125
-  (0.1ms) begin transaction
1126
-  (0.1ms) commit transaction
1127
- Rendered text template (0.0ms)
1128
- Completed 200 OK in 151ms (Views: 0.4ms | ActiveRecord: 15.5ms)
1129
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:57:54 +0000
1130
- Processing by ExampleController#this_requires_signin_permission as JSON
1131
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1132
-  (0.2ms) begin transaction
1133
-  (0.1ms) commit transaction
1134
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1135
-  (0.1ms) begin transaction
1136
-  (0.1ms) commit transaction
1137
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1138
-  (0.1ms) begin transaction
1139
-  (0.1ms) commit transaction
1140
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1141
-  (0.1ms) begin transaction
1142
-  (0.1ms) commit transaction
1143
-  (0.1ms) begin transaction
1144
-  (0.1ms) commit transaction
1145
- Rendered text template (0.0ms)
1146
- Completed 200 OK in 138ms (Views: 0.4ms | ActiveRecord: 1.5ms)
1147
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:54 +0000
1148
- Processing by ExampleController#restricted as JSON
1149
- Completed in 45ms (ActiveRecord: 0.0ms)
1150
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:54 +0000
1151
- Processing by ExampleController#restricted as JSON
1152
- Completed in 26ms (ActiveRecord: 0.0ms)
1153
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:57:54 +0000
666
+ 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]]
667
+ Rendering text template
668
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
669
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 714)
670
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:47:59 +0000
671
+ Processing by ExampleController#restricted as HTML
672
+ 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]]
673
+ Rendering text template
674
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
675
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 937)
676
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:59 +0000
1154
677
  Processing by ExampleController#restricted as HTML
1155
678
  Authenticating with gds_sso strategy
1156
- Completed in 0ms (ActiveRecord: 0.0ms)
1157
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1158
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1159
-  (0.1ms) begin transaction
1160
- SQL (0.5ms) 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]]
1161
-  (6.7ms) commit transaction
1162
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1163
-  (0.1ms) begin transaction
1164
-  (0.1ms) commit transaction
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.1ms) begin transaction
1167
- SQL (0.5ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "7967"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1168
-  (5.2ms) commit transaction
1169
-  (0.1ms) begin transaction
1170
- SQL (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
1171
-  (3.9ms) commit transaction
1172
-  (0.4ms) DROP TABLE IF EXISTS "users"
1173
-  (2.5ms) SELECT sqlite_version(*)
1174
-  (12.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')
1175
-  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1176
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
679
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 119)
680
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1177
681
   (0.2ms) begin transaction
1178
- ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-12-17 11:58:02.580580"], ["updated_at", "2018-12-17 11:58:02.580580"]]
1179
-  (4.8ms) commit transaction
1180
-  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1181
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
682
+ User Create (0.7ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "3196"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
683
+  (9.5ms) commit transaction
684
+  (0.2ms) begin transaction
685
+ User Update (0.6ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 2]]
686
+  (6.6ms) commit transaction
687
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
688
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
689
+  (0.1ms) begin transaction
690
+ User Create (0.6ms) 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]]
691
+  (6.6ms) commit transaction
692
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
693
+  (0.2ms) begin transaction
694
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38009"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
695
+  (7.0ms) commit transaction
696
+  (0.1ms) begin transaction
697
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39701"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
698
+  (7.9ms) commit transaction
699
+ Processing by Api::UserController#update as HTML
700
+ Parameters: {"uid"=>"a1s2d38009"}
701
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38009"], ["LIMIT", 1]]
702
+  (0.1ms) begin transaction
703
+ User Update (0.6ms) 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]]
704
+  (7.3ms) commit transaction
705
+ Completed 200 OK in 14ms (ActiveRecord: 8.4ms | Allocations: 1323)
706
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
707
+  (0.2ms) begin transaction
708
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34812"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
709
+  (13.9ms) commit transaction
710
+  (0.1ms) begin transaction
711
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35460"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
712
+  (16.3ms) commit transaction
713
+ Processing by Api::UserController#update as HTML
714
+ Parameters: {"uid"=>"a1s2d34812"}
715
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
716
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
717
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 1.7ms | Allocations: 263)
718
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
719
+ Completed 403 Forbidden in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms | Allocations: 1558)
720
+  (0.2ms) begin transaction
721
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33055"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
722
+  (7.9ms) commit transaction
723
+  (0.1ms) begin transaction
724
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32228"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
725
+  (5.4ms) commit transaction
726
+ Processing by Api::UserController#reauth as HTML
727
+ Parameters: {"uid"=>"a1s2d33055"}
728
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33055"], ["LIMIT", 1]]
729
+  (0.1ms) begin transaction
730
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 8]]
731
+  (6.6ms) commit transaction
732
+ Completed 200 OK in 12ms (ActiveRecord: 7.6ms | Allocations: 920)
733
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
734
+  (0.1ms) begin transaction
735
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37302"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
736
+  (10.9ms) commit transaction
737
+  (0.1ms) begin transaction
738
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39587"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
739
+  (5.5ms) commit transaction
740
+ Processing by Api::UserController#reauth as HTML
741
+ Parameters: {"uid"=>"nonexistent-user"}
742
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
743
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms | Allocations: 521)
744
+  (0.1ms) begin transaction
745
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33190"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
746
+  (15.2ms) commit transaction
747
+  (0.1ms) begin transaction
748
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39267"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
749
+  (4.9ms) commit transaction
750
+ Processing by Api::UserController#reauth as HTML
751
+ Parameters: {"uid"=>"a1s2d33190"}
752
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
753
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
754
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.4ms | Allocations: 56)
755
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
756
+ Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 514)
757
+  (0.1ms) DROP TABLE IF EXISTS "users"
758
+  (1.2ms) SELECT sqlite_version(*)
759
+  (17.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')
760
+  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
761
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
762
+  (0.1ms) begin transaction
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-06-12 15:53:04.271891"], ["updated_at", "2020-06-12 15:53:04.271891"]]
764
+  (5.4ms) commit transaction
765
+  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
766
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
767
+  (0.0ms) begin transaction
768
+  (0.1ms) commit transaction
769
+  (0.0ms) begin transaction
770
+ User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37361"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
771
+  (10.4ms) commit transaction
772
+  (0.0ms) begin transaction
773
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31973"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
774
+  (6.9ms) commit transaction
775
+ Processing by Api::UserController#reauth as HTML
776
+ Parameters: {"uid"=>"nonexistent-user"}
777
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
778
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
779
+  (0.1ms) begin transaction
780
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37358"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
781
+  (6.6ms) commit transaction
782
+  (0.0ms) begin transaction
783
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3930"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
784
+  (6.1ms) commit transaction
785
+ Processing by Api::UserController#reauth as HTML
786
+ Parameters: {"uid"=>"a1s2d37358"}
787
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
788
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
789
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
790
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
791
+ Completed 403 Forbidden in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
792
+  (0.1ms) begin transaction
793
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3777"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
794
+  (50.2ms) commit transaction
795
+  (0.1ms) begin transaction
796
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32893"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
797
+  (4.4ms) commit transaction
798
+ Processing by Api::UserController#reauth as HTML
799
+ Parameters: {"uid"=>"a1s2d3777"}
800
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3777"], ["LIMIT", 1]]
801
+  (0.0ms) begin transaction
802
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
803
+  (14.2ms) commit transaction
804
+ Completed 200 OK in 17ms (ActiveRecord: 14.6ms)
805
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
806
+  (0.1ms) begin transaction
807
+ User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37594"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
808
+  (13.7ms) commit transaction
809
+  (0.1ms) begin transaction
810
+ User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31086"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
811
+  (36.2ms) commit transaction
812
+ Processing by Api::UserController#update as HTML
813
+ Parameters: {"uid"=>"a1s2d37594"}
814
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37594"], ["LIMIT", 1]]
815
+  (0.1ms) begin transaction
816
+ User Update (0.5ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 7]]
817
+  (10.1ms) commit transaction
818
+ Completed 200 OK in 16ms (ActiveRecord: 10.9ms)
819
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
820
+  (0.1ms) begin transaction
821
+ User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32536"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
822
+  (10.6ms) commit transaction
823
+  (0.1ms) begin transaction
824
+ User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35031"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
825
+  (8.3ms) commit transaction
826
+ Processing by Api::UserController#update as HTML
827
+ Parameters: {"uid"=>"a1s2d32536"}
828
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
829
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
830
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
831
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
832
+ Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
833
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
834
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
835
+  (0.1ms) begin transaction
836
+ User Create (0.5ms) 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]]
837
+  (7.5ms) commit transaction
838
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1182
839
   (0.1ms) begin transaction
1183
840
   (0.1ms) commit transaction
1184
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
841
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1185
842
   (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", "5428"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1187
-  (3.8ms) commit transaction
843
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "7241"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
844
+  (7.5ms) commit transaction
1188
845
   (0.1ms) begin transaction
1189
- User Update (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
1190
-  (4.2ms) commit transaction
1191
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:03 +0000
1192
- Processing by ExampleController#restricted as HTML
1193
- Authenticating with gds_sso strategy
1194
- Completed in 10ms (ActiveRecord: 0.0ms)
1195
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:03 +0000
846
+ User Update (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
847
+  (5.9ms) commit transaction
848
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
1196
849
  Processing by ExampleController#restricted as JSON
1197
- Completed in 51ms (ActiveRecord: 0.0ms)
1198
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:03 +0000
850
+ Completed in 61ms (ActiveRecord: 0.0ms)
851
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
1199
852
  Processing by ExampleController#restricted as JSON
1200
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
853
+ Completed in 41ms (ActiveRecord: 0.0ms)
854
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
855
+ Processing by ExampleController#this_requires_signin_permission as JSON
856
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1201
857
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1202
-  (0.1ms) begin transaction
1203
- User Create (0.6ms) 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]]
1204
-  (4.8ms) commit transaction
1205
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
858
+  (0.2ms) begin transaction
859
+ User Create (0.7ms) 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]]
860
+  (6.1ms) commit transaction
861
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1206
862
   (0.1ms) begin transaction
1207
863
   (0.1ms) commit transaction
1208
864
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
@@ -1212,367 +868,645 @@ Processing by ExampleController#restricted as JSON
1212
868
   (0.1ms) begin transaction
1213
869
   (0.1ms) commit transaction
1214
870
   (0.1ms) begin transaction
1215
- User Update (0.8ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1216
-  (3.7ms) commit transaction
871
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
872
+  (5.2ms) commit transaction
1217
873
  Rendering text template
1218
874
  Rendered text template (0.0ms)
1219
- Completed 200 OK in 150ms (Views: 5.4ms | ActiveRecord: 12.1ms)
1220
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:58:03 +0000
1221
- Processing by ExampleController#this_requires_signin_permission as JSON
1222
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1223
-  (0.1ms) begin transaction
875
+ Completed 200 OK in 132ms (Views: 2.9ms | ActiveRecord: 14.6ms)
876
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
877
+ Processing by ExampleController#restricted as JSON
878
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
879
+  (0.2ms) begin transaction
1224
880
   (0.1ms) commit transaction
1225
881
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1226
882
   (0.1ms) begin transaction
1227
883
   (0.1ms) commit transaction
1228
884
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1229
885
   (0.1ms) begin transaction
1230
-  (0.2ms) commit transaction
886
+  (0.1ms) commit transaction
1231
887
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1232
-  (0.1ms) begin transaction
888
+  (0.2ms) begin transaction
1233
889
   (0.1ms) commit transaction
1234
890
   (0.1ms) begin transaction
1235
891
   (0.1ms) commit transaction
1236
892
  Rendering text template
1237
893
  Rendered text template (0.0ms)
1238
- Completed 200 OK in 128ms (Views: 0.5ms | ActiveRecord: 1.7ms)
1239
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1240
- Processing by ExampleController#restricted as JSON
1241
- Completed in 32ms (ActiveRecord: 0.0ms)
1242
- Started GET "/" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1243
- Processing by ExampleController#index as HTML
1244
- Rendering text template
1245
- Rendered text template (0.0ms)
1246
- Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1247
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1248
- Processing by ExampleController#this_requires_signin_permission as HTML
894
+ Completed 200 OK in 112ms (Views: 0.5ms | ActiveRecord: 1.5ms)
895
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
896
+ Processing by ExampleController#restricted as HTML
1249
897
  Authenticating with gds_sso strategy
1250
- Completed in 0ms (ActiveRecord: 0.0ms)
1251
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1252
- Started GET "/auth/gds/callback?code=d7ea5f8b0da7fc8ad9fde4d0d11a740925477b4147c9f3c8a6d8681ced196898&state=0cf580678da3643f907df92e81f8b582234719066ade43da" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
898
+ Completed in 1ms (ActiveRecord: 0.0ms)
899
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
900
+ Started GET "/auth/gds/callback?code=bjI_ceXsizPvpTz1U0YSB4Cwt9fKMxXZWQJaDDqfNng&state=e698ab11f0a258b5a4c69d8cb4435400168b2eae2be9c8a4" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
1253
901
  Processing by AuthenticationsController#callback as HTML
1254
- Parameters: {"code"=>"d7ea5f8b0da7fc8ad9fde4d0d11a740925477b4147c9f3c8a6d8681ced196898", "state"=>"0cf580678da3643f907df92e81f8b582234719066ade43da"}
902
+ Parameters: {"code"=>"bjI_ceXsizPvpTz1U0YSB4Cwt9fKMxXZWQJaDDqfNng", "state"=>"e698ab11f0a258b5a4c69d8cb4435400168b2eae2be9c8a4"}
1255
903
  Authenticating with gds_sso strategy
1256
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
904
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1257
905
   (0.1ms) begin transaction
1258
- User Update (1.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
1259
-  (6.4ms) commit transaction
906
+ User Update (0.5ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 13]]
907
+  (7.0ms) commit transaction
1260
908
   (0.1ms) begin transaction
1261
909
   (0.1ms) commit transaction
1262
- Redirected to http://www.example-client.com/this_requires_signin_permission
1263
- Completed 302 Found in 15ms (ActiveRecord: 8.5ms)
1264
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1265
- Processing by ExampleController#this_requires_signin_permission as HTML
1266
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
910
+ Redirected to http://www.example-client.com/restricted
911
+ Completed 302 Found in 15ms (ActiveRecord: 8.2ms)
912
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
913
+ Processing by ExampleController#restricted as HTML
914
+ 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]]
1267
915
  Rendering text template
1268
916
  Rendered text template (0.0ms)
1269
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1270
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1271
- Processing by ExampleController#this_requires_signin_permission as HTML
917
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
918
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
919
+ Processing by ExampleController#restricted as HTML
1272
920
  Authenticating with gds_sso strategy
1273
921
  Completed in 0ms (ActiveRecord: 0.0ms)
1274
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1275
- Started GET "/auth/gds/callback?code=a1f9a5114dbae6122402e042369f0aec89c3c28ea2691831f4e1c5bc90749b4c&state=b79596cf89733b80667dd5881b1f6229dde5f38b251b0518" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
922
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
923
+ Started GET "/auth/gds/callback?code=6UF383V2LfNJLXSSjk-vOupjhyRqkB2sfBysq3BlvvI&state=8dc485e29051ccdbe8f96311ef12c46ab663d1888646cd34" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
1276
924
  Processing by AuthenticationsController#callback as HTML
1277
- Parameters: {"code"=>"a1f9a5114dbae6122402e042369f0aec89c3c28ea2691831f4e1c5bc90749b4c", "state"=>"b79596cf89733b80667dd5881b1f6229dde5f38b251b0518"}
925
+ Parameters: {"code"=>"6UF383V2LfNJLXSSjk-vOupjhyRqkB2sfBysq3BlvvI", "state"=>"8dc485e29051ccdbe8f96311ef12c46ab663d1888646cd34"}
1278
926
  Authenticating with gds_sso strategy
1279
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
927
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1280
928
   (0.1ms) begin transaction
1281
929
   (0.1ms) commit transaction
1282
930
   (0.1ms) begin transaction
1283
931
   (0.1ms) commit transaction
1284
- Redirected to http://www.example-client.com/this_requires_signin_permission
1285
- Completed 302 Found in 15ms (ActiveRecord: 0.9ms)
1286
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1287
- Processing by ExampleController#this_requires_signin_permission as HTML
1288
- 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]]
932
+ Redirected to http://www.example-client.com/restricted
933
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
934
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
935
+ Processing by ExampleController#restricted as HTML
936
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1289
937
  Rendering text template
1290
938
  Rendered text template (0.0ms)
1291
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1292
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
939
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
940
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
1293
941
  Processing by ExampleController#restricted as HTML
1294
942
  Authenticating with gds_sso strategy
1295
943
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:04 +0000
1297
- Started GET "/auth/gds/callback?code=403cb7b7ba32a8732a0004d087d32917cb918ee91722033f1797271df2896f47&state=5cf8297e19b963989029258e42f7c96cfe1ba15a77930850" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
944
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
945
+ Started GET "/auth/gds/callback?code=8Yu6eBcuRtDZstiqQJq9D21l_Tzye552Eyl7G6bphMI&state=27e8d11cbed016081d0028122b0bc5b0d9fb0a03cd5ed66f" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
1298
946
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"403cb7b7ba32a8732a0004d087d32917cb918ee91722033f1797271df2896f47", "state"=>"5cf8297e19b963989029258e42f7c96cfe1ba15a77930850"}
947
+ Parameters: {"code"=>"8Yu6eBcuRtDZstiqQJq9D21l_Tzye552Eyl7G6bphMI", "state"=>"27e8d11cbed016081d0028122b0bc5b0d9fb0a03cd5ed66f"}
1300
948
  Authenticating with gds_sso strategy
1301
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
949
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
950
   (0.1ms) begin transaction
1303
951
   (0.1ms) commit transaction
1304
952
   (0.1ms) begin transaction
1305
953
   (0.1ms) commit transaction
1306
954
  Redirected to http://www.example-client.com/restricted
1307
- Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
1308
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
955
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
956
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
1309
957
  Processing by ExampleController#restricted as HTML
1310
- User Load (0.6ms) 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]]
958
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1311
959
  Rendering text template
1312
960
  Rendered text template (0.0ms)
1313
- Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1314
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1315
- Processing by ExampleController#restricted as HTML
961
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
962
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
963
+ Processing by ExampleController#this_requires_signin_permission as HTML
1316
964
  Authenticating with gds_sso strategy
1317
- Completed in 1ms (ActiveRecord: 0.0ms)
1318
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1319
- Started GET "/auth/gds/callback?code=c48fd758f5061d4e82482c719046dc5a14c7838af8f3d348375d1cd854ba7124&state=092ff1e850766774edd599ecb1165f16da1d5f9bfeeb96d9" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
965
+ Completed in 0ms (ActiveRecord: 0.0ms)
966
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:06 +0000
967
+ Started GET "/auth/gds/callback?code=FHDMxIdFF5ZsScwzPVp_AhyI2xtEZlMnwVnRI37mE4g&state=cad6735ea6598ad5d31fadda0e445da56e0118e68e17b06c" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1320
968
  Processing by AuthenticationsController#callback as HTML
1321
- Parameters: {"code"=>"c48fd758f5061d4e82482c719046dc5a14c7838af8f3d348375d1cd854ba7124", "state"=>"092ff1e850766774edd599ecb1165f16da1d5f9bfeeb96d9"}
969
+ Parameters: {"code"=>"FHDMxIdFF5ZsScwzPVp_AhyI2xtEZlMnwVnRI37mE4g", "state"=>"cad6735ea6598ad5d31fadda0e445da56e0118e68e17b06c"}
1322
970
  Authenticating with gds_sso strategy
1323
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
971
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
972
   (0.1ms) begin transaction
1325
-  (0.5ms) commit transaction
973
+  (0.1ms) commit transaction
1326
974
   (0.1ms) begin transaction
1327
975
   (0.1ms) commit transaction
1328
- Redirected to http://www.example-client.com/restricted
1329
- Completed 302 Found in 11ms (ActiveRecord: 1.3ms)
1330
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1331
- Processing by ExampleController#restricted as HTML
1332
- 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]]
976
+ Redirected to http://www.example-client.com/this_requires_signin_permission
977
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
978
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
979
+ Processing by ExampleController#this_requires_signin_permission as HTML
980
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1333
981
  Rendering text template
1334
982
  Rendered text template (0.0ms)
1335
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1336
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1337
- Processing by ExampleController#restricted as HTML
983
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
984
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
985
+ Processing by ExampleController#this_requires_signin_permission as HTML
1338
986
  Authenticating with gds_sso strategy
1339
- Completed in 0ms (ActiveRecord: 0.0ms)
1340
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1341
- Started GET "/auth/gds/callback?code=815b8682bac858fdba6c6482387f92b6974a76a762a0668d9538bc91a70b7827&state=b38c37ef72112d0f85da86c24bdb3c1a2ced938d0f0f0ae8" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
987
+ Completed in 2ms (ActiveRecord: 0.0ms)
988
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
989
+ Started GET "/auth/gds/callback?code=SVLWJfMVq0vmSYJMoQvqkYLBeq_qU27ZR8c0Brx5D_c&state=96b0ce01c9307651dbbb7b78701d8fb5d53d402320f6c877" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1342
990
  Processing by AuthenticationsController#callback as HTML
1343
- Parameters: {"code"=>"815b8682bac858fdba6c6482387f92b6974a76a762a0668d9538bc91a70b7827", "state"=>"b38c37ef72112d0f85da86c24bdb3c1a2ced938d0f0f0ae8"}
991
+ Parameters: {"code"=>"SVLWJfMVq0vmSYJMoQvqkYLBeq_qU27ZR8c0Brx5D_c", "state"=>"96b0ce01c9307651dbbb7b78701d8fb5d53d402320f6c877"}
1344
992
  Authenticating with gds_sso strategy
1345
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1346
-  (0.1ms) begin transaction
993
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
994
+  (0.2ms) begin transaction
1347
995
   (0.1ms) commit transaction
1348
996
   (0.1ms) begin transaction
1349
997
   (0.1ms) commit transaction
1350
- Redirected to http://www.example-client.com/restricted
1351
- Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
1352
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1353
- Processing by ExampleController#restricted as HTML
1354
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
998
+ Redirected to http://www.example-client.com/this_requires_signin_permission
999
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
1000
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1001
+ Processing by ExampleController#this_requires_signin_permission as HTML
1002
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1355
1003
  Rendering text template
1356
1004
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1005
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
1006
+ Started GET "/" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1007
+ Processing by ExampleController#index as HTML
1008
+ Rendering text template
1009
+ Rendered text template (0.0ms)
1010
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1011
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1359
1012
  Processing by ExampleController#restricted as HTML
1360
1013
  Authenticating with gds_sso strategy
1361
1014
  Completed in 0ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:05 +0000
1363
- Started GET "/auth/gds/callback?code=b34d9b33ee98f6e17bdaa8b7b23046e699d9b35800f9ef5b50870097cb4198d6&state=ba26103d1d61abb5ec5134c928635cb7380feee0ee271d52" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1015
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1016
+ Started GET "/auth/gds/callback?code=1J6HGaqkvp3MFCsjQCxbIQqjht8ofLBCnPISK26EQog&state=993f0c8343a134923faeb160a904d98eb4c06abc543d1f5c" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1364
1017
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"b34d9b33ee98f6e17bdaa8b7b23046e699d9b35800f9ef5b50870097cb4198d6", "state"=>"ba26103d1d61abb5ec5134c928635cb7380feee0ee271d52"}
1018
+ Parameters: {"code"=>"1J6HGaqkvp3MFCsjQCxbIQqjht8ofLBCnPISK26EQog", "state"=>"993f0c8343a134923faeb160a904d98eb4c06abc543d1f5c"}
1366
1019
  Authenticating with gds_sso strategy
1367
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
-  (0.2ms) begin transaction
1020
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1021
+  (0.1ms) begin transaction
1369
1022
   (0.1ms) commit transaction
1370
1023
   (0.1ms) begin transaction
1371
1024
   (0.1ms) commit transaction
1372
1025
  Redirected to http://www.example-client.com/restricted
1373
- Completed 302 Found in 16ms (ActiveRecord: 1.0ms)
1374
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1375
- Processing by ExampleController#restricted as HTML
1376
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1377
- Rendering text template
1378
- Rendered text template (0.0ms)
1379
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1380
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 07:53:06 +0000
1026
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1027
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1381
1028
  Processing by ExampleController#restricted as HTML
1382
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1029
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1383
1030
  Rendering text template
1384
1031
  Rendered text template (0.0ms)
1385
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1386
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1032
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1033
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1034
+  (0.3ms) begin transaction
1035
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1036
+  (7.3ms) commit transaction
1037
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1387
1038
  Processing by ExampleController#restricted as HTML
1039
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1388
1040
  Authenticating with gds_sso strategy
1389
- Completed in 0ms (ActiveRecord: 0.0ms)
1390
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1391
- Started GET "/auth/gds/callback?code=3b1bfbca8fc3aa59826be968f577301d496cb0c8619bdf1e6285dc932b1349d2&state=123028ddf4ab42eee05846d0ca006220f5232f425512ba01" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1041
+ Completed in 2ms (ActiveRecord: 0.3ms)
1042
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:07 +0000
1043
+ Started GET "/auth/gds/callback?code=0x1W0ttUBAP8Aik9xYzUqLZUFJ3vqI5gNlbRYFY1ino&state=ee6515ecfaf837dc2b27cbdf8e370ed833b57d42c55949d0" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1392
1044
  Processing by AuthenticationsController#callback as HTML
1393
- Parameters: {"code"=>"3b1bfbca8fc3aa59826be968f577301d496cb0c8619bdf1e6285dc932b1349d2", "state"=>"123028ddf4ab42eee05846d0ca006220f5232f425512ba01"}
1045
+ Parameters: {"code"=>"0x1W0ttUBAP8Aik9xYzUqLZUFJ3vqI5gNlbRYFY1ino", "state"=>"ee6515ecfaf837dc2b27cbdf8e370ed833b57d42c55949d0"}
1394
1046
  Authenticating with gds_sso strategy
1395
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1047
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1396
1048
   (0.1ms) begin transaction
1397
1049
   (0.1ms) commit transaction
1398
1050
   (0.1ms) begin transaction
1399
-  (0.1ms) commit transaction
1051
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1052
+  (6.7ms) commit transaction
1400
1053
  Redirected to http://www.example-client.com/restricted
1401
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1402
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1054
+ Completed 302 Found in 15ms (ActiveRecord: 7.9ms)
1055
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1403
1056
  Processing by ExampleController#restricted as HTML
1404
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1057
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1405
1058
  Rendering text template
1406
1059
  Rendered text template (0.0ms)
1407
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1408
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:03:06 +0000
1060
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1061
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1409
1062
  Processing by ExampleController#restricted as HTML
1410
1063
  Authenticating with gds_sso strategy
1411
1064
  Completed in 1ms (ActiveRecord: 0.0ms)
1412
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:03:06 +0000
1413
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1414
- Processing by ExampleController#restricted as HTML
1415
- Authenticating with gds_sso strategy
1416
- Completed in 0ms (ActiveRecord: 0.0ms)
1417
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:06 +0000
1418
- Started GET "/auth/gds/callback?code=1cd79e129b200730f6003444e65644ef79f033fed5c16b20dd89158faf32bf18&state=c87496827f458600db2e6b52da346055090f749103f4619a" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1065
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1066
+ Started GET "/auth/gds/callback?code=3n8AMpshXipGkCHo4mwdhXlVJOjYeRcHfK16hOHtjFo&state=4cb08cbedb17637a81ffde266b19c5329d7bee83d0c5fa7c" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1419
1067
  Processing by AuthenticationsController#callback as HTML
1420
- Parameters: {"code"=>"1cd79e129b200730f6003444e65644ef79f033fed5c16b20dd89158faf32bf18", "state"=>"c87496827f458600db2e6b52da346055090f749103f4619a"}
1068
+ Parameters: {"code"=>"3n8AMpshXipGkCHo4mwdhXlVJOjYeRcHfK16hOHtjFo", "state"=>"4cb08cbedb17637a81ffde266b19c5329d7bee83d0c5fa7c"}
1421
1069
  Authenticating with gds_sso strategy
1422
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1423
-  (0.1ms) begin transaction
1424
-  (0.1ms) commit transaction
1070
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1425
1071
   (0.1ms) begin transaction
1072
+  (0.2ms) commit transaction
1073
+  (0.2ms) begin transaction
1426
1074
   (0.1ms) commit transaction
1427
1075
  Redirected to http://www.example-client.com/restricted
1428
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1429
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1076
+ Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
1077
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1430
1078
  Processing by ExampleController#restricted as HTML
1431
- 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]]
1079
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1432
1080
  Rendering text template
1433
1081
  Rendered text template (0.0ms)
1434
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1435
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:03:07 +0000
1082
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
1083
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1436
1084
  Processing by ExampleController#restricted as HTML
1437
1085
  Authenticating with gds_sso strategy
1438
1086
  Completed in 1ms (ActiveRecord: 0.0ms)
1439
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-18 08:03:07 +0000
1440
- Started GET "/auth/gds/callback?code=c82a65323b75bb4c40f909dd501805b98e4ec5dbc18c2dca59927ad94cfab785&state=07b3c1178a18735faec05c054a1c2a5fc2fa87de5da3105c" for 127.0.0.1 at 2018-12-18 08:03:07 +0000
1087
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1088
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1089
+ Processing by ExampleController#restricted as HTML
1090
+ Authenticating with gds_sso strategy
1091
+ Completed in 0ms (ActiveRecord: 0.0ms)
1092
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1093
+ Started GET "/auth/gds/callback?code=3F14h1SKW91GoJr6E0tRWSoav6dac_d2w12bKwyQoaY&state=54af2282af2d9b98f286688d66131b7dbd825e179a0e34e7" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1441
1094
  Processing by AuthenticationsController#callback as HTML
1442
- Parameters: {"code"=>"c82a65323b75bb4c40f909dd501805b98e4ec5dbc18c2dca59927ad94cfab785", "state"=>"07b3c1178a18735faec05c054a1c2a5fc2fa87de5da3105c"}
1095
+ Parameters: {"code"=>"3F14h1SKW91GoJr6E0tRWSoav6dac_d2w12bKwyQoaY", "state"=>"54af2282af2d9b98f286688d66131b7dbd825e179a0e34e7"}
1443
1096
  Authenticating with gds_sso strategy
1444
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1097
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1445
1098
   (0.1ms) begin transaction
1446
1099
   (0.1ms) commit transaction
1447
1100
   (0.1ms) begin transaction
1448
1101
   (0.1ms) commit transaction
1449
1102
  Redirected to http://www.example-client.com/restricted
1450
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1451
- Started GET "/restricted" for 127.0.0.1 at 2018-12-18 08:03:07 +0000
1103
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1104
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:08 +0000
1452
1105
  Processing by ExampleController#restricted as HTML
1453
- 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]]
1106
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1454
1107
  Rendering text template
1455
- Rendered text template (0.1ms)
1456
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1457
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1108
+ Rendered text template (0.0ms)
1109
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1110
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1458
1111
  Processing by ExampleController#restricted as HTML
1459
1112
  Authenticating with gds_sso strategy
1460
1113
  Completed in 1ms (ActiveRecord: 0.0ms)
1461
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1462
- Started GET "/auth/gds/callback?code=5a8f4e990f2fafbdad1ba3cea1b6fc1edd4773ca963a9bb6974aee69f1223d5d&state=d521a095ae5346d4883e763980829f3e83a408a5e2a07240" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1114
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1115
+ Started GET "/auth/gds/callback?code=L1Mu5ugstZ29bDh7W2cPsc73mgwqOyRx5ATOwncknmA&state=5fcad2700c5c36f2f6135d6bc7b9161d69858a7727be8a6b" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1463
1116
  Processing by AuthenticationsController#callback as HTML
1464
- Parameters: {"code"=>"5a8f4e990f2fafbdad1ba3cea1b6fc1edd4773ca963a9bb6974aee69f1223d5d", "state"=>"d521a095ae5346d4883e763980829f3e83a408a5e2a07240"}
1117
+ Parameters: {"code"=>"L1Mu5ugstZ29bDh7W2cPsc73mgwqOyRx5ATOwncknmA", "state"=>"5fcad2700c5c36f2f6135d6bc7b9161d69858a7727be8a6b"}
1465
1118
  Authenticating with gds_sso strategy
1466
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1467
-  (0.2ms) begin transaction
1119
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1120
+  (0.1ms) begin transaction
1468
1121
   (0.1ms) commit transaction
1469
1122
   (0.1ms) begin transaction
1470
1123
   (0.1ms) commit transaction
1471
1124
  Redirected to http://www.example-client.com/restricted
1472
- Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
1473
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1125
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1126
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:08 +0000
1474
1127
  Processing by ExampleController#restricted as HTML
1475
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1128
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1476
1129
  Rendering text template
1477
1130
  Rendered text template (0.0ms)
1478
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1479
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1480
-  (0.1ms) begin transaction
1481
- User Update (0.7ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1482
-  (10.7ms) commit transaction
1483
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1131
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1132
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:09 +0000
1484
1133
  Processing by ExampleController#restricted as HTML
1485
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1486
1134
  Authenticating with gds_sso strategy
1487
- Completed in 3ms (ActiveRecord: 0.4ms)
1488
- Started GET "/auth/gds" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1489
- Started GET "/auth/gds/callback?code=9dc9f966275cb3ec18ff06442c35b2967182a8201ceb5cd363438091bf2238fb&state=ec0052f912b995cf4240335fa3ce83cca6f816c420205946" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1135
+ Completed in 0ms (ActiveRecord: 0.0ms)
1136
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:09 +0000
1137
+ Started GET "/auth/gds/callback?code=ei9-4sfSh4LyZ966JaoZ3WPoQ_yI5Cp1hCO9UKucCtA&state=b03f9265ace717461a7346f5ccff6795d3dddb5918008087" for 127.0.0.1 at 2020-06-12 15:53:09 +0000
1490
1138
  Processing by AuthenticationsController#callback as HTML
1491
- Parameters: {"code"=>"9dc9f966275cb3ec18ff06442c35b2967182a8201ceb5cd363438091bf2238fb", "state"=>"ec0052f912b995cf4240335fa3ce83cca6f816c420205946"}
1139
+ Parameters: {"code"=>"ei9-4sfSh4LyZ966JaoZ3WPoQ_yI5Cp1hCO9UKucCtA", "state"=>"b03f9265ace717461a7346f5ccff6795d3dddb5918008087"}
1492
1140
  Authenticating with gds_sso strategy
1493
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1141
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1142
+  (0.1ms) begin transaction
1143
+  (0.1ms) commit transaction
1494
1144
   (0.1ms) begin transaction
1495
1145
   (0.1ms) commit transaction
1496
-  (0.2ms) begin transaction
1497
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1498
-  (5.0ms) commit transaction
1499
1146
  Redirected to http://www.example-client.com/restricted
1500
- Completed 302 Found in 13ms (ActiveRecord: 6.4ms)
1501
- Started GET "/restricted" for 127.0.0.1 at 2018-12-17 11:58:07 +0000
1147
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
1148
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:09 +0000
1502
1149
  Processing by ExampleController#restricted as HTML
1503
- 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]]
1150
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1504
1151
  Rendering text template
1505
1152
  Rendered text template (0.0ms)
1506
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1507
-  (0.1ms) begin transaction
1508
- User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33715"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1509
-  (4.7ms) commit transaction
1510
-  (0.1ms) begin transaction
1511
- User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36880"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1512
-  (5.6ms) commit transaction
1153
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1154
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:48:09 +0000
1155
+ Processing by ExampleController#restricted as HTML
1156
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1157
+ Rendering text template
1158
+ Rendered text template (0.0ms)
1159
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1160
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:09 +0000
1161
+ Processing by ExampleController#restricted as HTML
1162
+ Authenticating with gds_sso strategy
1163
+ Completed in 0ms (ActiveRecord: 0.0ms)
1164
+  (1.4ms) SELECT sqlite_version(*)
1165
+  (0.1ms) SELECT sqlite_version(*)
1166
+  (0.2ms) DROP TABLE IF EXISTS "users"
1167
+  (6.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 0)
1168
+  (6.6ms) 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]]
1170
+  (0.1ms) begin transaction
1171
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-06-12 15:53:13.980372"], ["updated_at", "2020-06-12 15:53:13.980372"]]
1172
+  (5.9ms) commit transaction
1173
+  (5.5ms) 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.2ms) SELECT sqlite_version(*)
1176
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1177
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1178
+  (0.2ms) begin transaction
1179
+ User Create (0.7ms) 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]]
1180
+  (6.0ms) commit transaction
1181
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1182
+  (0.2ms) begin transaction
1183
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33599"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1184
+  (5.4ms) commit transaction
1185
+  (0.2ms) begin transaction
1186
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37485"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1187
+  (5.1ms) commit transaction
1513
1188
  Processing by Api::UserController#reauth as HTML
1514
- Parameters: {"uid"=>"nonexistent-user"}
1515
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1516
- Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
1517
-  (0.1ms) begin transaction
1518
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39689"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1519
-  (4.0ms) commit transaction
1520
-  (0.1ms) begin transaction
1521
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35476"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1522
-  (3.5ms) commit transaction
1189
+ Parameters: {"uid"=>"a1s2d33599"}
1190
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33599"], ["LIMIT", 1]]
1191
+  (0.2ms) begin transaction
1192
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 2]]
1193
+  (5.8ms) commit transaction
1194
+ Completed 200 OK in 15ms (ActiveRecord: 6.8ms | Allocations: 1660)
1195
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1196
+  (0.2ms) begin transaction
1197
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39371"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1198
+  (13.3ms) commit transaction
1199
+  (0.2ms) begin transaction
1200
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38792"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1201
+  (7.9ms) commit transaction
1523
1202
  Processing by Api::UserController#reauth as HTML
1524
- Parameters: {"uid"=>"a1s2d39689"}
1525
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39689"], ["LIMIT", 1]]
1203
+ Parameters: {"uid"=>"nonexistent-user"}
1204
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1205
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms | Allocations: 525)
1526
1206
   (0.2ms) begin transaction
1527
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1528
-  (4.7ms) commit transaction
1529
- Completed 200 OK in 11ms (ActiveRecord: 5.7ms)
1530
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1531
-  (0.1ms) begin transaction
1532
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39496"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1533
-  (3.8ms) commit transaction
1534
-  (0.1ms) begin transaction
1535
- User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31416"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1536
-  (4.2ms) commit transaction
1207
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34995"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1208
+  (8.1ms) commit transaction
1209
+  (0.2ms) begin transaction
1210
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31450"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1211
+  (6.8ms) commit transaction
1537
1212
  Processing by Api::UserController#reauth as HTML
1538
- Parameters: {"uid"=>"a1s2d39496"}
1213
+ Parameters: {"uid"=>"a1s2d34995"}
1539
1214
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1540
1215
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1541
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
1216
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 1.7ms | Allocations: 201)
1542
1217
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1543
- Completed 403 Forbidden in 18ms (Views: 17.6ms | ActiveRecord: 0.0ms)
1544
-  (0.1ms) begin transaction
1545
- User Create (0.8ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35239"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1546
-  (4.1ms) commit transaction
1547
-  (0.1ms) begin transaction
1548
- User Create (0.7ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38889"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1549
-  (3.8ms) commit transaction
1218
+ Completed 403 Forbidden in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms | Allocations: 1977)
1219
+  (0.2ms) begin transaction
1220
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37968"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1221
+  (7.2ms) commit transaction
1222
+  (0.2ms) begin transaction
1223
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34897"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1224
+  (5.3ms) commit transaction
1550
1225
  Processing by Api::UserController#update as HTML
1551
- Parameters: {"uid"=>"a1s2d35239"}
1226
+ Parameters: {"uid"=>"a1s2d37968"}
1552
1227
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1553
1228
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1554
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
1229
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.4ms | Allocations: 47)
1555
1230
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1556
- Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
1557
-  (0.1ms) begin transaction
1558
- User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37671"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1559
-  (4.0ms) commit transaction
1560
-  (0.1ms) begin transaction
1561
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d372"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1562
-  (4.7ms) commit transaction
1231
+ Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 510)
1232
+  (0.2ms) begin transaction
1233
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33600"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1234
+  (5.7ms) commit transaction
1235
+  (0.2ms) begin transaction
1236
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3220"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1237
+  (4.9ms) commit transaction
1563
1238
  Processing by Api::UserController#update as HTML
1564
- Parameters: {"uid"=>"a1s2d37671"}
1565
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37671"], ["LIMIT", 1]]
1566
-  (0.1ms) begin transaction
1567
- User Update (0.6ms) 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]]
1568
-  (3.9ms) commit transaction
1569
- Completed 200 OK in 11ms (ActiveRecord: 5.0ms)
1570
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]
1571
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1572
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1239
+ Parameters: {"uid"=>"a1s2d33600"}
1240
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33600"], ["LIMIT", 1]]
1573
1241
   (0.2ms) begin transaction
1574
- User Create (0.8ms) 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]]
1575
-  (5.3ms) commit transaction
1576
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1242
+ User Update (0.5ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
1243
+  (6.0ms) commit transaction
1244
+ Completed 200 OK in 13ms (ActiveRecord: 7.0ms | Allocations: 1222)
1245
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1246
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1577
1247
   (0.2ms) begin transaction
1578
-  (0.1ms) commit transaction
1248
+ User Create (0.6ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9706"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1249
+  (6.6ms) commit transaction
1250
+  (0.2ms) begin transaction
1251
+ User Update (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
1252
+  (6.8ms) commit transaction
1253
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1254
+ Processing by ExampleController#restricted as HTML
1255
+ Authenticating with gds_sso strategy
1256
+ Completed in 11ms (ActiveRecord: 0.0ms | Allocations: 155)
1257
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1258
+ Processing by ExampleController#restricted as JSON
1259
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1260
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1261
+  (0.2ms) begin transaction
1262
+ User Create (0.6ms) 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]]
1263
+  (7.2ms) commit transaction
1264
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1265
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1266
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1267
+  (0.2ms) begin transaction
1268
+ User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1269
+  (6.2ms) commit transaction
1270
+ Rendering text template
1271
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
1272
+ Completed 200 OK in 148ms (Views: 2.3ms | ActiveRecord: 16.0ms | Allocations: 8171)
1273
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1274
+ Processing by ExampleController#this_requires_signin_permission as JSON
1275
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1276
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1277
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1278
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1279
+ Rendering text template
1280
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1281
+ Completed 200 OK in 113ms (Views: 0.7ms | ActiveRecord: 0.5ms | Allocations: 6340)
1282
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1283
+ Processing by ExampleController#restricted as JSON
1284
+ Completed in 50ms (ActiveRecord: 0.0ms | Allocations: 1863)
1285
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1286
+ Processing by ExampleController#restricted as JSON
1287
+ Completed in 45ms (ActiveRecord: 0.0ms | Allocations: 1760)
1288
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1289
+ Processing by ExampleController#restricted as HTML
1290
+ Authenticating with gds_sso strategy
1291
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1292
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:15 +0000
1293
+ Started GET "/auth/gds/callback?code=W7vSSyNRyTbSAwSR2KnZoFtV_OFBTIJUZv1EMxVVqXc&state=2633af08a5bea3c181f197487f4fc7504753c22c2bf938dd" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1294
+ Processing by AuthenticationsController#callback as HTML
1295
+ Parameters: {"code"=>"W7vSSyNRyTbSAwSR2KnZoFtV_OFBTIJUZv1EMxVVqXc", "state"=>"2633af08a5bea3c181f197487f4fc7504753c22c2bf938dd"}
1296
+ Authenticating with gds_sso strategy
1297
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1298
+  (0.2ms) begin transaction
1299
+ User Update (0.6ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", 0], ["id", 13]]
1300
+  (7.4ms) commit transaction
1301
+ Redirected to http://www.example-client.com/restricted
1302
+ Completed 302 Found in 17ms (ActiveRecord: 8.7ms | Allocations: 1150)
1303
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1304
+ Processing by ExampleController#restricted as HTML
1305
+ 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", 0], ["LIMIT", 1]]
1306
+ Rendering text template
1307
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1308
+ Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.5ms | Allocations: 687)
1309
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1310
+ Processing by ExampleController#restricted as HTML
1311
+ Authenticating with gds_sso strategy
1312
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1313
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1314
+ Started GET "/auth/gds/callback?code=lSGnnvs1TIVC0NtmtPLtidkJLiw0f7Po8vHnxeqh60g&state=8631a4e65b3c22c555f7f744c276f98d51906f91a4956085" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1315
+ Processing by AuthenticationsController#callback as HTML
1316
+ Parameters: {"code"=>"lSGnnvs1TIVC0NtmtPLtidkJLiw0f7Po8vHnxeqh60g", "state"=>"8631a4e65b3c22c555f7f744c276f98d51906f91a4956085"}
1317
+ Authenticating with gds_sso strategy
1318
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1319
+ Redirected to http://www.example-client.com/restricted
1320
+ Completed 302 Found in 11ms (ActiveRecord: 0.4ms | Allocations: 913)
1321
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1322
+ Processing by ExampleController#restricted as HTML
1323
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1324
+ Rendering text template
1325
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1326
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 660)
1327
+ Started GET "/" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1328
+ Processing by ExampleController#index as HTML
1329
+ Rendering text template
1330
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1331
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 137)
1332
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1333
+ Processing by ExampleController#this_requires_signin_permission as HTML
1334
+ Authenticating with gds_sso strategy
1335
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1336
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1337
+ Started GET "/auth/gds/callback?code=srhBFzpduyKjzzV545wFhqWPazPjCPHuJTcqX2kS1j8&state=789e31843ac918b99054f737f0b94538af247e387289da52" for 127.0.0.1 at 2020-06-12 15:53:16 +0000
1338
+ Processing by AuthenticationsController#callback as HTML
1339
+ Parameters: {"code"=>"srhBFzpduyKjzzV545wFhqWPazPjCPHuJTcqX2kS1j8", "state"=>"789e31843ac918b99054f737f0b94538af247e387289da52"}
1340
+ Authenticating with gds_sso strategy
1341
+ User Load (0.5ms) 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/this_requires_signin_permission
1343
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms | Allocations: 913)
1344
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1345
+ Processing by ExampleController#this_requires_signin_permission as HTML
1346
+ 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]]
1347
+ Rendering text template
1348
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1349
+ Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.3ms | Allocations: 660)
1350
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1351
+ Processing by ExampleController#this_requires_signin_permission as HTML
1352
+ Authenticating with gds_sso strategy
1353
+ Completed in 2ms (ActiveRecord: 0.0ms | Allocations: 107)
1354
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1355
+ Started GET "/auth/gds/callback?code=MQQwzTrOSdneS05LCO3R2hl3WQhuhBTeymL6yvgZrf8&state=68e70b571e14bfd852320305f4cc83283160ba2db776919d" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1356
+ Processing by AuthenticationsController#callback as HTML
1357
+ Parameters: {"code"=>"MQQwzTrOSdneS05LCO3R2hl3WQhuhBTeymL6yvgZrf8", "state"=>"68e70b571e14bfd852320305f4cc83283160ba2db776919d"}
1358
+ Authenticating with gds_sso strategy
1359
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1360
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1361
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 914)
1362
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1363
+ Processing by ExampleController#this_requires_signin_permission as HTML
1364
+ 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]]
1365
+ Rendering text template
1366
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
1367
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 661)
1368
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1369
+ Processing by ExampleController#restricted as HTML
1370
+ Authenticating with gds_sso strategy
1371
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1372
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1373
+ Started GET "/auth/gds/callback?code=4C_71P-J5dq9_bUhH8QmniqRnTNUJy2qkBaqefJCTNE&state=752143947f64c36048fdd7078fb383922893539fc3ee3434" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1374
+ Processing by AuthenticationsController#callback as HTML
1375
+ Parameters: {"code"=>"4C_71P-J5dq9_bUhH8QmniqRnTNUJy2qkBaqefJCTNE", "state"=>"752143947f64c36048fdd7078fb383922893539fc3ee3434"}
1376
+ Authenticating with gds_sso strategy
1377
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1378
+ Redirected to http://www.example-client.com/restricted
1379
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms | Allocations: 913)
1380
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1381
+ Processing by ExampleController#restricted as HTML
1382
+ 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]]
1383
+ Rendering text template
1384
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1385
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 660)
1386
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1387
+ Processing by ExampleController#restricted as HTML
1388
+ Authenticating with gds_sso strategy
1389
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1390
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1391
+ Started GET "/auth/gds/callback?code=ObbYxDZpDpftZjnl2Oi0oOk_C0LStQpGZSp2rteFh6A&state=b8306e3d0119e9a94493bc7523154afafe46053c4f525e1c" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1392
+ Processing by AuthenticationsController#callback as HTML
1393
+ Parameters: {"code"=>"ObbYxDZpDpftZjnl2Oi0oOk_C0LStQpGZSp2rteFh6A", "state"=>"b8306e3d0119e9a94493bc7523154afafe46053c4f525e1c"}
1394
+ Authenticating with gds_sso strategy
1395
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1396
+ Redirected to http://www.example-client.com/restricted
1397
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms | Allocations: 913)
1398
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:17 +0000
1399
+ Processing by ExampleController#restricted as HTML
1400
+ 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]]
1401
+ Rendering text template
1402
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1403
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 660)
1404
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1405
+  (0.2ms) begin transaction
1406
+ User Update (0.6ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
1407
+  (6.6ms) commit transaction
1408
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1409
+ Processing by ExampleController#restricted as HTML
1410
+ 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]]
1411
+ Authenticating with gds_sso strategy
1412
+ Completed in 3ms (ActiveRecord: 0.3ms | Allocations: 541)
1413
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1414
+ Started GET "/auth/gds/callback?code=oGxc5oQFpaRmmpxPCFpS3dXS8jdkX0K63pQcI9rBY_0&state=2e1ac2b93711b33056a11361943688f7c24acb3f52920d6a" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1415
+ Processing by AuthenticationsController#callback as HTML
1416
+ Parameters: {"code"=>"oGxc5oQFpaRmmpxPCFpS3dXS8jdkX0K63pQcI9rBY_0", "state"=>"2e1ac2b93711b33056a11361943688f7c24acb3f52920d6a"}
1417
+ Authenticating with gds_sso strategy
1418
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1419
+  (0.1ms) begin transaction
1420
+ User Update (0.7ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1421
+  (7.3ms) commit transaction
1422
+ Redirected to http://www.example-client.com/restricted
1423
+ Completed 302 Found in 15ms (ActiveRecord: 8.5ms | Allocations: 1105)
1424
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1425
+ Processing by ExampleController#restricted as HTML
1426
+ 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]]
1427
+ Rendering text template
1428
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1429
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms | Allocations: 659)
1430
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1431
+ Processing by ExampleController#restricted as HTML
1432
+ Authenticating with gds_sso strategy
1433
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1434
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1435
+ Started GET "/auth/gds/callback?code=z344M9hbOvtkT1OLxs6uFRY5fsqk7h0Jk43RBJcekEQ&state=389c84a4d79f48469a3e97a360f890979ab45cc02e633a38" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1436
+ Processing by AuthenticationsController#callback as HTML
1437
+ Parameters: {"code"=>"z344M9hbOvtkT1OLxs6uFRY5fsqk7h0Jk43RBJcekEQ", "state"=>"389c84a4d79f48469a3e97a360f890979ab45cc02e633a38"}
1438
+ Authenticating with gds_sso strategy
1439
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1440
+ Redirected to http://www.example-client.com/restricted
1441
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms | Allocations: 913)
1442
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1443
+ Processing by ExampleController#restricted as HTML
1444
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1445
+ Rendering text template
1446
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
1447
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms | Allocations: 661)
1448
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:48:18 +0000
1449
+ Processing by ExampleController#restricted as HTML
1450
+ 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]]
1451
+ Rendering text template
1452
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1453
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 883)
1454
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1455
+ Processing by ExampleController#restricted as HTML
1456
+ Authenticating with gds_sso strategy
1457
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1458
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1459
+ Started GET "/auth/gds/callback?code=2wWd42zSW5fe0LTYAtEZ_aHyHYxtOlpndfvPTy4cmLc&state=b444bf0a9c25f1c0d30b5a1f6e9a89beabefd3b3e8dd6a01" for 127.0.0.1 at 2020-06-12 15:53:18 +0000
1460
+ Processing by AuthenticationsController#callback as HTML
1461
+ Parameters: {"code"=>"2wWd42zSW5fe0LTYAtEZ_aHyHYxtOlpndfvPTy4cmLc", "state"=>"b444bf0a9c25f1c0d30b5a1f6e9a89beabefd3b3e8dd6a01"}
1462
+ Authenticating with gds_sso strategy
1463
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1464
+ Redirected to http://www.example-client.com/restricted
1465
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 913)
1466
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:19 +0000
1467
+ Processing by ExampleController#restricted as HTML
1468
+ 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]]
1469
+ Rendering text template
1470
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
1471
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 660)
1472
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1473
+ Processing by ExampleController#restricted as HTML
1474
+ Authenticating with gds_sso strategy
1475
+ Completed in 2ms (ActiveRecord: 0.0ms | Allocations: 488)
1476
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1477
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:19 +0000
1478
+ Processing by ExampleController#restricted as HTML
1479
+ Authenticating with gds_sso strategy
1480
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 107)
1481
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-12 15:53:19 +0000
1482
+ Started GET "/auth/gds/callback?code=wG6dOgcCevXcttMKMMYwQUrqa5A3G846P6O8KcufIn4&state=72b9665daca597fa81a3fbaac0611bb9558b460d5e349a83" for 127.0.0.1 at 2020-06-12 15:53:19 +0000
1483
+ Processing by AuthenticationsController#callback as HTML
1484
+ Parameters: {"code"=>"wG6dOgcCevXcttMKMMYwQUrqa5A3G846P6O8KcufIn4", "state"=>"72b9665daca597fa81a3fbaac0611bb9558b460d5e349a83"}
1485
+ Authenticating with gds_sso strategy
1486
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1487
+ Redirected to http://www.example-client.com/restricted
1488
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms | Allocations: 913)
1489
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:19 +0000
1490
+ Processing by ExampleController#restricted as HTML
1491
+ 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]]
1492
+ Rendering text template
1493
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1494
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 660)
1495
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1496
+ Processing by ExampleController#restricted as HTML
1497
+ Authenticating with gds_sso strategy
1498
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 488)
1499
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1500
+ Started GET "/auth/gds/callback?code=GiTqxrVxxVNTmCM6yrBIbdrOiMIpRawIQ0iadBH1pls&state=f7efb007e1a1bc5cbf001a76d2163b4a5561f49a8f6914bb" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1501
+ Processing by AuthenticationsController#callback as HTML
1502
+ Parameters: {"code"=>"GiTqxrVxxVNTmCM6yrBIbdrOiMIpRawIQ0iadBH1pls", "state"=>"f7efb007e1a1bc5cbf001a76d2163b4a5561f49a8f6914bb"}
1503
+ Authenticating with gds_sso strategy
1504
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1505
+ Redirected to http://www.example-client.com/restricted
1506
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms | Allocations: 1115)
1507
+ Started GET "/restricted" for 127.0.0.1 at 2020-06-13 11:58:19 +0000
1508
+ Processing by ExampleController#restricted as HTML
1509
+ 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]]
1510
+ Rendering text template
1511
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
1512
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 885)