gds-sso 14.1.1 → 15.1.0

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 +3 -5
  6. data/app/views/layouts/unauthorised.html.erb +1 -1
  7. data/config/routes.rb +7 -6
  8. data/lib/gds-sso.rb +27 -18
  9. data/lib/gds-sso/api_access.rb +1 -1
  10. data/lib/gds-sso/bearer_token.rb +24 -24
  11. data/lib/gds-sso/config.rb +17 -9
  12. data/lib/gds-sso/controller_methods.rb +7 -8
  13. data/lib/gds-sso/failure_app.rb +8 -8
  14. data/lib/gds-sso/lint/user_spec.rb +27 -28
  15. data/lib/gds-sso/lint/user_test.rb +28 -28
  16. data/lib/gds-sso/railtie.rb +12 -0
  17. data/lib/gds-sso/user.rb +13 -13
  18. data/lib/gds-sso/version.rb +1 -1
  19. data/lib/gds-sso/warden_config.rb +21 -31
  20. data/spec/controller/api_user_controller_spec.rb +40 -37
  21. data/spec/controller/controller_methods_spec.rb +28 -28
  22. data/spec/internal/app/assets/config/manifest.js +0 -0
  23. data/spec/internal/app/controllers/application_controller.rb +1 -1
  24. data/spec/internal/app/controllers/example_controller.rb +1 -2
  25. data/spec/internal/config/initializers/gds-sso.rb +2 -2
  26. data/spec/internal/config/routes.rb +5 -2
  27. data/spec/internal/config/storage.yml +3 -0
  28. data/spec/internal/db/combustion_test.sqlite +0 -0
  29. data/spec/internal/db/schema.rb +9 -5
  30. data/spec/internal/log/test.log +1100 -1166
  31. data/spec/requests/end_to_end_spec.rb +45 -46
  32. data/spec/spec_helper.rb +12 -13
  33. data/spec/support/signon_integration_helpers.rb +9 -7
  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 -5
  41. data/spec/unit/user_spec.rb +23 -24
  42. metadata +88 -54
@@ -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,6 +1,6 @@
1
- require 'spec_helper'
1
+ require "spec_helper"
2
2
 
3
- RSpec.describe GDS::SSO::ControllerMethods, '#authorise_user!' do
3
+ RSpec.describe GDS::SSO::ControllerMethods, "#authorise_user!" do
4
4
  class ControllerSpy < ApplicationController
5
5
  include GDS::SSO::ControllerMethods
6
6
 
@@ -18,54 +18,54 @@ RSpec.describe GDS::SSO::ControllerMethods, '#authorise_user!' do
18
18
  let(:current_user) { double }
19
19
  let(:expected_error) { GDS::SSO::ControllerMethods::PermissionDeniedException }
20
20
 
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)
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)
24
24
 
25
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.not_to raise_error
25
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.not_to raise_error
26
26
  end
27
27
 
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)
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)
30
30
 
31
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.to raise_error(expected_error)
31
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.to raise_error(expected_error)
32
32
  end
33
33
  end
34
34
 
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)
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)
39
39
 
40
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.not_to raise_error
40
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.not_to raise_error
41
41
  end
42
42
 
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)
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)
46
46
 
47
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.to raise_error(expected_error)
47
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.to raise_error(expected_error)
48
48
  end
49
49
  end
50
50
 
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)
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)
55
55
 
56
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.not_to raise_error
56
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.not_to raise_error
57
57
  end
58
58
 
59
- it 'does not permit users without any of the required permissions' do
59
+ it "does not permit users without any of the required permissions" do
60
60
  allow(current_user).to receive(:has_permission?).and_return(false)
61
61
 
62
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.to raise_error(expected_error)
62
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.to raise_error(expected_error)
63
63
  end
64
64
  end
65
65
 
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)
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)
69
69
  end
70
70
  end
71
71
  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
@@ -1,5 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
- root :to => 'example#index'
3
- get "/restricted" => 'example#restricted'
4
+ # Add your own routes here, or remove this file if you don't have need for it.
5
+ root to: "example#index"
6
+ get "/restricted" => "example#restricted"
4
7
  get "/this_requires_signin_permission" => "example#this_requires_signin_permission"
5
8
  end
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
@@ -1,12 +1,16 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ActiveRecord::Schema.define do
2
- create_table "users", :force => true do |t|
3
- t.string "name", :null => false
4
- t.string "uid", :null => false
5
- t.string "email", :null => false
4
+ # Set up any tables you need to exist for your test suite that don't belong
5
+ # in migrations.
6
+ create_table "users", force: true do |t|
7
+ t.string "name", null: false
8
+ t.string "uid", null: false
9
+ t.string "email", null: false
6
10
  t.boolean "remotely_signed_out"
7
11
  t.text "permissions"
8
12
  t.string "organisation_slug"
9
13
  t.string "organisation_content_id"
10
- t.boolean "disabled", :default => false
14
+ t.boolean "disabled", default: false
11
15
  end
12
16
  end
@@ -1,1553 +1,1135 @@
1
-  (10.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
6
-  (0.1ms) begin transaction
7
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "4384"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
-  (4.0ms) commit transaction
9
-  (0.0ms) begin transaction
10
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
11
-  (4.1ms) commit transaction
12
-  (0.1ms) begin transaction
13
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38708"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
14
-  (3.4ms) commit transaction
15
-  (0.1ms) begin transaction
16
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31275"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
17
-  (4.2ms) commit transaction
18
- Processing by Api::UserController#reauth as HTML
19
- Parameters: {"uid"=>"nonexistent-user"}
20
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
21
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
22
-  (0.1ms) begin transaction
23
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38949"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
24
-  (6.1ms) commit transaction
25
-  (0.1ms) begin transaction
26
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38757"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
27
-  (4.4ms) commit transaction
28
- Processing by Api::UserController#reauth as HTML
29
- Parameters: {"uid"=>"a1s2d38949"}
30
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38949"]]
31
-  (0.0ms) begin transaction
32
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
33
-  (4.2ms) commit transaction
34
- Completed 200 OK in 8ms (ActiveRecord: 4.5ms)
35
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
36
-  (0.1ms) begin transaction
37
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36058"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
38
-  (5.2ms) commit transaction
39
-  (0.1ms) begin transaction
40
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39319"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
41
-  (3.9ms) commit transaction
42
- Processing by Api::UserController#reauth as HTML
43
- Parameters: {"uid"=>"a1s2d36058"}
44
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
45
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
46
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
47
- Completed 403 Forbidden in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms)
48
-  (0.1ms) begin transaction
49
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34081"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
50
-  (3.2ms) commit transaction
51
-  (0.1ms) begin transaction
52
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32179"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
53
-  (3.9ms) commit transaction
54
- Processing by Api::UserController#update as HTML
55
- Parameters: {"uid"=>"a1s2d34081"}
56
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34081"]]
57
-  (0.1ms) begin transaction
58
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 8]]
59
-  (5.9ms) commit transaction
60
- Completed 200 OK in 9ms (ActiveRecord: 6.3ms)
61
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
62
-  (0.1ms) begin transaction
63
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33491"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
64
-  (13.7ms) commit transaction
65
-  (0.1ms) begin transaction
66
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38692"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
67
-  (3.1ms) commit transaction
68
- Processing by Api::UserController#update as HTML
69
- Parameters: {"uid"=>"a1s2d33491"}
70
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
71
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
72
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
73
- Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
74
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
75
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
76
-  (0.0ms) begin transaction
77
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
78
-  (3.5ms) commit transaction
79
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
80
-  (0.0ms) begin transaction
81
-  (0.1ms) commit transaction
82
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:25:38 +0000
83
- Processing by ExampleController#restricted as HTML
84
- Authenticating with gds_sso strategy
85
- Completed in 8ms (ActiveRecord: 0.0ms)
86
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:25:38 +0000
87
- Started GET "/auth/gds/callback?code=fbb8d4307c2fdd275fe442a5e566b856c86ff5ee5359b6ac3c13dd93ab56d794&state=6baf9387e2083581ddea707e4fd8f1ba2aac420fb3fb4f6b" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
88
- Processing by AuthenticationsController#callback as HTML
89
- Parameters: {"code"=>"fbb8d4307c2fdd275fe442a5e566b856c86ff5ee5359b6ac3c13dd93ab56d794", "state"=>"6baf9387e2083581ddea707e4fd8f1ba2aac420fb3fb4f6b"}
90
- Authenticating with gds_sso strategy
91
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
92
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
93
-  (0.1ms) begin transaction
94
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
95
-  (48.8ms) commit transaction
96
-  (0.0ms) begin transaction
97
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
98
-  (18.4ms) commit transaction
99
- Redirected to http://www.example-client.com/restricted
100
- Completed 302 Found in 73ms (ActiveRecord: 67.9ms)
101
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
102
- Processing by ExampleController#restricted as HTML
103
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
104
- Rendered text template (0.0ms)
105
- Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
106
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
107
- Processing by ExampleController#restricted as HTML
108
- Authenticating with gds_sso strategy
109
- Completed in 0ms (ActiveRecord: 0.0ms)
110
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
111
- Started GET "/auth/gds/callback?code=8529a7a4a943ba21953f5adb145051ffe880e471a607ba8ca392718521a9b152&state=876ca422f3433c9b4c5a02eefeb4f9e03a3996ef94aa95a7" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
112
- Processing by AuthenticationsController#callback as HTML
113
- Parameters: {"code"=>"8529a7a4a943ba21953f5adb145051ffe880e471a607ba8ca392718521a9b152", "state"=>"876ca422f3433c9b4c5a02eefeb4f9e03a3996ef94aa95a7"}
114
- Authenticating with gds_sso strategy
115
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
116
-  (0.1ms) begin transaction
117
-  (0.0ms) commit transaction
118
-  (0.0ms) begin transaction
119
-  (0.0ms) commit transaction
120
- Redirected to http://www.example-client.com/restricted
121
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
122
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
123
- Processing by ExampleController#restricted as HTML
124
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
125
- Rendered text template (0.0ms)
126
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
127
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
128
- Processing by ExampleController#this_requires_signin_permission as HTML
129
- Authenticating with gds_sso strategy
130
- Completed in 0ms (ActiveRecord: 0.0ms)
131
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
132
- Started GET "/auth/gds/callback?code=b9f216e19ba1a2c722018ff13af4210369ccaf9eb98fd6f4e630e2c7b05efc9a&state=fe719a7832263aec9fdd7ab7a7302b89930d488c84d40ad9" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
133
- Processing by AuthenticationsController#callback as HTML
134
- Parameters: {"code"=>"b9f216e19ba1a2c722018ff13af4210369ccaf9eb98fd6f4e630e2c7b05efc9a", "state"=>"fe719a7832263aec9fdd7ab7a7302b89930d488c84d40ad9"}
135
- Authenticating with gds_sso strategy
136
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
137
-  (0.1ms) begin transaction
138
-  (0.1ms) commit transaction
139
-  (0.0ms) begin transaction
140
-  (0.0ms) commit transaction
141
- Redirected to http://www.example-client.com/this_requires_signin_permission
142
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
143
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
144
- Processing by ExampleController#this_requires_signin_permission as HTML
145
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
146
- Rendered text template (0.0ms)
147
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
148
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
149
- Processing by ExampleController#this_requires_signin_permission as HTML
150
- Authenticating with gds_sso strategy
151
- Completed in 0ms (ActiveRecord: 0.0ms)
152
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
153
- Started GET "/auth/gds/callback?code=a0be5d9c9c06ccc9932a2b1e4510eb97e8388c6b8b30f3843adfbcc0dd80d8b8&state=f3618b335a95889c1708c9590205255410e7dabb15d0947e" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
154
- Processing by AuthenticationsController#callback as HTML
155
- Parameters: {"code"=>"a0be5d9c9c06ccc9932a2b1e4510eb97e8388c6b8b30f3843adfbcc0dd80d8b8", "state"=>"f3618b335a95889c1708c9590205255410e7dabb15d0947e"}
156
- Authenticating with gds_sso strategy
157
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
158
-  (0.1ms) begin transaction
159
-  (0.0ms) commit transaction
160
-  (0.0ms) begin transaction
161
-  (0.0ms) commit transaction
162
- Redirected to http://www.example-client.com/this_requires_signin_permission
163
- Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
164
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
165
- Processing by ExampleController#this_requires_signin_permission as HTML
166
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
167
- Rendered text template (0.0ms)
168
- Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
169
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
170
- Processing by ExampleController#restricted as HTML
171
- Authenticating with gds_sso strategy
172
- Completed in 0ms (ActiveRecord: 0.0ms)
173
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
174
- Started GET "/auth/gds/callback?code=598e793cd9647b0b6b638603a39936be44ea312b07ed79e0b0be9dcb2f6be47c&state=3c80e27a90f70f0500e2d27d650b5f82763d08653323223f" for 127.0.0.1 at 2019-07-19 11:26:20 +0000
175
- Processing by AuthenticationsController#callback as HTML
176
- Parameters: {"code"=>"598e793cd9647b0b6b638603a39936be44ea312b07ed79e0b0be9dcb2f6be47c", "state"=>"3c80e27a90f70f0500e2d27d650b5f82763d08653323223f"}
177
- Authenticating with gds_sso strategy
178
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
179
-  (0.1ms) begin transaction
180
-  (0.0ms) commit transaction
181
-  (0.0ms) begin transaction
182
-  (0.1ms) commit transaction
183
- Redirected to http://www.example-client.com/restricted
184
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
185
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
186
- Processing by ExampleController#restricted as HTML
187
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
188
- Rendered text template (0.0ms)
189
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
190
- Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
191
- Processing by ExampleController#index as HTML
192
- Rendered text template (0.0ms)
193
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
194
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
195
- Processing by ExampleController#restricted as HTML
196
- Authenticating with gds_sso strategy
197
- Completed in 0ms (ActiveRecord: 0.0ms)
198
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
199
- Started GET "/auth/gds/callback?code=677c61dbc795e855d5e57c049356ba963546ebd9ae4aa3c5330d40ee8429035a&state=612df93287d65b72d5a98b66bdcfce8bd9843d28b8979986" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
200
- Processing by AuthenticationsController#callback as HTML
201
- Parameters: {"code"=>"677c61dbc795e855d5e57c049356ba963546ebd9ae4aa3c5330d40ee8429035a", "state"=>"612df93287d65b72d5a98b66bdcfce8bd9843d28b8979986"}
202
- Authenticating with gds_sso strategy
203
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
204
-  (0.1ms) begin transaction
205
-  (0.1ms) commit transaction
206
-  (0.0ms) begin transaction
207
-  (0.1ms) commit transaction
208
- Redirected to http://www.example-client.com/restricted
209
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
210
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
211
- Processing by ExampleController#restricted as HTML
212
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
213
- Rendered text template (0.0ms)
214
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
215
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
216
-  (0.1ms) begin transaction
217
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
218
-  (5.4ms) commit transaction
219
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
220
- Processing by ExampleController#restricted as HTML
221
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
222
- Authenticating with gds_sso strategy
223
- Completed in 1ms (ActiveRecord: 0.1ms)
224
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
225
- Started GET "/auth/gds/callback?code=394134dedb139a470475224132368b152f1063f79b5fdae2e4977b5f2ce7c617&state=e9de8c671c6db63407dbc56bbebde50e0415379a57094bff" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
226
- Processing by AuthenticationsController#callback as HTML
227
- Parameters: {"code"=>"394134dedb139a470475224132368b152f1063f79b5fdae2e4977b5f2ce7c617", "state"=>"e9de8c671c6db63407dbc56bbebde50e0415379a57094bff"}
228
- Authenticating with gds_sso strategy
229
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
230
-  (0.1ms) begin transaction
231
-  (0.1ms) commit transaction
232
-  (0.0ms) begin transaction
233
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
234
-  (4.0ms) commit transaction
235
- Redirected to http://www.example-client.com/restricted
236
- Completed 302 Found in 8ms (ActiveRecord: 4.5ms)
237
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
238
- Processing by ExampleController#restricted as HTML
239
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
240
- Rendered text template (0.0ms)
241
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
242
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
243
- Processing by ExampleController#restricted as HTML
244
- Authenticating with gds_sso strategy
245
- Completed in 0ms (ActiveRecord: 0.0ms)
246
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
247
- Started GET "/auth/gds/callback?code=e67621665e1784bb93dd29187071779a3cd78d4fad1d3df8d83d28fdc667e712&state=170f6f22a08993c0d969f402dfd74aa571a93e0e660ad875" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
248
- Processing by AuthenticationsController#callback as HTML
249
- Parameters: {"code"=>"e67621665e1784bb93dd29187071779a3cd78d4fad1d3df8d83d28fdc667e712", "state"=>"170f6f22a08993c0d969f402dfd74aa571a93e0e660ad875"}
250
- Authenticating with gds_sso strategy
251
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
252
-  (0.0ms) begin transaction
253
-  (0.0ms) commit transaction
254
-  (0.1ms) begin transaction
255
-  (0.1ms) commit transaction
256
- Redirected to http://www.example-client.com/restricted
257
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
258
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
259
- Processing by ExampleController#restricted as HTML
260
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
261
- Rendered text template (0.0ms)
262
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
263
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
264
- Processing by ExampleController#restricted as HTML
265
- Authenticating with gds_sso strategy
266
- Completed in 0ms (ActiveRecord: 0.0ms)
267
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
268
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
269
- Processing by ExampleController#restricted as HTML
270
- Authenticating with gds_sso strategy
271
- Completed in 0ms (ActiveRecord: 0.0ms)
272
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
273
- Started GET "/auth/gds/callback?code=2e251537d340cfacd123bd9b66e52a214731b959b64982f8fa09a5af8b741d08&state=f6508620b6c6f5ee95731e73a418f73529981c5c15a23ac4" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
274
- Processing by AuthenticationsController#callback as HTML
275
- Parameters: {"code"=>"2e251537d340cfacd123bd9b66e52a214731b959b64982f8fa09a5af8b741d08", "state"=>"f6508620b6c6f5ee95731e73a418f73529981c5c15a23ac4"}
276
- Authenticating with gds_sso strategy
277
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
278
-  (0.0ms) begin transaction
279
-  (0.1ms) commit transaction
280
-  (0.1ms) begin transaction
281
-  (0.1ms) commit transaction
282
- Redirected to http://www.example-client.com/restricted
283
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
284
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
285
- Processing by ExampleController#restricted as HTML
286
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
287
- Rendered text template (0.0ms)
288
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
289
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
290
- Processing by ExampleController#restricted as HTML
291
- Authenticating with gds_sso strategy
292
- Completed in 0ms (ActiveRecord: 0.0ms)
293
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
294
- Started GET "/auth/gds/callback?code=16872e9d646aeb4524d6fd237a96bee8acefb2a657ff05416af5e8c310b4111f&state=2e2f3ada1d55bd05ebca28d803274ee11eaa54d0fed00112" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
295
- Processing by AuthenticationsController#callback as HTML
296
- Parameters: {"code"=>"16872e9d646aeb4524d6fd237a96bee8acefb2a657ff05416af5e8c310b4111f", "state"=>"2e2f3ada1d55bd05ebca28d803274ee11eaa54d0fed00112"}
297
- Authenticating with gds_sso strategy
298
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
299
-  (0.1ms) begin transaction
300
-  (0.1ms) commit transaction
301
-  (0.1ms) begin transaction
302
-  (0.1ms) commit transaction
303
- Redirected to http://www.example-client.com/restricted
304
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
305
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:21 +0000
306
- Processing by ExampleController#restricted as HTML
307
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
308
- Rendered text template (0.0ms)
309
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
310
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
311
- Processing by ExampleController#restricted as HTML
312
- Authenticating with gds_sso strategy
313
- Completed in 0ms (ActiveRecord: 0.0ms)
314
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
315
- Started GET "/auth/gds/callback?code=792cfc2584e8bcb217fed4c791a76a722200c04a87aad03e2cf5d2ed228d7e9d&state=d9ce97d145b5beebad889e2c33bfd7020965b094aae9554f" for 127.0.0.1 at 2019-07-19 11:26:21 +0000
316
- Processing by AuthenticationsController#callback as HTML
317
- Parameters: {"code"=>"792cfc2584e8bcb217fed4c791a76a722200c04a87aad03e2cf5d2ed228d7e9d", "state"=>"d9ce97d145b5beebad889e2c33bfd7020965b094aae9554f"}
318
- Authenticating with gds_sso strategy
319
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
320
-  (0.1ms) begin transaction
321
-  (0.1ms) commit transaction
322
-  (0.1ms) begin transaction
323
-  (0.0ms) commit transaction
324
- Redirected to http://www.example-client.com/restricted
325
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
326
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
327
- Processing by ExampleController#restricted as HTML
328
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
329
- Rendered text template (0.0ms)
330
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
331
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:22 +0000
332
- Processing by ExampleController#restricted as HTML
333
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
334
- Rendered text template (0.0ms)
335
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
336
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
337
- Processing by ExampleController#restricted as HTML
338
- Authenticating with gds_sso strategy
339
- Completed in 0ms (ActiveRecord: 0.0ms)
340
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
341
- Processing by ExampleController#restricted as JSON
342
- Completed in 20ms (ActiveRecord: 0.0ms)
343
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
344
- Processing by ExampleController#restricted as JSON
345
- Completed in 11ms (ActiveRecord: 0.0ms)
346
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
347
- Processing by ExampleController#restricted as JSON
348
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
349
-  (0.0ms) begin transaction
350
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
351
-  (3.7ms) commit transaction
352
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
353
-  (0.0ms) begin transaction
354
-  (0.0ms) commit transaction
355
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
356
-  (0.1ms) begin transaction
357
-  (0.0ms) commit transaction
358
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
359
-  (0.0ms) begin transaction
360
-  (0.0ms) commit transaction
361
-  (0.0ms) begin transaction
362
-  (0.0ms) commit transaction
363
- Rendered text template (0.0ms)
364
- Completed 200 OK in 55ms (Views: 0.3ms | ActiveRecord: 4.6ms)
365
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:22 +0000
366
- Processing by ExampleController#this_requires_signin_permission as JSON
367
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
368
-  (0.0ms) begin transaction
369
-  (0.1ms) commit transaction
370
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
371
-  (0.0ms) begin transaction
372
-  (0.1ms) commit transaction
373
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
374
-  (0.0ms) begin transaction
375
-  (0.0ms) commit transaction
376
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
377
-  (0.0ms) begin transaction
378
-  (0.0ms) commit transaction
379
-  (0.0ms) begin transaction
380
-  (0.0ms) commit transaction
381
- Rendered text template (0.0ms)
382
- Completed 200 OK in 49ms (Views: 0.2ms | ActiveRecord: 0.6ms)
383
1
   (0.1ms) DROP TABLE IF EXISTS "users"
