gds-sso 15.0.0 → 16.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -56
  3. data/Rakefile +11 -6
  4. data/app/controllers/api/user_controller.rb +30 -28
  5. data/app/controllers/authentications_controller.rb +4 -6
  6. data/config/routes.rb +7 -6
  7. data/lib/gds-sso.rb +29 -24
  8. data/lib/gds-sso/api_access.rb +1 -1
  9. data/lib/gds-sso/bearer_token.rb +24 -24
  10. data/lib/gds-sso/config.rb +13 -12
  11. data/lib/gds-sso/controller_methods.rb +7 -8
  12. data/lib/gds-sso/failure_app.rb +8 -8
  13. data/lib/gds-sso/lint/user_spec.rb +24 -25
  14. data/lib/gds-sso/lint/user_test.rb +28 -28
  15. data/lib/gds-sso/railtie.rb +12 -0
  16. data/lib/gds-sso/user.rb +12 -12
  17. data/lib/gds-sso/version.rb +1 -1
  18. data/lib/gds-sso/warden_config.rb +21 -31
  19. data/spec/controller/api_user_controller_spec.rb +40 -37
  20. data/spec/controller/controller_methods_spec.rb +28 -42
  21. data/spec/internal/app/controllers/application_controller.rb +1 -1
  22. data/spec/internal/app/controllers/example_controller.rb +1 -2
  23. data/spec/internal/config/initializers/gds-sso.rb +2 -2
  24. data/spec/internal/config/routes.rb +2 -2
  25. data/spec/internal/db/combustion_test.sqlite +0 -0
  26. data/spec/internal/db/schema.rb +5 -5
  27. data/spec/internal/log/test.log +1131 -1123
  28. data/spec/requests/end_to_end_spec.rb +44 -45
  29. data/spec/spec_helper.rb +12 -13
  30. data/spec/support/controller_spy.rb +14 -0
  31. data/spec/support/serializable_user.rb +3 -0
  32. data/spec/support/signon_integration_helpers.rb +10 -8
  33. data/spec/support/test_user.rb +29 -0
  34. data/spec/support/timecop.rb +1 -1
  35. data/spec/unit/api_access_spec.rb +7 -7
  36. data/spec/unit/bearer_token_spec.rb +14 -15
  37. data/spec/unit/config_spec.rb +5 -5
  38. data/spec/unit/mock_bearer_token_spec.rb +4 -4
  39. data/spec/unit/railtie_spec.rb +14 -0
  40. data/spec/unit/session_serialisation_spec.rb +5 -9
  41. data/spec/unit/user_spec.rb +20 -51
  42. metadata +104 -61
@@ -10,24 +10,25 @@ def user_update_json
10
10
  "organisation_slug" => "justice-league",
11
11
  "organisation_content_id" => "aae1319e-5788-4677-998c-f1a53af528d0",
12
12
  "disabled" => false,
13
- }
13
+ },
14
14
  }.to_json
15
15
  end
16
16
 
17
17
  describe Api::UserController, type: :controller do
18
-
19
18
  before :each do
20
19
  user_to_update_attrs = [{
21
- :uid => "a1s2d3#{rand(10000)}",
22
- :email => "old@domain.com",
23
- :name => "Moshua Jarshall",
24
- :permissions => ["signin"] }]
25
-
26
- signon_sso_push_user_attrs = [{
27
- :uid => "a1s2d3#{rand(10000)}",
28
- :email => "ssopushuser@legit.com",
29
- :name => "SSO Push user",
30
- :permissions => ["signin", "user_update_permission"] }]
20
+ uid: "a1s2d3#{rand(10_000)}",
21
+ email: "old@domain.com",
22
+ name: "Moshua Jarshall",
23
+ permissions: %w[signin],
24
+ }]
25
+
26
+ signon_sso_push_user_attrs = [{
27
+ uid: "a1s2d3#{rand(10_000)}",
28
+ email: "ssopushuser@legit.com",
29
+ name: "SSO Push user",
30
+ permissions: %w[signin user_update_permission],
31
+ }]
31
32
 
32
33
  @user_to_update = User.create!(*user_to_update_attrs)
33
34
  @signon_sso_push_user = User.create!(*signon_sso_push_user_attrs)
@@ -36,13 +37,14 @@ describe Api::UserController, type: :controller do
36
37
  describe "PUT update" do
37
38
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
38
39
  malicious_user = User.new({
39
- :uid => '2',
40
- :name => "User",
41
- :permissions =>["signin"] })
40
+ uid: "2",
41
+ name: "User",
42
+ permissions: %w[signin],
43
+ })
42
44
 
43
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
45
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
44
46
 
45
- request.env['RAW_POST_DATA'] = user_update_json
47
+ request.env["RAW_POST_DATA"] = user_update_json
46
48
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
47
49
 
48
50
  expect(response.status).to eq(403)
@@ -50,12 +52,12 @@ describe Api::UserController, type: :controller do
50
52
 
51
53
  it "should create/update the user record in the same way as the OAuth callback" do
52
54
  # Test that it authenticates
53
- request.env['warden'] = double("mock warden")
54
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
55
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
56
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
55
+ request.env["warden"] = double("mock warden")
56
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
57
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
58
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
57
59
 
58
- request.env['RAW_POST_DATA'] = user_update_json
60
+ request.env["RAW_POST_DATA"] = user_update_json
59
61
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
60
62
 
61
63
  @user_to_update.reload
@@ -64,18 +66,19 @@ describe Api::UserController, type: :controller do
64
66
  expect(@user_to_update.permissions).to eq(["signin", "new permission"])
65
67
  expect(@user_to_update.organisation_slug).to eq("justice-league")
66
68
  expect(@user_to_update.organisation_content_id).to eq("aae1319e-5788-4677-998c-f1a53af528d0")
67
- expect(response.content_type).to eq('text/plain')
69
+ expect(response.content_type).to eq("text/plain")
68
70
  end
69
71
  end
70
72
 
71
73
  describe "POST reauth" do
72
74
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
73
75
  malicious_user = User.new({
74
- :uid => '2',
75
- :name => "User",
76
- :permissions => ["signin"] })
76
+ uid: "2",
77
+ name: "User",
78
+ permissions: %w[signin],
79
+ })
77
80
 
78
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
81
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
79
82
 
80
83
  post :reauth, params: { uid: @user_to_update.uid }
81
84
 
@@ -83,29 +86,29 @@ describe Api::UserController, type: :controller do
83
86
  end
84
87
 
85
88
  it "should return success if user record doesn't exist" do
86
- request.env['warden'] = double("mock warden")
87
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
88
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
89
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
89
+ request.env["warden"] = double("mock warden")
90
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
91
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
92
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
90
93
 
91
94
  post :reauth, params: { uid: "nonexistent-user" }
92
95
 
93
96
  expect(response.status).to eq(200)
94
- expect(response.content_type).to eq('text/plain')
97
+ expect(response.content_type).to eq("text/plain")
95
98
  end
96
99
 
97
100
  it "should set remotely_signed_out to true on the user" do
98
101
  # Test that it authenticates
99
- request.env['warden'] = double("mock warden")
100
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
101
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
102
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
102
+ request.env["warden"] = double("mock warden")
103
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
104
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
105
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
103
106
 
104
107
  post :reauth, params: { uid: @user_to_update.uid }
105
108
 
106
109
  @user_to_update.reload
107
110
  expect(@user_to_update).to be_remotely_signed_out
108
- expect(response.content_type).to eq('text/plain')
111
+ expect(response.content_type).to eq("text/plain")
109
112
  end
110
113
  end
111
114
  end
@@ -1,71 +1,57 @@
1
- require 'spec_helper'
2
-
3
- RSpec.describe GDS::SSO::ControllerMethods, '#authorise_user!' do
4
- class ControllerSpy < ApplicationController
5
- include GDS::SSO::ControllerMethods
6
-
7
- def initialize(current_user)
8
- @current_user = current_user
9
- end
10
-
11
- def authenticate_user!
12
- true
13
- end
14
-
15
- attr_reader :current_user
16
- end
1
+ require "spec_helper"
17
2
 
3
+ RSpec.describe GDS::SSO::ControllerMethods, "#authorise_user!" do
18
4
  let(:current_user) { double }
19
5
  let(:expected_error) { GDS::SSO::ControllerMethods::PermissionDeniedException }
20
6
 
21
- context 'with a single string permission argument' do
22
- it 'permits users with the required permission' do
23
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
7
+ context "with a single string permission argument" do
8
+ it "permits users with the required permission" do
9
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
24
10
 
25
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.not_to raise_error
11
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.not_to raise_error
26
12
  end
27
13
 
28
- it 'does not permit the users without the required permission' do
29
- allow(current_user).to receive(:has_permission?).with('good').and_return(false)
14
+ it "does not permit the users without the required permission" do
15
+ allow(current_user).to receive(:has_permission?).with("good").and_return(false)
30
16
 
31
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.to raise_error(expected_error)
17
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.to raise_error(expected_error)
32
18
  end
33
19
  end
34
20
 
35
- context 'with the `all_of` option' do
36
- it 'permits users with all of the required permissions' do
37
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
38
- allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
21
+ context "with the `all_of` option" do
22
+ it "permits users with all of the required permissions" do
23
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
24
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(true)
39
25
 
40
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.not_to raise_error
26
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.not_to raise_error
41
27
  end
42
28
 
43
- it 'does not permit users without all of the required permissions' do
44
- allow(current_user).to receive(:has_permission?).with('good').and_return(false)
45
- allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
29
+ it "does not permit users without all of the required permissions" do
30
+ allow(current_user).to receive(:has_permission?).with("good").and_return(false)
31
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(true)
46
32
 
47
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.to raise_error(expected_error)
33
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.to raise_error(expected_error)
48
34
  end
49
35
  end
50
36
 
51
- context 'with the `any_of` option' do
52
- it 'permits users with any of the required permissions' do
53
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
54
- allow(current_user).to receive(:has_permission?).with('bad').and_return(false)
37
+ context "with the `any_of` option" do
38
+ it "permits users with any of the required permissions" do
39
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
40
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(false)
55
41
 
56
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.not_to raise_error
42
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.not_to raise_error
57
43
  end
58
44
 
59
- it 'does not permit users without any of the required permissions' do
45
+ it "does not permit users without any of the required permissions" do
60
46
  allow(current_user).to receive(:has_permission?).and_return(false)
61
47
 
62
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.to raise_error(expected_error)
48
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.to raise_error(expected_error)
63
49
  end
64
50
  end
65
51
 
66
- context 'with none of `any_of` or `all_of`' do
67
- it 'raises an `ArgumentError`' do
68
- expect { ControllerSpy.new(current_user).authorise_user!(whoops: 'bad') }.to raise_error(ArgumentError)
52
+ context "with none of `any_of` or `all_of`" do
53
+ it "raises an `ArgumentError`" do
54
+ expect { ControllerSpy.new(current_user).authorise_user!(whoops: "bad") }.to raise_error(ArgumentError)
69
55
  end
70
56
  end
71
57
  end
@@ -1,3 +1,3 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  include GDS::SSO::ControllerMethods
3
- end
3
+ end
@@ -1,6 +1,5 @@
1
1
  class ExampleController < ApplicationController
2
-
3
- before_action :authenticate_user!, :only => [:restricted, :this_requires_signin_permission]
2
+ before_action :authenticate_user!, only: %i[restricted this_requires_signin_permission]
4
3
 
5
4
  def index
6
5
  render body: "jabberwocky"
@@ -1,6 +1,6 @@
1
1
  GDS::SSO.config do |config|
2
2
  config.user_model = "User"
3
- config.oauth_id = 'gds-sso-test'
4
- config.oauth_secret = 'secret'
3
+ config.oauth_id = "gds-sso-test"
4
+ config.oauth_secret = "secret"
5
5
  config.oauth_root_url = "http://localhost:4567"
6
6
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Rails.application.routes.draw do
4
4
  # Add your own routes here, or remove this file if you don't have need for it.
5
- root :to => 'example#index'
6
- get "/restricted" => 'example#restricted'
5
+ root to: "example#index"
6
+ get "/restricted" => "example#restricted"
7
7
  get "/this_requires_signin_permission" => "example#this_requires_signin_permission"
8
8
  end
@@ -3,14 +3,14 @@
3
3
  ActiveRecord::Schema.define do
4
4
  # Set up any tables you need to exist for your test suite that don't belong
5
5
  # in migrations.
6
- create_table "users", :force => true do |t|
7
- t.string "name", :null => false
8
- t.string "uid", :null => false
9
- t.string "email", :null => false
6
+ create_table "users", force: true do |t|
7
+ t.string "name", null: false
8
+ t.string "uid", null: false
9
+ t.string "email", null: false
10
10
  t.boolean "remotely_signed_out"
