gds-sso 14.2.0 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
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 +13 -12
  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 +1121 -1187
  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 +95 -61
@@ -10,24 +10,25 @@ def user_update_json
10
10
  "organisation_slug" => "justice-league",
11
11
  "organisation_content_id" => "aae1319e-5788-4677-998c-f1a53af528d0",
12
12
  "disabled" => false,
13
- }
13
+ },
14
14
  }.to_json
15
15
  end
16
16
 
17
17
  describe Api::UserController, type: :controller do
18
-
19
18
  before :each do
20
19
  user_to_update_attrs = [{
21
- :uid => "a1s2d3#{rand(10000)}",
22
- :email => "old@domain.com",
23
- :name => "Moshua Jarshall",
24
- :permissions => ["signin"] }]
25
-
26
- signon_sso_push_user_attrs = [{
27
- :uid => "a1s2d3#{rand(10000)}",
28
- :email => "ssopushuser@legit.com",
29
- :name => "SSO Push user",
30
- :permissions => ["signin", "user_update_permission"] }]
20
+ uid: "a1s2d3#{rand(10_000)}",
21
+ email: "old@domain.com",
22
+ name: "Moshua Jarshall",
23
+ permissions: %w[signin],
24
+ }]
25
+
26
+ signon_sso_push_user_attrs = [{
27
+ uid: "a1s2d3#{rand(10_000)}",
28
+ email: "ssopushuser@legit.com",
29
+ name: "SSO Push user",
30
+ permissions: %w[signin user_update_permission],
31
+ }]
31
32
 
32
33
  @user_to_update = User.create!(*user_to_update_attrs)
33
34
  @signon_sso_push_user = User.create!(*signon_sso_push_user_attrs)
@@ -36,13 +37,14 @@ describe Api::UserController, type: :controller do
36
37
  describe "PUT update" do
37
38
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
38
39
  malicious_user = User.new({
39
- :uid => '2',
40
- :name => "User",
41
- :permissions =>["signin"] })
40
+ uid: "2",
41
+ name: "User",
42
+ permissions: %w[signin],
43
+ })
42
44
 
43
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
45
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
44
46
 
45
- request.env['RAW_POST_DATA'] = user_update_json
47
+ request.env["RAW_POST_DATA"] = user_update_json
46
48
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
47
49
 
48
50
  expect(response.status).to eq(403)
@@ -50,12 +52,12 @@ describe Api::UserController, type: :controller do
50
52
 
51
53
  it "should create/update the user record in the same way as the OAuth callback" do
52
54
  # Test that it authenticates
53
- request.env['warden'] = double("mock warden")
54
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
55
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
56
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
55
+ request.env["warden"] = double("mock warden")
56
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
57
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
58
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
57
59
 
58
- request.env['RAW_POST_DATA'] = user_update_json
60
+ request.env["RAW_POST_DATA"] = user_update_json
59
61
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
60
62
 
61
63
  @user_to_update.reload
@@ -64,18 +66,19 @@ describe Api::UserController, type: :controller do
64
66
  expect(@user_to_update.permissions).to eq(["signin", "new permission"])
65
67
  expect(@user_to_update.organisation_slug).to eq("justice-league")
66
68
  expect(@user_to_update.organisation_content_id).to eq("aae1319e-5788-4677-998c-f1a53af528d0")
67
- expect(response.content_type).to eq('text/plain')
69
+ expect(response.content_type).to eq("text/plain")
68
70
  end
69
71
  end
70
72
 
71
73
  describe "POST reauth" do
72
74
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
73
75
  malicious_user = User.new({
74
- :uid => '2',
75
- :name => "User",
76
- :permissions => ["signin"] })
76
+ uid: "2",
77
+ name: "User",
78
+ permissions: %w[signin],
79
+ })
77
80
 
78
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
81
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
79
82
 
80
83
  post :reauth, params: { uid: @user_to_update.uid }
81
84
 
@@ -83,29 +86,29 @@ describe Api::UserController, type: :controller do
83
86
  end
84
87
 
85
88
  it "should return success if user record doesn't exist" do
86
- request.env['warden'] = double("mock warden")
87
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
88
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
89
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
89
+ request.env["warden"] = double("mock warden")
90
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
91
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
92
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
90
93
 
91
94
  post :reauth, params: { uid: "nonexistent-user" }
92
95
 
93
96
  expect(response.status).to eq(200)
94
- expect(response.content_type).to eq('text/plain')
97
+ expect(response.content_type).to eq("text/plain")
95
98
  end
96
99
 
97
100
  it "should set remotely_signed_out to true on the user" do
98
101
  # Test that it authenticates
99
- request.env['warden'] = double("mock warden")
100
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
101
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
102
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
102
+ request.env["warden"] = double("mock warden")
103
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
104
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
105
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
103
106
 
104
107
  post :reauth, params: { uid: @user_to_update.uid }
105
108
 
106
109
  @user_to_update.reload
107
110
  expect(@user_to_update).to be_remotely_signed_out
108
- expect(response.content_type).to eq('text/plain')
111
+ expect(response.content_type).to eq("text/plain")
109
112
  end
110
113
  end
111
114
  end
@@ -1,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,1395 +1,1037 @@
1
-  (4.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (6.6ms) 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", "7793"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
8
-  (8.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
-  (6.1ms) commit transaction
12
-  (0.0ms) begin transaction
13
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39531"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
14
-  (3.8ms) commit transaction
15
-  (0.1ms) begin transaction
16
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33260"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
17
-  (4.9ms) commit transaction
18
- Processing by Api::UserController#reauth as HTML
19
- Parameters: {"uid"=>"a1s2d39531"}
20
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
21
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
22
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
23
- Completed 403 Forbidden in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms)
24
-  (0.1ms) begin transaction
25
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31518"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
26
-  (5.0ms) commit transaction
27
-  (0.1ms) begin transaction
28
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3998"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
29
-  (3.6ms) commit transaction
30
- Processing by Api::UserController#reauth as HTML
31
- Parameters: {"uid"=>"a1s2d31518"}
32
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31518"]]
33
-  (0.0ms) begin transaction
34
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
35
-  (4.9ms) commit transaction
36
- Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
37
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
38
-  (0.1ms) begin transaction
39
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3654"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
40
-  (4.6ms) commit transaction
41
-  (0.1ms) begin transaction
42
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39034"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
43
-  (4.2ms) commit transaction
44
- Processing by Api::UserController#reauth as HTML
45
- Parameters: {"uid"=>"nonexistent-user"}
46
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
47
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
48
-  (0.1ms) begin transaction
49
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35460"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
50
-  (4.3ms) commit transaction
51
-  (0.1ms) begin transaction
52
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33715"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
53
-  (6.7ms) commit transaction
54
- Processing by Api::UserController#update as HTML
55
- Parameters: {"uid"=>"a1s2d35460"}
56
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35460"]]
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
-  (6.7ms) commit transaction
60
- Completed 200 OK in 10ms (ActiveRecord: 7.1ms)
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", "a1s2d38072"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
64
-  (4.3ms) commit transaction
65
-  (0.1ms) begin transaction
66
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37281"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
67
-  (5.2ms) commit transaction
68
- Processing by Api::UserController#update as HTML
69
- Parameters: {"uid"=>"a1s2d38072"}
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-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/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.8ms | 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
-  (5.4ms) 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-11-05 10:35:57 +0000
83
- Processing by ExampleController#restricted as HTML
84
- Authenticating with gds_sso strategy
85
- Completed in 8ms (ActiveRecord: 0.0ms)
86
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:35:57 +0000
1
+  (0.1ms) DROP TABLE IF EXISTS "users"
2
+  (1.3ms) SELECT sqlite_version(*)
3
+  (9.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
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-11-12 10:32:03.986507"], ["updated_at", "2020-11-12 10:32:03.986507"]]
8
+  (5.6ms) commit transaction
9
+  (14.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
10
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
+  (0.0ms) begin transaction
12
+  (0.0ms) commit transaction
13
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
14
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15
+  (0.0ms) begin transaction
16
+ 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]]
17
+  (7.0ms) commit transaction
18
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
19
+  (0.0ms) begin transaction
20
+  (0.0ms) commit transaction
21
+ Started GET "/" for 127.0.0.1 at 2020-11-12 10:32:04 +0000
22
+ Processing by ExampleController#index as HTML
23
+ Rendering text template
24
+ Rendered text template (0.0ms)
25
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
26
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:04 +0000
87
27
  Processing by ExampleController#restricted as HTML
88
28
  Authenticating with gds_sso strategy
89
- Completed in 0ms (ActiveRecord: 0.0ms)
90
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:35:57 +0000
91
- Started GET "/auth/gds/callback?code=e26a2839aa4d8a1fd984f4e7ced9827f43adc37aeaba0e5d3b4402afaf0b85ed&state=fa3ddb76496c2dd3571dbc9400be9cafc43abd306736c38b" for 127.0.0.1 at 2019-11-05 10:36:43 +0000
29
+ Completed in 4ms (ActiveRecord: 0.0ms)
30
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:04 +0000
31
+ Started GET "/auth/gds/callback?code=5PIw9kafgD-w47vu0TK-lQtDOIqaqYQbx7a8qb7GK1w&state=1d465f678b40d424d735dc7608df2e290c9237aa41631e2b" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
92
32
  Processing by AuthenticationsController#callback as HTML
93
- Parameters: {"code"=>"e26a2839aa4d8a1fd984f4e7ced9827f43adc37aeaba0e5d3b4402afaf0b85ed", "state"=>"fa3ddb76496c2dd3571dbc9400be9cafc43abd306736c38b"}
94
- Authenticating with gds_sso strategy
95
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
96
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
97
-  (0.1ms) begin transaction
98
- 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"]]
99
-  (14.6ms) commit transaction
100
-  (0.0ms) begin transaction
101
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
102
-  (4.7ms) commit transaction
33
+ Parameters: {"code"=>"5PIw9kafgD-w47vu0TK-lQtDOIqaqYQbx7a8qb7GK1w", "state"=>"1d465f678b40d424d735dc7608df2e290c9237aa41631e2b"}
34
+ Authenticating with gds_sso strategy
35
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
36
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
37
+  (0.0ms) begin transaction
38
+ 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"]]
39
+  (16.2ms) commit transaction
40
+  (0.0ms) begin transaction
41
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
42
+  (4.1ms) commit transaction
103
43
  Redirected to http://www.example-client.com/restricted
104
- Completed 302 Found in 25ms (ActiveRecord: 20.0ms)
105
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
44
+ Completed 302 Found in 24ms (ActiveRecord: 20.8ms)
45
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
106
46
  Processing by ExampleController#restricted as HTML
107
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
47
+ 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]]
48
+ Rendering text template
108
49
  Rendered text template (0.0ms)
109
- Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
110
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
50
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
51
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
111
52
  Processing by ExampleController#restricted as HTML
112
53
  Authenticating with gds_sso strategy
113
54
  Completed in 0ms (ActiveRecord: 0.0ms)
114
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
115
- Started GET "/auth/gds/callback?code=b00bb56f7da9c89c3b5527bd05f65b98165246e5fd3d680a06b9c03de35f69ba&state=76885491b2691cad0481abc11e894a8fb38d5add678688c6" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
55
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
56
+ Started GET "/auth/gds/callback?code=HQu4HfZ5_JyPXL_xiqzqu8WH-O2VYS6ByXhPZb8qozI&state=945471eade7f33de534ef590c1b5141e51c9368fa4a05f22" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
116
57
  Processing by AuthenticationsController#callback as HTML
117
- Parameters: {"code"=>"b00bb56f7da9c89c3b5527bd05f65b98165246e5fd3d680a06b9c03de35f69ba", "state"=>"76885491b2691cad0481abc11e894a8fb38d5add678688c6"}
58
+ Parameters: {"code"=>"HQu4HfZ5_JyPXL_xiqzqu8WH-O2VYS6ByXhPZb8qozI", "state"=>"945471eade7f33de534ef590c1b5141e51c9368fa4a05f22"}
118
59
  Authenticating with gds_sso strategy
119
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
120
-  (0.1ms) begin transaction
121
-  (0.1ms) commit transaction
122
-  (0.0ms) begin transaction
123
-  (0.0ms) commit transaction
60
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
61
+  (0.0ms) begin transaction
62
+  (0.0ms) commit transaction
63
+  (0.0ms) begin transaction
64
+  (0.0ms) commit transaction
124
65
  Redirected to http://www.example-client.com/restricted
125
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
126
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
66
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
67
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
127
68
  Processing by ExampleController#restricted as HTML
128
- 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"]]
69
+ 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]]
70
+ Rendering text template
129
71
  Rendered text template (0.0ms)
130
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
131
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
72
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
73
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
132
74
  Processing by ExampleController#restricted as HTML
133
75
  Authenticating with gds_sso strategy
134
76
  Completed in 0ms (ActiveRecord: 0.0ms)
135
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
136
- Started GET "/auth/gds/callback?code=96646ce0c89da1016212580c7c1578b05c1e60bf87517c7e2838020a4723a094&state=8f6876c00c44c5e0f1c8d189a6b0e931d05be98a10b3564e" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
77
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
78
+ Started GET "/auth/gds/callback?code=AUnQQZ_9tC8EUE2rMN5XRT0QB0FOO_-0HM1ThO_nXnQ&state=17587a8a3db3d14cad9aaedc4af64e34ca19e8f354533278" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
137
79
  Processing by AuthenticationsController#callback as HTML
138
- Parameters: {"code"=>"96646ce0c89da1016212580c7c1578b05c1e60bf87517c7e2838020a4723a094", "state"=>"8f6876c00c44c5e0f1c8d189a6b0e931d05be98a10b3564e"}
80
+ Parameters: {"code"=>"AUnQQZ_9tC8EUE2rMN5XRT0QB0FOO_-0HM1ThO_nXnQ", "state"=>"17587a8a3db3d14cad9aaedc4af64e34ca19e8f354533278"}
139
81
  Authenticating with gds_sso strategy
140
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
141
-  (0.1ms) begin transaction
142
-  (0.0ms) commit transaction
143
-  (0.0ms) begin transaction
144
-  (0.0ms) commit transaction
82
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
83
+  (0.0ms) begin transaction
84
+  (0.0ms) commit transaction
85
+  (0.0ms) begin transaction
86
+  (0.0ms) commit transaction
145
87
  Redirected to http://www.example-client.com/restricted
146
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
147
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
88
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
89
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
148
90
  Processing by ExampleController#restricted as HTML
149
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
91
+ 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]]
92
+ Rendering text template
150
93
  Rendered text template (0.0ms)
151
94
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
152
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
153
- Processing by ExampleController#index as HTML
154
- Rendered text template (0.0ms)
155
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
156
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
95
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
157
96
  Processing by ExampleController#this_requires_signin_permission as HTML
158
97
  Authenticating with gds_sso strategy
159
98
  Completed in 0ms (ActiveRecord: 0.0ms)
160
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
161
- Started GET "/auth/gds/callback?code=f0a4e0f5e3705292931e05573bf9798a6cc52df0518f7f6243c5eda88fe950de&state=daf77e0bf3c5c0eca9ab5fb5b0679be4401a7a5a8e906b40" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
99
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
100
+ Started GET "/auth/gds/callback?code=1CtGZRB7EoILhKwm5T8pJMczSm4Qj5lVHPRBUn53p6E&state=0c7ec196e38964fd235cc8d0cd571c582005e878bd9d753e" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
162
101
  Processing by AuthenticationsController#callback as HTML
163
- Parameters: {"code"=>"f0a4e0f5e3705292931e05573bf9798a6cc52df0518f7f6243c5eda88fe950de", "state"=>"daf77e0bf3c5c0eca9ab5fb5b0679be4401a7a5a8e906b40"}
102
+ Parameters: {"code"=>"1CtGZRB7EoILhKwm5T8pJMczSm4Qj5lVHPRBUn53p6E", "state"=>"0c7ec196e38964fd235cc8d0cd571c582005e878bd9d753e"}
164
103
  Authenticating with gds_sso strategy
165
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
166
-  (0.1ms) begin transaction
167
-  (0.0ms) commit transaction
168
-  (0.0ms) begin transaction
169
-  (0.0ms) commit transaction
104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
105
+  (0.0ms) begin transaction
106
+  (0.0ms) commit transaction
107
+  (0.0ms) begin transaction
108
+  (0.0ms) commit transaction
170
109
  Redirected to http://www.example-client.com/this_requires_signin_permission
171
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
172
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
110
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
111
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
173
112
  Processing by ExampleController#this_requires_signin_permission as HTML