384
-  (1.6ms) SELECT sqlite_version(*)
385
-  (5.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
386
-  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
387
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
388
-  (0.1ms) begin transaction
389
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-07-19 11:26:35.370566"], ["updated_at", "2019-07-19 11:26:35.370566"]]
390
-  (4.0ms) commit transaction
391
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
392
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2
+  (0.9ms) SELECT sqlite_version(*)
3
+  (8.1ms) 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
+  (37.2ms) 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.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
6
+  (0.0ms) begin transaction
7
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:50:59.688219"], ["updated_at", "2020-10-26 14:50:59.688219"]]
8
+  (6.0ms) commit transaction
9
+  (6.0ms) 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]]
393
11
   (0.0ms) begin transaction
394
12
   (0.0ms) commit transaction
395
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
396
-  (0.1ms) begin transaction
397
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "588"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
-  (3.9ms) commit transaction
399
-  (0.1ms) begin transaction
400
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
401
-  (4.7ms) commit transaction
402
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:35 +0000
403
- Processing by ExampleController#restricted as JSON
404
- Completed in 29ms (ActiveRecord: 0.0ms)
405
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
406
- Processing by ExampleController#restricted as JSON
407
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
408
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
13
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
409
14
   (0.0ms) begin transaction
410
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
411
-  (4.6ms) commit transaction
412
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
413
-  (0.1ms) begin transaction
414
-  (0.1ms) commit transaction
415
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
416
-  (0.1ms) begin transaction
417
-  (0.1ms) commit transaction
418
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
419
-  (0.1ms) begin transaction
420
-  (0.1ms) commit transaction
421
-  (0.1ms) begin transaction
422
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
423
-  (4.5ms) commit transaction
424
- Rendering text template
425
- Rendered text template (0.0ms)
426
- Completed 200 OK in 68ms (Views: 4.6ms | ActiveRecord: 10.5ms)
427
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
428
- Processing by ExampleController#restricted as JSON
429
- Completed in 11ms (ActiveRecord: 0.0ms)
430
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
431
- Processing by ExampleController#this_requires_signin_permission as JSON
432
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
433
-  (0.1ms) begin transaction
434
-  (0.1ms) commit transaction
435
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
436
-  (0.1ms) begin transaction
437
-  (0.1ms) commit transaction
438
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
439
-  (0.1ms) begin transaction
440
-  (0.1ms) commit transaction
441
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
442
-  (0.1ms) begin transaction
443
-  (0.1ms) commit transaction
15
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1000"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
16
+  (4.1ms) commit transaction
444
17
   (0.0ms) begin transaction
445
-  (0.1ms) commit transaction
446
- Rendering text template
447
- Rendered text template (0.0ms)
448
- Completed 200 OK in 50ms (Views: 0.3ms | ActiveRecord: 0.7ms)
449
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
18
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
19
+  (6.0ms) commit transaction
20
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
21
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
22
+  (0.0ms) begin transaction
23
+ 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]]
24
+  (4.9ms) commit transaction
25
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
26
+  (0.0ms) begin transaction
27
+  (0.0ms) commit transaction
28
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
29
+ Processing by ExampleController#restricted as HTML
30
+ Authenticating with gds_sso strategy
31
+ Completed in 4ms (ActiveRecord: 0.0ms)
32
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
450
33
  Processing by ExampleController#restricted as HTML
451
34
  Authenticating with gds_sso strategy
452
35
  Completed in 0ms (ActiveRecord: 0.0ms)
453
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
454
- Started GET "/auth/gds/callback?code=0012adb6a6a047a6affe347cbed73f500b417d764425ac83b864d51268abb246&state=e95fad5c31cc5489f48e07d36f02584d4dee9106f7c5c43a" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
36
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
37
+ Started GET "/auth/gds/callback?code=qlgWGND49FA4hmi1xxwtSmNDpxMu8JdbWneB08p7_qU&state=eae923f804055f5089297e4d477619f6307606c3c9445704" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
455
38
  Processing by AuthenticationsController#callback as HTML
456
- Parameters: {"code"=>"0012adb6a6a047a6affe347cbed73f500b417d764425ac83b864d51268abb246", "state"=>"e95fad5c31cc5489f48e07d36f02584d4dee9106f7c5c43a"}
39
+ Parameters: {"code"=>"qlgWGND49FA4hmi1xxwtSmNDpxMu8JdbWneB08p7_qU", "state"=>"eae923f804055f5089297e4d477619f6307606c3c9445704"}
457
40
  Authenticating with gds_sso strategy
458
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
41
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
42
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
459
43
   (0.1ms) begin transaction
460
- User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
461
-  (4.7ms) commit transaction
44
+ 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"]]
45
+  (8.9ms) commit transaction
462
46
   (0.0ms) begin transaction
463
-  (0.1ms) commit transaction
47
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
48
+  (5.4ms) commit transaction
464
49
  Redirected to http://www.example-client.com/restricted
465
- Completed 302 Found in 10ms (ActiveRecord: 5.3ms)
466
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
50
+ Completed 302 Found in 18ms (ActiveRecord: 14.9ms)
51
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
467
52
  Processing by ExampleController#restricted as HTML
468
53
  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]]
469
54
  Rendering text template
470
55
  Rendered text template (0.0ms)
471
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
472
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
56
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
57
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
58
+ Processing by ExampleController#index as HTML
59
+ Rendering text template
60
+ Rendered text template (0.0ms)
61
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
62
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
473
63
  Processing by ExampleController#this_requires_signin_permission as HTML
474
64
  Authenticating with gds_sso strategy
475
65
  Completed in 0ms (ActiveRecord: 0.0ms)
476
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
477
- Started GET "/auth/gds/callback?code=491743882f66eef9e4d03bcc98cb8095601af27d7192edbef81dfbc3be0c66cb&state=057c5f4c2c1b280a2796518f6ab93353102a71df5a9411d3" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
66
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
67
+ Started GET "/auth/gds/callback?code=N3zgRiV63CM3n82JL5m4VJybtab5jqD9T8rdOUfOjfQ&state=44c677e6a122e188c1897be58e35ca209ce417e5a7a5b5d0" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
478
68
  Processing by AuthenticationsController#callback as HTML
479
- Parameters: {"code"=>"491743882f66eef9e4d03bcc98cb8095601af27d7192edbef81dfbc3be0c66cb", "state"=>"057c5f4c2c1b280a2796518f6ab93353102a71df5a9411d3"}
69
+ Parameters: {"code"=>"N3zgRiV63CM3n82JL5m4VJybtab5jqD9T8rdOUfOjfQ", "state"=>"44c677e6a122e188c1897be58e35ca209ce417e5a7a5b5d0"}
480
70
  Authenticating with gds_sso strategy
481
71
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
482
-  (0.1ms) begin transaction
72
+  (0.0ms) begin transaction
483
73
   (0.0ms) commit transaction
484
74
   (0.0ms) begin transaction
485
75
   (0.0ms) commit transaction
486
76
  Redirected to http://www.example-client.com/this_requires_signin_permission
487
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
488
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
77
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
78
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
489
79
  Processing by ExampleController#this_requires_signin_permission as HTML
490
80
  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]]
491
81
  Rendering text template
492
82
  Rendered text template (0.0ms)
493
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
494
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
83
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
84
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
495
85
  Processing by ExampleController#this_requires_signin_permission as HTML
496
86
  Authenticating with gds_sso strategy
497
87
  Completed in 0ms (ActiveRecord: 0.0ms)
498
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
499
- Started GET "/auth/gds/callback?code=e8564eb0e0a2fbbda8bfd317a2347a88d6f35007a718e4d030e9a7de8674d5ca&state=03ef5f8b7653fb4db7f496c620183beeca4fe4834214d3f9" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
88
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
89
+ Started GET "/auth/gds/callback?code=QvJd4HB0b8Qg-S6I1iAFJ4yp6HTUHa-BoZ1x1dud5J8&state=0e6eb994121ee71c83cb083646a8529a53e979e1262f8742" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
500
90
  Processing by AuthenticationsController#callback as HTML
501
- Parameters: {"code"=>"e8564eb0e0a2fbbda8bfd317a2347a88d6f35007a718e4d030e9a7de8674d5ca", "state"=>"03ef5f8b7653fb4db7f496c620183beeca4fe4834214d3f9"}
91
+ Parameters: {"code"=>"QvJd4HB0b8Qg-S6I1iAFJ4yp6HTUHa-BoZ1x1dud5J8", "state"=>"0e6eb994121ee71c83cb083646a8529a53e979e1262f8742"}
502
92
  Authenticating with gds_sso strategy
503
93
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
504
94
   (0.0ms) begin transaction
505
-  (0.1ms) commit transaction
95
+  (0.0ms) commit transaction
506
96
   (0.0ms) begin transaction
507
-  (0.1ms) commit transaction
97
+  (0.0ms) commit transaction
508
98
  Redirected to http://www.example-client.com/this_requires_signin_permission
509
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
510
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
99
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
100
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
511
101
  Processing by ExampleController#this_requires_signin_permission as HTML
512
102
  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]]
513
103
  Rendering text template
514
104
  Rendered text template (0.0ms)
515
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
516
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
105
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
106
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
517
107
  Processing by ExampleController#restricted as HTML
518
108
  Authenticating with gds_sso strategy
519
109
  Completed in 0ms (ActiveRecord: 0.0ms)
520
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
521
- Started GET "/auth/gds/callback?code=efc9ef7fe39829ad7749c7dc490924444e20aa5d2358ca6bbd777357d35c8900&state=61e5d724f46be0b2ae83bc6c8a759b8b664946d6466225ae" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
110
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
111
+ Started GET "/auth/gds/callback?code=t3e9CdalZQIChrxQZWpw0C4kcAIpf4dCS7G1hh65b3o&state=38ba7880dfb04b0b344a5cc201d904c51afc8bcfaf4444cf" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
522
112
  Processing by AuthenticationsController#callback as HTML
523
- Parameters: {"code"=>"efc9ef7fe39829ad7749c7dc490924444e20aa5d2358ca6bbd777357d35c8900", "state"=>"61e5d724f46be0b2ae83bc6c8a759b8b664946d6466225ae"}
113
+ Parameters: {"code"=>"t3e9CdalZQIChrxQZWpw0C4kcAIpf4dCS7G1hh65b3o", "state"=>"38ba7880dfb04b0b344a5cc201d904c51afc8bcfaf4444cf"}
524
114
  Authenticating with gds_sso strategy