11
11
  t.text "permissions"
12
12
  t.string "organisation_slug"
13
13
  t.string "organisation_content_id"
14
- t.boolean "disabled", :default => false
14
+ t.boolean "disabled", default: false
15
15
  end
16
16
  end
@@ -1,1512 +1,1520 @@
1
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)
2
+  (0.9ms) SELECT sqlite_version(*)
3
+  (6.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (3.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
10
5
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
6
   (0.0ms) 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", "2021-06-24 15:07:07.417855"], ["updated_at", "2021-06-24 15:07:07.417855"]]
8
+  (13.6ms) commit transaction
9
+  (14.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
10
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
+  (0.0ms) begin transaction
12
12
   (0.0ms) commit transaction
13
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
14
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34140"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
15
+  (7.7ms) commit transaction
16
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
17
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33438"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
+  (4.9ms) commit transaction
19
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]]
20
+ Parameters: {"uid"=>"a1s2d34140"}
21
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34140"], ["LIMIT", 1]]
22
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
23
+ User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 1]]
24
+  (5.4ms) commit transaction
25
+ Completed 200 OK in 8ms (ActiveRecord: 5.7ms)
26
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
30
27
   (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
28
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35903"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
29
+  (4.6ms) commit transaction
30
+  (0.0ms) begin transaction
31
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37660"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
32
+  (3.8ms) commit transaction
33
33
  Processing by Api::UserController#update as HTML
34
- Parameters: {"uid"=>"a1s2d33539"}
35
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
34
+ Parameters: {"uid"=>"a1s2d35903"}
35
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
36
36
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
37
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
37
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
38
38
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
39
- Completed 403 Forbidden in 18ms (Views: 17.9ms | ActiveRecord: 0.0ms)
39
+ Completed 403 Forbidden in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
40
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
41
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32580"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
42
+  (3.9ms) commit transaction
43
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
44
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3720"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
45
+  (5.3ms) commit transaction
46
46
  Processing by Api::UserController#reauth as HTML
47
- Parameters: {"uid"=>"a1s2d3721"}
48
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
47
+ Parameters: {"uid"=>"a1s2d32580"}
48
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
49
49
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
50
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
50
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
51
51
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
52
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
52
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | 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", "a1s2d36052"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
55
+  (4.0ms) 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", "a1s2d38969"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
58
+  (3.8ms) commit transaction
59
+ Processing by Api::UserController#reauth as HTML
60
+ Parameters: {"uid"=>"a1s2d36052"}
61
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36052"], ["LIMIT", 1]]
62
+  (0.0ms) begin transaction
63
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
64
+  (5.6ms) commit transaction
65
+ Completed 200 OK in 7ms (ActiveRecord: 5.8ms)
66
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
53
67
   (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"]]
68
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31908"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
55
69
   (5.3ms) commit transaction
56
70
   (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
71
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33257"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
72
+  (3.8ms) commit transaction
59
73
  Processing by Api::UserController#reauth as HTML
60
74
  Parameters: {"uid"=>"nonexistent-user"}
61
75
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
62
76
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
77
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
63
78
   (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]]
79
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9871"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
80
+  (4.0ms) commit transaction
72
81
   (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]]
82
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
83
+  (5.1ms) commit transaction
84
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
85
+ Processing by ExampleController#restricted as HTML
86
+ Authenticating with gds_sso strategy
87
+ Completed in 4ms (ActiveRecord: 0.0ms)
88
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
89
+ Started GET "/auth/gds/callback?code=hS54I-syiSt6cTUJlW_JPmtwB3CHImteLUO8RpWSyLg&state=33bd83f95c9e0413080a3a48934234773209ea349da1dab0" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
90
+ Processing by AuthenticationsController#callback as HTML
91
+ Parameters: {"code"=>"hS54I-syiSt6cTUJlW_JPmtwB3CHImteLUO8RpWSyLg", "state"=>"33bd83f95c9e0413080a3a48934234773209ea349da1dab0"}
92
+ Authenticating with gds_sso strategy
93
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
94
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
79
95
   (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]]
96
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
97
+  (8.8ms) commit transaction
83
98
   (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]]
89
-  (0.1ms) begin transaction
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]]
93
-  (0.1ms) begin transaction
94
-  (0.1ms) commit transaction
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
99
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
100
+  (6.4ms) commit transaction
101
+ Redirected to http://www.example-client.com/restricted
102
+ Completed 302 Found in 19ms (ActiveRecord: 15.9ms)
103
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
104
+ Processing by ExampleController#restricted as HTML
105
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
104
106
  Rendering text template
105
107
  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
108
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
109
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
110
+ Processing by ExampleController#restricted as HTML
111
+ Authenticating with gds_sso strategy
112
+ Completed in 0ms (ActiveRecord: 0.0ms)
113
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
114
+ Started GET "/auth/gds/callback?code=iI9yA-NJQE8Jeix0k9L51l1OUnBdo8ppBZxs2WuPoxI&state=374306e1b514a61e5d1b460852b53437b7290d8f83a0f560" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
115
+ Processing by AuthenticationsController#callback as HTML
116
+ Parameters: {"code"=>"iI9yA-NJQE8Jeix0k9L51l1OUnBdo8ppBZxs2WuPoxI", "state"=>"374306e1b514a61e5d1b460852b53437b7290d8f83a0f560"}
117
+ Authenticating with gds_sso strategy
118
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
119
+  (0.0ms) begin transaction
120
+  (0.0ms) commit transaction
121
+  (0.0ms) begin transaction
122
+  (0.0ms) commit transaction
123
+ Redirected to http://www.example-client.com/restricted
124
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
125
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
126
+ Processing by ExampleController#restricted as HTML
127
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
129
128
  Rendering text template
130
129
  Rendered text template (0.0ms)
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
130
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
131
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
133
132
  Processing by ExampleController#restricted as HTML
134
133
  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
137
- Processing by ExampleController#this_requires_signin_permission as HTML
138
- Authenticating with gds_sso strategy
139
134
  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
135
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
136
+ Started GET "/auth/gds/callback?code=t3mrKoVAMS2rD6Ez3fjF2mfiY3f4sz9d3mGpR4g6pK8&state=84ffe1ce4530b34ac6db32e33d0f444f482424de90ed5d71" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
142
137
  Processing by AuthenticationsController#callback as HTML
143
- Parameters: {"code"=>"AbT8SXs2YjD7WJqWc0VjMLIEqVD8gd3rLKwX4q7o6Pc", "state"=>"942a5af1a1114e63d229a53a3aabe299e05a74e59d19ad3b"}
138
+ Parameters: {"code"=>"t3mrKoVAMS2rD6Ez3fjF2mfiY3f4sz9d3mGpR4g6pK8", "state"=>"84ffe1ce4530b34ac6db32e33d0f444f482424de90ed5d71"}
144
139
  Authenticating with gds_sso strategy
145
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
146
-  (0.1ms) begin 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
151
- Redirected to http://www.example-client.com/this_requires_signin_permission
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
154
- Processing by ExampleController#this_requires_signin_permission as HTML
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]]
140
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
141
+  (0.0ms) begin transaction
142
+  (0.0ms) commit transaction
143
+  (0.0ms) begin transaction
144
+  (0.0ms) commit transaction
145
+ Redirected to http://www.example-client.com/restricted
146
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
147
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
148
+ Processing by ExampleController#restricted as HTML
149
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
150
+ Rendering text template
151
+ Rendered text template (0.0ms)
152
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
153
+ Started GET "/" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
154
+ Processing by ExampleController#index as HTML
156
155
  Rendering text template
157
156
  Rendered text template (0.0ms)
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
157
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
158
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
160
159
  Processing by ExampleController#this_requires_signin_permission as HTML
161
160
  Authenticating with gds_sso strategy
162
161
  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
162
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
163
+ Started GET "/auth/gds/callback?code=GNWIz8UTM5Wo6E9H23HUX9wBoj7UAe0Qd2KEMhe-a98&state=e0c053a82f5f90b4f08ae9ae008e599bcd852d6fbf2e4859" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
165
164
  Processing by AuthenticationsController#callback as HTML
166
- Parameters: {"code"=>"gCzNxa0UYS9v1u34NFcJQBGWHthk7SL6AQp_IFUHTkQ", "state"=>"c33f8168dbdb2f49c4ea77084f5b3c640e941cae38533aad"}
165
+ Parameters: {"code"=>"GNWIz8UTM5Wo6E9H23HUX9wBoj7UAe0Qd2KEMhe-a98", "state"=>"e0c053a82f5f90b4f08ae9ae008e599bcd852d6fbf2e4859"}
167
166
  Authenticating with gds_sso strategy
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
171
-  (0.1ms) begin transaction
172
-  (0.1ms) commit transaction
167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
168
+  (0.0ms) begin transaction
169
+  (0.0ms) commit transaction
170
+  (0.0ms) begin transaction
171
+  (0.0ms) commit transaction
173
172
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
173
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
174
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
176
175
  Processing by ExampleController#this_requires_signin_permission 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 ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
178
177
  Rendering text template
179
178
  Rendered text template (0.0ms)
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
182
- Processing by ExampleController#restricted as HTML
179
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
180
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
181
+ Processing by ExampleController#this_requires_signin_permission as HTML
183
182
  Authenticating with gds_sso strategy
184
183
  Completed in 0ms (ActiveRecord: 0.0ms)
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
184
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
185
+ Started GET "/auth/gds/callback?code=r_-Abr5jDEQw134XvX4IP-eug0Ok3rDC4GOstivRfEI&state=5c6b6c6a4b470b38c4366bb9272e03b72c5355ff56e541d8" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
187
186
  Processing by AuthenticationsController#callback as HTML
188
- Parameters: {"code"=>"D6vj8aToDosrjQog3mwDKymQBj5G6Nv9sd7lDD7C7vI", "state"=>"11faee918652964aede9dc6ac351b1a31333cabea007ce37"}
187
+ Parameters: {"code"=>"r_-Abr5jDEQw134XvX4IP-eug0Ok3rDC4GOstivRfEI", "state"=>"5c6b6c6a4b470b38c4366bb9272e03b72c5355ff56e541d8"}
189
188
  Authenticating with gds_sso strategy
190
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
191
-  (0.1ms) begin transaction
192
-  (0.1ms) commit transaction
193
-  (0.1ms) begin transaction
194
-  (0.1ms) commit transaction
195
- Redirected to http://www.example-client.com/restricted
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
198
- Processing by ExampleController#restricted as HTML
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]]
189
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
190
+  (0.0ms) begin transaction
191
+  (0.0ms) commit transaction
192
+  (0.0ms) begin transaction
193
+  (0.0ms) commit transaction
194
+ Redirected to http://www.example-client.com/this_requires_signin_permission
195
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
196
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
197
+ Processing by ExampleController#this_requires_signin_permission as HTML
198
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
200
199
  Rendering text template
201
200
  Rendered text template (0.0ms)
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
201
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
202
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
204
203
  Processing by ExampleController#restricted as HTML
205
204
  Authenticating with gds_sso strategy
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
205
+ Completed in 0ms (ActiveRecord: 0.0ms)
206
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
207
+ Started GET "/auth/gds/callback?code=tlRtnbAQaNdUZKWz6OG5VD6z9maEtek2GTclYpGuMmA&state=764d2347a8f8844675c442c308185ab4ce9823c74aa4ff32" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
209
208
  Processing by AuthenticationsController#callback as HTML
210
- Parameters: {"code"=>"GgVBx-pk8SdrXsHbI01gIAgtXSBJms0gCtHAjVNxF18", "state"=>"6b4c711f8a12ef292ee88de78c83b99a975fa2c9a123022d"}
209
+ Parameters: {"code"=>"tlRtnbAQaNdUZKWz6OG5VD6z9maEtek2GTclYpGuMmA", "state"=>"764d2347a8f8844675c442c308185ab4ce9823c74aa4ff32"}
211
210
  Authenticating with gds_sso strategy
212
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
213
-  (0.2ms) begin transaction
214
-  (0.2ms) commit transaction
215
-  (0.1ms) begin transaction
216
-  (0.1ms) commit transaction
211
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
212
+  (0.0ms) begin transaction
213
+  (0.0ms) commit transaction
214
+  (0.0ms) begin transaction
215
+  (0.0ms) commit transaction
217
216
  Redirected to http://www.example-client.com/restricted
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
217
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
218
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
220
219
  Processing by ExampleController#restricted as HTML
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]]
220
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
222
221
  Rendering text template
223
222
  Rendered text template (0.0ms)
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
223
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
224
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:08 +0000
226
225
  Processing by ExampleController#restricted as HTML