174
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
113
+ 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]]
114
+ Rendering text template
175
115
  Rendered text template (0.0ms)
176
116
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
177
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
117
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
178
118
  Processing by ExampleController#this_requires_signin_permission as HTML
179
119
  Authenticating with gds_sso strategy
180
120
  Completed in 0ms (ActiveRecord: 0.0ms)
181
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
182
- Started GET "/auth/gds/callback?code=0ebf77356e6570617f8b270eced2aeab54a46a54eafa6c9ea48069b9eb89fc21&state=9c835892d4cfad360eee257d58b75aa2437de571dcda5243" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
121
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
122
+ Started GET "/auth/gds/callback?code=RDemX4a8LVpRvLcJVG2Ql1RALzX0HJUN9OI443G-Kps&state=60b8b1b6856d89aaf3c4312032c3188cda205aaa43a3076c" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
183
123
  Processing by AuthenticationsController#callback as HTML
184
- Parameters: {"code"=>"0ebf77356e6570617f8b270eced2aeab54a46a54eafa6c9ea48069b9eb89fc21", "state"=>"9c835892d4cfad360eee257d58b75aa2437de571dcda5243"}
124
+ Parameters: {"code"=>"RDemX4a8LVpRvLcJVG2Ql1RALzX0HJUN9OI443G-Kps", "state"=>"60b8b1b6856d89aaf3c4312032c3188cda205aaa43a3076c"}
185
125
  Authenticating with gds_sso strategy
186
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
187
-  (0.1ms) begin transaction
188
-  (0.0ms) commit transaction
189
-  (0.0ms) begin transaction
190
-  (0.1ms) commit transaction
126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
127
+  (0.0ms) begin transaction
128
+  (0.0ms) commit transaction
129
+  (0.0ms) begin transaction
130
+  (0.0ms) commit transaction
191
131
  Redirected to http://www.example-client.com/this_requires_signin_permission
192
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
193
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
132
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
133
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
194
134
  Processing by ExampleController#this_requires_signin_permission as HTML
195
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
196
- Rendered text template (0.1ms)
197
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
198
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
135
+ 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]]
136
+ Rendering text template
137
+ Rendered text template (0.0ms)
138
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
139
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
199
140
  Processing by ExampleController#restricted as HTML
200
141
  Authenticating with gds_sso strategy
201
142
  Completed in 0ms (ActiveRecord: 0.0ms)
202
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
203
- Started GET "/auth/gds/callback?code=28baebd9049cd335acb77fc39f25deb13d94858a7b355e11e0d14b2ecb6c0446&state=e3d8db893276610d212d98274bf5c14a710d19c1c6cfb6b3" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
143
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
144
+ Started GET "/auth/gds/callback?code=FIZMBuhnhOWKBPSjBM3EOHK_0LjsIiNxYFkpfqZdLs4&state=9f913a1df9f8a84c13701c343414808c965bb311d5f4b131" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
204
145
  Processing by AuthenticationsController#callback as HTML
205
- Parameters: {"code"=>"28baebd9049cd335acb77fc39f25deb13d94858a7b355e11e0d14b2ecb6c0446", "state"=>"e3d8db893276610d212d98274bf5c14a710d19c1c6cfb6b3"}
146
+ Parameters: {"code"=>"FIZMBuhnhOWKBPSjBM3EOHK_0LjsIiNxYFkpfqZdLs4", "state"=>"9f913a1df9f8a84c13701c343414808c965bb311d5f4b131"}
206
147
  Authenticating with gds_sso strategy
207
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
208
-  (0.1ms) begin transaction
209
-  (0.0ms) commit transaction
210
-  (0.0ms) begin transaction
211
-  (0.0ms) commit transaction
148
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
149
+  (0.0ms) begin transaction
150
+  (0.0ms) commit transaction
151
+  (0.0ms) begin transaction
152
+  (0.0ms) commit transaction
212
153
  Redirected to http://www.example-client.com/restricted
213
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
214
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
154
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
155
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
215
156
  Processing by ExampleController#restricted as HTML
216
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
157
+ 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]]
158
+ Rendering text template
217
159
  Rendered text template (0.0ms)
218
160
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
219
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
220
-  (0.0ms) begin transaction
221
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
222
-  (10.5ms) commit transaction
223
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
161
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
224
162
  Processing by ExampleController#restricted as HTML
225
- 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"]]
226
163
  Authenticating with gds_sso strategy
227
- Completed in 1ms (ActiveRecord: 0.1ms)
228
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:44 +0000
229
- Started GET "/auth/gds/callback?code=9276365039e856285ad76e2c22865d35df5c497ba3cb0bf826efcd7b724c05ca&state=0d906fc158a582e83a4fc8dcdb2e5bb0624f98e45a2dc6fb" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
164
+ Completed in 0ms (ActiveRecord: 0.0ms)
165
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
166
+ Started GET "/auth/gds/callback?code=26_VObzk6RBl1Y-JlmmZrX2aS1Uw5JDuAF_nX_R0FmA&state=c8cefbd613f62c391f9f8f0d2aabd6b996ac4b2ded556553" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
230
167
  Processing by AuthenticationsController#callback as HTML
231
- Parameters: {"code"=>"9276365039e856285ad76e2c22865d35df5c497ba3cb0bf826efcd7b724c05ca", "state"=>"0d906fc158a582e83a4fc8dcdb2e5bb0624f98e45a2dc6fb"}
232
- Authenticating with gds_sso strategy
233
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
234
-  (0.1ms) begin transaction
235
-  (0.0ms) commit transaction
236
-  (0.0ms) begin transaction
237
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
238
-  (100.1ms) commit transaction
168
+ Parameters: {"code"=>"26_VObzk6RBl1Y-JlmmZrX2aS1Uw5JDuAF_nX_R0FmA", "state"=>"c8cefbd613f62c391f9f8f0d2aabd6b996ac4b2ded556553"}
169
+ Authenticating with gds_sso strategy
170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
171
+  (0.0ms) begin transaction
172
+  (0.0ms) commit transaction
173
+  (0.0ms) begin transaction
174
+  (0.0ms) commit transaction
239
175
  Redirected to http://www.example-client.com/restricted
240
- Completed 302 Found in 105ms (ActiveRecord: 100.6ms)
241
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
176
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
177
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
242
178
  Processing by ExampleController#restricted as HTML
243
- 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"]]
179
+ 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]]
180
+ Rendering text template
244
181
  Rendered text template (0.0ms)
245
182
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
246
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
183
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
247
184
  Processing by ExampleController#restricted as HTML
248
185
  Authenticating with gds_sso strategy
249
186
  Completed in 0ms (ActiveRecord: 0.0ms)
250
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
251
- Started GET "/auth/gds/callback?code=07b5460a4dbb15ad451e7c0041d89a3650743bc25d2f934b4d2f15f4b8afb08c&state=86cd5b771ee6289f5c79bfbaf90b48317a3f5de08e683001" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
187
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
188
+ Started GET "/auth/gds/callback?code=hAUGN0xz6HMlqKeRf5EVdAU6Csrq5w-KdOs5G4feXhE&state=cda48ce98ff81369f2f1591082c856bf36436aa8c937f226" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
252
189
  Processing by AuthenticationsController#callback as HTML
253
- Parameters: {"code"=>"07b5460a4dbb15ad451e7c0041d89a3650743bc25d2f934b4d2f15f4b8afb08c", "state"=>"86cd5b771ee6289f5c79bfbaf90b48317a3f5de08e683001"}
190
+ Parameters: {"code"=>"hAUGN0xz6HMlqKeRf5EVdAU6Csrq5w-KdOs5G4feXhE", "state"=>"cda48ce98ff81369f2f1591082c856bf36436aa8c937f226"}
254
191
  Authenticating with gds_sso strategy
255
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
256
-  (0.1ms) begin transaction
257
-  (0.0ms) commit transaction
258
-  (0.0ms) begin transaction
259
-  (0.0ms) commit transaction
192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
193
+  (0.0ms) begin transaction
194
+  (0.0ms) commit transaction
195
+  (0.0ms) begin transaction
196
+  (0.0ms) commit transaction
260
197
  Redirected to http://www.example-client.com/restricted
261
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
262
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
198
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
199
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
263
200
  Processing by ExampleController#restricted as HTML
264
- 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"]]
201
+ 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]]
202
+ Rendering text template
265
203
  Rendered text template (0.0ms)
266
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
267
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
204
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
205
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
268
206
  Processing by ExampleController#restricted as HTML
269
207
  Authenticating with gds_sso strategy
270
208
  Completed in 0ms (ActiveRecord: 0.0ms)
271
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
272
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
209
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:05 +0000
210
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
273
211
  Processing by ExampleController#restricted as HTML
274
212
  Authenticating with gds_sso strategy
275
213
  Completed in 0ms (ActiveRecord: 0.0ms)
276
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
277
- Started GET "/auth/gds/callback?code=f55be5cb7439c98de54393c012012a67df678a55a062095a08222dadaa36305f&state=5f8e3421c820ef5b7e016ede6b5c23b6c2f38b15452adfb0" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
214
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
215
+ Started GET "/auth/gds/callback?code=jzQ_soaIJj0BbRtVxufZawXPKlymKyS57UXpUCIAbZ8&state=ca89992b2febaaadde9833cd1b48a7778da175aabaea6882" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
278
216
  Processing by AuthenticationsController#callback as HTML
279
- Parameters: {"code"=>"f55be5cb7439c98de54393c012012a67df678a55a062095a08222dadaa36305f", "state"=>"5f8e3421c820ef5b7e016ede6b5c23b6c2f38b15452adfb0"}
217
+ Parameters: {"code"=>"jzQ_soaIJj0BbRtVxufZawXPKlymKyS57UXpUCIAbZ8", "state"=>"ca89992b2febaaadde9833cd1b48a7778da175aabaea6882"}
280
218
  Authenticating with gds_sso strategy
281
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
282
-  (0.1ms) begin transaction
283
-  (0.0ms) commit transaction
284
-  (0.0ms) begin transaction
285
-  (0.0ms) commit transaction
219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
220
+  (0.0ms) begin transaction
221
+  (0.0ms) commit transaction
222
+  (0.0ms) begin transaction
223
+  (0.0ms) commit transaction
286
224
  Redirected to http://www.example-client.com/restricted
287
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
288
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
225
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
226
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
289
227
  Processing by ExampleController#restricted as HTML
290
- 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"]]
228
+ 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]]
229
+ Rendering text template
291
230
  Rendered text template (0.0ms)
292
231
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
293
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:31:45 +0000
232
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:27:05 +0000
294
233
  Processing by ExampleController#restricted as HTML
295
- 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"]]
234
+ 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]]
235
+ Rendering text template
296
236
  Rendered text template (0.0ms)
297
237
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
298
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
238
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
299
239
  Processing by ExampleController#restricted as HTML
300
240
  Authenticating with gds_sso strategy
301
241
  Completed in 0ms (ActiveRecord: 0.0ms)
302
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
303
- Started GET "/auth/gds/callback?code=a10f54b3e687884a617a438a9de1dd30c59985e265ecd2ce774497587e725ab7&state=306c554964802cacf30180436cc4330bb517d504434ec88c" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
242
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
243
+ Started GET "/auth/gds/callback?code=SZNqlD2FYsafU_1ga-FRwrfPsWhP6Pdm4cBTuOz_5WU&state=95a8cee2cc73eb937159df1bfaa0d40f15a1be654454bdee" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
304
244
  Processing by AuthenticationsController#callback as HTML
305
- Parameters: {"code"=>"a10f54b3e687884a617a438a9de1dd30c59985e265ecd2ce774497587e725ab7", "state"=>"306c554964802cacf30180436cc4330bb517d504434ec88c"}
245
+ Parameters: {"code"=>"SZNqlD2FYsafU_1ga-FRwrfPsWhP6Pdm4cBTuOz_5WU", "state"=>"95a8cee2cc73eb937159df1bfaa0d40f15a1be654454bdee"}
306
246
  Authenticating with gds_sso strategy
307
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
308
-  (0.1ms) begin transaction
309
-  (0.0ms) commit transaction
310
-  (0.0ms) begin transaction
311
-  (0.0ms) commit transaction
247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
248
+  (0.0ms) begin transaction
249
+  (0.0ms) commit transaction
250
+  (0.0ms) begin transaction
251
+  (0.0ms) commit transaction
312
252
  Redirected to http://www.example-client.com/restricted
313
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
314
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
253
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
254
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
315
255
  Processing by ExampleController#restricted as HTML
316
- 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"]]
256
+ 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]]
257
+ Rendering text template
317
258
  Rendered text template (0.0ms)
318
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
319
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
259
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
260
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
261
+  (0.0ms) begin transaction
262
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
263
+  (7.0ms) commit transaction
264
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
320
265
  Processing by ExampleController#restricted as HTML
266
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
321
267
  Authenticating with gds_sso strategy
322
- Completed in 0ms (ActiveRecord: 0.0ms)
323
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
324
- Started GET "/auth/gds/callback?code=f61a3fae0e6f379c8a721a6a6073e51b97ec84cfdbfeb0c04b7eab90898ba450&state=40e7abcdeecdf94beb7addfdb8522e25b65f540380a5f3dc" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
268
+ Completed in 1ms (ActiveRecord: 0.1ms)
269
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
270
+ Started GET "/auth/gds/callback?code=RQ2ThU1DueOwCsZdjd_OZ0rVk1vGzPqZOagymAbZ0_w&state=e249b10a822052ce494798d77cd21a4d4c34dac68870ee4a" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
325
271
  Processing by AuthenticationsController#callback as HTML
326
- Parameters: {"code"=>"f61a3fae0e6f379c8a721a6a6073e51b97ec84cfdbfeb0c04b7eab90898ba450", "state"=>"40e7abcdeecdf94beb7addfdb8522e25b65f540380a5f3dc"}
272
+ Parameters: {"code"=>"RQ2ThU1DueOwCsZdjd_OZ0rVk1vGzPqZOagymAbZ0_w", "state"=>"e249b10a822052ce494798d77cd21a4d4c34dac68870ee4a"}
327
273
  Authenticating with gds_sso strategy
328
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
329
-  (0.1ms) begin transaction
330
-  (0.1ms) commit transaction
331
-  (0.1ms) begin transaction
332
-  (0.1ms) commit transaction
274
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
275
+  (0.0ms) begin transaction
276
+  (0.0ms) commit transaction
277
+  (0.0ms) begin transaction
278
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
279
+  (4.9ms) commit transaction
333
280
  Redirected to http://www.example-client.com/restricted
334
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
335
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:45 +0000
281
+ Completed 302 Found in 8ms (ActiveRecord: 5.3ms)
282
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
336
283
  Processing by ExampleController#restricted as HTML
337
- 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"]]
338
- Rendered text template (0.0ms)
339
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
340
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:45 +0000
341
- Processing by ExampleController#this_requires_signin_permission as JSON
342
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
343
-  (0.1ms) begin transaction
344
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
345
-  (5.5ms) commit transaction
346
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
347
-  (0.0ms) begin transaction
348
-  (0.1ms) commit transaction
349
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
350
-  (0.1ms) begin transaction
351
-  (0.0ms) commit transaction
352
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
353
-  (0.1ms) begin transaction
354
-  (0.0ms) commit transaction
355
-  (0.0ms) begin transaction
356
-  (0.0ms) commit transaction
357
- Rendered text template (0.0ms)
358
- Completed 200 OK in 59ms (Views: 0.3ms | ActiveRecord: 6.5ms)
359
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
360
- Processing by ExampleController#restricted as JSON
361
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
362
-  (0.0ms) begin transaction
363
-  (0.0ms) commit transaction
364
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
365
-  (0.0ms) begin transaction
366
-  (0.0ms) commit transaction
367
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
368
-  (0.0ms) begin transaction
369
-  (0.0ms) 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.1ms) begin transaction
372
-  (0.1ms) commit transaction
373
-  (0.0ms) begin transaction
374
-  (0.0ms) commit transaction
284
+ 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]]
285
+ Rendering text template
375
286
  Rendered text template (0.0ms)
376
- Completed 200 OK in 48ms (Views: 0.3ms | ActiveRecord: 0.6ms)
377
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
287
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
288
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
289
+ Processing by ExampleController#restricted as HTML
290
+ Authenticating with gds_sso strategy
291
+ Completed in 0ms (ActiveRecord: 0.0ms)
292
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
378
293
  Processing by ExampleController#restricted as JSON