525
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
526
116
   (0.0ms) begin transaction
527
117
   (0.0ms) commit transaction
528
118
   (0.0ms) begin transaction
529
-  (0.1ms) commit transaction
119
+  (0.0ms) commit transaction
530
120
  Redirected to http://www.example-client.com/restricted
531
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
532
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
121
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
122
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
533
123
  Processing by ExampleController#restricted as HTML
534
124
  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]]
535
125
  Rendering text template
536
126
  Rendered text template (0.0ms)
537
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
538
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
127
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
128
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
539
129
  Processing by ExampleController#restricted as HTML
540
130
  Authenticating with gds_sso strategy
541
131
  Completed in 0ms (ActiveRecord: 0.0ms)
542
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:36 +0000
543
- Started GET "/auth/gds/callback?code=7f20536fb710f51d674bfd314bee9a7ecb1c7e907299aad0bdfd2d294ca4426c&state=8cb2b639017dbe5997b6caabb8f9c507d9f3974b25e8050a" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
132
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
133
+ Started GET "/auth/gds/callback?code=2YP0egP8EK9BjzxAFLSlCetha4Lpip5E3_0-aCoT2vw&state=320c0056d754ab4a4a58c33809306ce636054ce148fd3f62" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
544
134
  Processing by AuthenticationsController#callback as HTML
545
- Parameters: {"code"=>"7f20536fb710f51d674bfd314bee9a7ecb1c7e907299aad0bdfd2d294ca4426c", "state"=>"8cb2b639017dbe5997b6caabb8f9c507d9f3974b25e8050a"}
135
+ Parameters: {"code"=>"2YP0egP8EK9BjzxAFLSlCetha4Lpip5E3_0-aCoT2vw", "state"=>"320c0056d754ab4a4a58c33809306ce636054ce148fd3f62"}
546
136
  Authenticating with gds_sso strategy
547
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
548
-  (0.1ms) begin transaction
137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
138
+  (0.0ms) begin transaction
549
139
   (0.0ms) commit transaction
550
140
   (0.0ms) begin transaction
551
141
   (0.0ms) commit transaction
552
142
  Redirected to http://www.example-client.com/restricted
553
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
554
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
143
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
144
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
555
145
  Processing by ExampleController#restricted as HTML
556
146
  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]]
557
147
  Rendering text template
558
148
  Rendered text template (0.0ms)
559
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
560
- Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
561
- Processing by ExampleController#index as HTML
562
- Rendering text template
563
- Rendered text template (0.0ms)
564
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
565
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
149
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
150
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
566
151
  Processing by ExampleController#restricted as HTML
567
152
  Authenticating with gds_sso strategy
568
153
  Completed in 0ms (ActiveRecord: 0.0ms)
569
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
570
- Started GET "/auth/gds/callback?code=fc45f5524b68709e3a09578acc0a392938348efe71f42865968d0c20bc0ae9ec&state=6a83580cf0c11020d7edd96d3f44a1338c84f46b5272f1b4" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
154
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
155
+ Started GET "/auth/gds/callback?code=hLgxcit_ayAHov_NJbBYdr6FHspd3885lUbCY_kbD_A&state=90adbdefeb4f7bd88b3c95756a7bbda0f791377ed8063fcd" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
571
156
  Processing by AuthenticationsController#callback as HTML
572
- Parameters: {"code"=>"fc45f5524b68709e3a09578acc0a392938348efe71f42865968d0c20bc0ae9ec", "state"=>"6a83580cf0c11020d7edd96d3f44a1338c84f46b5272f1b4"}
157
+ Parameters: {"code"=>"hLgxcit_ayAHov_NJbBYdr6FHspd3885lUbCY_kbD_A", "state"=>"90adbdefeb4f7bd88b3c95756a7bbda0f791377ed8063fcd"}
573
158
  Authenticating with gds_sso strategy
574
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
575
-  (0.1ms) begin transaction
159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
160
+  (0.0ms) begin transaction
576
161
   (0.0ms) commit transaction
577
162
   (0.0ms) begin transaction
578
163
   (0.0ms) commit transaction
579
164
  Redirected to http://www.example-client.com/restricted
580
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
581
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
165
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
166
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
582
167
  Processing by ExampleController#restricted as HTML
583
168
  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]]
584
169
  Rendering text template
585
170
  Rendered text template (0.0ms)
586
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
587
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
588
-  (0.0ms) begin transaction
589
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
590
-  (5.3ms) commit transaction
591
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
171
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
172
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
592
173
  Processing by ExampleController#restricted as HTML
593
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
594
174
  Authenticating with gds_sso strategy
595
- Completed in 1ms (ActiveRecord: 0.1ms)
596
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
597
- Started GET "/auth/gds/callback?code=21d6be0657ca17afde1c2376f29a3e4e2fe20a6d9a51dc126270d29838526c6a&state=138f9738a4a4755c19c118edf2f8de188c72c0dc5d074eee" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
175
+ Completed in 0ms (ActiveRecord: 0.0ms)
176
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
177
+ Started GET "/auth/gds/callback?code=L9OOGVZzZXA-A8yjejj5D-a6TMKqHAU0R2KzZpDfA-Y&state=940afe6d5b93445643da282f1a71fcd431d61585e8a93515" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
598
178
  Processing by AuthenticationsController#callback as HTML
599
- Parameters: {"code"=>"21d6be0657ca17afde1c2376f29a3e4e2fe20a6d9a51dc126270d29838526c6a", "state"=>"138f9738a4a4755c19c118edf2f8de188c72c0dc5d074eee"}
179
+ Parameters: {"code"=>"L9OOGVZzZXA-A8yjejj5D-a6TMKqHAU0R2KzZpDfA-Y", "state"=>"940afe6d5b93445643da282f1a71fcd431d61585e8a93515"}
600
180
  Authenticating with gds_sso strategy
601
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
602
-  (0.1ms) begin transaction
603
-  (0.1ms) commit transaction
181
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
604
182
   (0.0ms) begin transaction
605
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
606
-  (6.6ms) commit transaction
183
+  (0.0ms) commit transaction
184
+  (0.0ms) begin transaction
185
+  (0.0ms) commit transaction
607
186
  Redirected to http://www.example-client.com/restricted
608
- Completed 302 Found in 11ms (ActiveRecord: 7.2ms)
609
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
187
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
188
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
610
189
  Processing by ExampleController#restricted as HTML
611
190
  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]]
612
191
  Rendering text template
613
192
  Rendered text template (0.0ms)
614
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
615
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
193
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
194
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
616
195
  Processing by ExampleController#restricted as HTML
617
196
  Authenticating with gds_sso strategy
618
197
  Completed in 0ms (ActiveRecord: 0.0ms)
619
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
620
- Started GET "/auth/gds/callback?code=a635eed314316682b07197ad261bdd39353d0372171f2c3cdc3b58b216c47cca&state=5e27068e841c4b6e765fe0c57819dc6f55da1eae2a7ea8ab" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
198
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
199
+ Started GET "/auth/gds/callback?code=5ic6sOKhJSYDURBYZoFJHexP5G2bfXJjIV79xqDNFJ4&state=80aabeb7042e4b14007db50f5bbedc7f49363322faeb15c9" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
621
200
  Processing by AuthenticationsController#callback as HTML
622
- Parameters: {"code"=>"a635eed314316682b07197ad261bdd39353d0372171f2c3cdc3b58b216c47cca", "state"=>"5e27068e841c4b6e765fe0c57819dc6f55da1eae2a7ea8ab"}
201
+ Parameters: {"code"=>"5ic6sOKhJSYDURBYZoFJHexP5G2bfXJjIV79xqDNFJ4", "state"=>"80aabeb7042e4b14007db50f5bbedc7f49363322faeb15c9"}
623
202
  Authenticating with gds_sso strategy
624
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
625
-  (0.1ms) begin transaction
203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
204
+  (0.0ms) begin transaction
626
205
   (0.0ms) commit transaction
627
206
   (0.0ms) begin transaction
628
207
   (0.0ms) commit transaction
629
208
  Redirected to http://www.example-client.com/restricted
630
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
631
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
209
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
210
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
632
211
  Processing by ExampleController#restricted as HTML
633
212
  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]]
634
213
  Rendering text template
635
214
  Rendered text template (0.0ms)
636
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
637
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
215
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
216
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:00 +0000
638
217
  Processing by ExampleController#restricted as HTML
639
- Authenticating with gds_sso strategy
640
- Completed in 1ms (ActiveRecord: 0.0ms)
641
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
642
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
218
+ 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]]
219
+ Rendering text template
220
+ Rendered text template (0.0ms)
221
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
222
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
643
223
  Processing by ExampleController#restricted as HTML
644
224
  Authenticating with gds_sso strategy
645
225
  Completed in 0ms (ActiveRecord: 0.0ms)
646
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
647
- Started GET "/auth/gds/callback?code=ca40aa30fb964ba5cd361184543601cc1b863dcccc03c1dcf8e0c6affa00a3ce&state=58a21355585a9e2fc0f526315479bf1f7bcb1a39c556bf44" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
226
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
227
+ Started GET "/auth/gds/callback?code=5unc36p8g7n2ZSWxVmKzQJqtfQHU46Ize10_86EatxE&state=e66c42d4403f0a73e63f057037a7b9a79659047a0281a7c5" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
648
228
  Processing by AuthenticationsController#callback as HTML
649
- Parameters: {"code"=>"ca40aa30fb964ba5cd361184543601cc1b863dcccc03c1dcf8e0c6affa00a3ce", "state"=>"58a21355585a9e2fc0f526315479bf1f7bcb1a39c556bf44"}
229
+ Parameters: {"code"=>"5unc36p8g7n2ZSWxVmKzQJqtfQHU46Ize10_86EatxE", "state"=>"e66c42d4403f0a73e63f057037a7b9a79659047a0281a7c5"}
650
230
  Authenticating with gds_sso strategy
651
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
652
-  (0.1ms) begin transaction
231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
232
+  (0.0ms) begin transaction
653
233
   (0.0ms) commit transaction
654
234
   (0.0ms) begin transaction
655
235
   (0.0ms) commit transaction
656
236
  Redirected to http://www.example-client.com/restricted
657
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
658
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
237
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
238
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
659
239
  Processing by ExampleController#restricted as HTML
660
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
240
+ 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]]
661
241
  Rendering text template
662
242
  Rendered text template (0.0ms)
663
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
664
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
243
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
244
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:01 +0000
665
245
  Processing by ExampleController#restricted as HTML
666
246
  Authenticating with gds_sso strategy
667
- Completed in 1ms (ActiveRecord: 0.0ms)
668
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
669
- Started GET "/auth/gds/callback?code=53d67701a72b7915a3ed0123f6ed0218efd6c8d3cda761eadcdc2fe07c7c2c3b&state=cfd24ecedc22e6f3f1b172beadf12314aec60bfcb22f6881" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
247
+ Completed in 0ms (ActiveRecord: 0.0ms)
248
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:01 +0000
249
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
250
+ Processing by ExampleController#restricted as HTML
251
+ Authenticating with gds_sso strategy
252
+ Completed in 0ms (ActiveRecord: 0.0ms)
253
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
254
+ Started GET "/auth/gds/callback?code=9DCTU1hpKPN8xOmtADg00cg7HVlQHEgSIs_qH8_8eQg&state=ba7a01e8e51a2c83e7c233d7757fce6ecc8d35737dca4067" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
670
255
  Processing by AuthenticationsController#callback as HTML
671
- Parameters: {"code"=>"53d67701a72b7915a3ed0123f6ed0218efd6c8d3cda761eadcdc2fe07c7c2c3b", "state"=>"cfd24ecedc22e6f3f1b172beadf12314aec60bfcb22f6881"}
256
+ Parameters: {"code"=>"9DCTU1hpKPN8xOmtADg00cg7HVlQHEgSIs_qH8_8eQg", "state"=>"ba7a01e8e51a2c83e7c233d7757fce6ecc8d35737dca4067"}
672
257
  Authenticating with gds_sso strategy
673
258
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
674
-  (0.1ms) begin transaction
259
+  (0.0ms) begin transaction
675
260
   (0.0ms) commit transaction
676
261
   (0.0ms) begin transaction
677
262
   (0.0ms) commit transaction
678
263
  Redirected to http://www.example-client.com/restricted
679
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
680
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:37 +0000
264
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
265
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
681
266
  Processing by ExampleController#restricted as HTML
682
267
  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]]
683
268
  Rendering text template
684
269
  Rendered text template (0.0ms)
685
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
686
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
687
- Processing by ExampleController#restricted as HTML
688
- Authenticating with gds_sso strategy
689
- Completed in 0ms (ActiveRecord: 0.0ms)
690
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:37 +0000
691
- Started GET "/auth/gds/callback?code=a7d7a1fc47a22bb51de8afbfc3f311b20e4e8f4ada3f8b71698b681115a9b132&state=55575dbe38c4b3652a5ba2ba952d5ee410198fd5a725f66f" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
270
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
272
+  (0.0ms) begin transaction
273
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
274
+  (6.6ms) commit transaction
275
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
276
+ Processing by ExampleController#restricted as HTML
277
+ 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]]
278
+ Authenticating with gds_sso strategy
279
+ Completed in 1ms (ActiveRecord: 0.1ms)
280
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
281
+ Started GET "/auth/gds/callback?code=eXlvYYRe2IqnS8eEnMRI7woLmtLres33w6NsssIPWfM&state=553b4734786e1342b14853bfac88a9c543fbe33785db4164" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
692
282
  Processing by AuthenticationsController#callback as HTML
693
- Parameters: {"code"=>"a7d7a1fc47a22bb51de8afbfc3f311b20e4e8f4ada3f8b71698b681115a9b132", "state"=>"55575dbe38c4b3652a5ba2ba952d5ee410198fd5a725f66f"}
283
+ Parameters: {"code"=>"eXlvYYRe2IqnS8eEnMRI7woLmtLres33w6NsssIPWfM", "state"=>"553b4734786e1342b14853bfac88a9c543fbe33785db4164"}
694
284
  Authenticating with gds_sso strategy
695
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
696
-  (0.1ms) begin transaction
697
-  (0.0ms) commit transaction
285
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
698
286
   (0.0ms) begin transaction
699
-  (0.0ms) commit transaction
287
+  (0.1ms) commit transaction
288
+  (0.0ms) begin transaction
289
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
290
+  (4.5ms) commit transaction
700
291
  Redirected to http://www.example-client.com/restricted
701
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
702
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
292
+ Completed 302 Found in 7ms (ActiveRecord: 4.9ms)
293
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
703
294
  Processing by ExampleController#restricted as HTML
704
295
  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]]
705
296
  Rendering text template
706
297
  Rendered text template (0.0ms)
707
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
708
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:38 +0000
709
- Processing by ExampleController#restricted as HTML
710
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
298
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
299
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
300
+ Processing by ExampleController#restricted as JSON
301
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
302
+  (0.0ms) begin transaction
303
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 3]]
304
+  (6.5ms) commit transaction
305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
306
+  (0.0ms) begin transaction
307
+  (0.0ms) commit transaction
308
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
309
+  (0.0ms) begin transaction
310
+  (0.0ms) commit transaction
311
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
312
+  (0.0ms) begin transaction
313
+  (0.0ms) commit transaction
314
+  (0.0ms) begin transaction
315
+  (0.0ms) commit transaction
711
316
  Rendering text template
712
317
  Rendered text template (0.0ms)
713
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
714
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:38 +0000
715
- Processing by ExampleController#restricted as HTML
716
- Authenticating with gds_sso strategy
717
- Completed in 0ms (ActiveRecord: 0.0ms)
318
+ Completed 200 OK in 21ms (Views: 0.2ms | ActiveRecord: 7.1ms)
319
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
320
+ Processing by ExampleController#restricted as JSON
321
+ Completed in 12ms (ActiveRecord: 0.0ms)
322
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
323
+ Processing by ExampleController#this_requires_signin_permission as JSON
324
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
718
325
   (0.0ms) begin transaction
719
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34228"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
720
-  (4.0ms) commit transaction
326
+  (0.0ms) commit transaction
327
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
721
328
   (0.0ms) begin transaction