227
226
  Authenticating with gds_sso strategy
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
227
+ Completed in 0ms (ActiveRecord: 0.0ms)
228
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:08 +0000
229
+ Started GET "/auth/gds/callback?code=TX-Dit4R5ro4yCmL0bUfsLk616jpnnnUNsTdcabklwY&state=a1cb8699b7eb0d6de93b0caaba7f2ded57059c7abd1754d7" for 127.0.0.1 at 2021-06-25 11:12:08 +0000
231
230
  Processing by AuthenticationsController#callback as HTML
232
- Parameters: {"code"=>"OCGbbCIr-vDoYGR_2sRzEFYdDFr7x9TP4fc2p16jWE8", "state"=>"3e3cb71f323db6b923ffdf61d0418b264a5ffebf6160f63d"}
231
+ Parameters: {"code"=>"TX-Dit4R5ro4yCmL0bUfsLk616jpnnnUNsTdcabklwY", "state"=>"a1cb8699b7eb0d6de93b0caaba7f2ded57059c7abd1754d7"}
233
232
  Authenticating with gds_sso strategy
234
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
235
-  (0.1ms) begin transaction
236
-  (0.1ms) commit transaction
237
-  (0.1ms) begin transaction
238
-  (0.1ms) commit transaction
233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
234
+  (0.0ms) begin transaction
235
+  (0.0ms) commit transaction
236
+  (0.0ms) begin transaction
237
+  (0.0ms) commit transaction
239
238
  Redirected to http://www.example-client.com/restricted
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
239
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
240
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:08 +0000
242
241
  Processing by ExampleController#restricted as HTML
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
242
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
249
243
  Rendering text template
250
244
  Rendered text template (0.0ms)
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
245
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
246
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
253
247
  Processing by ExampleController#restricted as HTML
254
248
  Authenticating with gds_sso strategy
255
249
  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
250
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
251
+ Started GET "/auth/gds/callback?code=Gqyv0uClLzMapeInmPjLluoM_UT6zW41Ya_KhtIDYic&state=5ff2ff6ae1a3056f5bec86e1a0c4ee8222fafd644f3c8563" for 127.0.0.1 at 2021-06-24 15:07:08 +0000
258
252
  Processing by AuthenticationsController#callback as HTML
259
- Parameters: {"code"=>"NsjNUHfVtSG4vhV7N62Qa7PdOg7fEXWd_5P_PB67O7g", "state"=>"cc1ccab0a203831db61f52a6027fb073078780d82473dcb1"}
253
+ Parameters: {"code"=>"Gqyv0uClLzMapeInmPjLluoM_UT6zW41Ya_KhtIDYic", "state"=>"5ff2ff6ae1a3056f5bec86e1a0c4ee8222fafd644f3c8563"}
260
254
  Authenticating with gds_sso strategy
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
263
-  (0.1ms) commit transaction
264
-  (0.1ms) begin transaction
265
-  (0.1ms) commit transaction
255
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
256
+  (0.0ms) begin transaction
257
+  (0.0ms) commit transaction
258
+  (0.0ms) begin transaction
259
+  (0.0ms) commit transaction
266
260
  Redirected to http://www.example-client.com/restricted
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
261
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
262
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
269
263
  Processing by ExampleController#restricted as HTML
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]]
264
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
271
265
  Rendering text template
272
266
  Rendered text template (0.0ms)
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
279
- Processing by ExampleController#restricted as HTML
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]]
281
- Authenticating with gds_sso strategy
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
285
- Processing by AuthenticationsController#callback as HTML
286
- Parameters: {"code"=>"AAHc6IBqdonjmnnQpy6FsaMe2irrObVMsXS454Jys0A", "state"=>"0cf6b1709a48471c092563aff55cc600aa927a910c57837b"}
287
- Authenticating with gds_sso strategy
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
290
-  (0.1ms) commit transaction
291
-  (0.1ms) begin 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
294
- Redirected to http://www.example-client.com/restricted
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
267
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:09 +0000
297
269
  Processing by ExampleController#restricted as HTML
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]]
299
- Rendering text template
300
- Rendered text template (0.0ms)
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
270
+ Authenticating with gds_sso strategy
271
+ Completed in 0ms (ActiveRecord: 0.0ms)
272
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:09 +0000
273
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
303
274
  Processing by ExampleController#restricted as HTML
304
275
  Authenticating with gds_sso strategy
305
276
  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
277
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
278
+ Started GET "/auth/gds/callback?code=yJtbB5CRnuDKnwe9XSLZaBCccckpGxEwQCM6OWw-eLk&state=815a41e2c550c84cfb667c409418f6eedfd0eb3690f93df1" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
308
279
  Processing by AuthenticationsController#callback as HTML
309
- Parameters: {"code"=>"9BOJnQTFGfLiQWtAWiryzU939095WY-FKCVh3f9WayI", "state"=>"d2123ae28df5944198b5ea755b51895a76fbeaf5aa945c75"}
280
+ Parameters: {"code"=>"yJtbB5CRnuDKnwe9XSLZaBCccckpGxEwQCM6OWw-eLk", "state"=>"815a41e2c550c84cfb667c409418f6eedfd0eb3690f93df1"}
310
281
  Authenticating with gds_sso strategy
311
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
312
-  (0.1ms) begin transaction
313
-  (0.1ms) commit transaction
314
-  (0.1ms) begin transaction
315
-  (0.1ms) commit transaction
282
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
283
+  (0.0ms) begin transaction
284
+  (0.0ms) commit transaction
285
+  (0.0ms) begin transaction
286
+  (0.0ms) commit transaction
316
287
  Redirected to http://www.example-client.com/restricted
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
288
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
289
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
319
290
  Processing by ExampleController#restricted as HTML
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]]
291
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
321
292
  Rendering text template
322
293
  Rendered text template (0.0ms)
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
294
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
295
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:02:09 +0000
325
296
  Processing by ExampleController#restricted as HTML
326
- Authenticating with gds_sso strategy
327
- Completed in 1ms (ActiveRecord: 0.0ms)
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
297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
298
+ Rendering text template
299
+ Rendered text template (0.0ms)
300
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
301
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
330
302
  Processing by ExampleController#restricted as HTML
331
303
  Authenticating with gds_sso strategy
332
304
  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
305
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
306
+ Started GET "/auth/gds/callback?code=fKA2Ed_HU0kWKA324oPPtDfr3Sh8AII2cxTTaxm_3Ok&state=cd50d65c7480e61ab422172c435cdce1372489ce8e46cb23" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
335
307
  Processing by AuthenticationsController#callback as HTML
336
- Parameters: {"code"=>"AWNqZG3m-uIGse3YK1Rej37QoMdQjrZPyLc2xrbb5mY", "state"=>"c3aedbbad6bf9a88f2e32e1d7351acbb7fc1080e85baa97d"}
308
+ Parameters: {"code"=>"fKA2Ed_HU0kWKA324oPPtDfr3Sh8AII2cxTTaxm_3Ok", "state"=>"cd50d65c7480e61ab422172c435cdce1372489ce8e46cb23"}
337
309
  Authenticating with gds_sso strategy
338
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
339
-  (0.1ms) begin transaction
340
-  (0.1ms) commit transaction
341
-  (0.1ms) begin transaction
342
-  (0.1ms) commit transaction
310
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
311
+  (0.0ms) begin transaction
312
+  (0.0ms) commit transaction
313
+  (0.0ms) begin transaction
314
+  (0.0ms) commit transaction
343
315
  Redirected to http://www.example-client.com/restricted
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
316
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
317
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
346
318
  Processing by ExampleController#restricted as HTML
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]]
319
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
348
320
  Rendering text template
349
321
  Rendered text template (0.0ms)
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
322
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
323
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
324
+  (0.0ms) begin transaction
325
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
326
+  (5.7ms) commit transaction
327
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
352
328
  Processing by ExampleController#restricted as HTML
329
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
353
330
  Authenticating with gds_sso strategy
354
- Completed in 1ms (ActiveRecord: 0.0ms)
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
331
+ Completed in 1ms (ActiveRecord: 0.1ms)
332
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
333
+ Started GET "/auth/gds/callback?code=NtUq4fRr1tLEey7AbWdRAZaxmWKwtrZBqo_o7_6d6m0&state=b099bae0a24fb8a0b53f057ab12b3c7c3828651b0b632c87" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
357
334
  Processing by AuthenticationsController#callback as HTML
358
- Parameters: {"code"=>"hnnbJVh7CLnARnqDPgl46iljnXXzRik6SpMXuknRRdg", "state"=>"4a9222d796b215689061c58a212391c4e3349824aebf6754"}
335
+ Parameters: {"code"=>"NtUq4fRr1tLEey7AbWdRAZaxmWKwtrZBqo_o7_6d6m0", "state"=>"b099bae0a24fb8a0b53f057ab12b3c7c3828651b0b632c87"}
359
336
  Authenticating with gds_sso strategy
360
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
361
-  (0.1ms) begin transaction
362
-  (0.1ms) commit transaction
363
-  (0.1ms) begin transaction
364
-  (0.1ms) commit transaction
337
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
338
+  (0.0ms) begin transaction
339
+  (0.0ms) commit transaction
340
+  (0.0ms) begin transaction
341
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
342
+  (5.2ms) commit transaction
365
343
  Redirected to http://www.example-client.com/restricted
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
344
+ Completed 302 Found in 7ms (ActiveRecord: 5.6ms)
345
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
368
346
  Processing by ExampleController#restricted as HTML
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]]
347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
370
348
  Rendering text template
371
349
  Rendered text template (0.0ms)
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
350
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
351
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
374
352
  Processing by ExampleController#restricted as HTML
375
353
  Authenticating with gds_sso strategy
376
354
  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
379
- Processing by AuthenticationsController#callback as HTML
380
- Parameters: {"code"=>"QpWFyXKxMVR094o1oISpgUJkKFDvfKV0900glRtQq1M", "state"=>"6ed8d7e0a8936f57670b834b8102d232165219569bd5dd69"}
381
- Authenticating with gds_sso strategy
382
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
383
-  (0.1ms) begin transaction
384
-  (0.1ms) commit transaction
385
-  (0.1ms) begin transaction
386
-  (0.1ms) commit transaction
387
- Redirected to http://www.example-client.com/restricted
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
390
- Processing by ExampleController#restricted as HTML
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]]
355
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
356
+ Processing by ExampleController#this_requires_signin_permission as JSON
357
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
358
+  (0.0ms) begin transaction
359
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
360
+  (11.9ms) commit transaction
361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
362
+  (0.0ms) begin transaction
363
+  (0.0ms) commit transaction
364
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
365
+  (0.0ms) begin transaction
366
+  (0.0ms) commit transaction
367
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
368
+  (0.0ms) begin transaction
369
+  (0.0ms) commit transaction
370
+  (0.0ms) begin transaction
371
+  (0.0ms) commit transaction
392
372
  Rendering text template
393
373
  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
396
- Processing by ExampleController#restricted as HTML
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]]
374
+ Completed 200 OK in 26ms (Views: 0.2ms | ActiveRecord: 12.5ms)
375
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
376
+ Processing by ExampleController#restricted as JSON
377
+ Completed in 7ms (ActiveRecord: 0.0ms)
378
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
379
+ Processing by ExampleController#restricted as JSON
380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
381
+  (0.0ms) begin transaction
382
+  (0.0ms) commit transaction
383
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
384
+  (0.0ms) begin transaction
385
+  (0.0ms) commit transaction
386
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
387
+  (0.0ms) begin transaction
388
+  (0.0ms) commit transaction
389
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
390
+  (0.0ms) begin transaction
391
+  (0.0ms) commit transaction
392
+  (0.0ms) begin transaction
393
+  (0.0ms) commit transaction
398
394
  Rendering text template
399
395
  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"]]
396
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
397
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:09 +0000
398
+ Processing by ExampleController#restricted as JSON
399
+ Completed in 11ms (ActiveRecord: 0.0ms)
400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
402
+  (0.0ms) begin transaction
403
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
416
404
   (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]]