379
- Completed in 11ms (ActiveRecord: 0.0ms)
380
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:46 +0000
294
+ Completed in 9ms (ActiveRecord: 0.0ms)
295
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
381
296
  Processing by ExampleController#restricted as JSON
382
- Completed in 18ms (ActiveRecord: 0.0ms)
383
-  (0.1ms) DROP TABLE IF EXISTS "users"
384
-  (1.7ms) SELECT sqlite_version(*)
385
-  (5.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
386
-  (6.1ms) 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-11-05 10:36:56.473576"], ["updated_at", "2019-11-05 10:36:56.473576"]]
390
-  (5.1ms) commit transaction
391
-  (5.7ms) 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]]
393
-  (0.0ms) begin transaction
394
-  (0.0ms) commit transaction
395
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
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", "260"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
-  (7.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.9ms) commit transaction
402
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
403
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
404
-  (0.0ms) begin transaction
405
- 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]]
406
-  (5.4ms) commit transaction
407
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
408
-  (0.1ms) begin transaction
409
-  (0.1ms) commit transaction
410
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
297
+ Completed in 12ms (ActiveRecord: 0.0ms)
298
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
411
299
  Processing by ExampleController#restricted as JSON
412
300
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
413
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
414
-  (0.1ms) begin transaction
415
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
416
-  (5.4ms) commit transaction
301
+  (0.0ms) begin transaction
302
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
303
+  (4.2ms) commit transaction
417
304
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
418
-  (0.1ms) begin transaction
419
-  (0.1ms) commit transaction
305
+  (0.0ms) begin transaction
306
+  (0.0ms) commit transaction
420
307
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
421
-  (0.1ms) begin transaction
422
-  (0.1ms) commit transaction
308
+  (0.0ms) begin transaction
309
+  (0.0ms) commit transaction
423
310
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
424
-  (0.1ms) begin transaction
425
-  (0.1ms) commit transaction
426
311
   (0.0ms) begin transaction
427
- User Update (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
428
-  (3.9ms) commit transaction
312
+  (0.0ms) commit transaction
313
+  (0.0ms) begin transaction
314
+  (0.0ms) commit transaction
429
315
  Rendering text template
430
316
  Rendered text template (0.0ms)
431
- Completed 200 OK in 81ms (Views: 5.1ms | ActiveRecord: 10.9ms)
432
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
317
+ Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 4.8ms)
318
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:05 +0000
433
319
  Processing by ExampleController#this_requires_signin_permission as JSON
434
320
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
435
-  (0.1ms) begin transaction
436
-  (0.1ms) commit transaction
321
+  (0.0ms) begin transaction
322
+  (0.0ms) commit transaction
437
323
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
438
-  (0.1ms) begin transaction
439
-  (0.1ms) commit transaction
324
+  (0.0ms) begin transaction
325
+  (0.0ms) commit transaction
440
326
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
441
-  (0.1ms) begin transaction
442
-  (0.1ms) commit transaction
327
+  (0.0ms) begin transaction
328
+  (0.0ms) commit transaction
443
329
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
444
-  (0.1ms) begin transaction
445
-  (0.1ms) commit transaction
446
330
   (0.0ms) begin transaction
447
-  (0.1ms) commit transaction
331
+  (0.0ms) commit transaction
332
+  (0.0ms) begin transaction
333
+  (0.0ms) commit transaction
448
334
  Rendering text template
449
335
  Rendered text template (0.0ms)
450
- Completed 200 OK in 51ms (Views: 0.3ms | ActiveRecord: 0.7ms)
451
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
452
- Processing by ExampleController#restricted as JSON
453
- Completed in 18ms (ActiveRecord: 0.0ms)
454
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
455
- Processing by ExampleController#restricted as JSON
456
- Completed in 11ms (ActiveRecord: 0.0ms)
457
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
458
- Processing by ExampleController#restricted as HTML
459
- Authenticating with gds_sso strategy
460
- Completed in 0ms (ActiveRecord: 0.0ms)
461
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
336
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
337
+  (0.0ms) begin transaction
338
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34354"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
339
+  (6.2ms) commit transaction
340
+  (0.0ms) begin transaction
341
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34127"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
342
+  (4.4ms) commit transaction
343
+ Processing by Api::UserController#update as HTML
344
+ Parameters: {"uid"=>"a1s2d34354"}
345
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34354"], ["LIMIT", 1]]
346
+  (0.0ms) begin transaction
347
+ 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]]
348
+  (4.8ms) commit transaction
349
+ Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
350
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
351
+  (0.0ms) begin transaction
352
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33333"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
353
+  (4.9ms) commit transaction
354
+  (0.0ms) begin transaction
355
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38699"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
356
+  (4.2ms) commit transaction
357
+ Processing by Api::UserController#update as HTML
358
+ Parameters: {"uid"=>"a1s2d33333"}
359
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
360
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
361
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
362
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
363
+ Completed 403 Forbidden in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
364
+  (0.0ms) begin transaction
365
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33128"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
366
+  (6.5ms) commit transaction
367
+  (0.0ms) begin transaction
368
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37859"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
369
+  (5.3ms) commit transaction
370
+ Processing by Api::UserController#reauth as HTML
371
+ Parameters: {"uid"=>"nonexistent-user"}
372
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
373
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
374
+  (0.0ms) begin transaction
375
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38771"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
376
+  (5.4ms) commit transaction
377
+  (0.0ms) begin transaction
378
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38635"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
379
+  (4.6ms) commit transaction
380
+ Processing by Api::UserController#reauth as HTML
381
+ Parameters: {"uid"=>"a1s2d38771"}
382
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38771"], ["LIMIT", 1]]
383
+  (0.0ms) begin transaction
384
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 9]]
385
+  (5.7ms) commit transaction
386
+ Completed 200 OK in 7ms (ActiveRecord: 6.0ms)
387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
388
+  (0.0ms) begin transaction
389
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37217"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
390
+  (4.9ms) commit transaction
391
+  (0.0ms) begin transaction
392
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35812"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
393
+  (4.4ms) commit transaction
394
+ Processing by Api::UserController#reauth as HTML
395
+ Parameters: {"uid"=>"a1s2d37217"}
396
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
397
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
398
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
399
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
400
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
402
+  (0.0ms) begin transaction
403
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1077"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
404
+  (5.2ms) commit transaction
405
+  (0.0ms) begin transaction
406
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
407
+  (3.9ms) commit transaction
408
+  (1.5ms) SELECT sqlite_version(*)
409
+  (0.1ms) SELECT sqlite_version(*)
410
+  (0.1ms) DROP TABLE IF EXISTS "users"
411
+  (10.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
412
+  (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
413
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
+  (0.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-11-12 10:32:14.335862"], ["updated_at", "2020-11-12 10:32:14.335862"]]
416
+  (6.6ms) commit transaction
417
+  (6.4ms) 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
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:14 +0000
462
421
  Processing by ExampleController#restricted as HTML
463
422
  Authenticating with gds_sso strategy
464
- Completed in 0ms (ActiveRecord: 0.0ms)
465
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
466
- Started GET "/auth/gds/callback?code=8417d3a8c5404071439ca0dfa70646880af054cdb1fcad3526895b259a868828&state=aaf589514a62bc8fdaca8760c2bfd215ba43e7d598323085" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
467
- Processing by AuthenticationsController#callback as HTML
468
- Parameters: {"code"=>"8417d3a8c5404071439ca0dfa70646880af054cdb1fcad3526895b259a868828", "state"=>"aaf589514a62bc8fdaca8760c2bfd215ba43e7d598323085"}
469
- Authenticating with gds_sso strategy
470
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
423
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 172)
424
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:14 +0000
425
+ Processing by ExampleController#restricted as JSON
426
+ Completed in 17ms (ActiveRecord: 0.0ms | Allocations: 2943)
427
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:14 +0000
428
+ Processing by ExampleController#restricted as JSON
429
+ Completed in 12ms (ActiveRecord: 0.0ms | Allocations: 1871)
430
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:15 +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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
471
434
   (0.1ms) begin transaction
472
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
473
-  (4.5ms) commit transaction
435
+ 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]]
436
+  (6.2ms) commit transaction
437
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
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
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
474
440
   (0.0ms) begin transaction
475
-  (0.1ms) commit transaction
476
- Redirected to http://www.example-client.com/restricted
477
- Completed 302 Found in 9ms (ActiveRecord: 5.1ms)
478
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
479
- Processing by ExampleController#restricted as HTML
480
- 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]]
441
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 1]]
442
+  (4.0ms) commit transaction
481
443
  Rendering text template
482
- Rendered text template (0.0ms)
483
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
484
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
444
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
445
+ Completed 200 OK in 28ms (Views: 2.4ms | ActiveRecord: 11.5ms | Allocations: 12608)
446
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
447
+ Processing by ExampleController#restricted as JSON
448
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
449
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
450
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
451
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
452
+ Rendering text template
453
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
454
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 3317)
455
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
485
456
  Processing by ExampleController#this_requires_signin_permission as HTML
486
457
  Authenticating with gds_sso strategy
487
- Completed in 0ms (ActiveRecord: 0.0ms)
488
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
489
- Started GET "/auth/gds/callback?code=231c4ad97849c253b552a504f10c24e3b60f0f36e1733bf4e46a85843af6c0f1&state=56783c285b1890579b0f11933e4511586c825d2e645c837e" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
458
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
459
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
460
+ Started GET "/auth/gds/callback?code=srXYSBvTu72UJ7Og8FuUhHRBqNThnT4qITqjSEPIKVw&state=2b20dabab07dbad4094502db8c781d0b5f3cbcb3822c0898" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
490
461
  Processing by AuthenticationsController#callback as HTML
491
- Parameters: {"code"=>"231c4ad97849c253b552a504f10c24e3b60f0f36e1733bf4e46a85843af6c0f1", "state"=>"56783c285b1890579b0f11933e4511586c825d2e645c837e"}
462
+ Parameters: {"code"=>"srXYSBvTu72UJ7Og8FuUhHRBqNThnT4qITqjSEPIKVw", "state"=>"2b20dabab07dbad4094502db8c781d0b5f3cbcb3822c0898"}
492
463
  Authenticating with gds_sso strategy
493
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
494
465
   (0.1ms) begin transaction
495
-  (0.1ms) commit transaction
496
-  (0.1ms) begin transaction
497
-  (0.1ms) commit transaction
466
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", 0], ["id", 1]]
467
+  (5.1ms) commit transaction
498
468
  Redirected to http://www.example-client.com/this_requires_signin_permission
499
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
500
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
469
+ Completed 302 Found in 8ms (ActiveRecord: 5.5ms | Allocations: 1272)
470
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
501
471
  Processing by ExampleController#this_requires_signin_permission as HTML
502
- 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]]
472
+ 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]]
503
473
  Rendering text template
504
- Rendered text template (0.0ms)
505
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
506
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
474
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
475
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms | Allocations: 770)
476
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
507
477
  Processing by ExampleController#this_requires_signin_permission as HTML
508
478
  Authenticating with gds_sso strategy
509
- Completed in 0ms (ActiveRecord: 0.0ms)
510
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
511
- Started GET "/auth/gds/callback?code=fc50dbdd0434d4ca4e586edaee5d514225bb07afff3c04c35158f09f036a8e07&state=4e27d65b3904d6dc4b89dc74e472451d0fa4d1fae198b5e3" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
479
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 114)
480
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
481
+ Started GET "/auth/gds/callback?code=0CxzI6k3zVjr5rxxgDXQiWCtC2R-o2VhG2d8XgIAHFA&state=836f493fba3c3387c37639b4d553f53149c5da47d2cccd15" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
512
482
  Processing by AuthenticationsController#callback as HTML
513
- Parameters: {"code"=>"fc50dbdd0434d4ca4e586edaee5d514225bb07afff3c04c35158f09f036a8e07", "state"=>"4e27d65b3904d6dc4b89dc74e472451d0fa4d1fae198b5e3"}
483
+ Parameters: {"code"=>"0CxzI6k3zVjr5rxxgDXQiWCtC2R-o2VhG2d8XgIAHFA", "state"=>"836f493fba3c3387c37639b4d553f53149c5da47d2cccd15"}
514
484
  Authenticating with gds_sso strategy
515
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
516
-  (0.1ms) begin transaction
517
-  (0.0ms) commit transaction
518
-  (0.0ms) begin transaction
519
-  (0.0ms) commit transaction
485
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
520
486
  Redirected to http://www.example-client.com/this_requires_signin_permission
521
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
522
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
487
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1017)
488
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
523
489
  Processing by ExampleController#this_requires_signin_permission as HTML
524
- 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]]
490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
525
491
  Rendering text template
526
- Rendered text template (0.0ms)
527
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
528
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
492
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
493
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
494
+ Started GET "/" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
529
495
  Processing by ExampleController#index as HTML
530
496
  Rendering text template
531
- Rendered text template (0.0ms)
532
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
533
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
497
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
498
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 153)
499
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
534
500
  Processing by ExampleController#restricted as HTML
535
501
  Authenticating with gds_sso strategy
536
- Completed in 0ms (ActiveRecord: 0.0ms)
537
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:57 +0000
538
- Started GET "/auth/gds/callback?code=761ba4a299ad51ea8e79ea2f80d72c507c5806a3dee6237c1134e543db472a98&state=0b19863e49a7660e41acdf3ccb06bda32f3565cbc71577df" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
502
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
503
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
504
+ Started GET "/auth/gds/callback?code=Iz5nOitBLHp7KxR8Pt-fgrHlvrAi0-lpKoIx0ltMjYE&state=f1ca5624f3ee5b6971cc25a4b0497603453c3e7d74d6c8aa" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
539
505
  Processing by AuthenticationsController#callback as HTML
540
- Parameters: {"code"=>"761ba4a299ad51ea8e79ea2f80d72c507c5806a3dee6237c1134e543db472a98", "state"=>"0b19863e49a7660e41acdf3ccb06bda32f3565cbc71577df"}
506
+ Parameters: {"code"=>"Iz5nOitBLHp7KxR8Pt-fgrHlvrAi0-lpKoIx0ltMjYE", "state"=>"f1ca5624f3ee5b6971cc25a4b0497603453c3e7d74d6c8aa"}
541
507
  Authenticating with gds_sso strategy
542
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
543
-  (0.1ms) begin transaction
544
-  (0.1ms) commit transaction
545
-  (0.0ms) begin transaction
546
-  (0.1ms) commit transaction
508
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
547
509
  Redirected to http://www.example-client.com/restricted
548
- Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
549
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
510
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
511
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
550
512
  Processing by ExampleController#restricted as HTML
551
- 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
+ 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]]
552
514
  Rendering text template
553
- Rendered text template (0.0ms)
554
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
555
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
515
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
516
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
517
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
556
518
  Processing by ExampleController#restricted as HTML
557
519
  Authenticating with gds_sso strategy
558
- Completed in 0ms (ActiveRecord: 0.0ms)
559
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
560
- Started GET "/auth/gds/callback?code=d3730010dcd39bcda60bf0b40c9ba09485513cfae055dc991909e65b3114aaa0&state=8e07618c105f20a16502a24dc4b7b812c92b7bd37570f1e5" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
520
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
521
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
522
+ Started GET "/auth/gds/callback?code=B3BuYPBZEotkDsqg4MOOL2pJJ-pHdaMLDvyEM-BROY0&state=4d628a5028720601c07e110d8d6a7b14352fbb9c66116040" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
561
523
  Processing by AuthenticationsController#callback as HTML
562
- Parameters: {"code"=>"d3730010dcd39bcda60bf0b40c9ba09485513cfae055dc991909e65b3114aaa0", "state"=>"8e07618c105f20a16502a24dc4b7b812c92b7bd37570f1e5"}
524
+ Parameters: {"code"=>"B3BuYPBZEotkDsqg4MOOL2pJJ-pHdaMLDvyEM-BROY0", "state"=>"4d628a5028720601c07e110d8d6a7b14352fbb9c66116040"}
563
525
  Authenticating with gds_sso strategy
564
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
565
-  (0.1ms) begin transaction
566
-  (0.1ms) commit transaction
567
-  (0.1ms) begin transaction
568
-  (0.1ms) commit transaction
526
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
569
527
  Redirected to http://www.example-client.com/restricted
570
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
571
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
528
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
529
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
572
530
  Processing by ExampleController#restricted as HTML
573
- 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]]
531
+ 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]]
574
532
  Rendering text template
575
- Rendered text template (0.0ms)
576
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
577
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
533
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
534
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
535
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
578
536
  Processing by ExampleController#restricted as HTML
579
537
  Authenticating with gds_sso strategy