722
- User Create (0.5ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33316"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
723
-  (3.3ms) commit transaction
724
- Processing by Api::UserController#update as HTML
725
- Parameters: {"uid"=>"a1s2d34228"}
726
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34228"], ["LIMIT", 1]]
329
+  (0.0ms) commit transaction
330
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
727
331
   (0.0ms) begin transaction
728
- User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
729
-  (4.1ms) commit transaction
730
- Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
731
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
332
+  (0.0ms) commit transaction
333
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
334
+  (0.0ms) begin transaction
335
+  (0.0ms) commit transaction
336
+  (0.0ms) begin transaction
337
+  (0.0ms) commit transaction
338
+ Rendering text template
339
+ Rendered text template (0.0ms)
340
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
341
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
342
+ Processing by ExampleController#restricted as JSON
343
+ Completed in 7ms (ActiveRecord: 0.0ms)
344
+  (0.0ms) begin transaction
345
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36751"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
346
+  (7.0ms) commit transaction
732
347
   (0.0ms) begin transaction
733
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32448"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
348
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37112"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
349
+  (6.0ms) commit transaction
350
+ Processing by Api::UserController#reauth as HTML
351
+ Parameters: {"uid"=>"a1s2d36751"}
352
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36751"], ["LIMIT", 1]]
353
+  (0.0ms) begin transaction
354
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
355
+  (4.6ms) commit transaction
356
+ Completed 200 OK in 6ms (ActiveRecord: 4.9ms)
357
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
358
+  (0.0ms) begin transaction
359
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39451"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
360
+  (9.7ms) commit transaction
361
+  (0.0ms) begin transaction
362
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38478"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
363
+  (15.0ms) commit transaction
364
+ Processing by Api::UserController#reauth as HTML
365
+ Parameters: {"uid"=>"nonexistent-user"}
366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
367
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
368
+  (0.0ms) begin transaction
369
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36453"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
734
370
   (4.2ms) commit transaction
735
371
   (0.0ms) begin transaction
736
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35385"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
737
-  (2.9ms) commit transaction
738
- Processing by Api::UserController#update as HTML
739
- Parameters: {"uid"=>"a1s2d32448"}
372
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3600"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
373
+  (4.5ms) commit transaction
374
+ Processing by Api::UserController#reauth as HTML
375
+ Parameters: {"uid"=>"a1s2d36453"}
740
376
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
741
377
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
742
378
  Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
743
379
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
744
- Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
380
+ Completed 403 Forbidden in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
745
381
   (0.0ms) begin transaction
746
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36336"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
747
-  (3.3ms) commit transaction
382
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37723"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
383
+  (5.4ms) commit transaction
748
384
   (0.0ms) begin transaction
749
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3676"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
-  (3.0ms) commit transaction
385
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36478"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
386
+  (4.2ms) commit transaction
387
+ Processing by Api::UserController#update as HTML
388
+ Parameters: {"uid"=>"a1s2d37723"}
389
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37723"], ["LIMIT", 1]]
390
+  (0.0ms) begin transaction
391
+ User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
392
+  (4.2ms) commit transaction
393
+ Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
394
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
395
+  (0.0ms) begin transaction
396
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31835"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
397
+  (5.2ms) commit transaction
398
+  (0.0ms) begin transaction
399
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34167"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
400
+  (4.0ms) commit transaction
401
+ Processing by Api::UserController#update as HTML
402
+ Parameters: {"uid"=>"a1s2d31835"}
403
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
404
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
405
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
406
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
407
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
408
+  (1.0ms) SELECT sqlite_version(*)
409
+  (0.0ms) SELECT sqlite_version(*)
410
+  (0.1ms) DROP TABLE IF EXISTS "users"
411
+  (8.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
+  (6.2ms) 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
+  (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", "2020-10-26 14:51:09.395508"], ["updated_at", "2020-10-26 14:51:09.395508"]]
416
+  (5.1ms) commit transaction
417
+  (4.2ms) 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
+  (0.1ms) SELECT sqlite_version(*)
420
+  (0.0ms) begin transaction
421
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3521"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
422
+  (8.8ms) commit transaction
423
+  (0.0ms) begin transaction
424
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31612"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
425
+  (9.4ms) commit transaction
751
426
  Processing by Api::UserController#reauth as HTML
752
- Parameters: {"uid"=>"a1s2d36336"}
427
+ Parameters: {"uid"=>"a1s2d3521"}
753
428
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
754
429
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
755
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
430
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 266)
756
431
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
757
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
432
+ Completed 403 Forbidden in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 3270)
758
433
   (0.0ms) begin transaction
759
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39533"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
760
-  (4.3ms) commit transaction
434
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35772"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
435
+  (5.7ms) commit transaction
761
436
   (0.0ms) begin transaction
762
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33794"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
-  (3.1ms) commit transaction
437
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39235"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
438
+  (7.3ms) commit transaction
764
439
  Processing by Api::UserController#reauth as HTML
765
- Parameters: {"uid"=>"nonexistent-user"}
766
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
767
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
768
-  (0.1ms) begin transaction
769
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35568"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
770
-  (3.9ms) commit transaction
440
+ Parameters: {"uid"=>"a1s2d35772"}
441
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35772"], ["LIMIT", 1]]
771
442
   (0.0ms) begin transaction
772
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38626"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
773
-  (3.3ms) commit transaction
443
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 3]]
444
+  (7.3ms) commit transaction
445
+ Completed 200 OK in 10ms (ActiveRecord: 7.7ms | Allocations: 1138)
446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
447
+  (0.0ms) begin transaction
448
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35156"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
449
+  (7.9ms) commit transaction
450
+  (0.0ms) begin transaction
451
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34813"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
452
+  (5.1ms) commit transaction
774
453
  Processing by Api::UserController#reauth as HTML
775
- Parameters: {"uid"=>"a1s2d35568"}
776
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35568"], ["LIMIT", 1]]
454
+ Parameters: {"uid"=>"nonexistent-user"}
455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
456
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 521)
777
457
   (0.0ms) begin transaction
778
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
779
-  (3.6ms) commit transaction
780
- Completed 200 OK in 6ms (ActiveRecord: 4.0ms)
781
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]
782
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
783
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
784
-  (0.1ms) begin transaction
785
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
786
-  (4.3ms) commit transaction
787
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
458
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34405"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
459
+  (5.0ms) commit transaction
788
460
   (0.0ms) begin transaction
789
-  (0.0ms) commit transaction
790
-  (4.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
791
-  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
-  (0.1ms) select sqlite_version(*)
793
-  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
795
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
796
-  (0.1ms) begin transaction
797
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
798
-  (3.6ms) commit transaction
799
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
800
-  (0.0ms) begin transaction
801
-  (0.1ms) commit transaction
802
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
803
- Processing by ExampleController#restricted as JSON
804
- Completed in 34ms (ActiveRecord: 0.0ms)
805
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
806
- Processing by ExampleController#this_requires_signin_permission as JSON
807
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
808
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
809
-  (0.0ms) begin transaction
810
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
811
-  (5.1ms) commit transaction
812
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
813
-  (0.0ms) begin transaction
814
-  (0.0ms) commit transaction
815
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
816
-  (0.1ms) begin transaction
817
-  (0.0ms) commit transaction
818
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
819
-  (0.1ms) begin transaction
820
-  (0.1ms) commit transaction
821
-  (0.1ms) begin transaction
822
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
823
-  (3.7ms) commit transaction
824
- Rendered text template (0.0ms)
825
- Completed 200 OK in 72ms (Views: 10.4ms | ActiveRecord: 10.1ms)
826
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
827
- Processing by ExampleController#restricted as JSON
828
- Completed in 11ms (ActiveRecord: 0.0ms)
829
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:45 +0000
830
- Processing by ExampleController#restricted as JSON
831
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
832
-  (0.1ms) begin transaction
833
-  (0.0ms) commit transaction
834
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
835
-  (0.1ms) begin transaction
836
-  (0.1ms) commit transaction
837
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
838
-  (0.1ms) begin transaction
839
-  (0.0ms) commit transaction
840
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
841
-  (0.1ms) begin transaction
842
-  (0.0ms) commit transaction
843
-  (0.0ms) begin transaction
844
-  (0.0ms) commit transaction
845
- Rendered text template (0.0ms)
846
- Completed 200 OK in 51ms (Views: 0.2ms | ActiveRecord: 0.7ms)
847
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
848
- Processing by ExampleController#restricted as HTML
849
- Authenticating with gds_sso strategy
850
- Completed in 0ms (ActiveRecord: 0.0ms)
851
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
852
- Started GET "/auth/gds/callback?code=46491738f1aaddfb6b3ea4738a6a7bdec78409001eb1fa35af500390d47874a5&state=893a3935dda233f21be1a28576524d7ba723084adcf2bcd3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
853
- Processing by AuthenticationsController#callback as HTML
854
- Parameters: {"code"=>"46491738f1aaddfb6b3ea4738a6a7bdec78409001eb1fa35af500390d47874a5", "state"=>"893a3935dda233f21be1a28576524d7ba723084adcf2bcd3"}
855
- Authenticating with gds_sso strategy
856
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
857
-  (0.1ms) begin transaction
858
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
859
-  (3.5ms) commit transaction
860
-  (0.0ms) begin transaction
861
-  (0.8ms) commit transaction
862
- Redirected to http://www.example-client.com/restricted
863
- Completed 302 Found in 10ms (ActiveRecord: 4.8ms)
864
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
865
- Processing by ExampleController#restricted as HTML
866
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
867
- Rendered text template (0.0ms)
868
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
869
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
870
- Processing by ExampleController#restricted as HTML
871
- Authenticating with gds_sso strategy
872
- Completed in 1ms (ActiveRecord: 0.0ms)
873
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
874
- Started GET "/auth/gds/callback?code=278b47d54129f3dd2bad638d0a46a7053f2c7be1b862e8ddff5cf33a23dd98e8&state=31513a37b3ea74a950c3de0164cc26a17715c2847b201edf" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
875
- Processing by AuthenticationsController#callback as HTML
876
- Parameters: {"code"=>"278b47d54129f3dd2bad638d0a46a7053f2c7be1b862e8ddff5cf33a23dd98e8", "state"=>"31513a37b3ea74a950c3de0164cc26a17715c2847b201edf"}
877
- Authenticating with gds_sso strategy
878
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
879
-  (0.1ms) begin transaction
880
-  (0.0ms) commit transaction
881
-  (0.0ms) begin transaction
882
-  (0.0ms) commit transaction
883
- Redirected to http://www.example-client.com/restricted
884
- Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
885
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
886
- Processing by ExampleController#restricted as HTML
887
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
888
- Rendered text template (0.0ms)
889
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
890
- Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
891
- Processing by ExampleController#index as HTML
892
- Rendered text template (0.0ms)
893
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
894
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
461
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3951"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
462
+  (7.0ms) commit transaction
463
+ Processing by Api::UserController#update as HTML
464
+ Parameters: {"uid"=>"a1s2d34405"}
465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34405"], ["LIMIT", 1]]
466
+  (0.0ms) begin transaction
467
+ 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", 7]]
468
+  (6.3ms) commit transaction
469
+ Completed 200 OK in 8ms (ActiveRecord: 6.6ms | Allocations: 1284)
470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
471
+  (0.0ms) begin transaction
472
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34335"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
473
+  (9.8ms) commit transaction
474
+  (0.0ms) begin transaction
475
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39368"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
476
+  (7.4ms) commit transaction
477
+ Processing by Api::UserController#update as HTML
478
+ Parameters: {"uid"=>"a1s2d34335"}
479
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
480
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
481
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 56)
482
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
483
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 514)
484
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
485
+  (0.0ms) begin transaction
486
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "3749"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
487
+  (11.3ms) commit transaction
488
+  (0.0ms) begin transaction
489
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
490
+  (13.2ms) commit transaction
491
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
493
+  (0.0ms) begin transaction
494
+ 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]]
495
+  (6.9ms) commit transaction
496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
497
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
895
498
  Processing by ExampleController#this_requires_signin_permission as HTML
896
499
  Authenticating with gds_sso strategy
897
- Completed in 0ms (ActiveRecord: 0.0ms)
898
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
899
- Started GET "/auth/gds/callback?code=a05dea05377b77097cf1d1a787a42a6a257fa8b649771b02480ec3639380f69c&state=f06d1e2b7dcee87954727a48556fe69ff1aad3ed826200dc" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
500
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 161)
501
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
502
+ Started GET "/auth/gds/callback?code=CcfEoM1MpM4hcEeZL5WZUmoWjkNxiM0Oa1L7rWJLKBs&state=156fe842e93761b639e9a74480699111a72a9be4a4fc1e17" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
900
503
  Processing by AuthenticationsController#callback as HTML
901
- Parameters: {"code"=>"a05dea05377b77097cf1d1a787a42a6a257fa8b649771b02480ec3639380f69c", "state"=>"f06d1e2b7dcee87954727a48556fe69ff1aad3ed826200dc"}
504
+ Parameters: {"code"=>"CcfEoM1MpM4hcEeZL5WZUmoWjkNxiM0Oa1L7rWJLKBs", "state"=>"156fe842e93761b639e9a74480699111a72a9be4a4fc1e17"}
902
505
  Authenticating with gds_sso strategy
903
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
904
-  (0.1ms) begin transaction
905
-  (0.1ms) commit transaction
906
-  (0.0ms) begin transaction
907
-  (0.1ms) commit transaction
506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
508
+  (0.0ms) begin transaction
509
+ 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"]]
510
+  (5.3ms) commit transaction
511
+  (0.0ms) begin transaction
512
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
513
+  (4.2ms) commit transaction
908
514
  Redirected to http://www.example-client.com/this_requires_signin_permission
909
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
910
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
515
+ Completed 302 Found in 13ms (ActiveRecord: 10.1ms | Allocations: 1593)
516
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
911
517
  Processing by ExampleController#this_requires_signin_permission as HTML
912
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
913
- Rendered text template (0.0ms)
914
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
915
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
518
+ 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]]
519
+ Rendering text template
520
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
521
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms | Allocations: 1054)
522
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
916
523
  Processing by ExampleController#this_requires_signin_permission as HTML
917
524
  Authenticating with gds_sso strategy
918
- Completed in 0ms (ActiveRecord: 0.0ms)
919
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
920
- Started GET "/auth/gds/callback?code=78fd4c0dfda27773d11b80e8a676f87bf352ea9dd6663a1cf982c7bfbf5da528&state=bc56e631805f2d03729c6768484c09c7a3d4062949f55aa3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
525
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
526
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
527
+ Started GET "/auth/gds/callback?code=P_GEjdhe51Awp_rBVMBHcqmzzX64bBiYtbzHlOCLd1A&state=a3e67583ddbdc93e9a05d777b9f8f47211da874e1bf08a89" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
921
528
  Processing by AuthenticationsController#callback as HTML
922
- Parameters: {"code"=>"78fd4c0dfda27773d11b80e8a676f87bf352ea9dd6663a1cf982c7bfbf5da528", "state"=>"bc56e631805f2d03729c6768484c09c7a3d4062949f55aa3"}
529
+ Parameters: {"code"=>"P_GEjdhe51Awp_rBVMBHcqmzzX64bBiYtbzHlOCLd1A", "state"=>"a3e67583ddbdc93e9a05d777b9f8f47211da874e1bf08a89"}
923
530
  Authenticating with gds_sso strategy
924
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
925
-  (0.1ms) begin transaction
926
-  (0.1ms) commit transaction
927
-  (0.0ms) begin transaction
928
-  (0.0ms) commit transaction
531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
929
532
  Redirected to http://www.example-client.com/this_requires_signin_permission
930
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
931
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
533
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
534
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
932
535
  Processing by ExampleController#this_requires_signin_permission as HTML
933
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
934
- Rendered text template (0.0ms)
935
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
936
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
536
+ 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]]
537
+ Rendering text template
538
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
539
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
540
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
937
541
  Processing by ExampleController#restricted as HTML
938
542
  Authenticating with gds_sso strategy
939
- Completed in 0ms (ActiveRecord: 0.0ms)
940
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
941
- Started GET "/auth/gds/callback?code=4ebaa83e246a308282e405b5fa0d67fd9b94a7ae97883460d2b3270ec6b0342b&state=d73a86aa2c6b4cb1d8311d775aac6d3c39010f11750115d3" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
543
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
544
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
545
+ Started GET "/auth/gds/callback?code=vw71a-deJx87P19bBjLXxD9r3B3vPQRW7movQkxVyg4&state=f086f068f227e08a5a6c23086c801305a3bf33eacae3c724" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
942
546
  Processing by AuthenticationsController#callback as HTML