405
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
406
+  (0.0ms) begin transaction
407
+  (0.0ms) commit transaction
408
+  (1.1ms) SELECT sqlite_version(*)
409
+  (0.0ms) SELECT sqlite_version(*)
410
+  (0.1ms) DROP TABLE IF EXISTS "users"
411
+  (21.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
412
+  (9.5ms) 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.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
+ TRANSACTION (0.0ms) 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", "2021-06-24 15:07:17.817637"], ["updated_at", "2021-06-24 15:07:17.817637"]]
416
+ TRANSACTION (4.0ms) commit transaction
417
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
418
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
419
419
   (0.1ms) SELECT sqlite_version(*)
420
- Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:52:55 +0000
421
- Processing by ExampleController#restricted as JSON
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
424
- Processing by ExampleController#restricted as JSON
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]]
430
-  (0.1ms) begin 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]]
436
-  (0.1ms) begin 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
439
- Rendering text template
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]]
448
- Rendering text template
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
452
- Processing by ExampleController#restricted as HTML
453
- Authenticating with gds_sso strategy
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
457
- Processing by AuthenticationsController#callback as HTML
458
- Parameters: {"code"=>"b_2-Ib_r2oPjmZBVJNOIlRKR8KuTEsRD6FAPBlgj3uA", "state"=>"ef5ed429ff69d99cd311f3c998a730fea024b5bb42461073"}
459
- Authenticating with gds_sso strategy
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
464
- Redirected to http://www.example-client.com/restricted
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
467
- Processing by ExampleController#restricted as HTML
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
473
- Processing by ExampleController#restricted as HTML
474
- Authenticating with gds_sso strategy
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
478
- Processing by AuthenticationsController#callback as HTML
479
- Parameters: {"code"=>"AJZBakZ1kYOAjgThoZP9jDQzffzNHapklcR02rTxEsY", "state"=>"70e7030a9f25bf91b727397b6b26e8bc55d1ab7eb3eb17a3"}
480
- Authenticating with gds_sso strategy
481
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
482
- Redirected to http://www.example-client.com/restricted
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
485
- Processing by ExampleController#restricted as HTML
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]]
420
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
421
+ TRANSACTION (0.0ms) begin transaction
422
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "8757"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
423
+ TRANSACTION (5.8ms) commit transaction
424
+ TRANSACTION (0.0ms) begin transaction
425
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
426
+ TRANSACTION (4.6ms) commit transaction
427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
428
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
429
+ TRANSACTION (0.0ms) begin transaction
430
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
431
+ TRANSACTION (3.8ms) commit transaction
432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
433
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
434
+ Processing by ExampleController#restricted as HTML
435
+ Authenticating with gds_sso strategy
436
+ Completed in 11ms (ActiveRecord: 0.0ms | Allocations: 1328)
437
+ Started GET "/" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
438
+ Processing by ExampleController#index as HTML
487
439
  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
440
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
441
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms | Allocations: 1295)
442
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
491
443
  Processing by ExampleController#restricted as HTML
492
444
  Authenticating with gds_sso strategy
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
445
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 140)
446
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
447
+ Started GET "/auth/gds/callback?code=39AdRZzCXy86wvQ2csEN2uJvpEPwXEdV3tB6xITV6X8&state=7c4adf039ec5430052b3b96f70921e4524699771d44aa135" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
496
448
  Processing by AuthenticationsController#callback as HTML
497
- Parameters: {"code"=>"DPCDsQu1AQQBnstzhyy8JQj49qACdapfJIWdPPri0f4", "state"=>"88752f4326da8a89f89eac02f30f2b38aaccf23d149ad603"}
498
- Authenticating with gds_sso strategy
499
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
449
+ Parameters: {"code"=>"39AdRZzCXy86wvQ2csEN2uJvpEPwXEdV3tB6xITV6X8", "state"=>"7c4adf039ec5430052b3b96f70921e4524699771d44aa135"}
450
+ Authenticating with gds_sso strategy
451
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
453
+ TRANSACTION (0.0ms) begin transaction
454
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
455
+ TRANSACTION (4.5ms) commit transaction
456
+ TRANSACTION (0.0ms) begin transaction
457
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 3]]
458
+ TRANSACTION (5.2ms) commit transaction
500
459
  Redirected to http://www.example-client.com/restricted
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
460
+ Completed 302 Found in 13ms (ActiveRecord: 10.3ms | Allocations: 1505)
461
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
503
462
  Processing by ExampleController#restricted as HTML
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]]
463
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
505
464
  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
509
- Processing by ExampleController#index as HTML
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
465
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
466
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms | Allocations: 742)
467
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
514
468
  Processing by ExampleController#this_requires_signin_permission as HTML
515
469
  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
470
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
471
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
472
+ Started GET "/auth/gds/callback?code=pNzHNSC1T5XozVikGQWhSATH5Pb1Kc8WpjEiIWxpANw&state=46e8ef44600a67a54dc7b346013613b0f1b3a57f50f9aec6" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
519
473
  Processing by AuthenticationsController#callback as HTML
520
- Parameters: {"code"=>"k-RDkHpeXDmdhstyHWuZ-Ow_UnlRhftWFB5Hmr19woo", "state"=>"42671e294792aec9bd0270d48a5c921f5119fe389c35a95c"}
474
+ Parameters: {"code"=>"pNzHNSC1T5XozVikGQWhSATH5Pb1Kc8WpjEiIWxpANw", "state"=>"46e8ef44600a67a54dc7b346013613b0f1b3a57f50f9aec6"}
521
475
  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]]
476
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
523
477
  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
478
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
479
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
526
480
  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]]
481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
528
482
  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
483
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
484
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
485
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
532
486
  Processing by ExampleController#this_requires_signin_permission as HTML
533
487
  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
488
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
489
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
490
+ Started GET "/auth/gds/callback?code=_HKrxwsuFfoFI-EFGPOoR-YluJPGHk5JAFUB3VJVF-k&state=409daeb35905cbe0a219109a8bc52eb5ceffdea03d5ef8dd" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
537
491
  Processing by AuthenticationsController#callback as HTML
538
- Parameters: {"code"=>"q5639lKIR09UopFgnm45-ZfwfHAiytUMJGvXZenppbQ", "state"=>"e7cddc284afd633a1da4cbbe6531e0bb0cbb306796328249"}
492
+ Parameters: {"code"=>"_HKrxwsuFfoFI-EFGPOoR-YluJPGHk5JAFUB3VJVF-k", "state"=>"409daeb35905cbe0a219109a8bc52eb5ceffdea03d5ef8dd"}
539
493
  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]]
494
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
541
495
  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
496
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 956)
497
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
544
498
  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]]
499
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
546
500
  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
501
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
502
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 711)
503
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
550
504
  Processing by ExampleController#restricted as HTML
551
505
  Authenticating with gds_sso strategy
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
506
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
507
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
508
+ Started GET "/auth/gds/callback?code=mHs-lXzKmDFHB1SXCSJuXn7W9OVNcOsYIx_k2v3fot4&state=1fceb89873dc52d3ee983aa065b8015d1ec5427ca4f1b534" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
555
509
  Processing by AuthenticationsController#callback as HTML
556
- Parameters: {"code"=>"N7bL-VXztK2wSG1Ggj72eOeXbR4t-IiNtNmvPpTDGAs", "state"=>"f0b15534380aeb9a3da9fee4d669204f5e206fe9ab5090e4"}
510
+ Parameters: {"code"=>"mHs-lXzKmDFHB1SXCSJuXn7W9OVNcOsYIx_k2v3fot4", "state"=>"1fceb89873dc52d3ee983aa065b8015d1ec5427ca4f1b534"}
557
511
  Authenticating with gds_sso strategy
558
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
559
513
  Redirected to http://www.example-client.com/restricted
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
514
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
515
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
562
516
  Processing by ExampleController#restricted as HTML
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]]
517
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
564
518
  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
572
- Processing by ExampleController#restricted as HTML
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]]
574
- Authenticating with gds_sso strategy
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
519
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
520
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 712)
521
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
522
+ Processing by ExampleController#restricted as HTML
523
+ Authenticating with gds_sso strategy
524
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
525
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
526
+ Started GET "/auth/gds/callback?code=qGB_SkFJJy4j6W9IgVMlC1mUE77LKceIgTi380YIVL4&state=8d35f367cd0356ae3ccef692df23e1ca21b955512c64ede6" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
578
527
  Processing by AuthenticationsController#callback as HTML
579
- Parameters: {"code"=>"7QHUtQfh2XG49CTFR8aw-2iTd6QOjfWBiWDrHihsE2Y", "state"=>"a559f084d4105bb1a40f327b63614cca5e0020555cfa08af"}
528
+ Parameters: {"code"=>"qGB_SkFJJy4j6W9IgVMlC1mUE77LKceIgTi380YIVL4", "state"=>"8d35f367cd0356ae3ccef692df23e1ca21b955512c64ede6"}
580
529
  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
530
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
585
531
  Redirected to http://www.example-client.com/restricted
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
532
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
533
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
588
534
  Processing by ExampleController#restricted as HTML
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]]
535
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
590
536
  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
537
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
538
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 712)
539
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
594
540
  Processing by ExampleController#restricted as HTML
595
541
  Authenticating with gds_sso strategy
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
542
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
543
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
544
+ Started GET "/auth/gds/callback?code=l46JFUPUTn9KVOA0npfn8WGyqd98OtcoJa45dGcsyco&state=e415c039785d1bb4e4d30ff012814293de4b1263c6179356" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
599
545
  Processing by AuthenticationsController#callback as HTML
600
- Parameters: {"code"=>"xqlgPJm49_cEnbmq9W3ecIyz1-hRRCmwO8iOKM5Ldng", "state"=>"009439f00c662ca83b0bab98b996536e179293a5622ae9e7"}
546
+ Parameters: {"code"=>"l46JFUPUTn9KVOA0npfn8WGyqd98OtcoJa45dGcsyco", "state"=>"e415c039785d1bb4e4d30ff012814293de4b1263c6179356"}
601
547
  Authenticating with gds_sso strategy
602
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
548
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
603
549
  Redirected to http://www.example-client.com/restricted
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
550
+ Completed 302 Found in 12ms (ActiveRecord: 0.1ms | Allocations: 954)
551
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
606
552
  Processing by ExampleController#restricted as HTML
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]]
553
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
608
554
  Rendering text template
609
555
  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
556
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 715)
557
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
612
558
  Processing by ExampleController#restricted as HTML
613
559
  Authenticating with gds_sso strategy
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
560
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 524)
561
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
562
+ Started GET "/auth/gds/callback?code=SxZ-tTP80KGWJkoBBt1_xI42jpfkq_Tp0UU-ruzJPiU&state=a1c8b4d7a2a25e7563d7a2fbbd3f8688a6d271a15ff7898c" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
617
563
  Processing by AuthenticationsController#callback as HTML
618
- Parameters: {"code"=>"z1291mcVUg_s8ksaI-nNIokU7ECu3yv1YDNQiFa8i50", "state"=>"1ea28baeb6876edadccf890a879f7d369f750f9f3f27b31f"}
564
+ Parameters: {"code"=>"SxZ-tTP80KGWJkoBBt1_xI42jpfkq_Tp0UU-ruzJPiU", "state"=>"a1c8b4d7a2a25e7563d7a2fbbd3f8688a6d271a15ff7898c"}
619
565
  Authenticating with gds_sso strategy
620
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
621
567
  Redirected to http://www.example-client.com/restricted
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
568
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1166)
569
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
624
570
  Processing by ExampleController#restricted as HTML
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]]
571
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
626
572
  Rendering text template
627
573
  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
574
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 947)
575
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
630
576
  Processing by ExampleController#restricted as HTML
631
577
  Authenticating with gds_sso strategy
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
578
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
579
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
580
+ Started GET "/auth/gds/callback?code=9tZhB8q-sHj4s08XFIn3q-ZACshjd_9GnxL-H52KS6E&state=15434d9a957c9d030fdc5917d2446f85e9f189bea4b0fd00" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
635
581
  Processing by AuthenticationsController#callback as HTML
636
- Parameters: {"code"=>"aaiEaWwk7_R0hXY0cdRRKscYM5RoxBuKEeSzkJzMrbo", "state"=>"5986582c6f804fbf03b80e2b1c92ff6cf3011ad9e32474f7"}
582
+ Parameters: {"code"=>"9tZhB8q-sHj4s08XFIn3q-ZACshjd_9GnxL-H52KS6E", "state"=>"15434d9a957c9d030fdc5917d2446f85e9f189bea4b0fd00"}
637
583
  Authenticating with gds_sso strategy
638
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
639
585
  Redirected to http://www.example-client.com/restricted
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
586
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
587
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
642
588
  Processing by ExampleController#restricted as HTML
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]]
589
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
644
590
  Rendering text template
645
591
  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
592
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 712)
593
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
648
594
  Processing by ExampleController#restricted as HTML
649
595
  Authenticating with gds_sso strategy
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
596
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 524)
597
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:18 +0000
598
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
653
599
  Processing by ExampleController#restricted as HTML
654
600
  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
601
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
602
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
603
+ Started GET "/auth/gds/callback?code=YU6PMQzhZarCYt9tRe-8sXk3Q3Yv7oJIaRG9USCiX4c&state=9acc47d76439cc66fed03928f992f7dbafdf8898eba15334" for 127.0.0.1 at 2021-06-24 15:07:18 +0000
658
604
  Processing by AuthenticationsController#callback as HTML