580
- Completed in 0ms (ActiveRecord: 0.0ms)
581
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
582
- Started GET "/auth/gds/callback?code=6e50a16cceabac45045094f24a4cf08b7a3ddfbf130144681e1ef26dec0b8b12&state=75f5d7023cbc6890898875d493f2d9c2961e7c762bf28b3b" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
538
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
539
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
540
+ Started GET "/auth/gds/callback?code=IYOPumcGKabbiiWC2Z3cjH-232JwXRSggWUT-vpO4og&state=2360f9dd34bd135a3b7492b01315de010f0727e160dcc8a3" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
583
541
  Processing by AuthenticationsController#callback as HTML
584
- Parameters: {"code"=>"6e50a16cceabac45045094f24a4cf08b7a3ddfbf130144681e1ef26dec0b8b12", "state"=>"75f5d7023cbc6890898875d493f2d9c2961e7c762bf28b3b"}
542
+ Parameters: {"code"=>"IYOPumcGKabbiiWC2Z3cjH-232JwXRSggWUT-vpO4og", "state"=>"2360f9dd34bd135a3b7492b01315de010f0727e160dcc8a3"}
585
543
  Authenticating with gds_sso strategy
586
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
587
-  (0.1ms) begin transaction
588
-  (0.0ms) commit transaction
589
-  (0.0ms) begin transaction
590
-  (0.0ms) commit transaction
544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
591
545
  Redirected to http://www.example-client.com/restricted
592
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
593
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
546
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
547
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
594
548
  Processing by ExampleController#restricted as HTML
595
- 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]]
549
+ 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]]
596
550
  Rendering text template
597
- Rendered text template (0.0ms)
598
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
599
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
600
-  (0.0ms) begin transaction
601
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
602
-  (5.7ms) commit transaction
603
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
551
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
552
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
553
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
604
554
  Processing by ExampleController#restricted as HTML
605
- 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]]
606
555
  Authenticating with gds_sso strategy
607
- Completed in 1ms (ActiveRecord: 0.1ms)
608
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
609
- Started GET "/auth/gds/callback?code=8893a521f415ed2d2f7ea78551e01ca7b57d992199582ce31bbc0eaa73c16b37&state=e4a3b135a1da78755d07dc4913fe45070cf96fe33083f966" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
556
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
557
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
558
+ Started GET "/auth/gds/callback?code=dd7WTMTQzRavla9oSAM-6SkNB-lDwx5tu1SqdDjAXM8&state=77b06153e8bf84ade2b87c114163891fcad8b6a2f352834c" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
610
559
  Processing by AuthenticationsController#callback as HTML
611
- Parameters: {"code"=>"8893a521f415ed2d2f7ea78551e01ca7b57d992199582ce31bbc0eaa73c16b37", "state"=>"e4a3b135a1da78755d07dc4913fe45070cf96fe33083f966"}
560
+ Parameters: {"code"=>"dd7WTMTQzRavla9oSAM-6SkNB-lDwx5tu1SqdDjAXM8", "state"=>"77b06153e8bf84ade2b87c114163891fcad8b6a2f352834c"}
612
561
  Authenticating with gds_sso strategy
613
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
614
-  (0.1ms) begin transaction
615
-  (0.1ms) commit transaction
616
-  (0.0ms) begin transaction
617
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
618
-  (5.6ms) commit transaction
562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
619
563
  Redirected to http://www.example-client.com/restricted
620
- Completed 302 Found in 10ms (ActiveRecord: 6.2ms)
621
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
564
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
565
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
622
566
  Processing by ExampleController#restricted as HTML
623
- 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]]
567
+ 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]]
624
568
  Rendering text template
625
- Rendered text template (0.0ms)
626
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
627
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
569
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
570
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
571
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:27:15 +0000
572
+ Processing by ExampleController#restricted as HTML
573
+ 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]]
574
+ Rendering text template
575
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
576
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 929)
577
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
628
578
  Processing by ExampleController#restricted as HTML
629
579
  Authenticating with gds_sso strategy
630
- Completed in 0ms (ActiveRecord: 0.0ms)
631
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
632
- Started GET "/auth/gds/callback?code=f2e8ceb458c0d48a53ef450758922020273685229a1dd704af443eaac8ca868a&state=4a3c78d4f13f3bfdeb34caa8e7a9cc34ff51e7250a1aa114" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
580
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
581
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
582
+ Started GET "/auth/gds/callback?code=spI9Ev208uJDeuW4Zi277xAIqcz9JwbtmccuQCHLJzo&state=b22e0d54c33ea0d6b61c087ce2303c0516f3b776b040b5bf" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
633
583
  Processing by AuthenticationsController#callback as HTML
634
- Parameters: {"code"=>"f2e8ceb458c0d48a53ef450758922020273685229a1dd704af443eaac8ca868a", "state"=>"4a3c78d4f13f3bfdeb34caa8e7a9cc34ff51e7250a1aa114"}
584
+ Parameters: {"code"=>"spI9Ev208uJDeuW4Zi277xAIqcz9JwbtmccuQCHLJzo", "state"=>"b22e0d54c33ea0d6b61c087ce2303c0516f3b776b040b5bf"}
635
585
  Authenticating with gds_sso strategy
636
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
637
-  (0.1ms) begin transaction
638
-  (0.1ms) commit transaction
639
-  (0.0ms) begin transaction
640
-  (0.1ms) commit transaction
586
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
641
587
  Redirected to http://www.example-client.com/restricted
642
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
643
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
588
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
589
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
644
590
  Processing by ExampleController#restricted as HTML
645
- 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]]
591
+ 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]]
646
592
  Rendering text template
647
- Rendered text template (0.0ms)
648
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
649
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:31:58 +0000
593
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
594
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
595
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
650
596
  Processing by ExampleController#restricted as HTML
651
- 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]]
652
- Rendering text template
653
- Rendered text template (0.0ms)
654
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
655
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
597
+ Authenticating with gds_sso strategy
598
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
599
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
600
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
656
601
  Processing by ExampleController#restricted as HTML
657
602
  Authenticating with gds_sso strategy
658
- Completed in 0ms (ActiveRecord: 0.0ms)
659
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:58 +0000
660
- Started GET "/auth/gds/callback?code=0c34b659cb41fca2cc7afd0e1152a681880300a1c0a9b4ced3aeb4c4c8c91d10&state=6055cd0ea4a4e1f6b5709a4b8e104a542f5eb986f54527cd" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
603
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
604
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
605
+ Started GET "/auth/gds/callback?code=aduZ12TILcORModTb0MetaQqNQiiFXWiBLJRts0d3PE&state=5af4bf65767d9f73af83e312a4172954d8477dc5cf857303" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
661
606
  Processing by AuthenticationsController#callback as HTML
662
- Parameters: {"code"=>"0c34b659cb41fca2cc7afd0e1152a681880300a1c0a9b4ced3aeb4c4c8c91d10", "state"=>"6055cd0ea4a4e1f6b5709a4b8e104a542f5eb986f54527cd"}
607
+ Parameters: {"code"=>"aduZ12TILcORModTb0MetaQqNQiiFXWiBLJRts0d3PE", "state"=>"5af4bf65767d9f73af83e312a4172954d8477dc5cf857303"}
663
608
  Authenticating with gds_sso strategy
664
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
665
-  (0.1ms) begin transaction
666
-  (0.0ms) commit transaction
667
-  (0.0ms) begin transaction
668
-  (0.0ms) commit transaction
609
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
669
610
  Redirected to http://www.example-client.com/restricted
670
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
671
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
611
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
612
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
672
613
  Processing by ExampleController#restricted as HTML
673
- 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]]
614
+ 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]]
674
615
  Rendering text template
675
- Rendered text template (0.0ms)
676
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
677
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
616
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
617
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
618
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
678
619
  Processing by ExampleController#restricted as HTML
679
620
  Authenticating with gds_sso strategy
680
- Completed in 1ms (ActiveRecord: 0.0ms)
681
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
682
- Started GET "/auth/gds/callback?code=3ce04ed5a5e9bd2ef870a951ce55476f4e9b2cc650f7f9ce93522a700438cdcd&state=15a787623a75992d694d65584705620f9565b074ed59b0bc" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
621
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
622
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
623
+ Started GET "/auth/gds/callback?code=id2I3rLT26blOGWhX8ggRaTmvTy7OJyMbq0VclyjTwk&state=8781f8cb3feeab97486186c1a99055f731c8680fec682d96" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
683
624
  Processing by AuthenticationsController#callback as HTML
684
- Parameters: {"code"=>"3ce04ed5a5e9bd2ef870a951ce55476f4e9b2cc650f7f9ce93522a700438cdcd", "state"=>"15a787623a75992d694d65584705620f9565b074ed59b0bc"}
625
+ Parameters: {"code"=>"id2I3rLT26blOGWhX8ggRaTmvTy7OJyMbq0VclyjTwk", "state"=>"8781f8cb3feeab97486186c1a99055f731c8680fec682d96"}
685
626
  Authenticating with gds_sso strategy
686
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
-  (0.1ms) begin transaction
688
-  (0.0ms) commit transaction
689
-  (0.0ms) begin transaction
690
-  (0.0ms) commit transaction
627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
691
628
  Redirected to http://www.example-client.com/restricted
692
- Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
693
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
629
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1217)
630
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:15 +0000
694
631
  Processing by ExampleController#restricted as HTML
695
- 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]]
632
+ 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]]
696
633
  Rendering text template
697
- Rendered text template (0.0ms)
698
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
699
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
634
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
635
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 931)
636
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
700
637
  Processing by ExampleController#restricted as HTML
701
638
  Authenticating with gds_sso strategy
702
- Completed in 0ms (ActiveRecord: 0.0ms)
703
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
704
- Started GET "/auth/gds/callback?code=a60f183429d93f0ff6b6093a6fe5076af39d01b0961bb8b88f816a68dde35b61&state=ab326e7608a6ab3763ae84c74ca0ef56b635ca845dae6d8a" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
639
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
640
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
641
+ Started GET "/auth/gds/callback?code=vZMnHNeh0h7WY_gr7_B9GlWZe_8_VknXbwf0s4CdbzE&state=858c414c6d884280aaf5235fcd05fdde077f4f7c433d15c3" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
705
642
  Processing by AuthenticationsController#callback as HTML
706
- Parameters: {"code"=>"a60f183429d93f0ff6b6093a6fe5076af39d01b0961bb8b88f816a68dde35b61", "state"=>"ab326e7608a6ab3763ae84c74ca0ef56b635ca845dae6d8a"}
643
+ Parameters: {"code"=>"vZMnHNeh0h7WY_gr7_B9GlWZe_8_VknXbwf0s4CdbzE", "state"=>"858c414c6d884280aaf5235fcd05fdde077f4f7c433d15c3"}
707
644
  Authenticating with gds_sso strategy
708
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
709
-  (0.1ms) begin transaction
710
-  (0.0ms) commit transaction
711
-  (0.1ms) begin transaction
712
-  (0.0ms) commit transaction
645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
713
646
  Redirected to http://www.example-client.com/restricted
714
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
715
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:36:59 +0000
647
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
648
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
716
649
  Processing by ExampleController#restricted as HTML
717
- 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]]
650
+ 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]]
718
651
  Rendering text template
719
- Rendered text template (0.0ms)
720
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
721
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
652
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
653
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
654
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
655
+  (0.0ms) begin transaction
656
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 1]]
657
+  (29.8ms) commit transaction
658
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
722
659
  Processing by ExampleController#restricted as HTML
660
+ 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
661
  Authenticating with gds_sso strategy
724
- Completed in 0ms (ActiveRecord: 0.0ms)
725
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:41:59 +0000
662
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 574)
663
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
664
+ Started GET "/auth/gds/callback?code=CGaosFGi5yWA3aiUhFbxGDPEDk2QPd5HWh0kp0D2ONU&state=58d7bcf424fb7b8b337d94a30e6c6444eb4b1856e4ae58d1" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
665
+ Processing by AuthenticationsController#callback as HTML
666
+ Parameters: {"code"=>"CGaosFGi5yWA3aiUhFbxGDPEDk2QPd5HWh0kp0D2ONU", "state"=>"58d7bcf424fb7b8b337d94a30e6c6444eb4b1856e4ae58d1"}
667
+ Authenticating with gds_sso strategy
668
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
726
669
   (0.1ms) begin transaction
727
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38035"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
728
-  (5.7ms) commit transaction
670
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 1]]
671
+  (6.8ms) commit transaction
672
+ Redirected to http://www.example-client.com/restricted
673
+ Completed 302 Found in 10ms (ActiveRecord: 7.2ms | Allocations: 1225)
674
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:15 +0000
675
+ Processing by ExampleController#restricted as HTML
676
+ 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]]
677
+ Rendering text template
678
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
679
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 704)
680
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
729
681
   (0.0ms) begin transaction
730
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33022"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
731
-  (4.6ms) commit transaction
732
- Processing by Api::UserController#update as HTML
733
- Parameters: {"uid"=>"a1s2d38035"}
734
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
682
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "5139"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
683
+  (6.8ms) commit transaction
684
+  (0.0ms) begin transaction
685
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 2]]
686
+  (5.6ms) commit transaction
687
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
688
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
689
+  (0.0ms) begin transaction
690
+ 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]]
691
+  (5.5ms) commit transaction
692
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
693
+  (0.0ms) begin transaction
694
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32094"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
695
+  (4.3ms) commit transaction
696
+  (0.0ms) begin transaction
697
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33499"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
698
+  (6.1ms) commit transaction
699
+ Processing by Api::UserController#reauth as HTML
700
+ Parameters: {"uid"=>"nonexistent-user"}
701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
702
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 568)
703
+  (0.0ms) begin transaction
704
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35500"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
705
+  (5.1ms) commit transaction
706
+  (0.0ms) begin transaction
707
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37603"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
708
+  (5.2ms) commit transaction
709
+ Processing by Api::UserController#reauth as HTML
710
+ Parameters: {"uid"=>"a1s2d35500"}
711
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
735
712
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
736
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
713
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 263)
737
714
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
738
- Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
715
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms | Allocations: 1558)
739
716
   (0.0ms) begin transaction
740
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37622"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
741
-  (5.0ms) commit transaction
717
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32945"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
718
+  (4.3ms) commit transaction
719
+  (0.0ms) begin transaction
720
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33405"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
721
+  (5.6ms) commit transaction
722
+ Processing by Api::UserController#reauth as HTML
723
+ Parameters: {"uid"=>"a1s2d32945"}
724
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32945"], ["LIMIT", 1]]
742
725
   (0.0ms) begin transaction
743
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31596"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
744
-  (3.5ms) commit transaction
726
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 8]]
727
+  (6.1ms) commit transaction
728
+ Completed 200 OK in 8ms (ActiveRecord: 6.3ms | Allocations: 919)
729
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
730
+  (0.0ms) begin transaction
731
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31748"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
732
+  (6.0ms) commit transaction
733
+  (0.0ms) begin transaction
734
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3272"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
735
+  (5.9ms) commit transaction
745
736
  Processing by Api::UserController#update as HTML