943
- Parameters: {"code"=>"4ebaa83e246a308282e405b5fa0d67fd9b94a7ae97883460d2b3270ec6b0342b", "state"=>"d73a86aa2c6b4cb1d8311d775aac6d3c39010f11750115d3"}
547
+ Parameters: {"code"=>"vw71a-deJx87P19bBjLXxD9r3B3vPQRW7movQkxVyg4", "state"=>"f086f068f227e08a5a6c23086c801305a3bf33eacae3c724"}
944
548
  Authenticating with gds_sso strategy
945
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
946
-  (0.0ms) begin transaction
947
-  (0.1ms) commit transaction
948
-  (0.0ms) begin transaction
949
-  (0.0ms) commit transaction
549
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
950
550
  Redirected to http://www.example-client.com/restricted
951
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
952
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
551
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
552
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
953
553
  Processing by ExampleController#restricted as HTML
954
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
955
- Rendered text template (0.0ms)
956
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
957
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
554
+ 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]]
555
+ Rendering text template
556
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
557
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
558
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
958
559
  Processing by ExampleController#restricted as HTML
959
560
  Authenticating with gds_sso strategy
960
- Completed in 0ms (ActiveRecord: 0.0ms)
961
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:46 +0000
962
- Started GET "/auth/gds/callback?code=72595e36995298969be3e0e57c14e3bc110dc3352ee056555ee1a96621fe2fd5&state=68cbe4da58fb5978ead14a7cee63f44dc10f9d30258f42b1" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
561
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
562
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
563
+ Started GET "/auth/gds/callback?code=gKSQCO3T605t6Bd3ty3fTGxwcWnUBnKKQ0WS_qsE9Sg&state=85c6bc6df2137b74f313bcab3e7fe9a031c3961c98396d4b" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
963
564
  Processing by AuthenticationsController#callback as HTML
964
- Parameters: {"code"=>"72595e36995298969be3e0e57c14e3bc110dc3352ee056555ee1a96621fe2fd5", "state"=>"68cbe4da58fb5978ead14a7cee63f44dc10f9d30258f42b1"}
565
+ Parameters: {"code"=>"gKSQCO3T605t6Bd3ty3fTGxwcWnUBnKKQ0WS_qsE9Sg", "state"=>"85c6bc6df2137b74f313bcab3e7fe9a031c3961c98396d4b"}
965
566
  Authenticating with gds_sso strategy
966
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
967
-  (0.1ms) begin transaction
968
-  (0.1ms) commit transaction
969
-  (0.0ms) begin transaction
970
-  (0.1ms) commit transaction
567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
971
568
  Redirected to http://www.example-client.com/restricted
972
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
973
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
569
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
570
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
974
571
  Processing by ExampleController#restricted as HTML
975
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
976
- Rendered text template (0.0ms)
977
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
978
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
572
+ 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]]
573
+ Rendering text template
574
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
575
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
576
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
979
577
  Processing by ExampleController#restricted as HTML
980
578
  Authenticating with gds_sso strategy
981
- Completed in 0ms (ActiveRecord: 0.0ms)
982
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
983
- Started GET "/auth/gds/callback?code=5e3aae247f586f8b66e8b3435c40eadd94306eb1228b18083c23a7f5c6505de0&state=9877cea207b7932fac6c73e7476c0e8d556fc58b89f482e0" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
579
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
580
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
581
+ Started GET "/auth/gds/callback?code=BnFkDrfN9Z2hyimBvnmSqcPfovbOQyFvaIG9cohTHfM&state=ebc1316410d9746f3da5be6009e776a648c23afa996ed286" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
984
582
  Processing by AuthenticationsController#callback as HTML
985
- Parameters: {"code"=>"5e3aae247f586f8b66e8b3435c40eadd94306eb1228b18083c23a7f5c6505de0", "state"=>"9877cea207b7932fac6c73e7476c0e8d556fc58b89f482e0"}
583
+ Parameters: {"code"=>"BnFkDrfN9Z2hyimBvnmSqcPfovbOQyFvaIG9cohTHfM", "state"=>"ebc1316410d9746f3da5be6009e776a648c23afa996ed286"}
986
584
  Authenticating with gds_sso strategy
987
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
988
-  (0.1ms) begin transaction
989
-  (0.1ms) commit transaction
990
-  (0.1ms) begin transaction
991
-  (0.1ms) commit transaction
585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
992
586
  Redirected to http://www.example-client.com/restricted
993
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
994
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
587
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
588
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
995
589
  Processing by ExampleController#restricted as HTML
996
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
997
- Rendered text template (0.0ms)
998
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
999
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
590
+ 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]]
591
+ Rendering text template
592
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
593
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
594
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
595
+ Processing by ExampleController#index as HTML
596
+ Rendering text template
597
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
598
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 153)
599
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1000
600
  Processing by ExampleController#restricted as HTML
1001
601
  Authenticating with gds_sso strategy
1002
- Completed in 0ms (ActiveRecord: 0.0ms)
1003
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1004
- Started GET "/auth/gds/callback?code=ba3c185aaf43f4e8cc0a3cdbb5b2aaa3b937f1851a05cf9733b34599c5e0deb8&state=ffd2d8c355fb34666ae467cd78ac26b51034736fbdb2c38c" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
602
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
603
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
604
+ Started GET "/auth/gds/callback?code=APoibDDfGWp4YOYOb-mlhAGZ4ddhM99vujOTRaNe8fM&state=31b2dd657ea3fb2f658a27903cd6731ae4b5a1b5e4a31a35" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1005
605
  Processing by AuthenticationsController#callback as HTML
1006
- Parameters: {"code"=>"ba3c185aaf43f4e8cc0a3cdbb5b2aaa3b937f1851a05cf9733b34599c5e0deb8", "state"=>"ffd2d8c355fb34666ae467cd78ac26b51034736fbdb2c38c"}
606
+ Parameters: {"code"=>"APoibDDfGWp4YOYOb-mlhAGZ4ddhM99vujOTRaNe8fM", "state"=>"31b2dd657ea3fb2f658a27903cd6731ae4b5a1b5e4a31a35"}
1007
607
  Authenticating with gds_sso strategy
1008
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1009
-  (0.0ms) begin transaction
1010
-  (0.1ms) commit transaction
1011
-  (0.1ms) begin transaction
1012
-  (0.1ms) commit transaction
608
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1013
609
  Redirected to http://www.example-client.com/restricted
1014
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1015
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
610
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
611
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1016
612
  Processing by ExampleController#restricted as HTML
1017
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1018
- Rendered text template (0.0ms)
1019
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1020
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:47 +0000
613
+ 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]]
614
+ Rendering text template
615
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
616
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
617
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
1021
618
  Processing by ExampleController#restricted as HTML
1022
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1023
- Rendered text template (0.0ms)
1024
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1025
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
619
+ Authenticating with gds_sso strategy
620
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
621
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
622
+ Started GET "/auth/gds/callback?code=7K72nCsn8CzZstyeITpn5_tqeSamkl20rDOAnjEAvhE&state=39077c375107ad6496606d3943549c493bdc6ed4fd38c558" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
623
+ Processing by AuthenticationsController#callback as HTML
624
+ Parameters: {"code"=>"7K72nCsn8CzZstyeITpn5_tqeSamkl20rDOAnjEAvhE", "state"=>"39077c375107ad6496606d3943549c493bdc6ed4fd38c558"}
625
+ Authenticating with gds_sso strategy
626
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
627
+ Redirected to http://www.example-client.com/restricted
628
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1217)
629
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
630
+ Processing by ExampleController#restricted as HTML
631
+ 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]]
632
+ Rendering text template
633
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
634
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 931)
635
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1026
636
  Processing by ExampleController#restricted as HTML
1027
637
  Authenticating with gds_sso strategy
1028
- Completed in 0ms (ActiveRecord: 0.0ms)
1029
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1030
- Started GET "/auth/gds/callback?code=1dfe530737f211bd9a913fa02b68fd7f638a3be297beb3402524249abdfa449c&state=b379062b6bb4c84dbf5f0704e2c8064fef216b66389dce09" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
638
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
639
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
640
+ Started GET "/auth/gds/callback?code=IT_etADQWF1aJWi9LF93q_RAkpAR81y52ZPecBrS4RE&state=4cdc532d5e0d6b31f8dd68839f3ab032ebf1396f521219a0" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1031
641
  Processing by AuthenticationsController#callback as HTML
1032
- Parameters: {"code"=>"1dfe530737f211bd9a913fa02b68fd7f638a3be297beb3402524249abdfa449c", "state"=>"b379062b6bb4c84dbf5f0704e2c8064fef216b66389dce09"}
642
+ Parameters: {"code"=>"IT_etADQWF1aJWi9LF93q_RAkpAR81y52ZPecBrS4RE", "state"=>"4cdc532d5e0d6b31f8dd68839f3ab032ebf1396f521219a0"}
1033
643
  Authenticating with gds_sso strategy
1034
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1035
-  (0.1ms) begin transaction
1036
-  (0.1ms) commit transaction
1037
-  (0.1ms) begin transaction
1038
-  (0.1ms) commit transaction
644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1039
645
  Redirected to http://www.example-client.com/restricted
1040
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1041
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
646
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
647
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1042
648
  Processing by ExampleController#restricted as HTML
1043
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1044
- Rendered text template (0.0ms)
1045
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1046
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
649
+ 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]]
650
+ Rendering text template
651
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
652
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
653
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
1047
654
  Processing by ExampleController#restricted as HTML
1048
655
  Authenticating with gds_sso strategy
1049
- Completed in 0ms (ActiveRecord: 0.0ms)
1050
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:47 +0000
1051
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
656
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
657
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
658
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1052
659
  Processing by ExampleController#restricted as HTML
1053
660
  Authenticating with gds_sso strategy
1054
- Completed in 0ms (ActiveRecord: 0.0ms)
1055
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1056
- Started GET "/auth/gds/callback?code=cc580a0f368a72a4ebcbb72025608f86068af9270475f95b901115159cf3f8f2&state=5220d96d9701fe227cc6f8979240d05dc630cfdf4bfcc3d6" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
661
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
662
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
663
+ Started GET "/auth/gds/callback?code=O4wvIT3_l7tiliaqAACJZ20qbUqq_pVNmbXZ7LQb-nw&state=8485936984b0a357019f3679e1a0c3cb257b9125fe85d1c4" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1057
664
  Processing by AuthenticationsController#callback as HTML
1058
- Parameters: {"code"=>"cc580a0f368a72a4ebcbb72025608f86068af9270475f95b901115159cf3f8f2", "state"=>"5220d96d9701fe227cc6f8979240d05dc630cfdf4bfcc3d6"}
665
+ Parameters: {"code"=>"O4wvIT3_l7tiliaqAACJZ20qbUqq_pVNmbXZ7LQb-nw", "state"=>"8485936984b0a357019f3679e1a0c3cb257b9125fe85d1c4"}
1059
666
  Authenticating with gds_sso strategy
1060
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1061
-  (0.1ms) begin transaction
1062
-  (0.0ms) commit transaction
1063
-  (0.0ms) begin transaction
1064
-  (0.1ms) commit transaction
667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1065
668
  Redirected to http://www.example-client.com/restricted
1066
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1067
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
669
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
670
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1068
671
  Processing by ExampleController#restricted as HTML
1069
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1070
- Rendered text template (0.0ms)
1071
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1072
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1073
-  (0.0ms) begin transaction
1074
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1075
-  (4.6ms) commit transaction
1076
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
672
+ 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
+ Rendering text template
674
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
675
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
676
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:10 +0000
677
+ Processing by ExampleController#restricted as HTML
678
+ 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]]
679
+ Rendering text template
680
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
681
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 929)
682
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1077
683
  Processing by ExampleController#restricted as HTML
1078
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1079
684
  Authenticating with gds_sso strategy
1080
- Completed in 1ms (ActiveRecord: 0.1ms)
1081
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
1082
- Started GET "/auth/gds/callback?code=bb9e4a1274526f706447b6fa318b3560a622f09c28290d9c47c7f5173c002925&state=cc568eb11fc265c2c4a6eb6a5bca4b08923b83dca0c7fb66" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
685
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
686
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
687
+ Started GET "/auth/gds/callback?code=h5AvSzO9-B-1cin-UDSU-p1dIsEbFKeD7lweCROjrho&state=9e8442a545bde8802ef556f04e1c8fdde3db5c75819d3b4c" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1083
688
  Processing by AuthenticationsController#callback as HTML
1084
- Parameters: {"code"=>"bb9e4a1274526f706447b6fa318b3560a622f09c28290d9c47c7f5173c002925", "state"=>"cc568eb11fc265c2c4a6eb6a5bca4b08923b83dca0c7fb66"}
1085
- Authenticating with gds_sso strategy
1086
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1087
-  (0.1ms) begin transaction
1088
-  (0.0ms) commit transaction
1089
-  (0.0ms) begin transaction
1090
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1091
-  (4.5ms) commit transaction
689
+ Parameters: {"code"=>"h5AvSzO9-B-1cin-UDSU-p1dIsEbFKeD7lweCROjrho", "state"=>"9e8442a545bde8802ef556f04e1c8fdde3db5c75819d3b4c"}
690
+ Authenticating with gds_sso strategy
691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1092
692
  Redirected to http://www.example-client.com/restricted
1093
- Completed 302 Found in 8ms (ActiveRecord: 4.9ms)
1094
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
693
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
694
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1095
695
  Processing by ExampleController#restricted as HTML
1096
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1097
- Rendered text template (0.0ms)
1098
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1099
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:47 +0000
696
+ 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]]
697
+ Rendering text template
698
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
699
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
700
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
701
+  (0.0ms) begin transaction
702
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
703
+  (4.1ms) commit transaction
704
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
1100
705
  Processing by ExampleController#restricted as HTML
706
+ 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]]
1101
707
  Authenticating with gds_sso strategy
1102
- Completed in 0ms (ActiveRecord: 0.0ms)
1103
-  (0.1ms) begin transaction
1104
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35190"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1105
-  (5.4ms) commit transaction
1106
-  (0.0ms) begin transaction
1107
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36517"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1108
-  (7.9ms) commit transaction
1109
- Processing by Api::UserController#reauth as HTML
1110
- Parameters: {"uid"=>"a1s2d35190"}
1111
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35190"]]
1112
-  (0.0ms) begin transaction
1113
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1114
-  (4.1ms) commit transaction
1115
- Completed 200 OK in 6ms (ActiveRecord: 4.4ms)
1116
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1117
-  (0.0ms) begin transaction
1118
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39409"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1119
-  (4.0ms) commit transaction
1120
-  (0.0ms) begin transaction
1121
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37934"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1122
-  (3.6ms) commit transaction
1123
- Processing by Api::UserController#reauth as HTML
1124
- Parameters: {"uid"=>"a1s2d39409"}
1125
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1126
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1127
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1128
- Completed 403 Forbidden in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1129
-  (0.1ms) begin transaction
1130
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34378"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1131
-  (3.5ms) commit transaction
1132
-  (0.1ms) begin transaction
1133
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34681"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1134
-  (4.2ms) commit transaction
1135
- Processing by Api::UserController#reauth as HTML
1136
- Parameters: {"uid"=>"nonexistent-user"}
1137
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1138
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1139
-  (0.0ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38945"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1141
-  (4.5ms) commit transaction
1142
-  (0.0ms) begin transaction
1143
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31389"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1144
-  (3.4ms) commit transaction
1145
- Processing by Api::UserController#update as HTML
1146
- Parameters: {"uid"=>"a1s2d38945"}
1147
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1148
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1149
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1150
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1151
-  (0.1ms) begin transaction
1152
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31593"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1153
-  (3.6ms) commit transaction
1154
-  (0.0ms) begin transaction
1155
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35797"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1156
-  (4.1ms) commit transaction
1157
- Processing by Api::UserController#update as HTML
1158
- Parameters: {"uid"=>"a1s2d31593"}
1159
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31593"]]
1160
-  (0.0ms) begin transaction
1161
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 11]]
1162
-  (3.4ms) commit transaction
1163
- Completed 200 OK in 6ms (ActiveRecord: 3.8ms)
1164
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 11]]
1165
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1166
-  (0.3ms) begin transaction
1167
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "3224"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1168
-  (3.9ms) commit transaction
1169
-  (0.1ms) begin transaction
1170
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
1171
-  (4.5ms) commit transaction
1172
-  (0.1ms) DROP TABLE IF EXISTS "users"
1173
-  (1.6ms) SELECT sqlite_version(*)
1174
-  (5.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1175
-  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1176
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
708
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 574)
709
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
710
+ Started GET "/auth/gds/callback?code=B40rOBHLorgUVjtPFZSVFMxf4QnH7ryN4p6tUQR1vtg&state=c6e381ce1a1c9c84ae78a3e18e447ad294b0ed65cf25130f" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
711
+ Processing by AuthenticationsController#callback as HTML
712
+ Parameters: {"code"=>"B40rOBHLorgUVjtPFZSVFMxf4QnH7ryN4p6tUQR1vtg", "state"=>"c6e381ce1a1c9c84ae78a3e18e447ad294b0ed65cf25130f"}
713
+ Authenticating with gds_sso strategy
714
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1177
715
   (0.1ms) begin transaction