659
- Parameters: {"code"=>"CZGHcjZyGZDtRxEXepFZBkZn6RSGHZ8qgoJuFElI0AA", "state"=>"892b5375f170b477e9da34b832557ee1532a8fa048ed8e81"}
605
+ Parameters: {"code"=>"YU6PMQzhZarCYt9tRe-8sXk3Q3Yv7oJIaRG9USCiX4c", "state"=>"9acc47d76439cc66fed03928f992f7dbafdf8898eba15334"}
660
606
  Authenticating with gds_sso strategy
661
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
607
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
662
608
  Redirected to http://www.example-client.com/restricted
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
609
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
610
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
665
611
  Processing by ExampleController#restricted as HTML
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]]
612
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
667
613
  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
614
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
615
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 712)
616
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:02:19 +0000
671
617
  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]]
618
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
673
619
  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
677
- Processing by ExampleController#restricted as HTML
678
- Authenticating with gds_sso strategy
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]]
681
-  (0.2ms) begin transaction
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
620
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
621
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 945)
622
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
623
+ Processing by ExampleController#restricted as HTML
624
+ Authenticating with gds_sso strategy
625
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
626
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
627
+ Started GET "/auth/gds/callback?code=XlCeG0-vhjY847bzPqxjnmxw_cPVPIltwvDtysehTfQ&state=ef0633f755ced30ca91ff947401b0b0a7817719961569994" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
628
+ Processing by AuthenticationsController#callback as HTML
629
+ Parameters: {"code"=>"XlCeG0-vhjY847bzPqxjnmxw_cPVPIltwvDtysehTfQ", "state"=>"ef0633f755ced30ca91ff947401b0b0a7817719961569994"}
630
+ Authenticating with gds_sso strategy
631
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
632
+ Redirected to http://www.example-client.com/restricted
633
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 956)
634
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
635
+ Processing by ExampleController#restricted as HTML
636
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
637
+ Rendering text template
638
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
639
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 714)
640
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
641
+ TRANSACTION (0.0ms) begin transaction
642
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 3]]
643
+ TRANSACTION (3.5ms) commit transaction
644
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
645
+ Processing by ExampleController#restricted as HTML
646
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
647
+ Authenticating with gds_sso strategy
648
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 582)
649
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
650
+ Started GET "/auth/gds/callback?code=h8HMJubRbRZ_7IaVfXioZ2NnDsXe2Fonu7M6VVRtQZA&state=412aed4624fa25935ed5f4e4cf613bed99d86ff9558353fc" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
651
+ Processing by AuthenticationsController#callback as HTML
652
+ Parameters: {"code"=>"h8HMJubRbRZ_7IaVfXioZ2NnDsXe2Fonu7M6VVRtQZA", "state"=>"412aed4624fa25935ed5f4e4cf613bed99d86ff9558353fc"}
653
+ Authenticating with gds_sso strategy
654
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
655
+ TRANSACTION (0.0ms) begin transaction
656
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 3]]
657
+ TRANSACTION (4.4ms) commit transaction
658
+ Redirected to http://www.example-client.com/restricted
659
+ Completed 302 Found in 7ms (ActiveRecord: 4.7ms | Allocations: 1162)
660
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
661
+ Processing by ExampleController#restricted as HTML
662
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
663
+ Rendering text template
664
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
665
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 710)
666
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
667
+ Processing by ExampleController#restricted as JSON
668
+ Completed in 12ms (ActiveRecord: 0.0ms | Allocations: 2196)
669
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
670
+ Processing by ExampleController#restricted as JSON
671
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
672
+ TRANSACTION (0.0ms) begin transaction
673
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 3]]
674
+ TRANSACTION (3.8ms) commit transaction
675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
676
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
677
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
678
+ Rendering text template
679
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
680
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 4.2ms | Allocations: 3566)
681
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
682
+ Processing by ExampleController#this_requires_signin_permission as JSON
683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
684
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
685
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
686
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
+ Rendering text template
688
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
689
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 3267)
690
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:19 +0000
691
+ Processing by ExampleController#restricted as JSON
692
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1912)
693
+ TRANSACTION (0.0ms) begin transaction
694
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31638"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
695
+ TRANSACTION (3.6ms) commit transaction
696
+ TRANSACTION (0.0ms) begin transaction
697
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33347"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
698
+ TRANSACTION (4.6ms) commit transaction
740
699
  Processing by Api::UserController#reauth as HTML
741
700
  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
701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
702
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 545)
703
+ TRANSACTION (0.0ms) begin transaction
704
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35732"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
705
+ TRANSACTION (3.8ms) commit transaction
706
+ TRANSACTION (0.0ms) begin transaction
707
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37370"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
708
+ TRANSACTION (4.9ms) commit transaction
775
709
  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
710
+ Parameters: {"uid"=>"a1s2d35732"}
711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35732"], ["LIMIT", 1]]
712
+ TRANSACTION (0.0ms) begin transaction
713
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 6]]
714
+ TRANSACTION (3.2ms) commit transaction
715
+ Completed 200 OK in 5ms (ActiveRecord: 3.5ms | Allocations: 888)
716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
717
+ TRANSACTION (0.0ms) begin transaction
718
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36063"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
719
+ TRANSACTION (5.0ms) commit transaction
720
+ TRANSACTION (0.0ms) begin transaction
721
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37559"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
722
+ TRANSACTION (3.7ms) commit transaction
785
723
  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
724
+ Parameters: {"uid"=>"a1s2d36063"}
725
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
726
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
788
727
  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)
728
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 262)
790
729
  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
730
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.6ms | Allocations: 356)
731
+ Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms | Allocations: 1595)
732
+ TRANSACTION (0.0ms) begin transaction
733
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31534"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
734
+ TRANSACTION (4.6ms) commit transaction
735
+ TRANSACTION (0.0ms) begin transaction
736
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31632"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
737
+ TRANSACTION (4.0ms) commit transaction
812
738
  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
739
+ Parameters: {"uid"=>"a1s2d31534"}
740
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31534"], ["LIMIT", 1]]
741
+ TRANSACTION (0.0ms) begin transaction
742
+ User Update (0.2ms) UPDATE "users" SET "name" = ?, "email" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["name", "Joshua Marshall"], ["email", "user@domain.com"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
743
+ TRANSACTION (4.7ms) commit transaction
744
+ Completed 200 OK in 7ms (ActiveRecord: 5.0ms | Allocations: 1230)
745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
746
+ TRANSACTION (0.0ms) begin transaction
747
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38627"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
748
+ TRANSACTION (3.8ms) commit transaction
749
+ TRANSACTION (0.3ms) begin transaction
750
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d366"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
751
+ TRANSACTION (4.7ms) commit transaction
826
752
  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
753
+ Parameters: {"uid"=>"a1s2d38627"}
754
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
755
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
829
756
  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)
757
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 55)
831
758
  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]]
839
-  (0.1ms) begin transaction
840
-  (0.1ms) commit transaction
841
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
842
-  (0.1ms) begin 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
845
-  (0.1ms) begin transaction
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
759
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.2ms | Allocations: 146)
760
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 528)
761
+  (0.1ms) DROP TABLE IF EXISTS "users"
762
+  (0.9ms) SELECT sqlite_version(*)
763
+  (9.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
764
+  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
765
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
766
+  (0.0ms) begin transaction
767
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-06-24 15:07:23.703952"], ["updated_at", "2021-06-24 15:07:23.703952"]]
768
+  (4.5ms) commit transaction
769
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
770
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
771
+  (0.0ms) begin transaction
772
+  (0.0ms) commit transaction
773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
774
+  (0.0ms) begin transaction
775
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1713"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
776
+  (4.9ms) commit transaction
777
+  (0.0ms) begin transaction
778
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
779
+  (3.8ms) commit transaction
780
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
781
+ Processing by ExampleController#restricted as HTML
782
+ Authenticating with gds_sso strategy
783
+ Completed in 4ms (ActiveRecord: 0.0ms)
784
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
849
785
  Processing by ExampleController#restricted as JSON
850
- Completed in 61ms (ActiveRecord: 0.0ms)
851
- Started GET "/restricted" for 127.0.0.1 at 2020-06-12 15:53:05 +0000
786
+ Completed in 15ms (ActiveRecord: 0.0ms)
787
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
852
788
  Processing by ExampleController#restricted as JSON
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
789
+ Completed in 6ms (ActiveRecord: 0.0ms)
790
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
855
791
  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]]
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]]
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]]
862
-  (0.1ms) begin transaction
863
-  (0.1ms) commit transaction
792
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
793
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
794
+  (0.0ms) begin transaction
795
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
796
+  (4.4ms) commit transaction
797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
798
+  (0.0ms) begin transaction
799
+  (0.0ms) commit transaction
864
800
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
865
-  (0.1ms) begin transaction
866
-  (0.1ms) commit transaction
801
+  (0.0ms) begin transaction
802
+  (0.0ms) commit transaction
867
803
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
868
-  (0.1ms) begin transaction
869
-  (0.1ms) commit transaction
870
-  (0.1ms) begin 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
804
+  (0.0ms) begin transaction
805
+  (0.0ms) commit transaction
806
+  (0.0ms) begin transaction
807
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
808
+  (3.5ms) commit transaction
873
809
  Rendering text template
874
810
  Rendered text template (0.0ms)
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
811
+ Completed 200 OK in 17ms (Views: 1.9ms | ActiveRecord: 8.7ms)
812
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
877
813
  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
880
-  (0.1ms) commit transaction
814
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
815
+  (0.0ms) begin transaction
816
+  (0.0ms) commit transaction
881
817
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
882
-  (0.1ms) begin transaction
883
-  (0.1ms) commit transaction
818
+  (0.0ms) begin transaction
819
+  (0.0ms) commit transaction
884
820
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
885
-  (0.1ms) begin transaction
886
-  (0.1ms) commit transaction
821
+  (0.0ms) begin transaction
822
+  (0.0ms) commit transaction
887
823
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
888
-  (0.2ms) begin transaction
889
-  (0.1ms) commit transaction
890
-  (0.1ms) begin transaction
891
-  (0.1ms) commit transaction
824
+  (0.0ms) begin transaction
825
+  (0.0ms) commit transaction
826
+  (0.0ms) begin transaction
827
+  (0.0ms) commit transaction
892
828
  Rendering text template
893
829
  Rendered text template (0.0ms)
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
830
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
831
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
896
832
  Processing by ExampleController#restricted as HTML
897
833
  Authenticating with gds_sso strategy
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
834
+ Completed in 0ms (ActiveRecord: 0.0ms)
835
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
836
+ Started GET "/auth/gds/callback?code=hWxTwmxDoE_djU24rcIQcLtp4pHI346HfrcrPGV3sX0&state=90fb5ee9023a6d52162c420629fff5987b7e6c68040a042a" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
901
837
  Processing by AuthenticationsController#callback as HTML
902
- Parameters: {"code"=>"bjI_ceXsizPvpTz1U0YSB4Cwt9fKMxXZWQJaDDqfNng", "state"=>"e698ab11f0a258b5a4c69d8cb4435400168b2eae2be9c8a4"}
838
+ Parameters: {"code"=>"hWxTwmxDoE_djU24rcIQcLtp4pHI346HfrcrPGV3sX0", "state"=>"90fb5ee9023a6d52162c420629fff5987b7e6c68040a042a"}
903
839
  Authenticating with gds_sso strategy
904
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
905
-  (0.1ms) begin transaction
906
- User Update (0.5ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 13]]
907
-  (7.0ms) commit transaction
908
-  (0.1ms) begin transaction
909
-  (0.1ms) commit transaction
840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
841
+  (0.0ms) begin transaction
842
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
843
+  (3.8ms) commit transaction
844
+  (0.0ms) begin transaction
845
+  (0.0ms) commit transaction
910
846
  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
847
+ Completed 302 Found in 6ms (ActiveRecord: 4.2ms)
848
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
913
849
  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]]
850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
915
851
  Rendering text template
916
852
  Rendered text template (0.0ms)
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
853
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
854
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
919
855
  Processing by ExampleController#restricted as HTML
920
856
  Authenticating with gds_sso strategy
921
857
  Completed in 0ms (ActiveRecord: 0.0ms)
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
858
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
859
+ Started GET "/auth/gds/callback?code=Y_W5wcdikisLMb3KJi-cZKxPViQvhiU9zxivtcQtJz0&state=7155300e1f22cb9a4bda1aad508df56dcc9d70ed6533f2b2" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
924
860
  Processing by AuthenticationsController#callback as HTML