746
- Parameters: {"uid"=>"a1s2d37622"}
747
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37622"], ["LIMIT", 1]]
748
-  (0.1ms) begin transaction
749
- 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", 6]]
737
+ Parameters: {"uid"=>"a1s2d31748"}
738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31748"], ["LIMIT", 1]]
739
+  (0.0ms) begin transaction
740
+ 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", 10]]
741
+  (6.1ms) commit transaction
742
+ Completed 200 OK in 8ms (ActiveRecord: 6.4ms | Allocations: 1277)
743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
744
+  (0.0ms) begin transaction
745
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33137"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
746
+  (6.8ms) commit transaction
747
+  (0.0ms) begin transaction
748
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39425"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
749
+  (6.3ms) commit transaction
750
+ Processing by Api::UserController#update as HTML
751
+ Parameters: {"uid"=>"a1s2d33137"}
752
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
753
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
754
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 56)
755
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
756
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 514)
757
+  (0.1ms) DROP TABLE IF EXISTS "users"
758
+  (1.3ms) SELECT sqlite_version(*)
759
+  (6.9ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
760
+  (4.3ms) 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-11-12 10:32:23.038166"], ["updated_at", "2020-11-12 10:32:23.038166"]]
764
+  (4.3ms) commit transaction
765
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
766
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
767
+  (0.0ms) begin transaction
768
+  (0.0ms) commit transaction
769
+  (0.0ms) begin transaction
770
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34385"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
771
+  (6.9ms) commit transaction
772
+  (0.0ms) begin transaction
773
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35382"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
774
+  (5.1ms) commit transaction
775
+ Processing by Api::UserController#reauth as HTML
776
+ Parameters: {"uid"=>"a1s2d34385"}
777
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34385"], ["LIMIT", 1]]
778
+  (0.0ms) begin transaction
779
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
750
780
   (4.1ms) commit transaction
751
- Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
752
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
753
-  (0.1ms) begin transaction
754
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3221"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
755
-  (3.7ms) commit transaction
781
+ Completed 200 OK in 6ms (ActiveRecord: 4.4ms)
782
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
756
783
   (0.0ms) begin transaction
757
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31690"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
758
-  (4.8ms) commit transaction
784
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37357"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
785
+  (4.0ms) commit transaction
786
+  (0.0ms) begin transaction
787
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39073"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
788
+  (4.3ms) commit transaction
759
789
  Processing by Api::UserController#reauth as HTML
760
790
  Parameters: {"uid"=>"nonexistent-user"}
761
791
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
762
792
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
763
-  (0.1ms) begin transaction
764
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35266"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
765
-  (4.9ms) commit transaction
766
793
   (0.0ms) begin transaction
767
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36395"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
768
-  (3.2ms) commit transaction
769
- Processing by Api::UserController#reauth as HTML
770
- Parameters: {"uid"=>"a1s2d35266"}
771
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35266"], ["LIMIT", 1]]
772
-  (0.0ms) begin transaction
773
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
774
-  (4.1ms) commit transaction
775
- Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
776
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
777
-  (0.0ms) begin transaction
778
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35714"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
794
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36191"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
779
795
   (4.7ms) commit transaction
780
796
   (0.0ms) begin transaction
781
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35711"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
782
-  (4.1ms) commit transaction
797
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35141"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
798
+  (4.0ms) commit transaction
783
799
  Processing by Api::UserController#reauth as HTML
784
- Parameters: {"uid"=>"a1s2d35714"}
785
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
800
+ Parameters: {"uid"=>"a1s2d36191"}
801
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
786
802
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
787
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
803
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
788
804
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
789
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
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
-  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
-  (0.1ms) select sqlite_version(*)
793
-  (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
795
-  (0.1ms) begin transaction
796
- SQL (0.3ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "5322"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
797
-  (6.1ms) commit transaction
798
-  (0.1ms) begin transaction
799
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
800
-  (4.9ms) commit transaction
801
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
802
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
803
-  (0.1ms) begin transaction
804
- SQL (0.7ms) 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]]
805
-  (5.6ms) commit transaction
806
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
807
-  (0.0ms) begin transaction
808
-  (0.1ms) commit transaction
809
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
810
- Processing by ExampleController#this_requires_signin_permission as JSON
811
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
812
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
813
-  (0.1ms) begin transaction
814
- SQL (0.3ms) 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]]
815
-  (6.0ms) commit transaction
816
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
817
-  (0.0ms) begin transaction
818
-  (0.1ms) commit transaction
819
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
-  (0.1ms) begin transaction
821
-  (0.1ms) commit transaction
822
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
823
-  (0.1ms) begin transaction
824
-  (0.1ms) commit transaction
825
-  (0.1ms) begin transaction
826
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
827
-  (5.9ms) commit transaction
828
- Rendered text template (0.0ms)
829
- Completed 200 OK in 113ms (Views: 12.6ms | ActiveRecord: 13.4ms)
830
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
831
- Processing by ExampleController#restricted as JSON
832
- Completed in 13ms (ActiveRecord: 0.0ms)
833
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
834
- Processing by ExampleController#restricted as JSON
835
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
836
-  (0.1ms) begin transaction
837
-  (0.1ms) commit transaction
838
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
839
-  (0.0ms) begin transaction
840
-  (0.1ms) commit transaction
841
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
842
-  (0.1ms) begin transaction
843
-  (0.1ms) commit transaction
844
- CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
845
-  (0.1ms) begin transaction
846
-  (0.0ms) commit transaction
847
-  (0.0ms) begin transaction
848
-  (0.1ms) commit transaction
849
- Rendered text template (0.0ms)
850
- Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 0.8ms)
851
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
852
- Processing by ExampleController#restricted as JSON
853
- Completed in 18ms (ActiveRecord: 0.0ms)
854
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
855
- Processing by ExampleController#restricted as HTML
856
- Authenticating with gds_sso strategy
857
- Completed in 0ms (ActiveRecord: 0.0ms)
858
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
859
- Processing by ExampleController#restricted as HTML
860
- Authenticating with gds_sso strategy
861
- Completed in 0ms (ActiveRecord: 0.0ms)
862
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
863
- Started GET "/auth/gds/callback?code=65f0532d51b84821696b65646d3488c2b65db8be6d7a56090a5acc58996c0d6a&state=542207dc7276283bc1eff1b9ea6a354be2fccfd4856166ab" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
864
- Processing by AuthenticationsController#callback as HTML
865
- Parameters: {"code"=>"65f0532d51b84821696b65646d3488c2b65db8be6d7a56090a5acc58996c0d6a", "state"=>"542207dc7276283bc1eff1b9ea6a354be2fccfd4856166ab"}
866
- Authenticating with gds_sso strategy
867
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
868
-  (0.1ms) begin transaction
869
- SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
870
-  (5.9ms) commit transaction
871
-  (0.1ms) begin transaction
872
-  (0.1ms) commit transaction
873
- Redirected to http://www.example-client.com/restricted
874
- Completed 302 Found in 11ms (ActiveRecord: 6.6ms)
875
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
876
- Processing by ExampleController#restricted as HTML
877
- 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"]]
878
- Rendered text template (0.0ms)
879
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
880
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
881
- Processing by ExampleController#restricted as HTML
882
- Authenticating with gds_sso strategy
883
- Completed in 0ms (ActiveRecord: 0.0ms)
884
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
885
- Started GET "/auth/gds/callback?code=47970ddb0e24fe2b0a216f0ef7d8585257bfba4dc8a88713af3cb010a14d24dd&state=875701d7f824e509016238c4e374d89fa633e28ba8a1bda5" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
886
- Processing by AuthenticationsController#callback as HTML
887
- Parameters: {"code"=>"47970ddb0e24fe2b0a216f0ef7d8585257bfba4dc8a88713af3cb010a14d24dd", "state"=>"875701d7f824e509016238c4e374d89fa633e28ba8a1bda5"}
888
- Authenticating with gds_sso strategy
889
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
890
-  (0.1ms) begin transaction
891
-  (0.1ms) commit transaction
892
-  (0.1ms) begin transaction
893
-  (0.1ms) commit transaction
894
- Redirected to http://www.example-client.com/restricted
895
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
896
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
897
- Processing by ExampleController#restricted as HTML
898
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
899
- Rendered text template (0.0ms)
900
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
901
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
902
- Processing by ExampleController#this_requires_signin_permission as HTML
903
- Authenticating with gds_sso strategy
904
- Completed in 0ms (ActiveRecord: 0.0ms)
905
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:07 +0000
906
- Started GET "/auth/gds/callback?code=26847ed8dbe9621e9a46675fd9bbc4b18fbe56221a332926f27cc9afb14fdd39&state=c395c444a6019e0f8f7406be93f4f957dbfe0c443f93f8fc" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
907
- Processing by AuthenticationsController#callback as HTML
908
- Parameters: {"code"=>"26847ed8dbe9621e9a46675fd9bbc4b18fbe56221a332926f27cc9afb14fdd39", "state"=>"c395c444a6019e0f8f7406be93f4f957dbfe0c443f93f8fc"}
909
- Authenticating with gds_sso strategy
910
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
911
-  (0.1ms) begin transaction
912
-  (0.0ms) commit transaction
913
-  (0.1ms) begin transaction
914
-  (0.1ms) commit transaction
915
- Redirected to http://www.example-client.com/this_requires_signin_permission
916
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
917
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
918
- Processing by ExampleController#this_requires_signin_permission as HTML
919
- 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"]]
920
- Rendered text template (0.0ms)
921
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
922
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
923
- Processing by ExampleController#this_requires_signin_permission as HTML
924
- Authenticating with gds_sso strategy
925
- Completed in 0ms (ActiveRecord: 0.0ms)
926
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
927
- Started GET "/auth/gds/callback?code=0c38c6a2b81cf239e53e051d8445d4904faa7c6e7f7094a8ab1a122046f4e04e&state=878a64c2b1a2569a27d5d597bcfcf2af9d9b950541d07fa8" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
928
- Processing by AuthenticationsController#callback as HTML
929
- Parameters: {"code"=>"0c38c6a2b81cf239e53e051d8445d4904faa7c6e7f7094a8ab1a122046f4e04e", "state"=>"878a64c2b1a2569a27d5d597bcfcf2af9d9b950541d07fa8"}
930
- Authenticating with gds_sso strategy
931
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
932
-  (0.1ms) begin transaction
933
-  (0.1ms) commit transaction
934
-  (0.1ms) begin transaction
935
-  (0.1ms) commit transaction
936
- Redirected to http://www.example-client.com/this_requires_signin_permission
937
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
938
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
939
- Processing by ExampleController#this_requires_signin_permission as HTML
940
- 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"]]
941
- Rendered text template (0.0ms)
942
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
943
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
944
- Processing by ExampleController#index as HTML
945
- Rendered text template (0.0ms)
946
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
947
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
948
- Processing by ExampleController#restricted as HTML
949
- Authenticating with gds_sso strategy
950
- Completed in 0ms (ActiveRecord: 0.0ms)
951
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
952
- Started GET "/auth/gds/callback?code=70f890c37306f6a5847e7fc45efd74c818ac579937c406189bf2725e0976ba7e&state=3810aa6604f0446ea31f28ed3ae675050cf45142413ced60" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
953
- Processing by AuthenticationsController#callback as HTML
954
- Parameters: {"code"=>"70f890c37306f6a5847e7fc45efd74c818ac579937c406189bf2725e0976ba7e", "state"=>"3810aa6604f0446ea31f28ed3ae675050cf45142413ced60"}
955
- Authenticating with gds_sso strategy
956
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
957
-  (0.1ms) begin transaction
958
-  (0.1ms) commit transaction
959
-  (0.0ms) begin transaction
960
-  (0.0ms) commit transaction
961
- Redirected to http://www.example-client.com/restricted
962
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
963
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
964
- Processing by ExampleController#restricted as HTML
965
- 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"]]
966
- Rendered text template (0.0ms)
967
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
968
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
969
- Processing by ExampleController#restricted as HTML
970
- Authenticating with gds_sso strategy
971
- Completed in 0ms (ActiveRecord: 0.0ms)
972
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
973
- Started GET "/auth/gds/callback?code=8363cb484649d75ddc86f9176a100ece790303ee103be7b0ff73988c29d8bbd7&state=20782fda4f3d4c602ef93c9ee09841f445d62fbdaefad370" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
974
- Processing by AuthenticationsController#callback as HTML
975
- Parameters: {"code"=>"8363cb484649d75ddc86f9176a100ece790303ee103be7b0ff73988c29d8bbd7", "state"=>"20782fda4f3d4c602ef93c9ee09841f445d62fbdaefad370"}
976
- Authenticating with gds_sso strategy
977
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
978
-  (0.1ms) begin transaction
979
-  (0.1ms) commit transaction
980
-  (0.1ms) begin transaction
981
-  (0.1ms) commit transaction
982
- Redirected to http://www.example-client.com/restricted
983
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
984
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
985
- Processing by ExampleController#restricted as HTML
986
- 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"]]
987
- Rendered text template (0.0ms)
988
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
989
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:32:08 +0000
990
- Processing by ExampleController#restricted as HTML
991
- 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"]]
992
- Rendered text template (0.0ms)
993
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
994
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
995
- Processing by ExampleController#restricted as HTML
996
- Authenticating with gds_sso strategy
997
- Completed in 0ms (ActiveRecord: 0.0ms)
998
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
999
- Started GET "/auth/gds/callback?code=754071cdf58d47b324fe03ccc52d23a31c4ff6ebae4048d48ba9c4d77652ebe6&state=77285998fb01c1418d985d3781fdfb01bf8eac9c657b1215" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1000
- Processing by AuthenticationsController#callback as HTML
1001
- Parameters: {"code"=>"754071cdf58d47b324fe03ccc52d23a31c4ff6ebae4048d48ba9c4d77652ebe6", "state"=>"77285998fb01c1418d985d3781fdfb01bf8eac9c657b1215"}
1002
- Authenticating with gds_sso strategy
1003
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1004
-  (0.1ms) begin transaction
1005
-  (0.0ms) commit transaction
1006
-  (0.0ms) begin transaction
1007
-  (0.0ms) commit transaction
1008
- Redirected to http://www.example-client.com/restricted
1009
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1010
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1011
- Processing by ExampleController#restricted as HTML
1012
- 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"]]
1013
- Rendered text template (0.0ms)
1014
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1015
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:08 +0000
1016
- Processing by ExampleController#restricted as HTML
1017
- Authenticating with gds_sso strategy
1018
- Completed in 0ms (ActiveRecord: 0.0ms)
1019
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:08 +0000
1020
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1021
- Processing by ExampleController#restricted as HTML
1022
- Authenticating with gds_sso strategy
1023
- Completed in 0ms (ActiveRecord: 0.0ms)
1024
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1025
- Started GET "/auth/gds/callback?code=791d52d3c37c24bd5cc03d4695b7fd0a52277c378c2542af00dffeaeeba9b28f&state=32208253b8e8dbcc2b0397cf8b0adf8dadf08fdf85e07201" for 127.0.0.1 at 2019-11-05 10:37:08 +0000
1026
- Processing by AuthenticationsController#callback as HTML
1027
- Parameters: {"code"=>"791d52d3c37c24bd5cc03d4695b7fd0a52277c378c2542af00dffeaeeba9b28f", "state"=>"32208253b8e8dbcc2b0397cf8b0adf8dadf08fdf85e07201"}
1028
- Authenticating with gds_sso strategy
1029
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1030
-  (0.1ms) begin transaction
1031
-  (0.0ms) commit transaction
1032
-  (0.1ms) begin transaction
1033
-  (0.0ms) commit transaction
1034
- Redirected to http://www.example-client.com/restricted
1035
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1036
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1037
- Processing by ExampleController#restricted as HTML
1038
- 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"]]
1039
- Rendered text template (0.0ms)
1040
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1041
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1042
- Processing by ExampleController#restricted as HTML
1043
- Authenticating with gds_sso strategy
1044
- Completed in 0ms (ActiveRecord: 0.0ms)
1045
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1046
- Started GET "/auth/gds/callback?code=d276d5d03cc7ba7a594ee4ee7044b4efe034434d589aa54c835d8301a312e3f0&state=8b0ee869793cea797d0a4f1d57c32371aee69282bfc7a061" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1047
- Processing by AuthenticationsController#callback as HTML
1048
- Parameters: {"code"=>"d276d5d03cc7ba7a594ee4ee7044b4efe034434d589aa54c835d8301a312e3f0", "state"=>"8b0ee869793cea797d0a4f1d57c32371aee69282bfc7a061"}
1049
- Authenticating with gds_sso strategy
1050
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1051
-  (0.1ms) begin transaction
1052
-  (0.1ms) commit transaction
1053
-  (0.1ms) begin transaction
1054
-  (0.1ms) commit transaction
1055
- Redirected to http://www.example-client.com/restricted
1056
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1057
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:09 +0000
1058
- Processing by ExampleController#restricted as HTML
1059
- 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"]]
1060
- Rendered text template (0.0ms)
1061
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1062
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1063
- Processing by ExampleController#restricted as HTML
1064
- Authenticating with gds_sso strategy
1065
- Completed in 0ms (ActiveRecord: 0.0ms)
1066
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1067
- Started GET "/auth/gds/callback?code=1b3fd05a055e9c704be76891b72bf1ac9bf62c8a8483d8c6349a1087618af5e6&state=484476ed341b3343fa78a4aeef1091a32aa34782fefd867c" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1068
- Processing by AuthenticationsController#callback as HTML
1069
- Parameters: {"code"=>"1b3fd05a055e9c704be76891b72bf1ac9bf62c8a8483d8c6349a1087618af5e6", "state"=>"484476ed341b3343fa78a4aeef1091a32aa34782fefd867c"}
1070
- Authenticating with gds_sso strategy
1071
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1072
-  (0.1ms) begin transaction
1073
-  (0.0ms) commit transaction
1074
-  (0.0ms) begin transaction
1075
-  (0.0ms) commit transaction
1076
- Redirected to http://www.example-client.com/restricted
1077
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1078
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1079
- Processing by ExampleController#restricted as HTML
1080
- 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"]]
1081
- Rendered text template (0.0ms)
1082
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1083
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1084
-  (0.0ms) begin transaction
1085
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1086
-  (5.7ms) commit transaction
1087
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1088
- Processing by ExampleController#restricted as HTML
1089
- 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"]]
1090
- Authenticating with gds_sso strategy
1091
- Completed in 1ms (ActiveRecord: 0.1ms)
1092
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1093
- Started GET "/auth/gds/callback?code=774988f3c64378d72974ef2cf91381de0f7128f10c1da845bb742da0778d9500&state=48999f245a06b1b4c4841b7aeaf4a55471f5a3195e74eff8" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1094
- Processing by AuthenticationsController#callback as HTML
1095
- Parameters: {"code"=>"774988f3c64378d72974ef2cf91381de0f7128f10c1da845bb742da0778d9500", "state"=>"48999f245a06b1b4c4841b7aeaf4a55471f5a3195e74eff8"}
1096
- Authenticating with gds_sso strategy
1097
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1098
-  (0.1ms) begin transaction
1099
-  (0.0ms) commit transaction
1100
-  (0.0ms) begin transaction
1101
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
1102
-  (4.7ms) commit transaction
1103
- Redirected to http://www.example-client.com/restricted
1104
- Completed 302 Found in 9ms (ActiveRecord: 5.2ms)
1105
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:09 +0000
1106
- Processing by ExampleController#restricted as HTML
1107
- 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"]]
1108
- Rendered text template (0.0ms)
1109
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1110
-  (0.0ms) begin transaction
1111
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33715"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1112
-  (4.0ms) commit transaction
1113
-  (0.3ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31363"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1115
-  (4.7ms) commit transaction
805
+ Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
806
+  (0.0ms) begin transaction
807
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37279"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
808
+  (3.8ms) commit transaction
809
+  (0.0ms) begin transaction
810
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37520"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
811
+  (5.0ms) commit transaction
1116
812
  Processing by Api::UserController#update as HTML
1117
- Parameters: {"uid"=>"a1s2d33715"}
813
+ Parameters: {"uid"=>"a1s2d37279"}
814
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1118
815
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1119
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
816
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1120
817
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1121
- Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
1122
-  (0.0ms) begin transaction
1123
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3115"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1124
-  (4.7ms) commit transaction
1125
-  (0.0ms) begin transaction
1126
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38221"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1127
-  (3.4ms) commit transaction
818
+ Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
819
+  (0.0ms) begin transaction
820
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31155"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
821
+  (5.1ms) commit transaction
822
+  (0.0ms) begin transaction
823
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36817"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
824
+  (4.9ms) commit transaction
1128
825
  Processing by Api::UserController#update as HTML
1129
- Parameters: {"uid"=>"a1s2d3115"}
1130
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3115"]]
1131
-  (0.0ms) begin transaction
1132
- 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", 6]]
1133
-  (3.7ms) commit transaction
1134
- Completed 200 OK in 7ms (ActiveRecord: 4.1ms)
1135
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1136
-  (0.0ms) begin transaction
1137
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34531"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1138
-  (3.8ms) commit transaction
1139
-  (0.0ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31528"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1141
-  (5.4ms) commit transaction
1142
- Processing by Api::UserController#reauth as HTML
1143
- Parameters: {"uid"=>"nonexistent-user"}
1144
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1145
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1146
-  (0.0ms) begin transaction
1147
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3743"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1148
-  (3.7ms) commit transaction
1149
-  (0.0ms) begin transaction
1150
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37037"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1151
-  (3.5ms) commit transaction
1152
- Processing by Api::UserController#reauth as HTML
1153
- Parameters: {"uid"=>"a1s2d3743"}
1154
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3743"]]
1155
-  (0.1ms) begin transaction
1156
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1157
-  (3.2ms) commit transaction
1158
- Completed 200 OK in 5ms (ActiveRecord: 3.5ms)
1159
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
1160
-  (0.0ms) begin transaction
1161
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3892"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1162
-  (4.9ms) commit transaction
1163
-  (0.0ms) begin transaction
1164
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35421"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1165
-  (3.9ms) commit transaction
1166
- Processing by Api::UserController#reauth as HTML
1167
- Parameters: {"uid"=>"a1s2d3892"}
1168
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1169
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1170
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1171
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1172
-  (0.2ms) DROP TABLE IF EXISTS "users"
1173
-  (1.7ms) SELECT sqlite_version(*)
1174
-  (3.9ms) 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.0ms) 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]]
1177
-  (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-11-05 10:37:16.110864"], ["updated_at", "2019-11-05 10:37:16.110864"]]
1179
-  (4.2ms) commit transaction
1180
-  (4.6ms) 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]]
1182
-  (0.1ms) begin transaction
1183
-  (0.1ms) commit transaction
1184
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1185
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1186
-  (0.1ms) begin transaction
1187
- 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]]
1188
-  (3.8ms) commit transaction
1189
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
826
+ Parameters: {"uid"=>"a1s2d31155"}
827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31155"], ["LIMIT", 1]]
1190
828
   (0.0ms) begin transaction