1178
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-07-19 11:26:54.144424"], ["updated_at", "2019-07-19 11:26:54.144424"]]
1179
-  (4.8ms) commit transaction
716
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
717
+  (5.2ms) commit transaction
718
+ Redirected to http://www.example-client.com/restricted
719
+ Completed 302 Found in 8ms (ActiveRecord: 5.5ms | Allocations: 1225)
720
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
721
+ Processing by ExampleController#restricted as HTML
722
+ 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]]
723
+ Rendering text template
724
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
725
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 704)
726
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
727
+ Processing by ExampleController#restricted as JSON
728
+ Completed in 14ms (ActiveRecord: 0.0ms | Allocations: 2116)
729
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
730
+ Processing by ExampleController#restricted as JSON
731
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1871)
732
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
733
+ Processing by ExampleController#restricted as JSON
734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
735
+  (0.1ms) begin transaction
736
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
737
+  (5.2ms) commit transaction
738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
739
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
740
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
741
+ Rendering text template
742
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
743
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 5.7ms | Allocations: 3631)
744
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
745
+ Processing by ExampleController#this_requires_signin_permission as JSON
746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
747
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
748
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
749
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
750
+ Rendering text template
751
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
752
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 3319)
753
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
754
+ Processing by ExampleController#restricted as HTML
755
+ Authenticating with gds_sso strategy
756
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 114)
757
+  (0.1ms) DROP TABLE IF EXISTS "users"
758
+  (0.9ms) SELECT sqlite_version(*)
759
+  (17.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
760
+  (8.8ms) 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.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
762
+  (0.0ms) 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-10-26 14:51:15.152563"], ["updated_at", "2020-10-26 14:51:15.152563"]]
764
+  (5.6ms) commit transaction
1180
765
   (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1181
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
766
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1182
767
   (0.0ms) begin transaction
1183
768
   (0.0ms) commit transaction
1184
-  (0.1ms) begin transaction
1185
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37605"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
770
+  (0.0ms) begin transaction
771
+ User Create (1.0ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2686"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1186
772
   (5.2ms) commit transaction
1187
-  (0.1ms) begin transaction
1188
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31300"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1189
-  (3.3ms) commit transaction
773
+  (0.0ms) begin transaction
774
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
775
+  (4.2ms) commit transaction
776
+  (0.0ms) begin transaction
777
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31161"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
778
+  (4.7ms) commit transaction
779
+  (0.0ms) begin transaction
780
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34234"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
781
+  (5.1ms) commit transaction
1190
782
  Processing by Api::UserController#update as HTML
1191
- Parameters: {"uid"=>"a1s2d37605"}
783
+ Parameters: {"uid"=>"a1s2d31161"}
1192
784
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1193
785
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1194
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
786
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.2ms)
1195
787
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1196
- Completed 403 Forbidden in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
788
+ Completed 403 Forbidden in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
1197
789
   (0.0ms) begin transaction
1198
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39703"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1199
-  (3.8ms) commit transaction
790
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32959"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
791
+  (5.7ms) commit transaction
1200
792
   (0.0ms) begin transaction
1201
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33001"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1202
-  (3.4ms) commit transaction
793
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39467"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
794
+  (5.8ms) commit transaction
1203
795
  Processing by Api::UserController#update as HTML
1204
- Parameters: {"uid"=>"a1s2d39703"}
1205
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39703"], ["LIMIT", 1]]
1206
-  (0.1ms) begin transaction
1207
- User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
1208
-  (4.7ms) commit transaction
1209
- Completed 200 OK in 8ms (ActiveRecord: 5.2ms)
1210
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1211
-  (0.1ms) begin transaction
1212
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37686"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1213
-  (4.6ms) commit transaction
796
+ Parameters: {"uid"=>"a1s2d32959"}
797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32959"], ["LIMIT", 1]]
1214
798
   (0.0ms) begin transaction
1215
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34277"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1216
-  (3.5ms) commit transaction
1217
- Processing by Api::UserController#reauth as HTML
1218
- Parameters: {"uid"=>"a1s2d37686"}
1219
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37686"], ["LIMIT", 1]]
1220
-  (0.1ms) begin transaction
1221
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1222
-  (4.7ms) commit transaction
1223
- Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
1224
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1225
-  (0.1ms) begin transaction
1226
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37925"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1227
-  (4.7ms) commit transaction
799
+ 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", 4]]
800
+  (5.1ms) commit transaction
801
+ Completed 200 OK in 9ms (ActiveRecord: 5.4ms)
802
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
1228
803
   (0.0ms) begin transaction
1229
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34651"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1230
-  (3.7ms) commit transaction
804
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34570"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
805
+  (4.1ms) commit transaction
806
+  (0.0ms) begin transaction
807
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39231"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
808
+  (4.2ms) commit transaction
1231
809
  Processing by Api::UserController#reauth as HTML
1232
- Parameters: {"uid"=>"a1s2d37925"}
810
+ Parameters: {"uid"=>"a1s2d34570"}
1233
811
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1234
812
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1235
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
813
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1236
814
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1237
- Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1238
-  (0.1ms) begin transaction
1239
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34735"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1240
-  (5.2ms) commit transaction
815
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1241
816
   (0.0ms) begin transaction
1242
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38075"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1243
-  (3.8ms) commit transaction
817
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d314"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
818
+  (5.1ms) commit transaction
819
+  (1.0ms) begin transaction
820
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35325"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
821
+  (5.1ms) commit transaction
822
+ Processing by Api::UserController#reauth as HTML
823
+ Parameters: {"uid"=>"a1s2d314"}
824
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d314"], ["LIMIT", 1]]
825
+  (0.0ms) begin transaction
826
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
827
+  (5.1ms) commit transaction
828
+ Completed 200 OK in 7ms (ActiveRecord: 5.3ms)
829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
830
+  (0.0ms) begin transaction
831
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37331"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
832
+  (4.8ms) commit transaction
833
+  (0.0ms) begin transaction
834
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3677"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
835
+  (5.4ms) commit transaction
1244
836
  Processing by Api::UserController#reauth as HTML
1245
837
  Parameters: {"uid"=>"nonexistent-user"}
1246
838
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1247
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1248
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1249
-  (0.1ms) begin transaction
1250
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "8130"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1251
-  (5.2ms) commit transaction
1252
-  (0.1ms) begin transaction
1253
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
1254
-  (5.4ms) commit transaction
839
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
1255
840
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1256
841
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1257
-  (0.1ms) begin transaction
1258
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1259
-  (5.4ms) commit transaction
842
+  (0.0ms) begin transaction
843
+ 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]]
844
+  (4.6ms) commit transaction
1260
845
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1261
-  (0.1ms) begin transaction
1262
-  (0.1ms) commit transaction
1263
- Started GET "/" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
1264
- Processing by ExampleController#index as HTML
846
+  (0.0ms) begin transaction
847
+  (0.0ms) commit transaction
848
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
849
+ Processing by ExampleController#restricted as HTML
850
+ Authenticating with gds_sso strategy
851
+ Completed in 4ms (ActiveRecord: 0.0ms)
852
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
853
+ Started GET "/auth/gds/callback?code=Q9Xym_iQS39k93lYjTQmU_M46Qh7yfKef1UwVv273B8&state=a888e7930f94b3210e33ee38ef27f2f6c59989749a591104" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
854
+ Processing by AuthenticationsController#callback as HTML
855
+ Parameters: {"code"=>"Q9Xym_iQS39k93lYjTQmU_M46Qh7yfKef1UwVv273B8", "state"=>"a888e7930f94b3210e33ee38ef27f2f6c59989749a591104"}
856
+ Authenticating with gds_sso strategy
857
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
858
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
859
+  (0.0ms) begin transaction
860
+ 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"]]
861
+  (5.1ms) commit transaction
862
+  (0.0ms) begin transaction
863
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
864
+  (4.2ms) commit transaction
865
+ Redirected to http://www.example-client.com/restricted
866
+ Completed 302 Found in 13ms (ActiveRecord: 9.9ms)
867
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
868
+ Processing by ExampleController#restricted as HTML
869
+ 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]]
1265
870
  Rendering text template
1266
871
  Rendered text template (0.0ms)
1267
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1268
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
872
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
873
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
1269
874
  Processing by ExampleController#restricted as HTML
1270
875
  Authenticating with gds_sso strategy
1271
- Completed in 4ms (ActiveRecord: 0.0ms)
1272
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:54 +0000
1273
- Started GET "/auth/gds/callback?code=d91419d9d1ed524cf71a9ecab46b4ec9eb27a8a8ca600b6b585c399c4e9c9c7f&state=a6ba4a3ae92f7ea8aaf8278b6e9833f5064b46ae1aa26217" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
876
+ Completed in 0ms (ActiveRecord: 0.0ms)
877
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
878
+ Started GET "/auth/gds/callback?code=sseENFS7d6YBWzqiG7fpzVhhedUEcvD5PY7jKg9lHzo&state=135f1b3de39cee89529dcae630868efd0e66c62948fe6fad" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1274
879
  Processing by AuthenticationsController#callback as HTML
1275
- Parameters: {"code"=>"d91419d9d1ed524cf71a9ecab46b4ec9eb27a8a8ca600b6b585c399c4e9c9c7f", "state"=>"a6ba4a3ae92f7ea8aaf8278b6e9833f5064b46ae1aa26217"}
880
+ Parameters: {"code"=>"sseENFS7d6YBWzqiG7fpzVhhedUEcvD5PY7jKg9lHzo", "state"=>"135f1b3de39cee89529dcae630868efd0e66c62948fe6fad"}
1276
881
  Authenticating with gds_sso strategy
1277
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1278
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1279
-  (0.1ms) begin transaction
1280
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1281
-  (4.8ms) commit transaction
882
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1282
883
   (0.0ms) begin transaction
1283
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1284
-  (3.6ms) commit transaction
884
+  (0.0ms) commit transaction
885
+  (0.0ms) begin transaction
886
+  (0.0ms) commit transaction
1285
887
  Redirected to http://www.example-client.com/restricted
1286
- Completed 302 Found in 15ms (ActiveRecord: 9.3ms)
1287
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
888
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
889
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1288
890
  Processing by ExampleController#restricted as HTML
1289
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
891
+ 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]]
1290
892
  Rendering text template
1291
893
  Rendered text template (0.0ms)
1292
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1293
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
894
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
895
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1294
896
  Processing by ExampleController#this_requires_signin_permission as HTML
1295
897
  Authenticating with gds_sso strategy
1296
898
  Completed in 0ms (ActiveRecord: 0.0ms)
1297
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1298
- Started GET "/auth/gds/callback?code=5dc889012262516e49c995500209e1100a2a9789c0ef30c2832dd509e420f9bb&state=99bcb84816bcf2a092aa87f8b1948b620e8417c3af17ad42" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
899
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
900
+ Started GET "/auth/gds/callback?code=QID8NNYuBDTecvsjSiD-nYSJchn1zEou8UuDw9wfo5g&state=d42a09f463c9f9256d77595275b83baf607fc9f326a95764" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1299
901
  Processing by AuthenticationsController#callback as HTML
1300
- Parameters: {"code"=>"5dc889012262516e49c995500209e1100a2a9789c0ef30c2832dd509e420f9bb", "state"=>"99bcb84816bcf2a092aa87f8b1948b620e8417c3af17ad42"}
902
+ Parameters: {"code"=>"QID8NNYuBDTecvsjSiD-nYSJchn1zEou8UuDw9wfo5g", "state"=>"d42a09f463c9f9256d77595275b83baf607fc9f326a95764"}
1301
903
  Authenticating with gds_sso strategy
1302
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1303
-  (0.1ms) begin transaction
904
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
905
+  (0.0ms) begin transaction
1304
906
   (0.0ms) commit transaction
1305
907
   (0.0ms) begin transaction
1306
908
   (0.0ms) commit transaction
1307
909
  Redirected to http://www.example-client.com/this_requires_signin_permission
1308
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1309
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
910
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
911
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1310
912
  Processing by ExampleController#this_requires_signin_permission as HTML
1311
913
  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]]
1312
914
  Rendering text template
1313
915
  Rendered text template (0.0ms)
1314
- Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms)
1315
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
916
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
917
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1316
918
  Processing by ExampleController#this_requires_signin_permission as HTML
1317
919
  Authenticating with gds_sso strategy
1318
920
  Completed in 0ms (ActiveRecord: 0.0ms)
1319
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1320
- Started GET "/auth/gds/callback?code=91c0c976c74c6be97ea3ee4de5129873b52c146817592b0bb7cc939fe716d283&state=b837df18c315ea5f940db30a0a4d4160c751ebc654148a13" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
921
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
922
+ Started GET "/auth/gds/callback?code=fRqwvJN7sEVyv-ak_G85JDH9aG72tj15sEfXqHMEVNo&state=4da89b2888a3812c467f79184df679a0fca58af49dbf8bef" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1321
923
  Processing by AuthenticationsController#callback as HTML
1322
- Parameters: {"code"=>"91c0c976c74c6be97ea3ee4de5129873b52c146817592b0bb7cc939fe716d283", "state"=>"b837df18c315ea5f940db30a0a4d4160c751ebc654148a13"}
924
+ Parameters: {"code"=>"fRqwvJN7sEVyv-ak_G85JDH9aG72tj15sEfXqHMEVNo", "state"=>"4da89b2888a3812c467f79184df679a0fca58af49dbf8bef"}
1323
925
  Authenticating with gds_sso strategy
1324
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1325
-  (0.1ms) begin transaction
1326
-  (0.1ms) commit transaction
926
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1327
927
   (0.0ms) begin transaction
1328
-  (0.1ms) commit transaction
928
+  (0.0ms) commit transaction
929
+  (0.0ms) begin transaction
930
+  (0.0ms) commit transaction
1329
931
  Redirected to http://www.example-client.com/this_requires_signin_permission
1330
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1331
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
932
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
933
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1332
934
  Processing by ExampleController#this_requires_signin_permission as HTML
1333
935
  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]]
1334
936
  Rendering text template
1335
937
  Rendered text template (0.0ms)
1336
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1337
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
938
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
939
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
940
+ Processing by ExampleController#index as HTML
941
+ Rendering text template
942
+ Rendered text template (0.0ms)
943
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
944
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1338
945
  Processing by ExampleController#restricted as HTML
1339
946
  Authenticating with gds_sso strategy
1340
947
  Completed in 0ms (ActiveRecord: 0.0ms)
1341
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1342
- Started GET "/auth/gds/callback?code=4ca028d7ee7b476394cbf8bf9ac445fbea75af04b456a5325a95ee72c4757dd6&state=2a2e2707e608c0f8fa30758bfb18eeff968f748fa37e944d" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
948
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
949
+ Started GET "/auth/gds/callback?code=0my6EyJ18tST4xHWoxB70-9MIbZe4Y96U3eQuNLxMWA&state=b5a0ee528dcf895b4ca52d06b2e1a77b2d1b03913e412e65" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1343
950
  Processing by AuthenticationsController#callback as HTML
1344
- Parameters: {"code"=>"4ca028d7ee7b476394cbf8bf9ac445fbea75af04b456a5325a95ee72c4757dd6", "state"=>"2a2e2707e608c0f8fa30758bfb18eeff968f748fa37e944d"}
951
+ Parameters: {"code"=>"0my6EyJ18tST4xHWoxB70-9MIbZe4Y96U3eQuNLxMWA", "state"=>"b5a0ee528dcf895b4ca52d06b2e1a77b2d1b03913e412e65"}
1345
952
  Authenticating with gds_sso strategy
1346
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
953
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1347
954
   (0.0ms) begin transaction
1348
955
   (0.0ms) commit transaction