925
- Parameters: {"code"=>"6UF383V2LfNJLXSSjk-vOupjhyRqkB2sfBysq3BlvvI", "state"=>"8dc485e29051ccdbe8f96311ef12c46ab663d1888646cd34"}
861
+ Parameters: {"code"=>"Y_W5wcdikisLMb3KJi-cZKxPViQvhiU9zxivtcQtJz0", "state"=>"7155300e1f22cb9a4bda1aad508df56dcc9d70ed6533f2b2"}
926
862
  Authenticating with gds_sso strategy
927
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
928
-  (0.1ms) begin transaction
929
-  (0.1ms) commit transaction
930
-  (0.1ms) begin transaction
931
-  (0.1ms) commit transaction
863
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
864
+  (0.0ms) begin transaction
865
+  (0.0ms) commit transaction
866
+  (0.0ms) begin transaction
867
+  (0.0ms) commit transaction
932
868
  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
869
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
870
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
935
871
  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]]
872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
937
873
  Rendering text template
938
874
  Rendered text template (0.0ms)
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
875
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
876
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
941
877
  Processing by ExampleController#restricted as HTML
942
878
  Authenticating with gds_sso strategy
943
879
  Completed in 0ms (ActiveRecord: 0.0ms)
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
880
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
881
+ Started GET "/auth/gds/callback?code=vAKhnOOH8Dwyw4GnbhMxPrYkcJwQZA6DA3lV4-bOzoc&state=6438221c90801a88449946169b173bbf29332fa50c7d0d6d" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
946
882
  Processing by AuthenticationsController#callback as HTML
947
- Parameters: {"code"=>"8Yu6eBcuRtDZstiqQJq9D21l_Tzye552Eyl7G6bphMI", "state"=>"27e8d11cbed016081d0028122b0bc5b0d9fb0a03cd5ed66f"}
883
+ Parameters: {"code"=>"vAKhnOOH8Dwyw4GnbhMxPrYkcJwQZA6DA3lV4-bOzoc", "state"=>"6438221c90801a88449946169b173bbf29332fa50c7d0d6d"}
948
884
  Authenticating with gds_sso strategy
949
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
885
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
950
886
   (0.1ms) begin transaction
951
-  (0.1ms) commit transaction
952
-  (0.1ms) begin transaction
953
-  (0.1ms) commit transaction
887
+  (0.0ms) commit transaction
888
+  (0.0ms) begin transaction
889
+  (0.0ms) commit transaction
954
890
  Redirected to http://www.example-client.com/restricted
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
891
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
892
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
957
893
  Processing by ExampleController#restricted as HTML
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]]
894
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
959
895
  Rendering text template
960
896
  Rendered text template (0.0ms)
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
897
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
898
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
963
899
  Processing by ExampleController#this_requires_signin_permission as HTML
964
900
  Authenticating with gds_sso strategy
965
901
  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
902
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
903
+ Started GET "/auth/gds/callback?code=OCvHEdwFmufCIFsECICIsYvEiD-LMle3SqFyjmEyUUU&state=aca01b34e1d0e4a05b4275c3e7bdc47ad3dd000cba702f5e" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
968
904
  Processing by AuthenticationsController#callback as HTML
969
- Parameters: {"code"=>"FHDMxIdFF5ZsScwzPVp_AhyI2xtEZlMnwVnRI37mE4g", "state"=>"cad6735ea6598ad5d31fadda0e445da56e0118e68e17b06c"}
905
+ Parameters: {"code"=>"OCvHEdwFmufCIFsECICIsYvEiD-LMle3SqFyjmEyUUU", "state"=>"aca01b34e1d0e4a05b4275c3e7bdc47ad3dd000cba702f5e"}
970
906
  Authenticating with gds_sso strategy
971
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
972
-  (0.1ms) begin transaction
973
-  (0.1ms) commit transaction
974
-  (0.1ms) begin transaction
975
-  (0.1ms) commit transaction
907
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
908
+  (0.0ms) begin transaction
909
+  (0.0ms) commit transaction
910
+  (0.0ms) begin transaction
911
+  (0.0ms) commit transaction
976
912
  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
913
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
914
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
979
915
  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]]
916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
981
917
  Rendering text template
982
918
  Rendered text template (0.0ms)
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
919
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
920
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
985
921
  Processing by ExampleController#this_requires_signin_permission as HTML
986
922
  Authenticating with gds_sso strategy
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
923
+ Completed in 0ms (ActiveRecord: 0.0ms)
924
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
925
+ Started GET "/auth/gds/callback?code=qyW_SKHyBKlyQrvPpeqtBA8H4Ci7-9odQJmlmVO8_Lw&state=17e8db4fcff60179dd8e66fc4e132aad1a2d020f4f62f9e4" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
990
926
  Processing by AuthenticationsController#callback as HTML
991
- Parameters: {"code"=>"SVLWJfMVq0vmSYJMoQvqkYLBeq_qU27ZR8c0Brx5D_c", "state"=>"96b0ce01c9307651dbbb7b78701d8fb5d53d402320f6c877"}
927
+ Parameters: {"code"=>"qyW_SKHyBKlyQrvPpeqtBA8H4Ci7-9odQJmlmVO8_Lw", "state"=>"17e8db4fcff60179dd8e66fc4e132aad1a2d020f4f62f9e4"}
992
928
  Authenticating with gds_sso strategy
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
995
-  (0.1ms) commit transaction
996
-  (0.1ms) begin transaction
997
-  (0.1ms) commit transaction
929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
930
+  (0.0ms) begin transaction
931
+  (0.0ms) commit transaction
932
+  (0.0ms) begin transaction
933
+  (0.0ms) commit transaction
998
934
  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
935
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
936
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1001
937
  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]]
938
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1003
939
  Rendering text template
1004
940
  Rendered text template (0.0ms)
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
941
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
942
+ Started GET "/" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1007
943
  Processing by ExampleController#index as HTML
1008
944
  Rendering text template
1009
945
  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
946
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
947
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1012
948
  Processing by ExampleController#restricted as HTML
1013
949
  Authenticating with gds_sso strategy
1014
950
  Completed in 0ms (ActiveRecord: 0.0ms)
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
951
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
952
+ Started GET "/auth/gds/callback?code=9W-zNi15XsVJmlLsShwUwuFlKP0MbywfukAKq6bYcT8&state=842f72102fffa4441281ddcc43546a6bcab66462c7b83ede" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1017
953
  Processing by AuthenticationsController#callback as HTML
1018
- Parameters: {"code"=>"1J6HGaqkvp3MFCsjQCxbIQqjht8ofLBCnPISK26EQog", "state"=>"993f0c8343a134923faeb160a904d98eb4c06abc543d1f5c"}
954
+ Parameters: {"code"=>"9W-zNi15XsVJmlLsShwUwuFlKP0MbywfukAKq6bYcT8", "state"=>"842f72102fffa4441281ddcc43546a6bcab66462c7b83ede"}
1019
955
  Authenticating with gds_sso strategy
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
1022
-  (0.1ms) commit transaction
1023
-  (0.1ms) begin transaction
1024
-  (0.1ms) commit transaction
956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
957
+  (0.0ms) begin transaction
958
+  (0.0ms) commit transaction
959
+  (0.0ms) begin transaction
960
+  (0.0ms) commit transaction
1025
961
  Redirected to http://www.example-client.com/restricted
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
962
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
963
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1028
964
  Processing by ExampleController#restricted as HTML
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]]
965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1030
966
  Rendering text template
1031
967
  Rendered text template (0.0ms)
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
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]]
1040
- Authenticating with gds_sso strategy
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
1044
- Processing by AuthenticationsController#callback as HTML
1045
- Parameters: {"code"=>"0x1W0ttUBAP8Aik9xYzUqLZUFJ3vqI5gNlbRYFY1ino", "state"=>"ee6515ecfaf837dc2b27cbdf8e370ed833b57d42c55949d0"}
1046
- Authenticating with gds_sso strategy
1047
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1048
-  (0.1ms) begin transaction
1049
-  (0.1ms) commit transaction
1050
-  (0.1ms) begin 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
1053
- Redirected to http://www.example-client.com/restricted
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
968
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
969
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:02:24 +0000
1056
970
  Processing by ExampleController#restricted as HTML
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]]
971
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1058
972
  Rendering text template
1059
973
  Rendered text template (0.0ms)
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
974
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
975
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1062
976
  Processing by ExampleController#restricted as HTML
1063
977
  Authenticating with gds_sso strategy
1064
- Completed in 1ms (ActiveRecord: 0.0ms)
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
978
+ Completed in 0ms (ActiveRecord: 0.0ms)
979
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
980
+ Started GET "/auth/gds/callback?code=5qrbYbf05gTD0xNEA2c14YT17KZWWznYMSSYcjy8NHY&state=8d93c84eacd1c79d540c926cc2dffb2bc980449c9b0641b1" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1067
981
  Processing by AuthenticationsController#callback as HTML
1068
- Parameters: {"code"=>"3n8AMpshXipGkCHo4mwdhXlVJOjYeRcHfK16hOHtjFo", "state"=>"4cb08cbedb17637a81ffde266b19c5329d7bee83d0c5fa7c"}
982
+ Parameters: {"code"=>"5qrbYbf05gTD0xNEA2c14YT17KZWWznYMSSYcjy8NHY", "state"=>"8d93c84eacd1c79d540c926cc2dffb2bc980449c9b0641b1"}
1069
983
  Authenticating with gds_sso strategy
1070
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1071
-  (0.1ms) begin transaction
1072
-  (0.2ms) commit transaction
1073
-  (0.2ms) begin transaction
1074
-  (0.1ms) commit transaction
984
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
985
+  (0.0ms) begin transaction
986
+  (0.0ms) commit transaction
987
+  (0.0ms) begin transaction
988
+  (0.0ms) commit transaction
1075
989
  Redirected to http://www.example-client.com/restricted
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
990
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
991
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1078
992
  Processing by ExampleController#restricted as HTML
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]]
993
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1080
994
  Rendering text template
1081
995
  Rendered text template (0.0ms)
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
1084
- Processing by ExampleController#restricted as HTML
1085
- Authenticating with gds_sso strategy
1086
- Completed in 1ms (ActiveRecord: 0.0ms)
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
996
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
997
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1089
998
  Processing by ExampleController#restricted as HTML
1090
999
  Authenticating with gds_sso strategy
1091
1000
  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
1001
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1002
+ Started GET "/auth/gds/callback?code=gHY0BRQJ7nr4ZwkkMp6Y9wENUu_wvURlMVfkXai4cCc&state=6b77f7008a8ef067f37e20aa6a05d8139334146feacdb6b3" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1094
1003
  Processing by AuthenticationsController#callback as HTML
1095
- Parameters: {"code"=>"3F14h1SKW91GoJr6E0tRWSoav6dac_d2w12bKwyQoaY", "state"=>"54af2282af2d9b98f286688d66131b7dbd825e179a0e34e7"}
1004
+ Parameters: {"code"=>"gHY0BRQJ7nr4ZwkkMp6Y9wENUu_wvURlMVfkXai4cCc", "state"=>"6b77f7008a8ef067f37e20aa6a05d8139334146feacdb6b3"}
1096
1005
  Authenticating with gds_sso strategy
1097
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1098
-  (0.1ms) begin transaction
1099
-  (0.1ms) commit transaction
1100
-  (0.1ms) begin transaction
1101
-  (0.1ms) commit transaction
1006
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1007
+  (0.0ms) begin transaction
1008
+  (0.0ms) commit transaction
1009
+  (0.0ms) begin transaction
1010
+  (0.0ms) commit transaction
1102
1011
  Redirected to http://www.example-client.com/restricted
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
1012
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1013
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1105
1014
  Processing by ExampleController#restricted as HTML
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]]
1015
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1107
1016
  Rendering text template
1108
1017
  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
1018
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1019
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1111
1020
  Processing by ExampleController#restricted as HTML
1112
1021
  Authenticating with gds_sso strategy
1113
- Completed in 1ms (ActiveRecord: 0.0ms)
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
1022
+ Completed in 0ms (ActiveRecord: 0.0ms)
1023
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1024
+ Started GET "/auth/gds/callback?code=1jtx162txkXxvNszRSoKVJ6wJCNo5f1RLY9yc7OBvic&state=026e1ebf304b918674c035245c7c88fd74914d443d86b370" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1116
1025
  Processing by AuthenticationsController#callback as HTML
1117
- Parameters: {"code"=>"L1Mu5ugstZ29bDh7W2cPsc73mgwqOyRx5ATOwncknmA", "state"=>"5fcad2700c5c36f2f6135d6bc7b9161d69858a7727be8a6b"}
1026
+ Parameters: {"code"=>"1jtx162txkXxvNszRSoKVJ6wJCNo5f1RLY9yc7OBvic", "state"=>"026e1ebf304b918674c035245c7c88fd74914d443d86b370"}
1118
1027
  Authenticating with gds_sso strategy
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
1121
-  (0.1ms) commit transaction
1122
-  (0.1ms) begin transaction
1123
-  (0.1ms) commit transaction
1028
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1029
+  (0.0ms) begin transaction
1030
+  (0.0ms) commit transaction
1031
+  (0.0ms) begin transaction
1032
+  (0.0ms) commit transaction
1124
1033
  Redirected to http://www.example-client.com/restricted
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
1034
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1035
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1127
1036
  Processing by ExampleController#restricted as HTML
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]]
1037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1129
1038
  Rendering text template