1191
-  (0.1ms) commit transaction
1192
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
829
+ 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", 9]]
830
+  (4.0ms) commit transaction
831
+ Completed 200 OK in 8ms (ActiveRecord: 4.3ms)
832
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
833
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
1193
834
  Processing by ExampleController#restricted as HTML
1194
835
  Authenticating with gds_sso strategy
1195
- Completed in 5ms (ActiveRecord: 0.0ms)
1196
- Started GET "/" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
836
+ Completed in 4ms (ActiveRecord: 0.0ms)
837
+ Started GET "/" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
1197
838
  Processing by ExampleController#index as HTML
1198
839
  Rendering text template
1199
840
  Rendered text template (0.0ms)
1200
- Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
1201
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1202
- Processing by ExampleController#restricted as HTML
841
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
842
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
843
+ Processing by ExampleController#this_requires_signin_permission as HTML
1203
844
  Authenticating with gds_sso strategy
1204
- Completed in 0ms (ActiveRecord: 0.0ms)
1205
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1206
- Started GET "/auth/gds/callback?code=b2e081a01c55852ec968628695b40215d03080d7531026c03f97d2ac5c871013&state=249ab4ad21fe2e9024498cdd741f8717458f8aa3f3deaa0a" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
845
+ Completed in 1ms (ActiveRecord: 0.0ms)
846
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
847
+ Started GET "/auth/gds/callback?code=vsDYtNrVz6L7Dk2wOuJ2V8or5TemNAXgRzHFfX-NhJg&state=3ea4ee278bb9b78e8ff3baa870cb81b3b21070d3e3a3c6ca" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
1207
848
  Processing by AuthenticationsController#callback as HTML
1208
- Parameters: {"code"=>"b2e081a01c55852ec968628695b40215d03080d7531026c03f97d2ac5c871013", "state"=>"249ab4ad21fe2e9024498cdd741f8717458f8aa3f3deaa0a"}
849
+ Parameters: {"code"=>"vsDYtNrVz6L7Dk2wOuJ2V8or5TemNAXgRzHFfX-NhJg", "state"=>"3ea4ee278bb9b78e8ff3baa870cb81b3b21070d3e3a3c6ca"}
1209
850
  Authenticating with gds_sso strategy
1210
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
851
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1211
852
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1212
-  (0.1ms) begin transaction
1213
- 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"]]
1214
-  (3.9ms) commit transaction
1215
853
   (0.0ms) begin transaction
1216
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1217
-  (4.1ms) commit transaction
1218
- Redirected to http://www.example-client.com/restricted
1219
- Completed 302 Found in 13ms (ActiveRecord: 8.9ms)
1220
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1221
- Processing by ExampleController#restricted as HTML
1222
- 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]]
854
+ 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"]]
855
+  (5.8ms) commit transaction
856
+  (0.0ms) begin transaction
857
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
858
+  (5.6ms) commit transaction
859
+ Redirected to http://www.example-client.com/this_requires_signin_permission
860
+ Completed 302 Found in 15ms (ActiveRecord: 11.9ms)
861
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
862
+ Processing by ExampleController#this_requires_signin_permission as HTML
863
+ 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]]
1223
864
  Rendering text template
1224
865
  Rendered text template (0.0ms)
1225
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1226
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1227
- Processing by ExampleController#restricted as HTML
866
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
867
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
868
+ Processing by ExampleController#this_requires_signin_permission as HTML
1228
869
  Authenticating with gds_sso strategy
1229
870
  Completed in 0ms (ActiveRecord: 0.0ms)
1230
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:16 +0000
1231
- Started GET "/auth/gds/callback?code=7df0dd3451444a31de346f5b20a14c71527ed8b036a039e0cac40beec027eca4&state=291ed638f67556685ff7799b4fa5fa0f6d521bf97f0ac862" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
871
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:23 +0000
872
+ Started GET "/auth/gds/callback?code=RBYSuhhS4HPLqf-kT0PovtbdLC_gXiMUHEds4dAkaQE&state=9509aaee3922e09520d769548b00de21a738b3a1361d9e8e" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1232
873
  Processing by AuthenticationsController#callback as HTML
1233
- Parameters: {"code"=>"7df0dd3451444a31de346f5b20a14c71527ed8b036a039e0cac40beec027eca4", "state"=>"291ed638f67556685ff7799b4fa5fa0f6d521bf97f0ac862"}
874
+ Parameters: {"code"=>"RBYSuhhS4HPLqf-kT0PovtbdLC_gXiMUHEds4dAkaQE", "state"=>"9509aaee3922e09520d769548b00de21a738b3a1361d9e8e"}
1234
875
  Authenticating with gds_sso strategy
1235
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1236
-  (0.1ms) begin transaction
1237
-  (0.1ms) commit transaction
876
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1238
877
   (0.0ms) begin transaction
1239
-  (0.1ms) commit transaction
1240
- Redirected to http://www.example-client.com/restricted
1241
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1242
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1243
- Processing by ExampleController#restricted as HTML
878
+  (0.0ms) commit transaction
879
+  (0.0ms) begin transaction
880
+  (0.0ms) commit transaction
881
+ Redirected to http://www.example-client.com/this_requires_signin_permission
882
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
883
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
884
+ Processing by ExampleController#this_requires_signin_permission as HTML
1244
885
  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]]
1245
886
  Rendering text template
1246
887
  Rendered text template (0.0ms)
1247
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1248
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
888
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
889
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1249
890
  Processing by ExampleController#restricted as HTML
1250
891
  Authenticating with gds_sso strategy
1251
892
  Completed in 0ms (ActiveRecord: 0.0ms)
1252
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1253
- Started GET "/auth/gds/callback?code=4de88ba0ebc5c15a6099eabf2a2fafabcd21b5f5e7d75ae37ec2cd2d9b78eac0&state=51f49ecc9afa91d10d125c173901b82c833fabe9502c8bb7" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
893
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
894
+ Started GET "/auth/gds/callback?code=Z-oYt68TZXJUgbIgy4aYMz3p0F9sFUK8VISPy0LXQS8&state=5292592a4e17439fa1d8a910d162431664624bdfc3ae92ec" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1254
895
  Processing by AuthenticationsController#callback as HTML
1255
- Parameters: {"code"=>"4de88ba0ebc5c15a6099eabf2a2fafabcd21b5f5e7d75ae37ec2cd2d9b78eac0", "state"=>"51f49ecc9afa91d10d125c173901b82c833fabe9502c8bb7"}
896
+ Parameters: {"code"=>"Z-oYt68TZXJUgbIgy4aYMz3p0F9sFUK8VISPy0LXQS8", "state"=>"5292592a4e17439fa1d8a910d162431664624bdfc3ae92ec"}
1256
897
  Authenticating with gds_sso strategy
1257
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1258
-  (0.1ms) begin transaction
898
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
899
+  (0.0ms) begin transaction
1259
900
   (0.0ms) commit transaction
1260
901
   (0.0ms) begin transaction
1261
902
   (0.0ms) commit transaction
1262
903
  Redirected to http://www.example-client.com/restricted
1263
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1264
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
904
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
905
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1265
906
  Processing by ExampleController#restricted as HTML
1266
907
  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]]
1267
908
  Rendering text template
1268
909
  Rendered text template (0.0ms)
1269
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1270
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1271
- Processing by ExampleController#this_requires_signin_permission as HTML
910
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
911
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
912
+ Processing by ExampleController#restricted as HTML
1272
913
  Authenticating with gds_sso strategy
1273
914
  Completed in 0ms (ActiveRecord: 0.0ms)
1274
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1275
- Started GET "/auth/gds/callback?code=20f4fe844a3dc8b6dcdb1e7eb96c9e91cbd7c897cf3360d3232733b83ee63934&state=eb5558636d7cb4b0d399be8c0b48d6fd186e01667f9f1170" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
915
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
916
+ Started GET "/auth/gds/callback?code=JKV0OsC0VDTm9QzgXo6tXGEiLgeFECohYNttnSsUJZc&state=b1269b97cea5536cf9e50386390eb7fe07453d7175055575" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1276
917
  Processing by AuthenticationsController#callback as HTML
1277
- Parameters: {"code"=>"20f4fe844a3dc8b6dcdb1e7eb96c9e91cbd7c897cf3360d3232733b83ee63934", "state"=>"eb5558636d7cb4b0d399be8c0b48d6fd186e01667f9f1170"}
918
+ Parameters: {"code"=>"JKV0OsC0VDTm9QzgXo6tXGEiLgeFECohYNttnSsUJZc", "state"=>"b1269b97cea5536cf9e50386390eb7fe07453d7175055575"}
1278
919
  Authenticating with gds_sso strategy
1279
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1280
-  (0.1ms) begin transaction
920
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
921
+  (0.0ms) begin transaction
1281
922
   (0.0ms) commit transaction
1282
923
   (0.0ms) begin transaction
1283
924
   (0.0ms) commit transaction
1284
- Redirected to http://www.example-client.com/this_requires_signin_permission
1285
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1286
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1287
- Processing by ExampleController#this_requires_signin_permission as HTML
925
+ Redirected to http://www.example-client.com/restricted
926
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
927
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
928
+ Processing by ExampleController#restricted as HTML
1288
929
  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]]
1289
930
  Rendering text template
1290
931
  Rendered text template (0.0ms)
1291
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1292
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1293
- Processing by ExampleController#this_requires_signin_permission as HTML
932
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
933
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
934
+ Processing by ExampleController#restricted as HTML
1294
935
  Authenticating with gds_sso strategy
1295
936
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1297
- Started GET "/auth/gds/callback?code=0ae763a239c7b43caf93cfaee132480e286f5dc230ae5bb32e03c66dfe41b683&state=0b60eb44ef52a74ac1ebb901c641ca79cb6a8feddccd58bd" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
937
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
938
+ Started GET "/auth/gds/callback?code=4YTiPi6hivSO93YsQAZg03-yfSSX3jg3lV55Li4ze6c&state=f9a16063f78c6f23cf504db02df810cdcb341540eee74128" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1298
939
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"0ae763a239c7b43caf93cfaee132480e286f5dc230ae5bb32e03c66dfe41b683", "state"=>"0b60eb44ef52a74ac1ebb901c641ca79cb6a8feddccd58bd"}
940
+ Parameters: {"code"=>"4YTiPi6hivSO93YsQAZg03-yfSSX3jg3lV55Li4ze6c", "state"=>"f9a16063f78c6f23cf504db02df810cdcb341540eee74128"}
1300
941
  Authenticating with gds_sso strategy
1301
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
-  (0.1ms) begin transaction
1303
-  (0.1ms) commit transaction
942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1304
943
   (0.0ms) begin transaction
1305
944
   (0.0ms) commit transaction
1306
- Redirected to http://www.example-client.com/this_requires_signin_permission
1307
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1308
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1309
- Processing by ExampleController#this_requires_signin_permission as HTML
945
+  (0.0ms) begin transaction
946
+  (0.0ms) commit transaction
947
+ Redirected to http://www.example-client.com/restricted
948
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
949
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
950
+ Processing by ExampleController#restricted as HTML
1310
951
  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]]
1311
952
  Rendering text template
1312
953
  Rendered text template (0.0ms)
1313
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1314
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
954
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
955
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1315
956
  Processing by ExampleController#restricted as HTML
1316
957
  Authenticating with gds_sso strategy
1317
958
  Completed in 0ms (ActiveRecord: 0.0ms)