1349
-  (0.0ms) begin transaction
1350
-  (0.1ms) commit transaction
956
+  (0.1ms) begin transaction
957
+  (0.0ms) commit transaction
1351
958
  Redirected to http://www.example-client.com/restricted
1352
959
  Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1353
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
960
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1354
961
  Processing by ExampleController#restricted as HTML
1355
962
  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]]
1356
963
  Rendering text template
1357
964
  Rendered text template (0.0ms)
1358
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1359
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
965
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
966
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1360
967
  Processing by ExampleController#restricted as HTML
1361
968
  Authenticating with gds_sso strategy
1362
969
  Completed in 0ms (ActiveRecord: 0.0ms)
1363
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1364
- Started GET "/auth/gds/callback?code=d88d75aa083d9084c03adcaab9b2d4d62782d19480f8db93eb97f6df90460cc9&state=1bb6e3d5c333b4344918ce4a167186442ec76644e9cd0bdc" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
970
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
971
+ Started GET "/auth/gds/callback?code=PMYkbsLpF3HdAt-tuGm2z7SZ9ql0Unbkm6JytGmT7k0&state=c5c3d7f8011877996153f7d94658f795bb7909298c18a0f6" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1365
972
  Processing by AuthenticationsController#callback as HTML
1366
- Parameters: {"code"=>"d88d75aa083d9084c03adcaab9b2d4d62782d19480f8db93eb97f6df90460cc9", "state"=>"1bb6e3d5c333b4344918ce4a167186442ec76644e9cd0bdc"}
973
+ Parameters: {"code"=>"PMYkbsLpF3HdAt-tuGm2z7SZ9ql0Unbkm6JytGmT7k0", "state"=>"c5c3d7f8011877996153f7d94658f795bb7909298c18a0f6"}
1367
974
  Authenticating with gds_sso strategy
1368
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
975
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1369
976
   (0.1ms) begin transaction
1370
977
   (0.1ms) commit transaction
1371
-  (0.1ms) begin transaction
978
+  (0.0ms) begin transaction
1372
979
   (0.1ms) commit transaction
1373
980
  Redirected to http://www.example-client.com/restricted
1374
981
  Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1375
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
982
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1376
983
  Processing by ExampleController#restricted as HTML
1377
984
  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]]
1378
985
  Rendering text template
1379
986
  Rendered text template (0.0ms)
1380
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1381
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
987
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
988
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1382
989
  Processing by ExampleController#restricted as HTML
1383
990
  Authenticating with gds_sso strategy
1384
- Completed in 0ms (ActiveRecord: 0.0ms)
1385
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1386
- Started GET "/auth/gds/callback?code=dcf7afaee1cf9dda09ad071b0dde16aef6f0311221c5816222b4df37dcab910c&state=1c7258e1dd0b5e5a44eded341edd52b57134b295727962dd" for 127.0.0.1 at 2019-07-19 11:26:55 +0000
1387
- Processing by AuthenticationsController#callback as HTML
1388
- Parameters: {"code"=>"dcf7afaee1cf9dda09ad071b0dde16aef6f0311221c5816222b4df37dcab910c", "state"=>"1c7258e1dd0b5e5a44eded341edd52b57134b295727962dd"}
1389
- Authenticating with gds_sso strategy
1390
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1391
-  (0.1ms) begin transaction
1392
-  (0.1ms) commit transaction
1393
-  (0.1ms) begin transaction
1394
-  (0.0ms) commit transaction
1395
- Redirected to http://www.example-client.com/restricted
1396
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1397
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1398
- Processing by ExampleController#restricted as HTML
1399
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1400
- Rendering text template
1401
- Rendered text template (0.0ms)
1402
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1403
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
991
+ Completed in 1ms (ActiveRecord: 0.0ms)
992
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
993
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1404
994
  Processing by ExampleController#restricted as HTML
1405
995
  Authenticating with gds_sso strategy
1406
- Completed in 1ms (ActiveRecord: 0.0ms)
1407
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1408
- Started GET "/auth/gds/callback?code=cf0e35f4d703af8d490e8d8fbf87f29d04ad1c6f031884dbaf14a94a5dd6059d&state=3729185ec81911c097e929fcf60705b07a97c37d51fad8f7" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
996
+ Completed in 0ms (ActiveRecord: 0.0ms)
997
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
998
+ Started GET "/auth/gds/callback?code=Q_rMbceGZWd_zjBYuOFHd6NKfHBcHGgwVDcXV6UZI48&state=e65b340ea778029e7fbfe50f2b416bd2ddeee9460b159533" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1409
999
  Processing by AuthenticationsController#callback as HTML
1410
- Parameters: {"code"=>"cf0e35f4d703af8d490e8d8fbf87f29d04ad1c6f031884dbaf14a94a5dd6059d", "state"=>"3729185ec81911c097e929fcf60705b07a97c37d51fad8f7"}
1000
+ Parameters: {"code"=>"Q_rMbceGZWd_zjBYuOFHd6NKfHBcHGgwVDcXV6UZI48", "state"=>"e65b340ea778029e7fbfe50f2b416bd2ddeee9460b159533"}
1411
1001
  Authenticating with gds_sso strategy
1412
1002
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1413
-  (0.0ms) begin transaction
1414
-  (0.1ms) commit transaction
1415
1003
   (0.1ms) begin transaction
1416
1004
   (0.0ms) commit transaction
1005
+  (0.0ms) begin transaction
1006
+  (0.0ms) commit transaction
1417
1007
  Redirected to http://www.example-client.com/restricted
1418
1008
  Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1419
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1009
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1420
1010
  Processing by ExampleController#restricted as HTML
1421
1011
  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]]
1422
1012
  Rendering text template
1423
1013
  Rendered text template (0.0ms)
1424
1014
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1425
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1015
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1426
1016
  Processing by ExampleController#restricted as HTML
1427
1017
  Authenticating with gds_sso strategy
1428
1018
  Completed in 0ms (ActiveRecord: 0.0ms)
1429
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1430
- Started GET "/auth/gds/callback?code=b7d5b81e4754fa04645a68efe8b0d2ed1c619937c59bf2057e6bf0a6cd90d8c1&state=81466a51d136642f1f288bb8f27337d2c4cc5c86ecfd1460" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1019
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1020
+ Started GET "/auth/gds/callback?code=F1Azm4-OYL03Kgox-DnlpMRjNDOIEOXswvjl5JRie0U&state=857bddb98bab5f7375cfe3c884d90a4d4afbef44c9b6b702" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1431
1021
  Processing by AuthenticationsController#callback as HTML
1432
- Parameters: {"code"=>"b7d5b81e4754fa04645a68efe8b0d2ed1c619937c59bf2057e6bf0a6cd90d8c1", "state"=>"81466a51d136642f1f288bb8f27337d2c4cc5c86ecfd1460"}
1022
+ Parameters: {"code"=>"F1Azm4-OYL03Kgox-DnlpMRjNDOIEOXswvjl5JRie0U", "state"=>"857bddb98bab5f7375cfe3c884d90a4d4afbef44c9b6b702"}
1433
1023
  Authenticating with gds_sso strategy
1434
1024
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1435
-  (0.1ms) begin transaction
1436
-  (0.1ms) commit transaction
1437
-  (0.1ms) begin transaction
1025
+  (0.0ms) begin transaction
1026
+  (0.0ms) commit transaction
1027
+  (0.0ms) begin transaction
1438
1028
   (0.0ms) commit transaction
1439
1029
  Redirected to http://www.example-client.com/restricted
1440
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1441
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1030
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1031
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1442
1032
  Processing by ExampleController#restricted as HTML
1443
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1033
+ 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]]
1444
1034
  Rendering text template
1445
1035
  Rendered text template (0.0ms)
1446
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1447
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1448
- Processing by ExampleController#restricted as HTML
1449
- Authenticating with gds_sso strategy
1450
- Completed in 0ms (ActiveRecord: 0.0ms)
1451
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-20 07:31:56 +0000
1452
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1036
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1037
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1453
1038
  Processing by ExampleController#restricted as HTML
1454
1039
  Authenticating with gds_sso strategy
1455
1040
  Completed in 0ms (ActiveRecord: 0.0ms)
1456
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1457
- Started GET "/auth/gds/callback?code=32df99fa134867a69e7dff16854ace74bee9e80e91d60bd530b5e6a3e501a050&state=7ef5b5a430660affcb058778e266b0bda9b0339ef48c5e15" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1041
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1042
+ Started GET "/auth/gds/callback?code=V5VabBRBYodhQsV5Yk7m5jo6ks4vj5FDHrZTlHnxBZ4&state=7756d177cb339841b9f792b67023ba169c9d08181456fb96" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1458
1043
  Processing by AuthenticationsController#callback as HTML
1459
- Parameters: {"code"=>"32df99fa134867a69e7dff16854ace74bee9e80e91d60bd530b5e6a3e501a050", "state"=>"7ef5b5a430660affcb058778e266b0bda9b0339ef48c5e15"}
1044
+ Parameters: {"code"=>"V5VabBRBYodhQsV5Yk7m5jo6ks4vj5FDHrZTlHnxBZ4", "state"=>"7756d177cb339841b9f792b67023ba169c9d08181456fb96"}
1460
1045
  Authenticating with gds_sso strategy
1461
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1046
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1462
1047
   (0.0ms) begin transaction
1463
-  (0.1ms) commit transaction
1048
+  (0.0ms) commit transaction
1464
1049
   (0.0ms) begin transaction
1465
-  (0.1ms) commit transaction
1050
+  (0.0ms) commit transaction
1466
1051
  Redirected to http://www.example-client.com/restricted
1467
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1468
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1052
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1053
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1469
1054
  Processing by ExampleController#restricted as HTML
1470
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1055
+ 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]]
1471
1056
  Rendering text template
1472
1057
  Rendered text template (0.0ms)
1473
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1474
- Started GET "/restricted" for 127.0.0.1 at 2019-07-20 07:21:56 +0000
1058
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1059
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:16 +0000
1475
1060
  Processing by ExampleController#restricted as HTML
1476
1061
  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]]
1477
1062
  Rendering text template
1478
1063
  Rendered text template (0.0ms)
1479
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1480
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1064
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1065
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1481
1066
  Processing by ExampleController#restricted as HTML
1482
1067
  Authenticating with gds_sso strategy
1483
1068
  Completed in 0ms (ActiveRecord: 0.0ms)
1484
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1485
- Started GET "/auth/gds/callback?code=c0b01132a50a82493bc6e3df15541f70d8aad7723c56eaa2cfbec1e585ccdf88&state=2bcc8baf563dd7cdb8b615cecd3004a3cc865f6c678c965a" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1069
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1070
+ Started GET "/auth/gds/callback?code=Zv6qwzvfJxFkdQi6YdvVmQOnasH1DwSBT581CaKM3JI&state=c70be6f7328e80c7b899b0fcd0601cdcc7c1b57542ddc96f" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1486
1071
  Processing by AuthenticationsController#callback as HTML
1487
- Parameters: {"code"=>"c0b01132a50a82493bc6e3df15541f70d8aad7723c56eaa2cfbec1e585ccdf88", "state"=>"2bcc8baf563dd7cdb8b615cecd3004a3cc865f6c678c965a"}
1072
+ Parameters: {"code"=>"Zv6qwzvfJxFkdQi6YdvVmQOnasH1DwSBT581CaKM3JI", "state"=>"c70be6f7328e80c7b899b0fcd0601cdcc7c1b57542ddc96f"}
1488
1073
  Authenticating with gds_sso strategy
1489
1074
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1490
-  (0.1ms) begin transaction
1491
-  (0.1ms) commit transaction
1492
-  (0.1ms) begin transaction
1493
-  (0.1ms) commit transaction
1075
+  (0.0ms) begin transaction
1076
+  (0.0ms) commit transaction
1077
+  (0.0ms) begin transaction
1078
+  (0.0ms) commit transaction
1494
1079
  Redirected to http://www.example-client.com/restricted
1495
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1496
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1080
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1081
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1497
1082
  Processing by ExampleController#restricted as HTML
1498
1083
  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]]
1499
1084
  Rendering text template
1500
1085
  Rendered text template (0.0ms)
1501
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1086
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1502
1087
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1503
1088
   (0.0ms) begin transaction
1504
1089
  User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1505
-  (4.2ms) commit transaction
1506
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1090
+  (12.8ms) commit transaction
1091
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1507
1092
  Processing by ExampleController#restricted as HTML
1508
1093
  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]]
1509
1094
  Authenticating with gds_sso strategy
1510
1095
  Completed in 1ms (ActiveRecord: 0.1ms)
1511
- Started GET "/auth/gds" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1512
- Started GET "/auth/gds/callback?code=d989689c488ffa44762c71b2bbe3aa26bfb11739a18d7025faf4d1341ac17c1a&state=590e39ae909689a98c4ee001cddccb689e9b825e8d10628f" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1096
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1097
+ Started GET "/auth/gds/callback?code=sc6BrE3I9al5FWLj-6W1Kimm3naOqZo-zhU3eDLeno0&state=e49cc60c6430580f953d5de40f1a7f3263d66e0d707adbbe" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1513
1098
  Processing by AuthenticationsController#callback as HTML
1514
- Parameters: {"code"=>"d989689c488ffa44762c71b2bbe3aa26bfb11739a18d7025faf4d1341ac17c1a", "state"=>"590e39ae909689a98c4ee001cddccb689e9b825e8d10628f"}
1099
+ Parameters: {"code"=>"sc6BrE3I9al5FWLj-6W1Kimm3naOqZo-zhU3eDLeno0", "state"=>"e49cc60c6430580f953d5de40f1a7f3263d66e0d707adbbe"}
1515
1100
  Authenticating with gds_sso strategy
1516
1101
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1517
-  (0.1ms) begin transaction
1518
-  (0.1ms) commit transaction
1102
+  (0.0ms) begin transaction
1103
+  (0.0ms) commit transaction
1519
1104
   (0.0ms) begin transaction
1520
1105
  User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1521
-  (5.3ms) commit transaction
1106
+  (6.5ms) commit transaction
1522
1107
  Redirected to http://www.example-client.com/restricted
1523
- Completed 302 Found in 9ms (ActiveRecord: 5.8ms)
1524
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1108
+ Completed 302 Found in 9ms (ActiveRecord: 6.9ms)
1109
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1525
1110
  Processing by ExampleController#restricted as HTML
1526
1111
  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]]
1527
1112
  Rendering text template
1528
1113
  Rendered text template (0.0ms)
1529
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1530
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1114
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1115
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1531
1116
  Processing by ExampleController#restricted as HTML
1532
1117
  Authenticating with gds_sso strategy
1533
1118
  Completed in 0ms (ActiveRecord: 0.0ms)
1534
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1119
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1535
1120
  Processing by ExampleController#restricted as JSON
1536
- Completed in 22ms (ActiveRecord: 0.0ms)
1537
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1121
+ Completed in 9ms (ActiveRecord: 0.0ms)
1122
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1538
1123
  Processing by ExampleController#restricted as JSON
1539
- Completed in 12ms (ActiveRecord: 0.0ms)
1540
- Started GET "/restricted" for 127.0.0.1 at 2019-07-19 11:26:56 +0000
1541
- Processing by ExampleController#restricted as JSON
1542
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1543
-  (0.1ms) begin transaction
1124
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1125
+  (0.0ms) begin transaction
1544
1126
  User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1545
-  (4.0ms) commit transaction
1127
+  (6.0ms) commit transaction
1546
1128
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1547
1129
   (0.0ms) begin transaction
1548
-  (0.0ms) commit transaction
1130
+  (0.1ms) commit transaction
1549
1131
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1550
-  (0.1ms) begin transaction
1132
+  (0.0ms) begin transaction
1551
1133
   (0.0ms) commit transaction
1552
1134
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1553
1135
   (0.0ms) begin transaction
@@ -1556,23 +1138,375 @@ Processing by ExampleController#restricted as JSON
1556
1138
   (0.0ms) commit transaction
1557
1139
  Rendering text template
1558
1140
  Rendered text template (0.0ms)
1559
- Completed 200 OK in 58ms (Views: 0.3ms | ActiveRecord: 4.9ms)
1560
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-07-19 11:26:57 +0000
1141
+ Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 6.7ms)
1142
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1561
1143
  Processing by ExampleController#this_requires_signin_permission as JSON
1562
1144
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1563
1145
   (0.0ms) begin transaction
1564
1146
   (0.0ms) commit transaction
1565
1147
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1566
1148
   (0.0ms) begin transaction
1567
-  (0.1ms) commit transaction
1149
+  (0.0ms) commit transaction
1568
1150
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1569
1151
   (0.0ms) begin transaction