1130
1039
  Rendered text template (0.0ms)
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
1040
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1041
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1042
+ Processing by ExampleController#restricted as HTML
1043
+ Authenticating with gds_sso strategy
1044
+ Completed in 0ms (ActiveRecord: 0.0ms)
1045
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:24 +0000
1046
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1133
1047
  Processing by ExampleController#restricted as HTML
1134
1048
  Authenticating with gds_sso strategy
1135
1049
  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
1050
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1051
+ Started GET "/auth/gds/callback?code=qaq9OG5s1KEvIEUn9ZSp8hpqDPb_Kol_0Acdpyp_Ojk&state=aa64d0840148cb00c7b492760684d589fbafd42380353883" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1138
1052
  Processing by AuthenticationsController#callback as HTML
1139
- Parameters: {"code"=>"ei9-4sfSh4LyZ966JaoZ3WPoQ_yI5Cp1hCO9UKucCtA", "state"=>"b03f9265ace717461a7346f5ccff6795d3dddb5918008087"}
1053
+ Parameters: {"code"=>"qaq9OG5s1KEvIEUn9ZSp8hpqDPb_Kol_0Acdpyp_Ojk", "state"=>"aa64d0840148cb00c7b492760684d589fbafd42380353883"}
1140
1054
  Authenticating with gds_sso strategy
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
1144
-  (0.1ms) begin transaction
1145
-  (0.1ms) commit transaction
1055
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1056
+  (0.0ms) begin transaction
1057
+  (0.0ms) commit transaction
1058
+  (0.0ms) begin transaction
1059
+  (0.0ms) commit transaction
1146
1060
  Redirected to http://www.example-client.com/restricted
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
1061
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1062
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1149
1063
  Processing by ExampleController#restricted as HTML
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]]
1064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1151
1065
  Rendering text template
1152
1066
  Rendered text template (0.0ms)
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
1067
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1068
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1069
+  (0.1ms) begin transaction
1070
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1071
+  (5.4ms) commit transaction
1072
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1073
+ Processing by ExampleController#restricted as HTML
1074
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1075
+ Authenticating with gds_sso strategy
1076
+ Completed in 1ms (ActiveRecord: 0.1ms)
1077
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:24 +0000
1078
+ Started GET "/auth/gds/callback?code=gxtRcuvGynL28MfTKFhQtg9x0GhEzWUpEl1h79ckzwM&state=2634aebddf5ceb5a9ebf1926932dce412a9f592c0420a838" for 127.0.0.1 at 2021-06-24 15:07:25 +0000
1079
+ Processing by AuthenticationsController#callback as HTML
1080
+ Parameters: {"code"=>"gxtRcuvGynL28MfTKFhQtg9x0GhEzWUpEl1h79ckzwM", "state"=>"2634aebddf5ceb5a9ebf1926932dce412a9f592c0420a838"}
1081
+ Authenticating with gds_sso strategy
1082
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1083
+  (0.0ms) begin transaction
1084
+  (0.0ms) commit transaction
1085
+  (0.0ms) begin transaction
1086
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1087
+  (3.5ms) commit transaction
1088
+ Redirected to http://www.example-client.com/restricted
1089
+ Completed 302 Found in 6ms (ActiveRecord: 3.8ms)
1090
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:25 +0000
1155
1091
  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]]
1092
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1157
1093
  Rendering text template
1158
1094
  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
1095
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1096
+  (0.0ms) begin transaction
1097
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31715"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1098
+  (3.8ms) commit transaction
1099
+  (0.0ms) begin transaction
1100
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32759"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1101
+  (3.2ms) commit transaction
1102
+ Processing by Api::UserController#update as HTML
1103
+ Parameters: {"uid"=>"a1s2d31715"}
1104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31715"], ["LIMIT", 1]]
1105
+  (0.0ms) begin transaction
1106
+ User Update (0.1ms) 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]]
1107
+  (3.5ms) commit transaction
1108
+ Completed 200 OK in 5ms (ActiveRecord: 3.7ms)
1109
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1110
+  (0.0ms) begin transaction
1111
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31207"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1112
+  (4.6ms) commit transaction
1113
+  (0.0ms) begin transaction
1114
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33452"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1115
+  (4.1ms) commit transaction
1116
+ Processing by Api::UserController#update as HTML
1117
+ Parameters: {"uid"=>"a1s2d31207"}
1118
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1119
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1120
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1121
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1122
+ Completed 403 Forbidden in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
1123
+  (0.0ms) begin transaction
1124
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3971"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1125
+  (3.5ms) commit transaction
1126
+  (0.0ms) begin transaction
1127
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37077"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1128
+  (4.6ms) commit transaction
1188
1129
  Processing by Api::UserController#reauth as HTML
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
1130
+ Parameters: {"uid"=>"a1s2d3971"}
1131
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1132
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1133
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1134
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1135
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1136
+  (0.0ms) begin transaction
1137
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36487"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1138
+  (3.7ms) commit transaction
1139
+  (0.0ms) begin transaction
1140
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35006"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1141
+  (4.8ms) commit transaction
1202
1142
  Processing by Api::UserController#reauth as HTML
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)
1206
-  (0.2ms) begin 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
1143
+ Parameters: {"uid"=>"a1s2d36487"}
1144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36487"], ["LIMIT", 1]]
1145
+  (0.0ms) begin transaction
1146
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 9]]
1147
+  (4.2ms) commit transaction
1148
+ Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
1149
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1150
+  (0.0ms) begin transaction
1151
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34693"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1152
+  (4.5ms) commit transaction
1153
+  (0.0ms) begin transaction
1154
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35551"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1155
+  (3.8ms) commit transaction
1212
1156
  Processing by Api::UserController#reauth as HTML
1213
- Parameters: {"uid"=>"a1s2d34995"}
1214
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1157
+ Parameters: {"uid"=>"nonexistent-user"}
1158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1159
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1160
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1162
+  (0.0ms) begin transaction
1163
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1164
+  (4.1ms) commit transaction
1165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1166
+  (0.0ms) begin transaction
1167
+  (0.0ms) commit transaction
1168
+  (1.1ms) SELECT sqlite_version(*)
1169
+  (0.0ms) SELECT sqlite_version(*)
1170
+  (0.1ms) DROP TABLE IF EXISTS "users"
1171
+  (4.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)
1172
+  (4.1ms) 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)
1173
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1174
+ TRANSACTION (0.0ms) begin transaction
1175
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-06-24 15:07:30.849958"], ["updated_at", "2021-06-24 15:07:30.849958"]]
1176
+ TRANSACTION (5.0ms) commit transaction
1177
+  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1178
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1179
+  (0.1ms) SELECT sqlite_version(*)
1180
+ TRANSACTION (0.0ms) begin transaction
1181
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3530"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1182
+ TRANSACTION (3.7ms) commit transaction
1183
+ TRANSACTION (0.0ms) begin transaction
1184
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35614"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1185
+ TRANSACTION (3.4ms) commit transaction
1186
+ Processing by Api::UserController#update as HTML
1187
+ Parameters: {"uid"=>"a1s2d3530"}
1188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3530"], ["LIMIT", 1]]
1189
+ TRANSACTION (0.0ms) begin transaction
1190
+ User Update (0.2ms) UPDATE "users" SET "name" = ?, "email" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["name", "Joshua Marshall"], ["email", "user@domain.com"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 1]]
1191
+ TRANSACTION (6.0ms) commit transaction
1192
+ Completed 200 OK in 10ms (ActiveRecord: 6.3ms | Allocations: 2297)
1193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1194
+ TRANSACTION (0.0ms) begin transaction
1195
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33643"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1196
+ TRANSACTION (5.3ms) commit transaction
1197
+ TRANSACTION (0.0ms) begin transaction
1198
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34586"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1199
+ TRANSACTION (5.8ms) commit transaction
1200
+ Processing by Api::UserController#update as HTML
1201
+ Parameters: {"uid"=>"a1s2d33643"}
1202
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
1203
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1215
1204
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1216
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 1.7ms | Allocations: 201)
1205
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 191)
1217
1206
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
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
1225
- Processing by Api::UserController#update as HTML
1226
- Parameters: {"uid"=>"a1s2d37968"}
1227
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1207
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.6ms | Allocations: 271)
1208
+ Completed 403 Forbidden in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms | Allocations: 2025)
1209
+ TRANSACTION (0.0ms) begin transaction
1210
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31870"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1211
+ TRANSACTION (4.6ms) commit transaction
1212
+ TRANSACTION (0.0ms) begin transaction
1213
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36535"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1214
+ TRANSACTION (7.0ms) commit transaction
1215
+ Processing by Api::UserController#reauth as HTML
1216
+ Parameters: {"uid"=>"a1s2d31870"}
1217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31870"], ["LIMIT", 1]]
1218
+ TRANSACTION (0.0ms) begin transaction
1219
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 5]]
1220
+ TRANSACTION (5.8ms) commit transaction
1221
+ Completed 200 OK in 7ms (ActiveRecord: 6.1ms | Allocations: 858)
1222
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1223
+ TRANSACTION (0.0ms) begin transaction
1224
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32503"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1225
+ TRANSACTION (5.6ms) commit transaction
1226
+ TRANSACTION (0.0ms) begin transaction
1227
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35140"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1228
+ TRANSACTION (6.5ms) commit transaction
1229
+ Processing by Api::UserController#reauth as HTML
1230
+ Parameters: {"uid"=>"nonexistent-user"}
1231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1232
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 500)
1233
+ TRANSACTION (0.0ms) begin transaction
1234
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33825"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1235
+ TRANSACTION (7.7ms) commit transaction
1236
+ TRANSACTION (0.0ms) begin transaction
1237
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37402"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1238
+ TRANSACTION (5.2ms) commit transaction
1239
+ Processing by Api::UserController#reauth as HTML
1240
+ Parameters: {"uid"=>"a1s2d33825"}
1241
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
1242
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1228
1243
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1229
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.4ms | Allocations: 47)
1244
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 45)
1230
1245
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
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
1238
- Processing by Api::UserController#update as HTML
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]]
1241
-  (0.2ms) begin transaction
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]]
1247
-  (0.2ms) begin 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]]
1246
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.2ms | Allocations: 119)
1247
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 515)
1248
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1249
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1250
+ TRANSACTION (0.0ms) begin transaction
1251
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1252
+ TRANSACTION (6.7ms) commit transaction
1253
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1255
+ TRANSACTION (0.0ms) begin transaction
1256
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "3876"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1257
+ TRANSACTION (4.9ms) commit transaction
1258
+ TRANSACTION (0.0ms) begin transaction
1259
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
1260
+ TRANSACTION (3.9ms) commit transaction
1261
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1262
+ Processing by ExampleController#restricted as HTML
1263
+ Authenticating with gds_sso strategy
1264
+ Completed in 5ms (ActiveRecord: 0.0ms | Allocations: 181)
1265
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1266
+ Started GET "/auth/gds/callback?code=H3ulL6DIpvs4a8qHSQ7b6USCNwj811b6ACDBHzBL41I&state=36c26d450a67135f3ea2f5b594ff71cb8dcdb10a1be14b9a" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1267
+ Processing by AuthenticationsController#callback as HTML
1268
+ Parameters: {"code"=>"H3ulL6DIpvs4a8qHSQ7b6USCNwj811b6ACDBHzBL41I", "state"=>"36c26d450a67135f3ea2f5b594ff71cb8dcdb10a1be14b9a"}
1269
+ Authenticating with gds_sso strategy
1270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1272
+ TRANSACTION (0.1ms) begin transaction
1273
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1274
+ TRANSACTION (4.8ms) commit transaction
1275
+ TRANSACTION (0.1ms) begin transaction
1276
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1277
+ TRANSACTION (3.8ms) commit transaction
1278
+ Redirected to http://www.example-client.com/restricted
1279
+ Completed 302 Found in 13ms (ActiveRecord: 9.3ms | Allocations: 1345)
1280
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1281
+ Processing by ExampleController#restricted as HTML
1282
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1279
1283
  Rendering text template
1280
1284
  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
1285
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms | Allocations: 885)
1286
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1289
1287
  Processing by ExampleController#restricted as HTML
1290
1288
  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