1318
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1319
- Started GET "/auth/gds/callback?code=78691f45bb1ed98b1a2fed82c0baad5fde2ede137e6e65e6b527042415effc36&state=18ff591da4849b7c6838d2060d95b8791c30931d92884246" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
959
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
960
+ Started GET "/auth/gds/callback?code=MNDWitOlcBXk6iR51_RfGM-yRvTot3kPZV5F9_2HoPM&state=adbb9716b7c53de7c90887cd6546a8000b1dbfb2ced31266" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1320
961
  Processing by AuthenticationsController#callback as HTML
1321
- Parameters: {"code"=>"78691f45bb1ed98b1a2fed82c0baad5fde2ede137e6e65e6b527042415effc36", "state"=>"18ff591da4849b7c6838d2060d95b8791c30931d92884246"}
962
+ Parameters: {"code"=>"MNDWitOlcBXk6iR51_RfGM-yRvTot3kPZV5F9_2HoPM", "state"=>"adbb9716b7c53de7c90887cd6546a8000b1dbfb2ced31266"}
1322
963
  Authenticating with gds_sso strategy
1323
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
964
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
965
   (0.1ms) begin transaction
1325
966
   (0.0ms) commit transaction
1326
967
   (0.0ms) begin transaction
1327
968
   (0.0ms) commit transaction
1328
969
  Redirected to http://www.example-client.com/restricted
1329
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1330
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
970
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
971
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1331
972
  Processing by ExampleController#restricted as HTML
1332
973
  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]]
1333
974
  Rendering text template
1334
975
  Rendered text template (0.0ms)
1335
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1336
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
976
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
977
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
1337
978
  Processing by ExampleController#restricted as HTML
1338
979
  Authenticating with gds_sso strategy
1339
980
  Completed in 0ms (ActiveRecord: 0.0ms)
1340
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
1341
- Started GET "/auth/gds/callback?code=7dc0f6a4d4f88dcad43ea690887235dc7b8cf82f811c502f7609a95180869731&state=1636d454b8dfd92f7ef19ef7b79cf57f6e60036baa1bc9a5" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
981
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
982
+ Started GET "/auth/gds/callback?code=R6kAMC_ZUDSAuxtBtselAxA-eV1SkHjGNIg4Z-PrMbg&state=43d463dd4abec4aee1b7bfa126051fbe690710452f7f5dce" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
1342
983
  Processing by AuthenticationsController#callback as HTML
1343
- Parameters: {"code"=>"7dc0f6a4d4f88dcad43ea690887235dc7b8cf82f811c502f7609a95180869731", "state"=>"1636d454b8dfd92f7ef19ef7b79cf57f6e60036baa1bc9a5"}
984
+ Parameters: {"code"=>"R6kAMC_ZUDSAuxtBtselAxA-eV1SkHjGNIg4Z-PrMbg", "state"=>"43d463dd4abec4aee1b7bfa126051fbe690710452f7f5dce"}
1344
985
  Authenticating with gds_sso strategy
1345
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
986
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1346
987
   (0.1ms) begin transaction
1347
988
   (0.0ms) commit transaction
1348
989
   (0.0ms) begin transaction
1349
990
   (0.0ms) commit transaction
1350
991
  Redirected to http://www.example-client.com/restricted
1351
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1352
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:17 +0000
992
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
993
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
1353
994
  Processing by ExampleController#restricted as HTML
1354
995
  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]]
1355
996
  Rendering text template
1356
997
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
998
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
999
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1359
1000
  Processing by ExampleController#restricted as HTML
1360
1001
  Authenticating with gds_sso strategy
1361
1002
  Completed in 0ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:17 +0000
1363
- Started GET "/auth/gds/callback?code=496d67acf30546bde6deb88e4c61a94ddb0d2a704879ccde618123523c9d0e77&state=0356c4f71f5602aeb4d69ae588a39ebb795907cb50f770a8" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1003
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1004
+ Started GET "/auth/gds/callback?code=h-nzatFfqA5uowJZY2u7MMsMpNSqe6ZkpcL7TivqR9s&state=e7a7941862761053f040856bcedf5a8dfd7dc1f599e1ace7" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1364
1005
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"496d67acf30546bde6deb88e4c61a94ddb0d2a704879ccde618123523c9d0e77", "state"=>"0356c4f71f5602aeb4d69ae588a39ebb795907cb50f770a8"}
1006
+ Parameters: {"code"=>"h-nzatFfqA5uowJZY2u7MMsMpNSqe6ZkpcL7TivqR9s", "state"=>"e7a7941862761053f040856bcedf5a8dfd7dc1f599e1ace7"}
1366
1007
  Authenticating with gds_sso strategy
1367
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
-  (0.1ms) begin transaction
1008
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1009
+  (0.0ms) begin transaction
1369
1010
   (0.0ms) commit transaction
1370
1011
   (0.0ms) begin transaction
1371
1012
   (0.0ms) commit transaction
1372
1013
  Redirected to http://www.example-client.com/restricted
1373
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1374
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1014
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1015
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1375
1016
  Processing by ExampleController#restricted as HTML
1376
1017
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1377
1018
  Rendering text template
1378
1019
  Rendered text template (0.0ms)
1379
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1380
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:42:18 +0000
1020
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1021
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:27:24 +0000
1381
1022
  Processing by ExampleController#restricted as HTML
1382
- Authenticating with gds_sso strategy
1383
- Completed in 1ms (ActiveRecord: 0.0ms)
1384
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-06 06:42:18 +0000
1385
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1023
+ 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]]
1024
+ Rendering text template
1025
+ Rendered text template (0.0ms)
1026
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1027
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1386
1028
  Processing by ExampleController#restricted as HTML
1387
1029
  Authenticating with gds_sso strategy
1388
1030
  Completed in 0ms (ActiveRecord: 0.0ms)
1389
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1390
- Started GET "/auth/gds/callback?code=4980c916a888a66457c5c984268d7867a04bb14c635a06ec75075f73beb6a0ec&state=fd0776eb9d3c5dda9207e87e3878d7353df8534299dafd65" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1031
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1032
+ Started GET "/auth/gds/callback?code=ig9sY9NStvOUFtq_beYpfZZYdBL1wwYxXz5vJEIa28o&state=bb4f84f11646a2f2ba321ec5653baacf4573155827fd7e95" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1391
1033
  Processing by AuthenticationsController#callback as HTML
1392
- Parameters: {"code"=>"4980c916a888a66457c5c984268d7867a04bb14c635a06ec75075f73beb6a0ec", "state"=>"fd0776eb9d3c5dda9207e87e3878d7353df8534299dafd65"}
1034
+ Parameters: {"code"=>"ig9sY9NStvOUFtq_beYpfZZYdBL1wwYxXz5vJEIa28o", "state"=>"bb4f84f11646a2f2ba321ec5653baacf4573155827fd7e95"}
1393
1035
  Authenticating with gds_sso strategy
1394
1036
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1395
1037
   (0.1ms) begin transaction
@@ -1397,102 +1039,98 @@ Authenticating with gds_sso strategy
1397
1039
   (0.0ms) begin transaction
1398
1040
   (0.0ms) commit transaction
1399
1041
  Redirected to http://www.example-client.com/restricted
1400
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1401
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1042
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1043
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1402
1044
  Processing by ExampleController#restricted as HTML
1403
1045
  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]]
1404
1046
  Rendering text template
1405
1047
  Rendered text template (0.0ms)
1406
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1407
- Started GET "/restricted" for 127.0.0.1 at 2019-11-06 06:32:18 +0000
1048
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1049
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
1408
1050
  Processing by ExampleController#restricted as HTML
1409
- 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]]
1410
- Rendering text template
1411
- Rendered text template (0.0ms)
1412
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1413
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1051
+ Authenticating with gds_sso strategy
1052
+ Completed in 0ms (ActiveRecord: 0.0ms)
1053
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:24 +0000
1054
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1414
1055
  Processing by ExampleController#restricted as HTML
1415
1056
  Authenticating with gds_sso strategy
1416
1057
  Completed in 0ms (ActiveRecord: 0.0ms)
1417
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1418
- Started GET "/auth/gds/callback?code=b194100bb695bc4201debbe43d10fefca7155102e2c51d312e96687375df6a38&state=9b50e61bdf56172092baac1246ea661e96f88d0bf6789b6b" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1058
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1059
+ Started GET "/auth/gds/callback?code=7jjlVl7ZGQsaO-Ycmh6_TLJO5uPQ9WAD47t-lUuLWqA&state=4b959fe4080469b91570c28c53561995ccfc4929b170c8b0" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1419
1060
  Processing by AuthenticationsController#callback as HTML
1420
- Parameters: {"code"=>"b194100bb695bc4201debbe43d10fefca7155102e2c51d312e96687375df6a38", "state"=>"9b50e61bdf56172092baac1246ea661e96f88d0bf6789b6b"}
1061
+ Parameters: {"code"=>"7jjlVl7ZGQsaO-Ycmh6_TLJO5uPQ9WAD47t-lUuLWqA", "state"=>"4b959fe4080469b91570c28c53561995ccfc4929b170c8b0"}
1421
1062
  Authenticating with gds_sso strategy
1422
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1423
-  (0.1ms) begin transaction
1063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1064
+  (0.0ms) begin transaction
1424
1065
   (0.0ms) commit transaction
1425
1066
   (0.0ms) begin transaction
1426
1067
   (0.0ms) commit transaction
1427
1068
  Redirected to http://www.example-client.com/restricted
1428
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1429
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1069
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
1070
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1430
1071
  Processing by ExampleController#restricted as HTML
1431
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1072
+ 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]]
1432
1073
  Rendering text template
1433
1074
  Rendered text template (0.0ms)
1434
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1075
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1435
1076
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1436
-  (0.1ms) begin transaction
1437
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1438
-  (4.5ms) commit transaction
1439
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1077
+  (0.0ms) begin transaction
1078
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
1079
+  (5.7ms) commit transaction
1080
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1440
1081
  Processing by ExampleController#restricted as HTML
1441
1082
  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]]
1442
1083
  Authenticating with gds_sso strategy
1443
1084
  Completed in 1ms (ActiveRecord: 0.1ms)
1444
- Started GET "/auth/gds" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1445
- Started GET "/auth/gds/callback?code=41604fc965529d3edf884d099dceea04f3426d635fd37c51a3ff8ae6229e497a&state=18d1c74926dbea628bd8ccd9b2b584931ba5bef91bc83b43" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1085
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1086
+ Started GET "/auth/gds/callback?code=PVa9xx1yP9Xnug9OuLDPUtSDjP0myFOfkUFG88TT1Vo&state=8fe12ed0cad4fa7da0065fe8a620df5fdd0d162485a7f50a" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1446
1087
  Processing by AuthenticationsController#callback as HTML
1447
- Parameters: {"code"=>"41604fc965529d3edf884d099dceea04f3426d635fd37c51a3ff8ae6229e497a", "state"=>"18d1c74926dbea628bd8ccd9b2b584931ba5bef91bc83b43"}
1088
+ Parameters: {"code"=>"PVa9xx1yP9Xnug9OuLDPUtSDjP0myFOfkUFG88TT1Vo", "state"=>"8fe12ed0cad4fa7da0065fe8a620df5fdd0d162485a7f50a"}
1448
1089
  Authenticating with gds_sso strategy
1449
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1450
-  (0.1ms) begin transaction
1451
-  (0.1ms) commit transaction
1090
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1452
1091
   (0.0ms) begin transaction
1453
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1454
-  (3.8ms) commit transaction
1092
+  (0.0ms) commit transaction
1093
+  (0.0ms) begin transaction
1094
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1095
+  (4.8ms) commit transaction
1455
1096
  Redirected to http://www.example-client.com/restricted
1456
- Completed 302 Found in 8ms (ActiveRecord: 4.5ms)
1457
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1097
+ Completed 302 Found in 8ms (ActiveRecord: 5.2ms)
1098
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1458
1099
  Processing by ExampleController#restricted as HTML
1459
1100
  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]]
1460
1101
  Rendering text template
1461
1102
  Rendered text template (0.0ms)
1462
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1463
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1464
- Processing by ExampleController#this_requires_signin_permission as JSON
1465
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1466
-  (0.1ms) begin transaction
1467
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1468
-  (5.0ms) commit transaction
1103
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1104
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1105
+ Processing by ExampleController#restricted as JSON
1106
+ Completed in 15ms (ActiveRecord: 0.0ms)
1107
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1108
+ Processing by ExampleController#restricted as JSON
1469
1109
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1470
-  (0.1ms) begin transaction
1110
+  (0.0ms) begin transaction
1111
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 11]]
1112
+  (5.1ms) commit transaction
1113
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1114
+  (0.0ms) begin transaction
1471
1115
   (0.0ms) commit transaction
1472
1116
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1473
-  (0.1ms) begin transaction
1117
+  (0.0ms) begin transaction
1474
1118
   (0.0ms) commit transaction
1475
1119
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1476
1120
   (0.1ms) begin transaction
1477
-  (0.1ms) commit transaction
1478
-  (0.0ms) begin transaction
1121
+  (0.0ms) commit transaction
1122
+  (0.1ms) begin transaction
1479
1123
   (0.0ms) commit transaction
1480
1124
  Rendering text template
1481
1125
  Rendered text template (0.0ms)
1482
- Completed 200 OK in 66ms (Views: 0.3ms | ActiveRecord: 6.1ms)
1483
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1484
- Processing by ExampleController#restricted as JSON
1485
- Completed in 12ms (ActiveRecord: 0.0ms)
1486
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1487
- Processing by ExampleController#restricted as JSON
1488
- Completed in 19ms (ActiveRecord: 0.0ms)
1489
- Started GET "/restricted" for 127.0.0.1 at 2019-11-05 10:37:18 +0000
1490
- Processing by ExampleController#restricted as JSON
1491
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1492
-  (0.1ms) begin transaction
1493
-  (0.1ms) commit transaction
1126
+ Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 5.8ms)
1127
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1128
+ Processing by ExampleController#this_requires_signin_permission as JSON
1129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1130
+  (0.0ms) begin transaction
1131
+  (0.0ms) commit transaction
1494
1132
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
-  (0.1ms) begin transaction
1133
+  (0.0ms) begin transaction
1496
1134
   (0.0ms) commit transaction
1497
1135
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1498
1136
   (0.0ms) begin transaction
@@ -1504,75 +1142,371 @@ Processing by ExampleController#restricted as JSON
1504
1142
   (0.0ms) commit transaction
1505
1143
  Rendering text template
1506
1144
  Rendered text template (0.0ms)
1507
- Completed 200 OK in 51ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1145
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1146
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:24 +0000
1147
+ Processing by ExampleController#restricted as JSON
1148
+ Completed in 8ms (ActiveRecord: 0.0ms)
1149
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1150
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1151
+  (0.0ms) begin transaction
1152
+ 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]]
1153
+  (5.7ms) commit transaction
1154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1155
+  (0.0ms) begin transaction
1156
+  (0.0ms) commit transaction
1508
1157
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1509
-  (0.1ms) begin transaction
1510
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1607"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1511
-  (3.9ms) commit transaction
1512
1158
   (0.0ms) begin transaction
1513
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
1514
-  (4.9ms) commit transaction
1159
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "4181"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1160
+  (4.1ms) commit transaction
1515
1161
   (0.0ms) begin transaction
1516
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31530"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1517
-  (3.8ms) commit transaction
1162
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
1163
+  (5.0ms) commit transaction
1164
+  (1.0ms) SELECT sqlite_version(*)
1165
+  (0.0ms) SELECT sqlite_version(*)
1166
+  (0.1ms) DROP TABLE IF EXISTS "users"
1167
+  (9.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
1168
+  (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1169
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1518
1170
   (0.0ms) begin transaction
1519
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37459"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1520
-  (3.3ms) commit transaction
1521
- Processing by Api::UserController#update as HTML
1522
- Parameters: {"uid"=>"a1s2d31530"}
1523
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1524
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1525
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1526
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1527
- Completed 403 Forbidden in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
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-11-12 10:32:30.513717"], ["updated_at", "2020-11-12 10:32:30.513717"]]
1172
+  (7.1ms) commit transaction
1173
+  (5.4ms) 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"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1177
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1528
1178
   (0.0ms) begin transaction
1529
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36308"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1530
-  (4.9ms) commit transaction
1179
+ 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]]
1180
+  (6.7ms) commit transaction
1181
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1182
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1183
+ Processing by ExampleController#restricted as HTML
1184
+ Authenticating with gds_sso strategy
1185
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 161)
1186
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1187
+ Started GET "/auth/gds/callback?code=xInEEXfY9OXgh60z3MZAIutDsoUcB-UO52PqOuR3wLI&state=579ef427a16e8227ceb6fc069047a529a31e695b6d0894be" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1188
+ Processing by AuthenticationsController#callback as HTML
1189
+ Parameters: {"code"=>"xInEEXfY9OXgh60z3MZAIutDsoUcB-UO52PqOuR3wLI", "state"=>"579ef427a16e8227ceb6fc069047a529a31e695b6d0894be"}
1190
+ Authenticating with gds_sso strategy
1191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1531
1193
   (0.0ms) begin transaction