1570
1152
   (0.0ms) commit transaction
1571
1153
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1572
-  (0.3ms) begin transaction
1154
+  (0.0ms) begin transaction
1573
1155
   (0.0ms) commit transaction
1574
1156
   (0.0ms) begin transaction
1575
1157
   (0.0ms) commit transaction
1576
1158
  Rendering text template
1577
1159
  Rendered text template (0.0ms)
1578
- Completed 200 OK in 53ms (Views: 0.2ms | ActiveRecord: 0.9ms)
1160
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1161
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1162
+ Processing by ExampleController#restricted as JSON
1163
+ Completed in 13ms (ActiveRecord: 0.0ms)
1164
+  (1.0ms) SELECT sqlite_version(*)
1165
+  (0.0ms) SELECT sqlite_version(*)
1166
+  (0.1ms) DROP TABLE IF EXISTS "users"
1167
+  (7.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 0)
1168
+  (7.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)
1169
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1170
+  (0.0ms) begin transaction
1171
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:51:22.380901"], ["updated_at", "2020-10-26 14:51:22.380901"]]
1172
+  (5.6ms) commit transaction
1173
+  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1174
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1175
+  (0.1ms) SELECT sqlite_version(*)
1176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1177
+  (0.0ms) begin transaction
1178
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9790"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1179
+  (5.0ms) commit transaction
1180
+  (0.0ms) begin transaction
1181
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
1182
+  (4.9ms) commit transaction
1183
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1184
+ Processing by ExampleController#restricted as HTML
1185
+ Authenticating with gds_sso strategy
1186
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 161)
1187
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1188
+ Started GET "/auth/gds/callback?code=Sfl1PZlW0kvV7mxi_j7nipAK5PmuIIFupkzKfPqBx6M&state=25e69dbc146d2fd2aace060b8f407032b56e7c4445737afb" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1189
+ Processing by AuthenticationsController#callback as HTML
1190
+ Parameters: {"code"=>"Sfl1PZlW0kvV7mxi_j7nipAK5PmuIIFupkzKfPqBx6M", "state"=>"25e69dbc146d2fd2aace060b8f407032b56e7c4445737afb"}
1191
+ Authenticating with gds_sso strategy
1192
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1194
+  (0.0ms) begin transaction
1195
+ 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"]]
1196
+  (5.3ms) commit transaction
1197
+  (0.0ms) begin transaction
1198
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1199
+  (4.1ms) commit transaction
1200
+ Redirected to http://www.example-client.com/restricted
1201
+ Completed 302 Found in 13ms (ActiveRecord: 10.1ms | Allocations: 1492)
1202
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1203
+ Processing by ExampleController#restricted as HTML
1204
+ 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]]
1205
+ Rendering text template
1206
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
1207
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms | Allocations: 1544)
1208
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1209
+ Processing by ExampleController#restricted as HTML
1210
+ Authenticating with gds_sso strategy
1211
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1212
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1213
+ Started GET "/auth/gds/callback?code=Y3O9Fs0VsVJtPNkQc-dpwaBjtkIiJhtNT5m_zdnF9uo&state=0ce4a4943aaf5319577dedf86e7f0cd1fefef2d247625374" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1214
+ Processing by AuthenticationsController#callback as HTML
1215
+ Parameters: {"code"=>"Y3O9Fs0VsVJtPNkQc-dpwaBjtkIiJhtNT5m_zdnF9uo", "state"=>"0ce4a4943aaf5319577dedf86e7f0cd1fefef2d247625374"}
1216
+ Authenticating with gds_sso strategy
1217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1218
+ Redirected to http://www.example-client.com/restricted
1219
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 913)
1220
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1221
+ Processing by ExampleController#restricted as HTML
1222
+ 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]]
1223
+ Rendering text template
1224
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1225
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1226
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1227
+ Processing by ExampleController#restricted as HTML
1228
+ Authenticating with gds_sso strategy
1229
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1230
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1231
+ Started GET "/auth/gds/callback?code=tBgDLG95eMGQSrnP0Qmbr546Wju9WyzjR5chjYSHocE&state=02d28e934929f9a54cab1f6b7fe669e40800080c4525eabc" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1232
+ Processing by AuthenticationsController#callback as HTML
1233
+ Parameters: {"code"=>"tBgDLG95eMGQSrnP0Qmbr546Wju9WyzjR5chjYSHocE", "state"=>"02d28e934929f9a54cab1f6b7fe669e40800080c4525eabc"}
1234
+ Authenticating with gds_sso strategy
1235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1236
+ Redirected to http://www.example-client.com/restricted
1237
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 914)
1238
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1239
+ Processing by ExampleController#restricted as HTML
1240
+ 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]]
1241
+ Rendering text template
1242
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1243
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 655)
1244
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1245
+ Processing by ExampleController#index as HTML
1246
+ Rendering text template
1247
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1248
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 137)
1249
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1250
+ Processing by ExampleController#this_requires_signin_permission as HTML
1251
+ Authenticating with gds_sso strategy
1252
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1253
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1254
+ Started GET "/auth/gds/callback?code=4Fy6FyFR9O4Mjg0kZCgjY-Pd-pHsJ8pZ_B-XAEA_jyY&state=fba83e14267eb214b07ddf5ed4ff10b3999734143bbbbcb3" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1255
+ Processing by AuthenticationsController#callback as HTML
1256
+ Parameters: {"code"=>"4Fy6FyFR9O4Mjg0kZCgjY-Pd-pHsJ8pZ_B-XAEA_jyY", "state"=>"fba83e14267eb214b07ddf5ed4ff10b3999734143bbbbcb3"}
1257
+ Authenticating with gds_sso strategy
1258
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1259
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1260
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1261
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1262
+ Processing by ExampleController#this_requires_signin_permission as HTML
1263
+ 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]]
1264
+ Rendering text template
1265
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1266
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1267
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1268
+ Processing by ExampleController#this_requires_signin_permission as HTML
1269
+ Authenticating with gds_sso strategy
1270
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1271
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1272
+ Started GET "/auth/gds/callback?code=Tf2X4Sb305VGS9ToUsyWoGwTMBPGT9v0421F6VARSHA&state=b5909fbb28df9acc65aca35853d83ac869485afc9dadf098" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1273
+ Processing by AuthenticationsController#callback as HTML
1274
+ Parameters: {"code"=>"Tf2X4Sb305VGS9ToUsyWoGwTMBPGT9v0421F6VARSHA", "state"=>"b5909fbb28df9acc65aca35853d83ac869485afc9dadf098"}
1275
+ Authenticating with gds_sso strategy
1276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1277
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1278
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1279
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1280
+ Processing by ExampleController#this_requires_signin_permission as HTML
1281
+ 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]]
1282
+ Rendering text template
1283
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1284
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1285
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1286
+ Processing by ExampleController#restricted as HTML
1287
+ Authenticating with gds_sso strategy
1288
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1289
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1290
+ Started GET "/auth/gds/callback?code=BDMiqmAhSUmubuek5f3fz92ekVUqSTd-igF_aeIbzbo&state=808869a9cd86784f5074bff81cc774ce9c98eea912a2d8c3" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1291
+ Processing by AuthenticationsController#callback as HTML
1292
+ Parameters: {"code"=>"BDMiqmAhSUmubuek5f3fz92ekVUqSTd-igF_aeIbzbo", "state"=>"808869a9cd86784f5074bff81cc774ce9c98eea912a2d8c3"}
1293
+ Authenticating with gds_sso strategy
1294
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1295
+ Redirected to http://www.example-client.com/restricted
1296
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1297
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1298
+ Processing by ExampleController#restricted as HTML
1299
+ 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]]
1300
+ Rendering text template
1301
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1302
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1303
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1304
+  (0.0ms) begin transaction
1305
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 2]]
1306
+  (4.5ms) commit transaction
1307
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1308
+ Processing by ExampleController#restricted as HTML
1309
+ 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]]
1310
+ Authenticating with gds_sso strategy
1311
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 532)
1312
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1313
+ Started GET "/auth/gds/callback?code=ULrH80fYJMjbZhFg7SM9pY9dwSD3DucnSyNFeNaOpNs&state=2b102c56bfc92b3e9d3abe9f8fb1d6fb85b982a5d9030ac8" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1314
+ Processing by AuthenticationsController#callback as HTML
1315
+ Parameters: {"code"=>"ULrH80fYJMjbZhFg7SM9pY9dwSD3DucnSyNFeNaOpNs", "state"=>"2b102c56bfc92b3e9d3abe9f8fb1d6fb85b982a5d9030ac8"}
1316
+ Authenticating with gds_sso strategy
1317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1318
+  (0.0ms) begin transaction
1319
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1320
+  (4.3ms) commit transaction
1321
+ Redirected to http://www.example-client.com/restricted
1322
+ Completed 302 Found in 7ms (ActiveRecord: 4.5ms | Allocations: 1103)
1323
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1324
+ Processing by ExampleController#restricted as HTML
1325
+ 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]]
1326
+ Rendering text template
1327
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1328
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1329
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1330
+ Processing by ExampleController#restricted as HTML
1331
+ Authenticating with gds_sso strategy
1332
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1333
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1334
+ Started GET "/auth/gds/callback?code=1ii4HmDcFSY4Wbj9v79MrIVmenNGY7SxuyGLkaLYswA&state=40b1fbad4bc5be3f73a23dc92e5dc7a289db3d4cf2607dc2" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1335
+ Processing by AuthenticationsController#callback as HTML
1336
+ Parameters: {"code"=>"1ii4HmDcFSY4Wbj9v79MrIVmenNGY7SxuyGLkaLYswA", "state"=>"40b1fbad4bc5be3f73a23dc92e5dc7a289db3d4cf2607dc2"}
1337
+ Authenticating with gds_sso strategy
1338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1339
+ Redirected to http://www.example-client.com/restricted
1340
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1341
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1342
+ Processing by ExampleController#restricted as HTML
1343
+ 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]]
1344
+ Rendering text template
1345
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1346
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1347
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1348
+ Processing by ExampleController#restricted as HTML
1349
+ Authenticating with gds_sso strategy
1350
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 479)
1351
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1352
+ Started GET "/auth/gds/callback?code=CCRzd3loz6THeyHMYh5OoCj84uRMei8okdG6yBP7MUE&state=9ca840e746f47c54ae507bbafca211b0fd575c163c9f3435" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1353
+ Processing by AuthenticationsController#callback as HTML
1354
+ Parameters: {"code"=>"CCRzd3loz6THeyHMYh5OoCj84uRMei8okdG6yBP7MUE", "state"=>"9ca840e746f47c54ae507bbafca211b0fd575c163c9f3435"}
1355
+ Authenticating with gds_sso strategy
1356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1357
+ Redirected to http://www.example-client.com/restricted
1358
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1115)
1359
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1360
+ Processing by ExampleController#restricted as HTML
1361
+ 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]]
1362
+ Rendering text template
1363
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1364
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 879)
1365
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1366
+ Processing by ExampleController#restricted as HTML
1367
+ Authenticating with gds_sso strategy
1368
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1369
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1370
+ Started GET "/auth/gds/callback?code=b8s-kXAuetGtMPf0qd-evTQQebvXsS6juUttnUlj_KI&state=091092ef775a27a53d074af06150387698a9565ea7256204" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1371
+ Processing by AuthenticationsController#callback as HTML
1372
+ Parameters: {"code"=>"b8s-kXAuetGtMPf0qd-evTQQebvXsS6juUttnUlj_KI", "state"=>"091092ef775a27a53d074af06150387698a9565ea7256204"}
1373
+ Authenticating with gds_sso strategy
1374
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1375
+ Redirected to http://www.example-client.com/restricted
1376
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1377
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1378
+ Processing by ExampleController#restricted as HTML
1379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1380
+ Rendering text template
1381
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1382
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 653)
1383
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1384
+ Processing by ExampleController#restricted as HTML
1385
+ Authenticating with gds_sso strategy
1386
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 479)
1387
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1388
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1389
+ Processing by ExampleController#restricted as HTML
1390
+ Authenticating with gds_sso strategy
1391
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1392
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1393
+ Started GET "/auth/gds/callback?code=Pt3AQ4pm5niA5TlkSaosLd1ov8PreanA86IVVfHd9H8&state=92f7f73fd253c2f094bd594446565a95b5d4fdb8b46afbea" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1394
+ Processing by AuthenticationsController#callback as HTML
1395
+ Parameters: {"code"=>"Pt3AQ4pm5niA5TlkSaosLd1ov8PreanA86IVVfHd9H8", "state"=>"92f7f73fd253c2f094bd594446565a95b5d4fdb8b46afbea"}
1396
+ Authenticating with gds_sso strategy
1397
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1398
+ Redirected to http://www.example-client.com/restricted
1399
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1400
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1401
+ Processing by ExampleController#restricted as HTML
1402
+ 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]]
1403
+ Rendering text template
1404
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1405
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1406
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:23 +0000
1407
+ Processing by ExampleController#restricted as HTML
1408
+ 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]]
1409
+ Rendering text template
1410
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1411
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 875)
1412
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1413
+ Processing by ExampleController#restricted as JSON
1414
+ Completed in 12ms (ActiveRecord: 0.0ms | Allocations: 1955)
1415
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1416
+ Processing by ExampleController#restricted as JSON
1417
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1418
+  (0.1ms) begin transaction
1419
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1420
+  (5.7ms) commit transaction
1421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1422
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1423
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1424
+ Rendering text template
1425
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1426
+ Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 6.1ms | Allocations: 3311)
1427
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1428
+ Processing by ExampleController#restricted as JSON
1429
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1776)
1430
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1431
+ Processing by ExampleController#this_requires_signin_permission as JSON
1432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1433
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1434
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1435
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1436
+ Rendering text template
1437
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1438
+ Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 3020)
1439
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1440
+ Processing by ExampleController#restricted as HTML
1441
+ Authenticating with gds_sso strategy
1442
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 104)
1443
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1445
+  (0.1ms) begin transaction
1446
+ 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]]
1447
+  (5.7ms) commit transaction
1448
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1449
+  (0.1ms) begin transaction
1450
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35050"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1451
+  (4.3ms) commit transaction
1452
+  (0.0ms) begin transaction
1453
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38503"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1454
+  (5.8ms) commit transaction
1455
+ Processing by Api::UserController#update as HTML
1456
+ Parameters: {"uid"=>"a1s2d35050"}
1457
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35050"], ["LIMIT", 1]]
1458
+  (0.0ms) begin transaction
1459
+ 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", 4]]
1460
+  (5.1ms) commit transaction
1461
+ Completed 200 OK in 7ms (ActiveRecord: 5.4ms | Allocations: 1266)
1462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
1463
+  (0.1ms) begin transaction
1464
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34112"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1465
+  (5.2ms) commit transaction
1466
+  (0.0ms) begin transaction
1467
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36543"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1468
+  (3.7ms) commit transaction
1469
+ Processing by Api::UserController#update as HTML
1470
+ Parameters: {"uid"=>"a1s2d34112"}
1471
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1472
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1473
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 192)
1474
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1475
+ Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms | Allocations: 1353)
1476
+  (0.0ms) begin transaction
1477
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33647"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1478
+  (5.1ms) commit transaction
1479
+  (0.0ms) begin transaction
1480
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38442"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1481
+  (4.0ms) commit transaction
1482
+ Processing by Api::UserController#reauth as HTML
1483
+ Parameters: {"uid"=>"a1s2d33647"}
1484
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1485
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1486
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 46)
1487
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1488
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 508)
1489
+  (0.0ms) begin transaction
1490
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3570"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1491
+  (5.0ms) commit transaction
1492
+  (0.0ms) begin transaction
1493
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33250"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1494
+  (3.9ms) commit transaction
1495
+ Processing by Api::UserController#reauth as HTML
1496
+ Parameters: {"uid"=>"a1s2d3570"}
1497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3570"], ["LIMIT", 1]]
1498
+  (0.0ms) begin transaction
1499
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 10]]
1500
+  (5.2ms) commit transaction
1501
+ Completed 200 OK in 7ms (ActiveRecord: 5.5ms | Allocations: 882)
1502
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1503
+  (0.0ms) begin transaction
1504
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39749"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1505
+  (5.0ms) commit transaction
1506
+  (0.0ms) begin transaction
1507
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38771"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1508
+  (3.8ms) commit transaction
1509
+ Processing by Api::UserController#reauth as HTML
1510
+ Parameters: {"uid"=>"nonexistent-user"}
1511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1512
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 525)