1289
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1290
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1291
+ Started GET "/auth/gds/callback?code=_-munggz2tEqszBQeRRLlD4odBPpL0_pr5_4zLPd4P4&state=aed4a33d172c3f9d74acc4c774d0c7d82c552ca76ceb970a" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1294
1292
  Processing by AuthenticationsController#callback as HTML
1295
- Parameters: {"code"=>"W7vSSyNRyTbSAwSR2KnZoFtV_OFBTIJUZv1EMxVVqXc", "state"=>"2633af08a5bea3c181f197487f4fc7504753c22c2bf938dd"}
1293
+ Parameters: {"code"=>"_-munggz2tEqszBQeRRLlD4odBPpL0_pr5_4zLPd4P4", "state"=>"aed4a33d172c3f9d74acc4c774d0c7d82c552ca76ceb970a"}
1296
1294
  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
1295
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1301
1296
  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
1297
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 852)
1298
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1304
1299
  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]]
1300
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1306
1301
  Rendering text template
1307
1302
  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
1303
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1304
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1310
1305
  Processing by ExampleController#restricted as HTML
1311
1306
  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
1307
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1308
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1309
+ Started GET "/auth/gds/callback?code=oSUuWgUiI2PDM9GosDc3BFgTNvyBSJ0UhqrKxHG90F0&state=2d7c119c3cbd9aa502c7008b3d4ef45f0ff82dbf94fc6d06" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1315
1310
  Processing by AuthenticationsController#callback as HTML
1316
- Parameters: {"code"=>"lSGnnvs1TIVC0NtmtPLtidkJLiw0f7Po8vHnxeqh60g", "state"=>"8631a4e65b3c22c555f7f744c276f98d51906f91a4956085"}
1311
+ Parameters: {"code"=>"oSUuWgUiI2PDM9GosDc3BFgTNvyBSJ0UhqrKxHG90F0", "state"=>"2d7c119c3cbd9aa502c7008b3d4ef45f0ff82dbf94fc6d06"}
1317
1312
  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]]
1313
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1319
1314
  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
1315
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1316
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1322
1317
  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]]
1318
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1324
1319
  Rendering text template
1325
1320
  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
1321
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1322
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1333
1323
  Processing by ExampleController#this_requires_signin_permission as HTML
1334
1324
  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
1325
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1326
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1327
+ Started GET "/auth/gds/callback?code=c1jh92ZR-QwykvJSTBx6_xATju7tA6ZZXHxTA6_5iDU&state=31304cea18a2e793e923d31bf633af241927d585fd3120fc" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1338
1328
  Processing by AuthenticationsController#callback as HTML
1339
- Parameters: {"code"=>"srhBFzpduyKjzzV545wFhqWPazPjCPHuJTcqX2kS1j8", "state"=>"789e31843ac918b99054f737f0b94538af247e387289da52"}
1329
+ Parameters: {"code"=>"c1jh92ZR-QwykvJSTBx6_xATju7tA6ZZXHxTA6_5iDU", "state"=>"31304cea18a2e793e923d31bf633af241927d585fd3120fc"}
1340
1330
  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]]
1331
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
1332
  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
1333
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1334
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1345
1335
  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]]
1336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1347
1337
  Rendering text template
1348
1338
  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
1339
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 646)
1340
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1351
1341
  Processing by ExampleController#this_requires_signin_permission as HTML
1352
1342
  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
1343
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1344
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1345
+ Started GET "/auth/gds/callback?code=th8RxP-9fFwNb9A9hfGZhtJVqVhxFNK6-S99ZXjJ4M0&state=89536b063709885277307f72d7fba99eda015065b1316a4b" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1356
1346
  Processing by AuthenticationsController#callback as HTML
1357
- Parameters: {"code"=>"MQQwzTrOSdneS05LCO3R2hl3WQhuhBTeymL6yvgZrf8", "state"=>"68e70b571e14bfd852320305f4cc83283160ba2db776919d"}
1347
+ Parameters: {"code"=>"th8RxP-9fFwNb9A9hfGZhtJVqVhxFNK6-S99ZXjJ4M0", "state"=>"89536b063709885277307f72d7fba99eda015065b1316a4b"}
1358
1348
  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]]
1349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1360
1350
  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
1351
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1352
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1363
1353
  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]]
1354
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1365
1355
  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]]
1356
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1357
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 646)
1358
+ Started GET "/" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1359
+ Processing by ExampleController#index as HTML
1383
1360
  Rendering text template
1384
1361
  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
1362
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 135)
1363
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1387
1364
  Processing by ExampleController#restricted as HTML
1388
1365
  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
1366
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1367
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:31 +0000
1368
+ Started GET "/auth/gds/callback?code=0SD9RgIWHFOHL81wpALmUHgqFntw99JxNIYKtoYfJ9w&state=71b5b1dc595f38ece7e73ad545442a1e5d868936cfc5b871" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1392
1369
  Processing by AuthenticationsController#callback as HTML
1393
- Parameters: {"code"=>"ObbYxDZpDpftZjnl2Oi0oOk_C0LStQpGZSp2rteFh6A", "state"=>"b8306e3d0119e9a94493bc7523154afafe46053c4f525e1c"}
1370
+ Parameters: {"code"=>"0SD9RgIWHFOHL81wpALmUHgqFntw99JxNIYKtoYfJ9w", "state"=>"71b5b1dc595f38ece7e73ad545442a1e5d868936cfc5b871"}
1394
1371
  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]]
1372
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1396
1373
  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
1374
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 852)
1375
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1399
1376
  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]]
1377
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1401
1378
  Rendering text template
1402
1379
  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
1380
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 653)
1381
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1382
+ TRANSACTION (0.1ms) begin transaction
1383
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
1384
+ TRANSACTION (6.2ms) commit transaction
1385
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1386
+ Processing by ExampleController#restricted as HTML
1387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1388
+ Authenticating with gds_sso strategy
1389
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 533)
1390
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1391
+ Started GET "/auth/gds/callback?code=vsOVC9zQHdiXBStBQZs9yMNFqkszo5vCm4oIv5M2y_g&state=1ee691d4263f97799b12fe9f9b6916ae6e7acc5f01adec35" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1415
1392
  Processing by AuthenticationsController#callback as HTML
1416
- Parameters: {"code"=>"oGxc5oQFpaRmmpxPCFpS3dXS8jdkX0K63pQcI9rBY_0", "state"=>"2e1ac2b93711b33056a11361943688f7c24acb3f52920d6a"}
1393
+ Parameters: {"code"=>"vsOVC9zQHdiXBStBQZs9yMNFqkszo5vCm4oIv5M2y_g", "state"=>"1ee691d4263f97799b12fe9f9b6916ae6e7acc5f01adec35"}
1417
1394
  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
1395
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1396
+ TRANSACTION (0.0ms) begin transaction
1397
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1398
+ TRANSACTION (6.4ms) commit transaction
1422
1399
  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
1400
+ Completed 302 Found in 9ms (ActiveRecord: 6.7ms | Allocations: 1042)
1401
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1425
1402
  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]]
1403
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1427
1404
  Rendering text template
1428
1405
  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
1406
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 648)
1407
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1431
1408
  Processing by ExampleController#restricted as HTML
1432
1409
  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
1410
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1411
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1412
+ Started GET "/auth/gds/callback?code=tb1Jc8hBpHl8zC5tPevOz6mObQ6Ra16KzI2LaCq-0co&state=a837bda58de3d5cfb2f379076aeb15201c9e8e6a4afb9ab2" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1436
1413
  Processing by AuthenticationsController#callback as HTML
1437
- Parameters: {"code"=>"z344M9hbOvtkT1OLxs6uFRY5fsqk7h0Jk43RBJcekEQ", "state"=>"389c84a4d79f48469a3e97a360f890979ab45cc02e633a38"}
1414
+ Parameters: {"code"=>"tb1Jc8hBpHl8zC5tPevOz6mObQ6Ra16KzI2LaCq-0co", "state"=>"a837bda58de3d5cfb2f379076aeb15201c9e8e6a4afb9ab2"}
1438
1415
  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]]
1416
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1440
1417
  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
1418
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1419
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1449
1420
  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]]
1421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1451
1422
  Rendering text template
1452
1423
  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
1424
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1425
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1455
1426
  Processing by ExampleController#restricted as HTML
1456
1427
  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
1428
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 502)
1429
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1430
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1431
+ Processing by ExampleController#restricted as HTML
1432
+ Authenticating with gds_sso strategy
1433
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1434
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1435
+ Started GET "/auth/gds/callback?code=DiOM8PH5_KYgNnhd_CymxRS8SpL50mRfnHcKFVwqhGI&state=8984adcdd4743a1e6d53b65667090f491fddd3c60f624580" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1460
1436
  Processing by AuthenticationsController#callback as HTML
1461
- Parameters: {"code"=>"2wWd42zSW5fe0LTYAtEZ_aHyHYxtOlpndfvPTy4cmLc", "state"=>"b444bf0a9c25f1c0d30b5a1f6e9a89beabefd3b3e8dd6a01"}
1437
+ Parameters: {"code"=>"DiOM8PH5_KYgNnhd_CymxRS8SpL50mRfnHcKFVwqhGI", "state"=>"8984adcdd4743a1e6d53b65667090f491fddd3c60f624580"}
1462
1438
  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]]
1439
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1464
1440
  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
1441
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1442
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1467
1443
  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]]
1444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1469
1445
  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
1446
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1447
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1448
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1478
1449
  Processing by ExampleController#restricted as HTML
1479
1450
  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
1451
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 502)
1452
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1453
+ Started GET "/auth/gds/callback?code=wf9Pa6-U1vVEF33RGodocnw11Ry7ZjJUqmyrirOfR-4&state=5f4d895e567b40f60e92a63294436fe41451ead621086b7d" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1483
1454
  Processing by AuthenticationsController#callback as HTML
1484
- Parameters: {"code"=>"wG6dOgcCevXcttMKMMYwQUrqa5A3G846P6O8KcufIn4", "state"=>"72b9665daca597fa81a3fbaac0611bb9558b460d5e349a83"}
1455
+ Parameters: {"code"=>"wf9Pa6-U1vVEF33RGodocnw11Ry7ZjJUqmyrirOfR-4", "state"=>"5f4d895e567b40f60e92a63294436fe41451ead621086b7d"}
1485
1456
  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]]
1457
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1487
1458
  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
1459
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1061)
1460
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:12:32 +0000
1490
1461
  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]]
1462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1492
1463
  Rendering text template
1493
1464
  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
1465
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 885)
1466
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1496
1467
  Processing by ExampleController#restricted as HTML
1497
1468
  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
1469
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1470
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1471
+ Started GET "/auth/gds/callback?code=aIBIEplBjLcfe3xY9PNl4uL46j1_1bMUBvg1Rb9Xs8o&state=0a814b33b5833491162d1a331034faf7784f14ca261ebe1a" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1501
1472
  Processing by AuthenticationsController#callback as HTML
1502
- Parameters: {"code"=>"GiTqxrVxxVNTmCM6yrBIbdrOiMIpRawIQ0iadBH1pls", "state"=>"f7efb007e1a1bc5cbf001a76d2163b4a5561f49a8f6914bb"}
1473
+ Parameters: {"code"=>"aIBIEplBjLcfe3xY9PNl4uL46j1_1bMUBvg1Rb9Xs8o", "state"=>"0a814b33b5833491162d1a331034faf7784f14ca261ebe1a"}
1503
1474
  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]]
1475
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1505
1476
  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
1477
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 853)
1478
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1479
+ Processing by ExampleController#restricted as HTML
1480
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1481
+ Rendering text template
1482
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1483
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1484
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-25 11:02:32 +0000
1508
1485
  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]]
1486
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1510
1487
  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)
1488
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1489
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 883)
1490
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1491
+ Processing by ExampleController#restricted as HTML
1492
+ Authenticating with gds_sso strategy
1493
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 127)
1494
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1495
+ Processing by ExampleController#restricted as JSON
1496
+ Completed in 15ms (ActiveRecord: 0.0ms | Allocations: 2027)
1497
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1498
+ Processing by ExampleController#restricted as JSON
1499
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1500
+ TRANSACTION (0.1ms) begin transaction
1501
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1502
+ TRANSACTION (4.8ms) commit transaction
1503
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1504
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1505
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1506
+ Rendering text template
1507
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1508
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 5.3ms | Allocations: 3196)
1509
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1510
+ Processing by ExampleController#this_requires_signin_permission as JSON
1511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1512
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1513
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1514
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1515
+ Rendering text template
1516
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1517
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 2921)
1518
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-24 15:07:32 +0000
1519
+ Processing by ExampleController#restricted as JSON
1520
+ Completed in 9ms (ActiveRecord: 0.0ms | Allocations: 1815)