1532
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37479"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1533
-  (4.5ms) commit transaction
1534
- Processing by Api::UserController#update as HTML
1535
- Parameters: {"uid"=>"a1s2d36308"}
1536
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36308"], ["LIMIT", 1]]
1194
+ 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"]]
1195
+  (7.1ms) commit transaction
1537
1196
   (0.0ms) begin transaction
1538
- User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 6]]
1539
-  (3.4ms) commit transaction
1540
- Completed 200 OK in 6ms (ActiveRecord: 3.8ms)
1541
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1197
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1198
+  (6.3ms) commit transaction
1199
+ Redirected to http://www.example-client.com/restricted
1200
+ Completed 302 Found in 17ms (ActiveRecord: 14.0ms | Allocations: 1478)
1201
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1202
+ Processing by ExampleController#restricted as HTML
1203
+ 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]]
1204
+ Rendering text template
1205
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
1206
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms | Allocations: 1533)
1207
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1208
+ Processing by ExampleController#restricted as HTML
1209
+ Authenticating with gds_sso strategy
1210
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1211
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1212
+ Started GET "/auth/gds/callback?code=3P7LFuNmEELT_Vb63YdcNulcrn-lTs5pvOob5oMqq8g&state=ff5c2898d3d08bae49e16ff133904c28e3329b766227474d" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1213
+ Processing by AuthenticationsController#callback as HTML
1214
+ Parameters: {"code"=>"3P7LFuNmEELT_Vb63YdcNulcrn-lTs5pvOob5oMqq8g", "state"=>"ff5c2898d3d08bae49e16ff133904c28e3329b766227474d"}
1215
+ Authenticating with gds_sso strategy
1216
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1217
+ Redirected to http://www.example-client.com/restricted
1218
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1219
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1220
+ Processing by ExampleController#restricted as HTML
1221
+ 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]]
1222
+ Rendering text template
1223
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1224
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1225
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1226
+ Processing by ExampleController#restricted as HTML
1227
+ Authenticating with gds_sso strategy
1228
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1229
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1230
+ Started GET "/auth/gds/callback?code=nOhCNsYi0m_4Jhb4svdbFygYRr9z5ywfgSxQFXRUIKI&state=4767cdb6904b56a6dcf741d7b5dce9e737ca09fa2c9af9ca" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1231
+ Processing by AuthenticationsController#callback as HTML
1232
+ Parameters: {"code"=>"nOhCNsYi0m_4Jhb4svdbFygYRr9z5ywfgSxQFXRUIKI", "state"=>"4767cdb6904b56a6dcf741d7b5dce9e737ca09fa2c9af9ca"}
1233
+ Authenticating with gds_sso strategy
1234
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1235
+ Redirected to http://www.example-client.com/restricted
1236
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1237
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1238
+ Processing by ExampleController#restricted as HTML
1239
+ 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]]
1240
+ Rendering text template
1241
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1242
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1243
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1244
+ Processing by ExampleController#this_requires_signin_permission as HTML
1245
+ Authenticating with gds_sso strategy
1246
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1247
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1248
+ Started GET "/auth/gds/callback?code=eW9a7hEncUvY7E_gx_Pk4pgrHuVG7dc4HdlKFct6hw0&state=a50b0bdeea0fe1f03013052feda2238ed7f888e54abd521a" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1249
+ Processing by AuthenticationsController#callback as HTML
1250
+ Parameters: {"code"=>"eW9a7hEncUvY7E_gx_Pk4pgrHuVG7dc4HdlKFct6hw0", "state"=>"a50b0bdeea0fe1f03013052feda2238ed7f888e54abd521a"}
1251
+ Authenticating with gds_sso strategy
1252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1253
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1254
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1255
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1256
+ Processing by ExampleController#this_requires_signin_permission as HTML
1257
+ 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]]
1258
+ Rendering text template
1259
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1260
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1261
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1262
+ Processing by ExampleController#this_requires_signin_permission as HTML
1263
+ Authenticating with gds_sso strategy
1264
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1265
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1266
+ Started GET "/auth/gds/callback?code=o4fDUvJgAI-z7D7Rdi1SfpQWbgHiaR9kXFQ4qClioTw&state=a36c70833d1f7c865780f9d93463964f9e17d77a17f7a01a" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1267
+ Processing by AuthenticationsController#callback as HTML
1268
+ Parameters: {"code"=>"o4fDUvJgAI-z7D7Rdi1SfpQWbgHiaR9kXFQ4qClioTw", "state"=>"a36c70833d1f7c865780f9d93463964f9e17d77a17f7a01a"}
1269
+ Authenticating with gds_sso strategy
1270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1271
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1272
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 913)
1273
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1274
+ Processing by ExampleController#this_requires_signin_permission as HTML
1275
+ 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]]
1276
+ Rendering text template
1277
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1278
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 654)
1279
+ Started GET "/" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1280
+ Processing by ExampleController#index as HTML
1281
+ Rendering text template
1282
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1283
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 137)
1284
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1285
+ Processing by ExampleController#restricted as HTML
1286
+ Authenticating with gds_sso strategy
1287
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1288
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1289
+ Started GET "/auth/gds/callback?code=2sMab_u8g0VtoGEDIWOHGeUoCIx6QU1WGtJ2Pf5iGJs&state=dce68471d4d40d57ceb4c87bd8b0f7a736ca9a91ccee16cd" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1290
+ Processing by AuthenticationsController#callback as HTML
1291
+ Parameters: {"code"=>"2sMab_u8g0VtoGEDIWOHGeUoCIx6QU1WGtJ2Pf5iGJs", "state"=>"dce68471d4d40d57ceb4c87bd8b0f7a736ca9a91ccee16cd"}
1292
+ Authenticating with gds_sso strategy
1293
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1294
+ Redirected to http://www.example-client.com/restricted
1295
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 912)
1296
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1297
+ Processing by ExampleController#restricted as HTML
1298
+ 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]]
1299
+ Rendering text template
1300
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1301
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1302
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1303
+ Processing by ExampleController#restricted as HTML
1304
+ Authenticating with gds_sso strategy
1305
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 479)
1306
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1307
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1308
+ Processing by ExampleController#restricted as HTML
1309
+ Authenticating with gds_sso strategy
1310
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1311
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1312
+ Started GET "/auth/gds/callback?code=Nh-zC7yGJpH0Dl8m8iEYc-xXgOB9yI-4x95eARk9vCg&state=8865c8f7c7ac93c9517b3c968c664df99334e24d5f6945b4" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1313
+ Processing by AuthenticationsController#callback as HTML
1314
+ Parameters: {"code"=>"Nh-zC7yGJpH0Dl8m8iEYc-xXgOB9yI-4x95eARk9vCg", "state"=>"8865c8f7c7ac93c9517b3c968c664df99334e24d5f6945b4"}
1315
+ Authenticating with gds_sso strategy
1316
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1317
+ Redirected to http://www.example-client.com/restricted
1318
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 912)
1319
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1320
+ Processing by ExampleController#restricted as HTML
1321
+ 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]]
1322
+ Rendering text template
1323
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1324
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 653)
1325
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1326
+ Processing by ExampleController#restricted as HTML
1327
+ Authenticating with gds_sso strategy
1328
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 479)
1329
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1330
+ Started GET "/auth/gds/callback?code=avD6fG71If2TVFfGGu_baNRgQcUBNcpF8uqhLZMNA6o&state=a09fb312accf885b0aec96efe3b803e2c13a17a67172eaab" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1331
+ Processing by AuthenticationsController#callback as HTML
1332
+ Parameters: {"code"=>"avD6fG71If2TVFfGGu_baNRgQcUBNcpF8uqhLZMNA6o", "state"=>"a09fb312accf885b0aec96efe3b803e2c13a17a67172eaab"}
1333
+ Authenticating with gds_sso strategy
1334
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1335
+ Redirected to http://www.example-client.com/restricted
1336
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms | Allocations: 1114)
1337
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:37:31 +0000
1338
+ Processing by ExampleController#restricted as HTML
1339
+ 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]]
1340
+ Rendering text template
1341
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1342
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 877)
1343
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1344
+ Processing by ExampleController#restricted as HTML
1345
+ Authenticating with gds_sso strategy
1346
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1347
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1348
+ Started GET "/auth/gds/callback?code=Kh0ifEtYLuq5Mmjkf8p7KQFjO2r7Rf-UGyL4VNAOz8M&state=bd63f60b093032abdfeb6e9f9f062937f29526fa9af80fc7" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1349
+ Processing by AuthenticationsController#callback as HTML
1350
+ Parameters: {"code"=>"Kh0ifEtYLuq5Mmjkf8p7KQFjO2r7Rf-UGyL4VNAOz8M", "state"=>"bd63f60b093032abdfeb6e9f9f062937f29526fa9af80fc7"}
1351
+ Authenticating with gds_sso strategy
1352
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1353
+ Redirected to http://www.example-client.com/restricted
1354
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1355
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1356
+ Processing by ExampleController#restricted as HTML
1357
+ 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]]
1358
+ Rendering text template
1359
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1360
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 652)
1361
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-13 06:27:31 +0000
1362
+ Processing by ExampleController#restricted as HTML
1363
+ 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]]
1364
+ Rendering text template
1365
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1366
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 875)
1367
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1368
+ Processing by ExampleController#restricted as HTML
1369
+ Authenticating with gds_sso strategy
1370
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1371
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1372
+ Started GET "/auth/gds/callback?code=dZDwdf1IvBcTAFqHkKLMXTKErnPgsjkcElPkNsXXW0U&state=d4c539e1c4e27814a9640383ef094255bc29683a7552c165" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1373
+ Processing by AuthenticationsController#callback as HTML
1374
+ Parameters: {"code"=>"dZDwdf1IvBcTAFqHkKLMXTKErnPgsjkcElPkNsXXW0U", "state"=>"d4c539e1c4e27814a9640383ef094255bc29683a7552c165"}
1375
+ Authenticating with gds_sso strategy
1376
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1377
+ Redirected to http://www.example-client.com/restricted
1378
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1379
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1380
+ Processing by ExampleController#restricted as HTML
1381
+ 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]]
1382
+ Rendering text template
1383
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1384
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1385
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1386
+  (0.1ms) begin transaction
1387
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 2]]
1388
+  (6.5ms) commit transaction
1389
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1390
+ Processing by ExampleController#restricted as HTML
1391
+ 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]]
1392
+ Authenticating with gds_sso strategy
1393
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 532)
1394
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1395
+ Started GET "/auth/gds/callback?code=wc3fNXhJuPibWwifQFZEXVE-eYdNW7ZJqlNXLrdj1l8&state=121f606a8982afdcc769bae6c77bcf59710e5b653c29768d" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1396
+ Processing by AuthenticationsController#callback as HTML
1397
+ Parameters: {"code"=>"wc3fNXhJuPibWwifQFZEXVE-eYdNW7ZJqlNXLrdj1l8", "state"=>"121f606a8982afdcc769bae6c77bcf59710e5b653c29768d"}
1398
+ Authenticating with gds_sso strategy
1399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1400
+  (0.1ms) begin transaction
1401
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1402
+  (6.8ms) commit transaction
1403
+ Redirected to http://www.example-client.com/restricted
1404
+ Completed 302 Found in 10ms (ActiveRecord: 7.1ms | Allocations: 1103)
1405
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1406
+ Processing by ExampleController#restricted as HTML
1407
+ 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]]
1408
+ Rendering text template
1409
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1410
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1411
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1412
+ Processing by ExampleController#this_requires_signin_permission as JSON
1413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1542
1414
   (0.0ms) begin transaction
1543
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39422"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1544
-  (4.3ms) commit transaction
1415
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1416
+  (8.3ms) commit transaction
1417
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1418
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1419
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1420
+ Rendering text template
1421
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1422
+ Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 8.7ms | Allocations: 3437)
1423
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:31 +0000
1424
+ Processing by ExampleController#restricted as JSON
1425
+ Completed in 15ms (ActiveRecord: 0.0ms | Allocations: 1823)
1426
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:32 +0000
1427
+ Processing by ExampleController#restricted as JSON
1428
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1429
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1430
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1431
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1432
+ Rendering text template
1433
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1434
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms | Allocations: 3020)
1435
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:32 +0000
1436
+ Processing by ExampleController#restricted as JSON
1437
+ Completed in 10ms (ActiveRecord: 0.0ms | Allocations: 1776)
1438
+ Started GET "/restricted" for 127.0.0.1 at 2020-11-12 10:32:32 +0000
1439
+ Processing by ExampleController#restricted as HTML
1440
+ Authenticating with gds_sso strategy
1441
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 104)
1442
+  (0.1ms) begin transaction
1443
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34112"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1444
+  (6.3ms) commit transaction
1545
1445
   (0.0ms) begin transaction
1546
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34116"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1547
-  (3.1ms) commit transaction
1548
- Processing by Api::UserController#reauth as HTML
1549
- Parameters: {"uid"=>"a1s2d39422"}
1550
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39422"], ["LIMIT", 1]]
1446
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38505"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1447
+  (5.6ms) commit transaction
1448
+ Processing by Api::UserController#update as HTML
1449
+ Parameters: {"uid"=>"a1s2d34112"}
1450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34112"], ["LIMIT", 1]]
1551
1451
   (0.0ms) begin transaction
1552
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1553
-  (4.1ms) commit transaction
1554
- Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
1555
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
1452
+ 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]]
1453
+  (5.5ms) commit transaction
1454
+ Completed 200 OK in 8ms (ActiveRecord: 5.8ms | Allocations: 1267)
1455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1556
1456
   (0.0ms) begin transaction
1557
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32983"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1558
-  (3.3ms) commit transaction
1457
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32453"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1458
+  (4.7ms) commit transaction
1559
1459
   (0.0ms) begin transaction
1560
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34457"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1561
-  (3.9ms) commit transaction
1460
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35723"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1461
+  (5.0ms) commit transaction
1462
+ Processing by Api::UserController#update as HTML
1463
+ Parameters: {"uid"=>"a1s2d32453"}
1464
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1465
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1466
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 192)
1467
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1468
+ Completed 403 Forbidden in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 1353)
1469
+  (0.1ms) begin transaction
1470
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34941"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1471
+  (4.2ms) commit transaction
1472
+  (0.1ms) begin transaction
1473
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3477"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1474
+  (5.3ms) commit transaction
1562
1475
  Processing by Api::UserController#reauth as HTML
1563
1476
  Parameters: {"uid"=>"nonexistent-user"}
1564
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1565
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1477
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1478
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 526)
1479
+  (0.1ms) begin transaction
1480
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36181"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1481
+  (5.6ms) commit transaction
1482
+  (0.1ms) begin transaction
1483
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37265"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1484
+  (4.2ms) commit transaction
1485
+ Processing by Api::UserController#reauth as HTML
1486
+ Parameters: {"uid"=>"a1s2d36181"}
1487
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36181"], ["LIMIT", 1]]
1566
1488
   (0.0ms) begin transaction
1567
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36303"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1568
-  (4.7ms) commit transaction
1489
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 9]]
1490
+  (5.8ms) commit transaction
1491
+ Completed 200 OK in 8ms (ActiveRecord: 6.1ms | Allocations: 881)
1492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1493
+  (0.0ms) begin transaction
1494
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36039"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1495
+  (5.9ms) commit transaction
1569
1496
   (0.0ms) begin transaction
1570
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37837"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1571
-  (3.7ms) commit transaction
1497
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35837"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1498
+  (5.8ms) commit transaction
1572
1499
  Processing by Api::UserController#reauth as HTML
1573
- Parameters: {"uid"=>"a1s2d36303"}
1574
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1500
+ Parameters: {"uid"=>"a1s2d36039"}
1501
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1575
1502
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1576
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1503
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.2ms | Allocations: 46)
1577
1504
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1578
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1505
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms | Allocations: 508)
1506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1507
+  (0.1ms) begin transaction
1508
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9102"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1509
+  (4.3ms) commit transaction
1510
+  (0.0ms) begin transaction
1511
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
1512
+  (4.3ms) commit transaction