gds-sso 14.3.0 → 16.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -56
  3. data/Rakefile +11 -6
  4. data/app/controllers/api/user_controller.rb +30 -28
  5. data/app/controllers/authentications_controller.rb +4 -6
  6. data/app/views/layouts/unauthorised.html.erb +1 -1
  7. data/config/routes.rb +7 -6
  8. data/lib/gds-sso.rb +27 -24
  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 -42
  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 +1142 -1200
  31. data/spec/requests/end_to_end_spec.rb +45 -46
  32. data/spec/spec_helper.rb +12 -13
  33. data/spec/support/controller_spy.rb +14 -0
  34. data/spec/support/serializable_user.rb +3 -0
  35. data/spec/support/signon_integration_helpers.rb +10 -8
  36. data/spec/support/test_user.rb +29 -0
  37. data/spec/support/timecop.rb +1 -1
  38. data/spec/unit/api_access_spec.rb +7 -7
  39. data/spec/unit/bearer_token_spec.rb +14 -15
  40. data/spec/unit/config_spec.rb +5 -5
  41. data/spec/unit/mock_bearer_token_spec.rb +4 -4
  42. data/spec/unit/railtie_spec.rb +14 -0
  43. data/spec/unit/session_serialisation_spec.rb +5 -9
  44. data/spec/unit/user_spec.rb +20 -51
  45. metadata +94 -54
@@ -10,24 +10,25 @@ def user_update_json
10
10
  "organisation_slug" => "justice-league",
11
11
  "organisation_content_id" => "aae1319e-5788-4677-998c-f1a53af528d0",
12
12
  "disabled" => false,
13
- }
13
+ },
14
14
  }.to_json
15
15
  end
16
16
 
17
17
  describe Api::UserController, type: :controller do
18
-
19
18
  before :each do
20
19
  user_to_update_attrs = [{
21
- :uid => "a1s2d3#{rand(10000)}",
22
- :email => "old@domain.com",
23
- :name => "Moshua Jarshall",
24
- :permissions => ["signin"] }]
25
-
26
- signon_sso_push_user_attrs = [{
27
- :uid => "a1s2d3#{rand(10000)}",
28
- :email => "ssopushuser@legit.com",
29
- :name => "SSO Push user",
30
- :permissions => ["signin", "user_update_permission"] }]
20
+ uid: "a1s2d3#{rand(10_000)}",
21
+ email: "old@domain.com",
22
+ name: "Moshua Jarshall",
23
+ permissions: %w[signin],
24
+ }]
25
+
26
+ signon_sso_push_user_attrs = [{
27
+ uid: "a1s2d3#{rand(10_000)}",
28
+ email: "ssopushuser@legit.com",
29
+ name: "SSO Push user",
30
+ permissions: %w[signin user_update_permission],
31
+ }]
31
32
 
32
33
  @user_to_update = User.create!(*user_to_update_attrs)
33
34
  @signon_sso_push_user = User.create!(*signon_sso_push_user_attrs)
@@ -36,13 +37,14 @@ describe Api::UserController, type: :controller do
36
37
  describe "PUT update" do
37
38
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
38
39
  malicious_user = User.new({
39
- :uid => '2',
40
- :name => "User",
41
- :permissions =>["signin"] })
40
+ uid: "2",
41
+ name: "User",
42
+ permissions: %w[signin],
43
+ })
42
44
 
43
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
45
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
44
46
 
45
- request.env['RAW_POST_DATA'] = user_update_json
47
+ request.env["RAW_POST_DATA"] = user_update_json
46
48
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
47
49
 
48
50
  expect(response.status).to eq(403)
@@ -50,12 +52,12 @@ describe Api::UserController, type: :controller do
50
52
 
51
53
  it "should create/update the user record in the same way as the OAuth callback" do
52
54
  # Test that it authenticates
53
- request.env['warden'] = double("mock warden")
54
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
55
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
56
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
55
+ request.env["warden"] = double("mock warden")
56
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
57
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
58
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
57
59
 
58
- request.env['RAW_POST_DATA'] = user_update_json
60
+ request.env["RAW_POST_DATA"] = user_update_json
59
61
  put :update, body: user_update_json, params: { uid: @user_to_update.uid }
60
62
 
61
63
  @user_to_update.reload
@@ -64,18 +66,19 @@ describe Api::UserController, type: :controller do
64
66
  expect(@user_to_update.permissions).to eq(["signin", "new permission"])
65
67
  expect(@user_to_update.organisation_slug).to eq("justice-league")
66
68
  expect(@user_to_update.organisation_content_id).to eq("aae1319e-5788-4677-998c-f1a53af528d0")
67
- expect(response.content_type).to eq('text/plain')
69
+ expect(response.content_type).to eq("text/plain")
68
70
  end
69
71
  end
70
72
 
71
73
  describe "POST reauth" do
72
74
  it "should deny access to anybody but the API user (or a user with 'user_update_permission')" do
73
75
  malicious_user = User.new({
74
- :uid => '2',
75
- :name => "User",
76
- :permissions => ["signin"] })
76
+ uid: "2",
77
+ name: "User",
78
+ permissions: %w[signin],
79
+ })
77
80
 
78
- request.env['warden'] = double("stub warden", :authenticate! => true, authenticated?: true, user: malicious_user)
81
+ request.env["warden"] = double("stub warden", authenticate!: true, authenticated?: true, user: malicious_user)
79
82
 
80
83
  post :reauth, params: { uid: @user_to_update.uid }
81
84
 
@@ -83,29 +86,29 @@ describe Api::UserController, type: :controller do
83
86
  end
84
87
 
85
88
  it "should return success if user record doesn't exist" do
86
- request.env['warden'] = double("mock warden")
87
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
88
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
89
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
89
+ request.env["warden"] = double("mock warden")
90
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
91
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
92
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
90
93
 
91
94
  post :reauth, params: { uid: "nonexistent-user" }
92
95
 
93
96
  expect(response.status).to eq(200)
94
- expect(response.content_type).to eq('text/plain')
97
+ expect(response.content_type).to eq("text/plain")
95
98
  end
96
99
 
97
100
  it "should set remotely_signed_out to true on the user" do
98
101
  # Test that it authenticates
99
- request.env['warden'] = double("mock warden")
100
- expect(request.env['warden']).to receive(:authenticate!).at_least(:once).and_return(true)
101
- expect(request.env['warden']).to receive(:authenticated?).at_least(:once).and_return(true)
102
- expect(request.env['warden']).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
102
+ request.env["warden"] = double("mock warden")
103
+ expect(request.env["warden"]).to receive(:authenticate!).at_least(:once).and_return(true)
104
+ expect(request.env["warden"]).to receive(:authenticated?).at_least(:once).and_return(true)
105
+ expect(request.env["warden"]).to receive(:user).at_least(:once).and_return(@signon_sso_push_user)
103
106
 
104
107
  post :reauth, params: { uid: @user_to_update.uid }
105
108
 
106
109
  @user_to_update.reload
107
110
  expect(@user_to_update).to be_remotely_signed_out
108
- expect(response.content_type).to eq('text/plain')
111
+ expect(response.content_type).to eq("text/plain")
109
112
  end
110
113
  end
111
114
  end
@@ -1,71 +1,57 @@
1
- require 'spec_helper'
2
-
3
- RSpec.describe GDS::SSO::ControllerMethods, '#authorise_user!' do
4
- class ControllerSpy < ApplicationController
5
- include GDS::SSO::ControllerMethods
6
-
7
- def initialize(current_user)
8
- @current_user = current_user
9
- end
10
-
11
- def authenticate_user!
12
- true
13
- end
14
-
15
- attr_reader :current_user
16
- end
1
+ require "spec_helper"
17
2
 
3
+ RSpec.describe GDS::SSO::ControllerMethods, "#authorise_user!" do
18
4
  let(:current_user) { double }
19
5
  let(:expected_error) { GDS::SSO::ControllerMethods::PermissionDeniedException }
20
6
 
21
- context 'with a single string permission argument' do
22
- it 'permits users with the required permission' do
23
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
7
+ context "with a single string permission argument" do
8
+ it "permits users with the required permission" do
9
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
24
10
 
25
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.not_to raise_error
11
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.not_to raise_error
26
12
  end
27
13
 
28
- it 'does not permit the users without the required permission' do
29
- allow(current_user).to receive(:has_permission?).with('good').and_return(false)
14
+ it "does not permit the users without the required permission" do
15
+ allow(current_user).to receive(:has_permission?).with("good").and_return(false)
30
16
 
31
- expect { ControllerSpy.new(current_user).authorise_user!('good') }.to raise_error(expected_error)
17
+ expect { ControllerSpy.new(current_user).authorise_user!("good") }.to raise_error(expected_error)
32
18
  end
33
19
  end
34
20
 
35
- context 'with the `all_of` option' do
36
- it 'permits users with all of the required permissions' do
37
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
38
- allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
21
+ context "with the `all_of` option" do
22
+ it "permits users with all of the required permissions" do
23
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
24
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(true)
39
25
 
40
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.not_to raise_error
26
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.not_to raise_error
41
27
  end
42
28
 
43
- it 'does not permit users without all of the required permissions' do
44
- allow(current_user).to receive(:has_permission?).with('good').and_return(false)
45
- allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
29
+ it "does not permit users without all of the required permissions" do
30
+ allow(current_user).to receive(:has_permission?).with("good").and_return(false)
31
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(true)
46
32
 
47
- expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.to raise_error(expected_error)
33
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w[good bad]) }.to raise_error(expected_error)
48
34
  end
49
35
  end
50
36
 
51
- context 'with the `any_of` option' do
52
- it 'permits users with any of the required permissions' do
53
- allow(current_user).to receive(:has_permission?).with('good').and_return(true)
54
- allow(current_user).to receive(:has_permission?).with('bad').and_return(false)
37
+ context "with the `any_of` option" do
38
+ it "permits users with any of the required permissions" do
39
+ allow(current_user).to receive(:has_permission?).with("good").and_return(true)
40
+ allow(current_user).to receive(:has_permission?).with("bad").and_return(false)
55
41
 
56
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.not_to raise_error
42
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.not_to raise_error
57
43
  end
58
44
 
59
- it 'does not permit users without any of the required permissions' do
45
+ it "does not permit users without any of the required permissions" do
60
46
  allow(current_user).to receive(:has_permission?).and_return(false)
61
47
 
62
- expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.to raise_error(expected_error)
48
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w[good bad]) }.to raise_error(expected_error)
63
49
  end
64
50
  end
65
51
 
66
- context 'with none of `any_of` or `all_of`' do
67
- it 'raises an `ArgumentError`' do
68
- expect { ControllerSpy.new(current_user).authorise_user!(whoops: 'bad') }.to raise_error(ArgumentError)
52
+ context "with none of `any_of` or `all_of`" do
53
+ it "raises an `ArgumentError`" do
54
+ expect { ControllerSpy.new(current_user).authorise_user!(whoops: "bad") }.to raise_error(ArgumentError)
69
55
  end
70
56
  end
71
57
  end
File without changes
@@ -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,1578 +1,1520 @@
1
-  (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') 
2
-  (3.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
6
- Processing by ExampleController#restricted as HTML
7
- Authenticating with gds_sso strategy
8
- Completed in 8ms (ActiveRecord: 0.0ms)
9
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
10
- Processing by ExampleController#restricted as JSON
11
- Completed in 131ms (ActiveRecord: 0.0ms)
12
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
13
- Processing by ExampleController#restricted as JSON
14
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
15
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
16
-  (0.1ms) begin transaction
17
- 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]]
18
-  (6.2ms) commit transaction
19
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
20
-  (0.0ms) begin transaction
21
-  (0.1ms) commit transaction
22
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
23
-  (0.1ms) begin transaction
24
-  (0.1ms) commit transaction
25
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
26
-  (0.1ms) begin transaction
27
-  (0.1ms) commit transaction
28
-  (0.1ms) begin transaction
29
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
30
-  (3.6ms) commit transaction
31
- Rendered text template (0.0ms)
32
- Completed 200 OK in 239ms (Views: 8.5ms | ActiveRecord: 11.8ms)
33
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:05 +0000
34
- Processing by ExampleController#this_requires_signin_permission as JSON
35
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
36
-  (0.1ms) begin transaction
37
-  (0.1ms) commit transaction
38
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
39
-  (0.1ms) begin transaction
40
-  (0.1ms) commit transaction
41
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
42
-  (0.1ms) begin transaction
43
-  (0.1ms) commit transaction
44
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
45
-  (0.1ms) begin transaction
46
-  (0.1ms) commit transaction
47
-  (0.1ms) begin transaction
48
-  (0.1ms) commit transaction
49
- Rendered text template (0.0ms)
50
- Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 0.8ms)
51
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
52
- Processing by ExampleController#restricted as JSON
53
- Completed in 21ms (ActiveRecord: 0.0ms)
54
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
55
- Processing by ExampleController#restricted as HTML
56
- Authenticating with gds_sso strategy
57
- Completed in 0ms (ActiveRecord: 0.0ms)
58
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:06 +0000
59
- Started GET "/auth/gds/callback?code=e1b59076e4f7d7e7f0de46ea514f6009dc4db8bf1ffa612872c13a6db67cc298&state=ba536dc898d9e9d5f62f9b7dcb2308aafa10d8018be7c2fa" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
60
- Processing by AuthenticationsController#callback as HTML
61
- Parameters: {"code"=>"e1b59076e4f7d7e7f0de46ea514f6009dc4db8bf1ffa612872c13a6db67cc298", "state"=>"ba536dc898d9e9d5f62f9b7dcb2308aafa10d8018be7c2fa"}
62
- Authenticating with gds_sso strategy
63
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
64
-  (0.1ms) begin transaction
65
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
66
-  (7.4ms) commit transaction
67
-  (0.0ms) begin transaction
68
-  (0.1ms) commit transaction
69
- Redirected to http://www.example-client.com/restricted
70
- Completed 302 Found in 13ms (ActiveRecord: 7.9ms)
71
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
72
- Processing by ExampleController#restricted as HTML
73
- 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"]]
74
- Rendered text template (0.0ms)
75
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
76
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
77
- Processing by ExampleController#restricted as HTML
78
- Authenticating with gds_sso strategy
79
- Completed in 0ms (ActiveRecord: 0.0ms)
80
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
81
- Started GET "/auth/gds/callback?code=b8e1009bf9f623a1f56e714f506ec4ce849db7417a5a87bce5ebdec7ad49bca5&state=d70f4e5897597b11c93c7161370fbb89bbe2bd4ed611981d" for 127.0.0.1 at 2020-03-02 14:29:49 +0000
82
- Processing by AuthenticationsController#callback as HTML
83
- Parameters: {"code"=>"b8e1009bf9f623a1f56e714f506ec4ce849db7417a5a87bce5ebdec7ad49bca5", "state"=>"d70f4e5897597b11c93c7161370fbb89bbe2bd4ed611981d"}
84
- Authenticating with gds_sso strategy
85
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
86
-  (0.1ms) begin transaction
87
-  (0.1ms) commit transaction
88
-  (0.0ms) begin transaction
89
-  (0.1ms) commit transaction
90
- Redirected to http://www.example-client.com/restricted
91
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
92
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
93
- Processing by ExampleController#restricted as HTML
94
- 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"]]
95
- Rendered text template (0.0ms)
96
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
97
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
98
- Processing by ExampleController#this_requires_signin_permission as HTML
99
- Authenticating with gds_sso strategy
100
- Completed in 0ms (ActiveRecord: 0.0ms)
101
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
102
- Started GET "/auth/gds/callback?code=0468fef77903cb3307e1d8c25284fc29f55bd5f1d9c962abfa642198f188f92d&state=a89a83e83d4bc04bf70fbb55094aaf9e81e929da27b0a113" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
103
- Processing by AuthenticationsController#callback as HTML
104
- Parameters: {"code"=>"0468fef77903cb3307e1d8c25284fc29f55bd5f1d9c962abfa642198f188f92d", "state"=>"a89a83e83d4bc04bf70fbb55094aaf9e81e929da27b0a113"}
105
- Authenticating with gds_sso strategy
106
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
107
-  (0.2ms) begin transaction
108
-  (0.1ms) commit transaction
109
-  (0.0ms) begin transaction
110
-  (0.1ms) commit transaction
111
- Redirected to http://www.example-client.com/this_requires_signin_permission
112
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
113
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
114
- Processing by ExampleController#this_requires_signin_permission as HTML
115
- 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"]]
116
- Rendered text template (0.0ms)
117
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
118
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
119
- Processing by ExampleController#this_requires_signin_permission as HTML
120
- Authenticating with gds_sso strategy
121
- Completed in 0ms (ActiveRecord: 0.0ms)
122
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
123
- Started GET "/auth/gds/callback?code=92a9a318a2f438c1dd7b2c3160ae98a5374fa20c35b02a88df2270325ea0ed43&state=cb74969030c3d92af529044423c4853d3ea4c8031c927ada" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
124
- Processing by AuthenticationsController#callback as HTML
125
- Parameters: {"code"=>"92a9a318a2f438c1dd7b2c3160ae98a5374fa20c35b02a88df2270325ea0ed43", "state"=>"cb74969030c3d92af529044423c4853d3ea4c8031c927ada"}
126
- Authenticating with gds_sso strategy
127
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
128
-  (0.1ms) begin transaction
129
-  (0.0ms) commit transaction
130
-  (0.0ms) begin transaction
131
-  (0.0ms) commit transaction
132
- Redirected to http://www.example-client.com/this_requires_signin_permission
133
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
134
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
135
- Processing by ExampleController#this_requires_signin_permission as HTML
136
- 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"]]
137
- Rendered text template (0.0ms)
138
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
139
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
140
- Processing by ExampleController#restricted as HTML
141
- Authenticating with gds_sso strategy
142
- Completed in 0ms (ActiveRecord: 0.0ms)
143
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
144
- Started GET "/auth/gds/callback?code=88875f3fc0462f6c47a3e5199156d94fafaad97b4dc4b808cca257d0806c5e42&state=4aface7075e9f989d578d26c0058afe5764e6cc66af83c09" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
145
- Processing by AuthenticationsController#callback as HTML
146
- Parameters: {"code"=>"88875f3fc0462f6c47a3e5199156d94fafaad97b4dc4b808cca257d0806c5e42", "state"=>"4aface7075e9f989d578d26c0058afe5764e6cc66af83c09"}
147
- Authenticating with gds_sso strategy
148
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
149
-  (0.1ms) begin transaction
150
-  (0.0ms) commit transaction
151
-  (0.0ms) begin transaction
152
-  (0.0ms) commit transaction
153
- Redirected to http://www.example-client.com/restricted
154
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
155
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
156
- Processing by ExampleController#restricted as HTML
157
- 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"]]
158
- Rendered text template (0.0ms)
159
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
160
- Started GET "/" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
161
- Processing by ExampleController#index as HTML
162
- Rendered text template (0.0ms)
163
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
164
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
165
- Processing by ExampleController#restricted as HTML
166
- Authenticating with gds_sso strategy
167
- Completed in 0ms (ActiveRecord: 0.0ms)
168
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
169
- Started GET "/auth/gds/callback?code=85391d3bf603207eb36a90fd7fb0a988c0e22f569c7247f086954ea511d6fd05&state=96ccf264e2be29f11731d57701c1e85e2d84204e3cae4082" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
170
- Processing by AuthenticationsController#callback as HTML
171
- Parameters: {"code"=>"85391d3bf603207eb36a90fd7fb0a988c0e22f569c7247f086954ea511d6fd05", "state"=>"96ccf264e2be29f11731d57701c1e85e2d84204e3cae4082"}
172
- Authenticating with gds_sso strategy
173
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
174
-  (0.1ms) begin transaction
175
-  (0.0ms) commit transaction
176
-  (0.0ms) begin transaction
177
-  (0.0ms) commit transaction
178
- Redirected to http://www.example-client.com/restricted
179
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
180
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
181
- Processing by ExampleController#restricted as HTML
182
- 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"]]
183
- Rendered text template (0.0ms)
184
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
185
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
186
- Processing by ExampleController#restricted as HTML
187
- Authenticating with gds_sso strategy
188
- Completed in 0ms (ActiveRecord: 0.0ms)
189
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
190
- Started GET "/auth/gds/callback?code=26b6691d6ecd3c02df89d664e862dc07f8e65dc0c7ed6a6ad8651aded9b11a78&state=0a4d99e830d75ac5d8635078b8b43579373dc4eab819d658" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
191
- Processing by AuthenticationsController#callback as HTML
192
- Parameters: {"code"=>"26b6691d6ecd3c02df89d664e862dc07f8e65dc0c7ed6a6ad8651aded9b11a78", "state"=>"0a4d99e830d75ac5d8635078b8b43579373dc4eab819d658"}
193
- Authenticating with gds_sso strategy
194
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
195
-  (0.1ms) begin transaction
196
-  (0.1ms) commit transaction
197
-  (0.1ms) begin transaction
198
-  (0.1ms) commit transaction
199
- Redirected to http://www.example-client.com/restricted
200
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
201
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:50 +0000
202
- Processing by ExampleController#restricted as HTML
203
- 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"]]
204
- Rendered text template (0.0ms)
205
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
206
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
207
- Processing by ExampleController#restricted as HTML
208
- Authenticating with gds_sso strategy
209
- Completed in 0ms (ActiveRecord: 0.0ms)
210
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:50 +0000
211
- Started GET "/auth/gds/callback?code=a511233760c58ed49bc2248c2af21616413b693372d304be4cfc8f17e8eb9679&state=55f11ffda7c6ed29b0de0e6bb2fbeb7264ff8840f51a6039" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
212
- Processing by AuthenticationsController#callback as HTML
213
- Parameters: {"code"=>"a511233760c58ed49bc2248c2af21616413b693372d304be4cfc8f17e8eb9679", "state"=>"55f11ffda7c6ed29b0de0e6bb2fbeb7264ff8840f51a6039"}
214
- Authenticating with gds_sso strategy
215
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
216
-  (0.1ms) begin transaction
217
-  (0.0ms) commit transaction
218
-  (0.0ms) begin transaction
219
-  (0.0ms) commit transaction
220
- Redirected to http://www.example-client.com/restricted
221
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
222
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
223
- Processing by ExampleController#restricted as HTML
224
- 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"]]
225
- Rendered text template (0.0ms)
226
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
227
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:34:51 +0000
228
- Processing by ExampleController#restricted as HTML
229
- Authenticating with gds_sso strategy
230
- Completed in 1ms (ActiveRecord: 0.0ms)
231
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:34:51 +0000
232
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
233
- Processing by ExampleController#restricted as HTML
234
- Authenticating with gds_sso strategy
235
- Completed in 0ms (ActiveRecord: 0.0ms)
236
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
237
- Started GET "/auth/gds/callback?code=37bb3145b691628a0fc5750413e5d6898c65255cc91d932b63b0f7f80f7c93a1&state=df00753a2f20674d122e783451254b90c53d08215b7126ce" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
238
- Processing by AuthenticationsController#callback as HTML
239
- Parameters: {"code"=>"37bb3145b691628a0fc5750413e5d6898c65255cc91d932b63b0f7f80f7c93a1", "state"=>"df00753a2f20674d122e783451254b90c53d08215b7126ce"}
240
- Authenticating with gds_sso strategy
241
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
242
-  (0.1ms) begin transaction
243
-  (0.0ms) commit transaction
244
-  (0.1ms) begin transaction
245
-  (0.0ms) commit transaction
246
- Redirected to http://www.example-client.com/restricted
247
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
248
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
249
- Processing by ExampleController#restricted as HTML
250
- 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"]]
251
- Rendered text template (0.0ms)
252
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
253
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:24:51 +0000
254
- Processing by ExampleController#restricted as HTML
255
- 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
- Rendered text template (0.0ms)
257
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
258
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
259
- Processing by ExampleController#restricted as HTML
260
- Authenticating with gds_sso strategy
261
- Completed in 0ms (ActiveRecord: 0.0ms)
262
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
263
- Started GET "/auth/gds/callback?code=a9045f07f86382c5448721355c2726a8a72437cb892b98fb57489a64ce9f63fc&state=2f3cc07d8eb63374a87b786b70f095f14efc89696fa9c95a" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
264
- Processing by AuthenticationsController#callback as HTML
265
- Parameters: {"code"=>"a9045f07f86382c5448721355c2726a8a72437cb892b98fb57489a64ce9f63fc", "state"=>"2f3cc07d8eb63374a87b786b70f095f14efc89696fa9c95a"}
266
- Authenticating with gds_sso strategy
267
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
268
-  (0.1ms) begin transaction
269
-  (0.0ms) commit transaction
270
-  (0.0ms) begin transaction
271
-  (0.1ms) commit transaction
272
- Redirected to http://www.example-client.com/restricted
273
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
274
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
275
- Processing by ExampleController#restricted as HTML
276
- 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"]]
277
- Rendered text template (0.0ms)
278
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
279
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
280
-  (0.0ms) begin transaction
281
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
282
-  (4.6ms) commit transaction
283
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
284
- Processing by ExampleController#restricted as HTML
285
- 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"]]
286
- Authenticating with gds_sso strategy
287
- Completed in 1ms (ActiveRecord: 0.1ms)
288
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
289
- Started GET "/auth/gds/callback?code=d0346b4fc520ec80b1f696dcd4af42a7b1bad2245256910e243220ead50dfbe8&state=c09460cc3bfbc7967bcf913f08846fb2f1906eaa661c6072" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
290
- Processing by AuthenticationsController#callback as HTML
291
- Parameters: {"code"=>"d0346b4fc520ec80b1f696dcd4af42a7b1bad2245256910e243220ead50dfbe8", "state"=>"c09460cc3bfbc7967bcf913f08846fb2f1906eaa661c6072"}
292
- Authenticating with gds_sso strategy
293
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
294
-  (0.1ms) begin transaction
295
-  (0.0ms) commit transaction
296
-  (0.1ms) begin transaction
297
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
298
-  (4.5ms) commit transaction
299
- Redirected to http://www.example-client.com/restricted
300
- Completed 302 Found in 9ms (ActiveRecord: 5.0ms)
301
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:29:51 +0000
302
- Processing by ExampleController#restricted as HTML
303
- 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"]]
304
- Rendered text template (0.0ms)
305
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
306
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
307
-  (0.0ms) begin transaction
308
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "8633"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
309
-  (9.3ms) commit transaction
310
-  (0.0ms) begin transaction
311
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 2]]
312
-  (5.1ms) commit transaction
313
-  (0.0ms) begin transaction
314
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39674"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
315
-  (3.7ms) commit transaction
316
-  (0.0ms) begin transaction
317
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32273"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
318
-  (4.8ms) commit transaction
319
- Processing by Api::UserController#reauth as HTML
320
- Parameters: {"uid"=>"a1s2d39674"}
321
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39674"]]
322
-  (0.0ms) begin transaction
323
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
324
-  (3.5ms) commit transaction
325
- Completed 200 OK in 6ms (ActiveRecord: 3.9ms)
326
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
327
-  (0.0ms) begin transaction
328
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37530"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
329
-  (3.2ms) commit transaction
330
-  (0.0ms) begin transaction
331
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31850"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
332
-  (3.4ms) commit transaction
333
- Processing by Api::UserController#reauth as HTML
334
- Parameters: {"uid"=>"nonexistent-user"}
335
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
336
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
337
-  (0.0ms) begin transaction
338
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3143"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
339
-  (3.8ms) commit transaction
340
-  (0.0ms) begin transaction
341
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34529"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
342
-  (4.3ms) commit transaction
343
- Processing by Api::UserController#reauth as HTML
344
- Parameters: {"uid"=>"a1s2d3143"}
345
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
346
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
347
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
348
- Completed 403 Forbidden in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
349
-  (0.1ms) begin transaction
350
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33656"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
351
-  (3.5ms) commit transaction
352
-  (0.0ms) begin transaction
353
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31326"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
354
-  (5.1ms) commit transaction
1
+  (0.1ms) DROP TABLE IF EXISTS "users"
2
+  (0.9ms) SELECT sqlite_version(*)
3
+  (7.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
+ ActiveRecord::InternalMetadata Load (0.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", "2021-06-10 10:30:26.783208"], ["updated_at", "2021-06-10 10:30:26.783208"]]
8
+  (6.3ms) commit transaction
9
+  (6.5ms) 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
+  (0.0ms) begin transaction
14
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37256"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
15
+  (6.9ms) commit transaction
16
+  (0.0ms) begin transaction
17
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35608"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
+  (5.9ms) commit transaction
355
19
  Processing by Api::UserController#update as HTML
356
- Parameters: {"uid"=>"a1s2d33656"}
357
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33656"]]
358
-  (0.0ms) begin transaction
359
- 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", 9]]
360
-  (4.1ms) commit transaction
361
- Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
362
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
363
-  (0.1ms) begin transaction
364
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34761"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
365
-  (3.6ms) commit transaction
366
-  (0.1ms) begin transaction
367
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36956"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
368
-  (3.7ms) commit transaction
20
+ Parameters: {"uid"=>"a1s2d37256"}
21
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37256"], ["LIMIT", 1]]
22
+  (0.0ms) begin transaction
23
+ User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 1]]
24
+  (4.4ms) commit transaction
25
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
26
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
27
+  (0.0ms) begin transaction
28
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39156"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
29
+  (6.0ms) commit transaction
30
+  (0.0ms) begin transaction
31
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31968"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
32
+  (5.9ms) commit transaction
369
33
  Processing by Api::UserController#update as HTML
370
- Parameters: {"uid"=>"a1s2d34761"}
34
+ Parameters: {"uid"=>"a1s2d39156"}
35
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
371
36
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
372
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
37
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
373
38
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
374
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
375
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
376
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
377
-  (0.0ms) begin transaction
378
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
379
-  (3.8ms) commit transaction
380
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
381
-  (0.0ms) begin transaction
382
-  (0.0ms) commit transaction
383
-  (0.1ms) DROP TABLE IF EXISTS "users"
384
-  (1.1ms) SELECT sqlite_version(*)
385
-  (6.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
386
-  (4.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
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", "2020-03-02 14:30:02.427819"], ["updated_at", "2020-03-02 14:30:02.427819"]]
390
-  (3.1ms) commit transaction
391
-  (4.5ms) 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]]
39
+ Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
40
+  (0.0ms) begin transaction
41
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31875"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
42
+  (6.3ms) commit transaction
43
+  (0.0ms) begin transaction
44
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3917"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
45
+  (6.2ms) commit transaction
46
+ Processing by Api::UserController#reauth as HTML
47
+ Parameters: {"uid"=>"a1s2d31875"}
48
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
49
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
50
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
51
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
52
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
53
+  (0.0ms) begin transaction
54
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38749"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
55
+  (4.5ms) commit transaction
56
+  (0.0ms) begin transaction
57
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39755"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
58
+  (4.9ms) commit transaction
59
+ Processing by Api::UserController#reauth as HTML
60
+ Parameters: {"uid"=>"a1s2d38749"}
61
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38749"], ["LIMIT", 1]]
62
+  (0.0ms) begin transaction
63
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
64
+  (4.6ms) commit transaction
65
+ Completed 200 OK in 6ms (ActiveRecord: 4.8ms)
66
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
67
+  (0.0ms) begin transaction
68
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35482"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
69
+  (6.4ms) commit transaction
70
+  (0.0ms) begin transaction
71
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37236"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
72
+  (5.9ms) commit transaction
73
+ Processing by Api::UserController#reauth as HTML
74
+ Parameters: {"uid"=>"nonexistent-user"}
75
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
76
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
77
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
78
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
79
+  (0.0ms) begin transaction
80
+ User Create (0.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]]
81
+  (5.8ms) commit transaction
82
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
393
83
   (0.0ms) begin transaction
394
84
   (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", "2768"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
398
-  (3.9ms) commit transaction
399
-  (0.1ms) begin transaction
400
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
401
-  (3.9ms) commit transaction
402
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
85
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
86
+ Processing by ExampleController#restricted as HTML
87
+ Authenticating with gds_sso strategy
88
+ Completed in 4ms (ActiveRecord: 0.0ms)
89
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
403
90
  Processing by ExampleController#this_requires_signin_permission as JSON
404
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
91
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
405
92
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
406
93
   (0.0ms) begin transaction
407
- 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]]
408
-  (3.3ms) commit transaction
94
+ 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]]
95
+  (7.4ms) commit transaction
409
96
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
410
-  (0.1ms) begin transaction
411
-  (0.1ms) commit transaction
97
+  (0.0ms) begin transaction
98
+  (0.0ms) commit transaction
412
99
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
413
-  (0.1ms) begin transaction
414
-  (0.1ms) commit transaction
100
+  (0.0ms) begin transaction
101
+  (0.0ms) commit transaction
415
102
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
416
-  (0.1ms) begin transaction
417
-  (0.1ms) commit transaction
418
103
   (0.0ms) begin transaction
419
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
420
-  (4.3ms) commit transaction
104
+  (0.0ms) commit transaction
105
+  (0.0ms) begin transaction
106
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
107
+  (6.1ms) commit transaction
421
108
  Rendering text template
422
109
  Rendered text template (0.0ms)
423
- Completed 200 OK in 85ms (Views: 3.0ms | ActiveRecord: 9.1ms)
424
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
110
+ Completed 200 OK in 160ms (Views: 0.8ms | ActiveRecord: 14.4ms)
111
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
425
112
  Processing by ExampleController#restricted as JSON
426
- Completed in 21ms (ActiveRecord: 0.0ms)
427
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
113
+ Completed in 109ms (ActiveRecord: 0.0ms)
114
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
428
115
  Processing by ExampleController#restricted as JSON
429
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
430
-  (0.1ms) begin transaction
431
-  (0.1ms) commit transaction
116
+ Completed in 14ms (ActiveRecord: 0.0ms)
117
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
118
+ Processing by ExampleController#restricted as JSON
119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
120
+  (0.0ms) begin transaction
121
+  (0.0ms) commit transaction
432
122
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
433
-  (0.1ms) begin transaction
123
+  (0.0ms) begin transaction
434
124
   (0.0ms) commit transaction
435
125
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
436
-  (0.1ms) begin transaction
126
+  (0.0ms) begin transaction
437
127
   (0.0ms) commit transaction
438
128
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
439
-  (0.1ms) begin transaction
129
+  (0.0ms) begin transaction
440
130
   (0.0ms) commit transaction
441
131
   (0.0ms) begin transaction
442
-  (0.1ms) commit transaction
132
+  (0.0ms) commit transaction
443
133
  Rendering text template
444
134
  Rendered text template (0.0ms)
445
- Completed 200 OK in 65ms (Views: 0.4ms | ActiveRecord: 0.9ms)
446
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
447
- Processing by ExampleController#restricted as JSON
448
- Completed in 13ms (ActiveRecord: 0.0ms)
449
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
135
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.5ms)
136
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
450
137
  Processing by ExampleController#restricted as HTML
451
138
  Authenticating with gds_sso strategy
452
139
  Completed in 0ms (ActiveRecord: 0.0ms)
453
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
454
- Started GET "/auth/gds/callback?code=26a437ebf35d91ccbbf3931bc52805af65db4af865f181516715c0b5ecee486b&state=202432597d5ac66426c29d82fb60e04328247fb9ed9d5090" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
140
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
141
+ Started GET "/auth/gds/callback?code=jF_SQ2_ish9Qv0VB_UitUoug5h0ETt4bK4BWGKjfZyg&state=64e9bbffa3bd2370491170a2e47f9c854825df7f2663e0d4" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
455
142
  Processing by AuthenticationsController#callback as HTML
456
- Parameters: {"code"=>"26a437ebf35d91ccbbf3931bc52805af65db4af865f181516715c0b5ecee486b", "state"=>"202432597d5ac66426c29d82fb60e04328247fb9ed9d5090"}
143
+ Parameters: {"code"=>"jF_SQ2_ish9Qv0VB_UitUoug5h0ETt4bK4BWGKjfZyg", "state"=>"64e9bbffa3bd2370491170a2e47f9c854825df7f2663e0d4"}
457
144
  Authenticating with gds_sso strategy
458
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
459
-  (0.1ms) begin transaction
460
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
461
-  (9.5ms) commit transaction
145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
462
146
   (0.0ms) begin transaction
463
-  (0.0ms) commit transaction
464
- Redirected to http://www.example-client.com/restricted
465
- Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
466
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
467
- Processing by ExampleController#restricted as HTML
468
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
469
- Rendering text template
470
- Rendered text template (0.0ms)
471
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
472
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
473
- Processing by ExampleController#restricted as HTML
474
- Authenticating with gds_sso strategy
475
- Completed in 1ms (ActiveRecord: 0.0ms)
476
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
477
- Started GET "/auth/gds/callback?code=9b8f1f2e4a4263d42da6783bd6f3bad776977eca11a787750a9c3e5f1c5aa736&state=69e48656f18319e86e10e48b15d1fcbf57b5b87a86957cc3" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
478
- Processing by AuthenticationsController#callback as HTML
479
- Parameters: {"code"=>"9b8f1f2e4a4263d42da6783bd6f3bad776977eca11a787750a9c3e5f1c5aa736", "state"=>"69e48656f18319e86e10e48b15d1fcbf57b5b87a86957cc3"}
480
- Authenticating with gds_sso strategy
481
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
147
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
148
+  (8.5ms) commit transaction
482
149
   (0.1ms) begin transaction
483
150
   (0.0ms) commit transaction
484
-  (0.1ms) begin transaction
485
-  (0.1ms) commit transaction
486
151
  Redirected to http://www.example-client.com/restricted
487
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
488
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
152
+ Completed 302 Found in 12ms (ActiveRecord: 9.0ms)
153
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
489
154
  Processing by ExampleController#restricted as HTML
490
155
  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]]
491
156
  Rendering text template
492
157
  Rendered text template (0.0ms)
493
158
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
494
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
495
- Processing by ExampleController#restricted as HTML
496
- Authenticating with gds_sso strategy
497
- Completed in 0ms (ActiveRecord: 0.0ms)
498
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
499
- Started GET "/auth/gds/callback?code=ee4a57e58116494d0c02166c5a05c4ad933cc5aa0aab93f77daea0a374b0ca2a&state=c47303624bb886942aa490907c2ff490aa2833fa4c124ea0" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
500
- Processing by AuthenticationsController#callback as HTML
501
- Parameters: {"code"=>"ee4a57e58116494d0c02166c5a05c4ad933cc5aa0aab93f77daea0a374b0ca2a", "state"=>"c47303624bb886942aa490907c2ff490aa2833fa4c124ea0"}
502
- Authenticating with gds_sso strategy
503
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
504
-  (0.1ms) begin transaction
505
-  (0.1ms) commit transaction
506
-  (0.1ms) begin transaction
507
-  (0.0ms) commit transaction
508
- Redirected to http://www.example-client.com/restricted
509
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
510
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
511
- Processing by ExampleController#restricted as HTML
512
- 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
- Rendering text template
514
- Rendered text template (0.0ms)
515
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
516
- Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
517
- Processing by ExampleController#index as HTML
518
- Rendering text template
519
- Rendered text template (0.0ms)
520
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
521
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
159
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
522
160
  Processing by ExampleController#this_requires_signin_permission as HTML
523
161
  Authenticating with gds_sso strategy
524
162
  Completed in 0ms (ActiveRecord: 0.0ms)
525
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:03 +0000
526
- Started GET "/auth/gds/callback?code=1bfb6cff5b56de209f2a3562e97990f1fd5db0e301c941a9ec7b69b9e68d68a7&state=cb4ff4eaf6107b43a2bb7865e85070c44fbd401dfdba0a8e" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
163
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:27 +0000
164
+ Started GET "/auth/gds/callback?code=hBZaqSN91kBu98XpYDOwJ69NLFqKGc-4_TFRUBTd_mw&state=8806c639e9bcd12b516f12ec248955b3630bc755ec4b2d40" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
527
165
  Processing by AuthenticationsController#callback as HTML
528
- Parameters: {"code"=>"1bfb6cff5b56de209f2a3562e97990f1fd5db0e301c941a9ec7b69b9e68d68a7", "state"=>"cb4ff4eaf6107b43a2bb7865e85070c44fbd401dfdba0a8e"}
166
+ Parameters: {"code"=>"hBZaqSN91kBu98XpYDOwJ69NLFqKGc-4_TFRUBTd_mw", "state"=>"8806c639e9bcd12b516f12ec248955b3630bc755ec4b2d40"}
529
167
  Authenticating with gds_sso strategy
530
168
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
531
169
   (0.1ms) begin transaction
532
170
   (0.1ms) commit transaction
533
-  (0.1ms) begin transaction
534
-  (0.1ms) commit transaction
171
+  (0.0ms) begin transaction
172
+  (0.0ms) commit transaction
535
173
  Redirected to http://www.example-client.com/this_requires_signin_permission
536
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
537
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
174
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
175
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
538
176
  Processing by ExampleController#this_requires_signin_permission as HTML
539
177
  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]]
540
178
  Rendering text template
541
179
  Rendered text template (0.0ms)
542
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
543
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
180
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
181
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
544
182
  Processing by ExampleController#this_requires_signin_permission as HTML
545
183
  Authenticating with gds_sso strategy
546
184
  Completed in 0ms (ActiveRecord: 0.0ms)
547
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
548
- Started GET "/auth/gds/callback?code=59b4eec00cf9f5c691224cccfe2ac7679b4a7ec5450a9605c616e94c1681cb8f&state=210750d633ae672abec2eadc7f94c982b8164af6b5635fc4" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
185
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
186
+ Started GET "/auth/gds/callback?code=bJv-HEe2eC9X_-jgPUxZASHtbrWzWomV1ODGqSwDZjw&state=60b1396bae1dba933a655d4c6b356d45a20ceea740c2030b" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
549
187
  Processing by AuthenticationsController#callback as HTML
550
- Parameters: {"code"=>"59b4eec00cf9f5c691224cccfe2ac7679b4a7ec5450a9605c616e94c1681cb8f", "state"=>"210750d633ae672abec2eadc7f94c982b8164af6b5635fc4"}
188
+ Parameters: {"code"=>"bJv-HEe2eC9X_-jgPUxZASHtbrWzWomV1ODGqSwDZjw", "state"=>"60b1396bae1dba933a655d4c6b356d45a20ceea740c2030b"}
551
189
  Authenticating with gds_sso strategy
552
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
553
-  (0.1ms) begin transaction
554
-  (0.1ms) commit transaction
555
-  (0.1ms) begin transaction
556
-  (0.1ms) commit transaction
190
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
191
+  (0.0ms) begin transaction
192
+  (0.0ms) commit transaction
193
+  (0.0ms) begin transaction
194
+  (0.0ms) commit transaction
557
195
  Redirected to http://www.example-client.com/this_requires_signin_permission
558
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
559
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
196
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
197
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
560
198
  Processing by ExampleController#this_requires_signin_permission as HTML
561
199
  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]]
562
200
  Rendering text template
563
201
  Rendered text template (0.0ms)
564
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
565
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
566
- Processing by ExampleController#restricted as HTML
567
- Authenticating with gds_sso strategy
568
- Completed in 0ms (ActiveRecord: 0.0ms)
569
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
570
- Started GET "/auth/gds/callback?code=fb866fa3f163776f28651689f620cb13d78a33d5a3efc09035312160fd6a0c72&state=56bb89cf61c27e21844485e510c5c404b3983e53d969baeb" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
571
- Processing by AuthenticationsController#callback as HTML
572
- Parameters: {"code"=>"fb866fa3f163776f28651689f620cb13d78a33d5a3efc09035312160fd6a0c72", "state"=>"56bb89cf61c27e21844485e510c5c404b3983e53d969baeb"}
573
- Authenticating with gds_sso strategy
574
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
575
-  (0.1ms) begin transaction
576
-  (0.1ms) commit transaction
577
-  (0.1ms) begin transaction
578
-  (0.1ms) commit transaction
579
- Redirected to http://www.example-client.com/restricted
580
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
581
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
582
- Processing by ExampleController#restricted as HTML
583
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
584
- Rendering text template
585
- Rendered text template (0.0ms)
586
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
587
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:04 +0000
588
- Processing by ExampleController#restricted as HTML
589
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
202
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
203
+ Started GET "/" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
204
+ Processing by ExampleController#index as HTML
590
205
  Rendering text template
591
206
  Rendered text template (0.0ms)
592
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
593
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
207
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
208
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
594
209
  Processing by ExampleController#restricted as HTML
595
210
  Authenticating with gds_sso strategy
596
211
  Completed in 0ms (ActiveRecord: 0.0ms)
597
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
598
- Started GET "/auth/gds/callback?code=c8bc30a8a3b0e975ad27dbd80f796a0d85a1bdb8019608b7f74a2bcac1b78fe6&state=124ddb579e2e70c527e4b46d00ea0884951a3b3782eee0f5" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
212
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
213
+ Started GET "/auth/gds/callback?code=gC8iRA497xK0TkQvEcg8DRlRD9k0w8qBkE9m_qpofSE&state=8e8a74a0073eca132ed33502b238a6cfae24a8240f26808e" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
599
214
  Processing by AuthenticationsController#callback as HTML
600
- Parameters: {"code"=>"c8bc30a8a3b0e975ad27dbd80f796a0d85a1bdb8019608b7f74a2bcac1b78fe6", "state"=>"124ddb579e2e70c527e4b46d00ea0884951a3b3782eee0f5"}
215
+ Parameters: {"code"=>"gC8iRA497xK0TkQvEcg8DRlRD9k0w8qBkE9m_qpofSE", "state"=>"8e8a74a0073eca132ed33502b238a6cfae24a8240f26808e"}
601
216
  Authenticating with gds_sso strategy
602
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
603
-  (0.1ms) begin transaction
604
-  (0.1ms) commit transaction
217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
605
218
   (0.0ms) begin transaction
606
-  (0.1ms) commit transaction
219
+  (0.0ms) commit transaction
220
+  (0.0ms) begin transaction
221
+  (0.0ms) commit transaction
607
222
  Redirected to http://www.example-client.com/restricted
608
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
609
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
223
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
224
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
610
225
  Processing by ExampleController#restricted as HTML
611
226
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
612
227
  Rendering text template
613
228
  Rendered text template (0.0ms)
614
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
615
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
229
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
230
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
616
231
  Processing by ExampleController#restricted as HTML
617
232
  Authenticating with gds_sso strategy
618
233
  Completed in 0ms (ActiveRecord: 0.0ms)
619
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
620
- Started GET "/auth/gds/callback?code=8d42028ea4207552ef2a41da9ac8989ff64fd60c564ccf6bc6930ea68faf5f49&state=caa3f5b0e77db2055efc6fc6d4571b9a28d9a0ff6aeb2376" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
234
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
235
+ Started GET "/auth/gds/callback?code=uC1_m3BWNbgEgv_fIyd_J41XniD3TMhDsofeYTaPoEY&state=f5e56d641dd87dbbd91737828000e2a66ccc4d703d5a2286" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
621
236
  Processing by AuthenticationsController#callback as HTML
622
- Parameters: {"code"=>"8d42028ea4207552ef2a41da9ac8989ff64fd60c564ccf6bc6930ea68faf5f49", "state"=>"caa3f5b0e77db2055efc6fc6d4571b9a28d9a0ff6aeb2376"}
237
+ Parameters: {"code"=>"uC1_m3BWNbgEgv_fIyd_J41XniD3TMhDsofeYTaPoEY", "state"=>"f5e56d641dd87dbbd91737828000e2a66ccc4d703d5a2286"}
623
238
  Authenticating with gds_sso strategy
624
239
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
625
-  (0.1ms) begin transaction
626
-  (0.1ms) commit transaction
627
-  (0.1ms) begin transaction
240
+  (0.0ms) begin transaction
628
241
   (0.1ms) commit transaction
242
+  (0.0ms) begin transaction
243
+  (0.0ms) commit transaction
629
244
  Redirected to http://www.example-client.com/restricted
630
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
631
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
245
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
246
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
632
247
  Processing by ExampleController#restricted as HTML
633
248
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
634
249
  Rendering text template
635
250
  Rendered text template (0.0ms)
636
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
637
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
251
+ Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 0.1ms)
252
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
638
253
  Processing by ExampleController#restricted as HTML
639
254
  Authenticating with gds_sso strategy
640
255
  Completed in 0ms (ActiveRecord: 0.0ms)
641
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
642
- Started GET "/auth/gds/callback?code=ba05f6ebbe9f543a6c59a5c2cbc61afac6dff2159199f41ee4fb45d0890ec208&state=0dc638a61e688a2095707f7546b6639392594e66291441c1" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
256
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
257
+ Started GET "/auth/gds/callback?code=3ve19Uzmtbue5ui6zqJdR_9fqKnriB9lGa6z1E_MnZs&state=d2d227c0bcc729ea97f23dc39c5824e21ea96435635d9677" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
643
258
  Processing by AuthenticationsController#callback as HTML
644
- Parameters: {"code"=>"ba05f6ebbe9f543a6c59a5c2cbc61afac6dff2159199f41ee4fb45d0890ec208", "state"=>"0dc638a61e688a2095707f7546b6639392594e66291441c1"}
259
+ Parameters: {"code"=>"3ve19Uzmtbue5ui6zqJdR_9fqKnriB9lGa6z1E_MnZs", "state"=>"d2d227c0bcc729ea97f23dc39c5824e21ea96435635d9677"}
645
260
  Authenticating with gds_sso strategy
646
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
647
-  (0.1ms) begin transaction
648
-  (0.1ms) commit transaction
261
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
262
+  (0.0ms) begin transaction
263
+  (0.0ms) commit transaction
649
264
   (0.0ms) begin transaction
650
265
   (0.0ms) commit transaction
651
266
  Redirected to http://www.example-client.com/restricted
652
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
653
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
267
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
654
269
  Processing by ExampleController#restricted as HTML
655
270
  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]]
656
271
  Rendering text template
657
272
  Rendered text template (0.0ms)
658
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
659
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
273
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
274
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
660
275
  Processing by ExampleController#restricted as HTML
661
276
  Authenticating with gds_sso strategy
662
- Completed in 1ms (ActiveRecord: 0.0ms)
663
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:04 +0000
664
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
277
+ Completed in 0ms (ActiveRecord: 0.0ms)
278
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
279
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
665
280
  Processing by ExampleController#restricted as HTML
666
281
  Authenticating with gds_sso strategy
667
282
  Completed in 0ms (ActiveRecord: 0.0ms)
668
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
669
- Started GET "/auth/gds/callback?code=f25757c86feb7dbc4bd328b8e8e80d9f0aa61a22cce18138b1f9ffaa906dd450&state=cfa3eede7cc3af1f8c800b96f7209b56067057ceac272a4c" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
283
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
284
+ Started GET "/auth/gds/callback?code=gRDEB2jbqdAAGGZAxaQlVWcYPlKb7Fob4ZrpW0gZUfQ&state=5a06fcd6a2e53d43e2cf0530a073a1b80547bbf16f1eb58f" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
670
285
  Processing by AuthenticationsController#callback as HTML
671
- Parameters: {"code"=>"f25757c86feb7dbc4bd328b8e8e80d9f0aa61a22cce18138b1f9ffaa906dd450", "state"=>"cfa3eede7cc3af1f8c800b96f7209b56067057ceac272a4c"}
286
+ Parameters: {"code"=>"gRDEB2jbqdAAGGZAxaQlVWcYPlKb7Fob4ZrpW0gZUfQ", "state"=>"5a06fcd6a2e53d43e2cf0530a073a1b80547bbf16f1eb58f"}
672
287
  Authenticating with gds_sso strategy
673
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
674
-  (0.1ms) begin transaction
288
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
289
+  (0.0ms) begin transaction
675
290
   (0.0ms) commit transaction
676
291
   (0.0ms) begin transaction
677
292
   (0.0ms) commit transaction
678
293
  Redirected to http://www.example-client.com/restricted
679
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
680
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:04 +0000
294
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
295
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
681
296
  Processing by ExampleController#restricted as HTML
682
297
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
683
298
  Rendering text template
684
299
  Rendered text template (0.0ms)
685
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
686
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
687
-  (0.1ms) begin transaction
688
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
689
-  (5.4ms) commit transaction
690
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
300
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
301
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:25:28 +0000
691
302
  Processing by ExampleController#restricted as HTML
692
303
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
304
+ Rendering text template
305
+ Rendered text template (0.0ms)
306
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
307
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
308
+ Processing by ExampleController#restricted as HTML
693
309
  Authenticating with gds_sso strategy
694
- Completed in 1ms (ActiveRecord: 0.1ms)
695
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
696
- Started GET "/auth/gds/callback?code=2f18120d84e864a48f8f0d9abdf73868f1377630d70b779735a50ab304e20026&state=3806da0be94442742b5dff39d7928a0aaa3c8f424d58db63" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
310
+ Completed in 0ms (ActiveRecord: 0.0ms)
311
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
312
+ Started GET "/auth/gds/callback?code=qb68Dd9gN_70qvVFw7-A1bKvXPzTbxW7H21AFDey_Mc&state=e4c792c21b21297cbea468219e5d3b97703230ae78d8e289" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
697
313
  Processing by AuthenticationsController#callback as HTML
698
- Parameters: {"code"=>"2f18120d84e864a48f8f0d9abdf73868f1377630d70b779735a50ab304e20026", "state"=>"3806da0be94442742b5dff39d7928a0aaa3c8f424d58db63"}
314
+ Parameters: {"code"=>"qb68Dd9gN_70qvVFw7-A1bKvXPzTbxW7H21AFDey_Mc", "state"=>"e4c792c21b21297cbea468219e5d3b97703230ae78d8e289"}
699
315
  Authenticating with gds_sso strategy
700
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
701
-  (0.1ms) begin transaction
702
-  (0.0ms) commit transaction
316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
317
+  (0.0ms) begin transaction
318
+  (0.1ms) commit transaction
703
319
   (0.0ms) begin transaction
704
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
705
-  (3.1ms) commit transaction
320
+  (0.0ms) commit transaction
706
321
  Redirected to http://www.example-client.com/restricted
707
- Completed 302 Found in 7ms (ActiveRecord: 3.7ms)
708
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
322
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
323
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
709
324
  Processing by ExampleController#restricted as HTML
710
325
  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]]
711
326
  Rendering text template
712
- Rendered text template (0.1ms)
713
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
714
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:05 +0000
327
+ Rendered text template (0.0ms)
328
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
329
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
715
330
  Processing by ExampleController#restricted as HTML
716
331
  Authenticating with gds_sso strategy
717
332
  Completed in 0ms (ActiveRecord: 0.0ms)
718
-  (0.1ms) begin transaction
719
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39360"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
720
-  (4.6ms) commit transaction
721
-  (0.0ms) begin transaction
722
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37317"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
723
-  (4.1ms) commit transaction
724
- Processing by Api::UserController#reauth as HTML
725
- Parameters: {"uid"=>"a1s2d39360"}
726
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d39360"], ["LIMIT", 1]]
727
-  (0.1ms) begin transaction
728
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
729
-  (3.6ms) commit transaction
730
- Completed 200 OK in 6ms (ActiveRecord: 4.0ms)
731
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
732
-  (0.0ms) begin transaction
733
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33753"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
734
-  (7.3ms) commit transaction
735
-  (0.0ms) begin transaction
736
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3305"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
737
-  (8.5ms) commit transaction
738
- Processing by Api::UserController#reauth as HTML
739
- Parameters: {"uid"=>"a1s2d33753"}
740
- Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
741
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
742
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
743
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
744
- Completed 403 Forbidden in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
745
-  (0.1ms) begin transaction
746
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32284"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
747
-  (4.6ms) commit transaction
748
-  (0.1ms) begin transaction
749
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32264"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
750
-  (3.9ms) commit transaction
751
- Processing by Api::UserController#reauth as HTML
752
- Parameters: {"uid"=>"nonexistent-user"}
753
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
754
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
755
-  (0.0ms) begin transaction
756
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35431"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
757
-  (4.6ms) commit transaction
758
-  (0.0ms) begin transaction
759
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37098"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
760
-  (3.7ms) commit transaction
761
- Processing by Api::UserController#update as HTML
762
- Parameters: {"uid"=>"a1s2d35431"}
763
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35431"], ["LIMIT", 1]]
764
-  (0.0ms) begin transaction
765
- User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
766
-  (3.5ms) commit transaction
767
- Completed 200 OK in 7ms (ActiveRecord: 3.9ms)
768
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
769
-  (0.0ms) begin transaction
770
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31403"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
771
-  (7.4ms) commit transaction
333
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
334
+ Started GET "/auth/gds/callback?code=1TVTeXCnPzzVBtZkj8vl2uioLmGV7FlVvsFnmAcwmwk&state=035bf0092b698f67501d896f38b3bef1e1627e63c1b4188e" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
335
+ Processing by AuthenticationsController#callback as HTML
336
+ Parameters: {"code"=>"1TVTeXCnPzzVBtZkj8vl2uioLmGV7FlVvsFnmAcwmwk", "state"=>"035bf0092b698f67501d896f38b3bef1e1627e63c1b4188e"}
337
+ Authenticating with gds_sso strategy
338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
772
339
   (0.0ms) begin transaction
773
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36303"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
774
-  (4.0ms) commit transaction
775
- Processing by Api::UserController#update as HTML
776
- Parameters: {"uid"=>"a1s2d31403"}
777
- Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
778
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
779
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
780
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
781
- Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
782
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
783
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
784
-  (0.1ms) begin transaction
785
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
786
-  (3.6ms) commit transaction
787
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
340
+  (0.0ms) commit transaction
788
341
   (0.0ms) begin transaction
789
342
   (0.0ms) commit transaction
790
-  (3.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
791
-  (3.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
792
-  (0.1ms) select sqlite_version(*)
793
-  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
795
- Processing by ExampleController#this_requires_signin_permission as JSON
796
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
797
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
798
-  (0.1ms) begin transaction
799
- 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]]
800
-  (4.5ms) commit transaction
801
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
802
-  (0.0ms) begin transaction
803
-  (0.1ms) commit transaction
804
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
805
-  (0.1ms) begin transaction
806
-  (0.1ms) commit transaction
807
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
808
-  (0.1ms) begin transaction
809
-  (0.1ms) commit transaction
810
-  (0.0ms) begin transaction
811
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
812
-  (6.1ms) commit transaction
813
- Rendered text template (0.0ms)
814
- Completed 200 OK in 108ms (Views: 9.1ms | ActiveRecord: 12.7ms)
815
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
816
- Processing by ExampleController#restricted as JSON
817
- Completed in 13ms (ActiveRecord: 0.0ms)
818
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:11 +0000
819
- Processing by ExampleController#restricted as JSON
820
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
821
-  (0.1ms) begin transaction
822
-  (0.1ms) commit transaction
823
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
824
-  (0.1ms) begin transaction
825
-  (0.1ms) commit transaction
826
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
827
-  (0.1ms) begin transaction
828
-  (0.1ms) commit transaction
829
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
830
-  (0.1ms) begin transaction
831
-  (0.1ms) commit transaction
832
-  (0.0ms) begin transaction
833
-  (0.1ms) commit transaction
343
+ Redirected to http://www.example-client.com/restricted
344
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
345
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:28 +0000
346
+ Processing by ExampleController#restricted as HTML
347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
348
+ Rendering text template
834
349
  Rendered text template (0.0ms)
835
- Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 0.8ms)
836
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
837
- Processing by ExampleController#restricted as JSON
838
- Completed in 19ms (ActiveRecord: 0.0ms)
839
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
350
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
351
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
840
352
  Processing by ExampleController#restricted as HTML
841
353
  Authenticating with gds_sso strategy
842
354
  Completed in 0ms (ActiveRecord: 0.0ms)
843
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
844
- Started GET "/auth/gds/callback?code=dd812cdd5e46a8c52a3ecb64c9c8f864289af877d65ef992e6dd215eb9fce143&state=626d7df0b26b8530d06e1f84ea52490395c8be1ecbe1cfe4" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
355
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
356
+ Started GET "/auth/gds/callback?code=7jIqjNEZcZB_myhQcBlUspxZz0naY5OkcFMkl4H-wDU&state=4d6498930ca82bc9ad804093f4683f0ce3f06bf3d85607c7" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
845
357
  Processing by AuthenticationsController#callback as HTML
846
- Parameters: {"code"=>"dd812cdd5e46a8c52a3ecb64c9c8f864289af877d65ef992e6dd215eb9fce143", "state"=>"626d7df0b26b8530d06e1f84ea52490395c8be1ecbe1cfe4"}
847
- Authenticating with gds_sso strategy
848
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
849
-  (0.1ms) begin transaction
850
- SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
851
-  (4.1ms) commit transaction
852
-  (0.0ms) begin transaction
853
-  (0.0ms) commit transaction
358
+ Parameters: {"code"=>"7jIqjNEZcZB_myhQcBlUspxZz0naY5OkcFMkl4H-wDU", "state"=>"4d6498930ca82bc9ad804093f4683f0ce3f06bf3d85607c7"}
359
+ Authenticating with gds_sso strategy
360
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
361
+  (0.0ms) begin transaction
362
+  (0.0ms) commit transaction
363
+  (0.0ms) begin transaction
364
+  (0.0ms) commit transaction
854
365
  Redirected to http://www.example-client.com/restricted
855
- Completed 302 Found in 9ms (ActiveRecord: 4.6ms)
856
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
366
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
367
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
857
368
  Processing by ExampleController#restricted as HTML
858
- 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"]]
369
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
370
+ Rendering text template
859
371
  Rendered text template (0.0ms)
860
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
861
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
372
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
374
+  (0.0ms) begin transaction
375
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
376
+  (7.2ms) commit transaction
377
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
862
378
  Processing by ExampleController#restricted as HTML
379
+ 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]]
863
380
  Authenticating with gds_sso strategy
864
- Completed in 0ms (ActiveRecord: 0.0ms)
865
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
866
- Started GET "/auth/gds/callback?code=ece0516949048a45623b71c607301ba87f2aa846f7ae0cd685d11791a1d8799f&state=39485c198da19461794feb47b78bb6fa2f3d0f6d64019e0e" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
381
+ Completed in 1ms (ActiveRecord: 0.1ms)
382
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
383
+ Started GET "/auth/gds/callback?code=TmrgzvTZZPAjsCbcL5jsAObXc8KImNbvz9KHQUb6Yd0&state=998904e72a6470aa7952433aa79a7787971e50f69a08325e" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
867
384
  Processing by AuthenticationsController#callback as HTML
868
- Parameters: {"code"=>"ece0516949048a45623b71c607301ba87f2aa846f7ae0cd685d11791a1d8799f", "state"=>"39485c198da19461794feb47b78bb6fa2f3d0f6d64019e0e"}
385
+ Parameters: {"code"=>"TmrgzvTZZPAjsCbcL5jsAObXc8KImNbvz9KHQUb6Yd0", "state"=>"998904e72a6470aa7952433aa79a7787971e50f69a08325e"}
869
386
  Authenticating with gds_sso strategy
870
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
871
-  (0.1ms) begin transaction
872
-  (0.0ms) commit transaction
873
-  (0.0ms) begin transaction
874
-  (0.0ms) commit transaction
387
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
388
+  (0.1ms) begin transaction
389
+  (0.0ms) commit transaction
390
+  (0.0ms) begin transaction
391
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
392
+  (4.8ms) commit transaction
875
393
  Redirected to http://www.example-client.com/restricted
876
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
877
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
394
+ Completed 302 Found in 8ms (ActiveRecord: 5.3ms)
395
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:28 +0000
878
396
  Processing by ExampleController#restricted as HTML
879
- 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"]]
880
- Rendered text template (0.0ms)
881
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
882
- Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
883
- Processing by ExampleController#index as HTML
397
+ 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]]
398
+ Rendering text template
884
399
  Rendered text template (0.0ms)
885
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
886
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
400
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
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.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "4960"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
404
+  (6.5ms) commit transaction
405
+  (0.0ms) begin transaction
406
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
407
+  (6.7ms) commit transaction
408
+  (1.0ms) SELECT sqlite_version(*)
409
+  (0.0ms) SELECT sqlite_version(*)
410
+  (0.1ms) DROP TABLE IF EXISTS "users"
411
+  (28.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
412
+  (50.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
413
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
+ TRANSACTION (0.0ms) begin transaction
415
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-06-10 10:30:36.659757"], ["updated_at", "2021-06-10 10:30:36.659757"]]
416
+ TRANSACTION (9.6ms) commit transaction
417
+  (8.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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
421
+ TRANSACTION (0.0ms) begin transaction
422
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "7088"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
423
+ TRANSACTION (9.3ms) commit transaction
424
+ TRANSACTION (0.0ms) begin transaction
425
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
426
+ TRANSACTION (9.2ms) commit transaction
427
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
428
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
429
+ TRANSACTION (0.0ms) begin transaction
430
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
431
+ TRANSACTION (9.1ms) commit transaction
432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
433
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
887
434
  Processing by ExampleController#this_requires_signin_permission as HTML
888
435
  Authenticating with gds_sso strategy
889
- Completed in 0ms (ActiveRecord: 0.0ms)
890
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
891
- Started GET "/auth/gds/callback?code=32380e0a6d719ec148ad119535ea4f817709a52ee13cf32a5a1f5d70b55fd503&state=21eb58a67be5eb8098d7970bf6bc70a8f266441561a711a9" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
436
+ Completed in 11ms (ActiveRecord: 0.0ms | Allocations: 1328)
437
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
438
+ Started GET "/auth/gds/callback?code=8aR534GBTpwECc08vQQVQOraAYfQvEjh5hTlJvvzzVg&state=2a301db727905da0fa36957fa3526f610c4973148bd80795" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
892
439
  Processing by AuthenticationsController#callback as HTML
893
- Parameters: {"code"=>"32380e0a6d719ec148ad119535ea4f817709a52ee13cf32a5a1f5d70b55fd503", "state"=>"21eb58a67be5eb8098d7970bf6bc70a8f266441561a711a9"}
894
- Authenticating with gds_sso strategy
895
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
896
-  (0.1ms) begin transaction
897
-  (0.1ms) commit transaction
898
-  (0.0ms) begin transaction
899
-  (0.0ms) commit transaction
440
+ Parameters: {"code"=>"8aR534GBTpwECc08vQQVQOraAYfQvEjh5hTlJvvzzVg", "state"=>"2a301db727905da0fa36957fa3526f610c4973148bd80795"}
441
+ Authenticating with gds_sso strategy
442
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
443
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
444
+ TRANSACTION (0.1ms) begin transaction
445
+ 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"]]
446
+ TRANSACTION (5.3ms) commit transaction
447
+ TRANSACTION (0.0ms) begin transaction
448
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 3]]
449
+ TRANSACTION (5.7ms) commit transaction
900
450
  Redirected to http://www.example-client.com/this_requires_signin_permission
901
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
902
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
451
+ Completed 302 Found in 16ms (ActiveRecord: 11.7ms | Allocations: 1508)
452
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
903
453
  Processing by ExampleController#this_requires_signin_permission as HTML
904
- 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"]]
905
- Rendered text template (0.0ms)
906
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
907
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
454
+ 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]]
455
+ Rendering text template
456
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
457
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms | Allocations: 1878)
458
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
908
459
  Processing by ExampleController#this_requires_signin_permission as HTML
909
460
  Authenticating with gds_sso strategy
910
- Completed in 0ms (ActiveRecord: 0.0ms)
911
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
912
- Started GET "/auth/gds/callback?code=1b1fc01302bd1bc079f28eb2d0d054484b95b30e8db51dcd95281fc89e8666f3&state=fd73f5c93e145753164fa8d43dd9cc60dba86eb3ba6bf226" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
461
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
462
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
463
+ Started GET "/auth/gds/callback?code=njujNdvEW_QtIIJp6N0t-MP3FIFDXXsbxayC14eOyrY&state=52764e9d78dea362e3351d0c7b2d1f3d0b71412765664451" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
913
464
  Processing by AuthenticationsController#callback as HTML
914
- Parameters: {"code"=>"1b1fc01302bd1bc079f28eb2d0d054484b95b30e8db51dcd95281fc89e8666f3", "state"=>"fd73f5c93e145753164fa8d43dd9cc60dba86eb3ba6bf226"}
465
+ Parameters: {"code"=>"njujNdvEW_QtIIJp6N0t-MP3FIFDXXsbxayC14eOyrY", "state"=>"52764e9d78dea362e3351d0c7b2d1f3d0b71412765664451"}
915
466
  Authenticating with gds_sso strategy
916
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
917
-  (0.1ms) begin transaction
918
-  (0.0ms) commit transaction
919
-  (0.1ms) begin transaction
920
-  (0.1ms) commit transaction
467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
921
468
  Redirected to http://www.example-client.com/this_requires_signin_permission
922
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
923
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
469
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
470
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
924
471
  Processing by ExampleController#this_requires_signin_permission as HTML
925
- 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"]]
926
- Rendered text template (0.0ms)
927
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
928
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
472
+ 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]]
473
+ Rendering text template
474
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
475
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
476
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
929
477
  Processing by ExampleController#restricted as HTML
930
478
  Authenticating with gds_sso strategy
931
- Completed in 0ms (ActiveRecord: 0.0ms)
932
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
933
- Started GET "/auth/gds/callback?code=79bcc1397f0c11b5303566dc40bdb7b4b58049757112daef86f414f5334b3b99&state=830bc8243c62b9320b873e83ba04c94e36044c30aa0255fc" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
479
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
480
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
481
+ Started GET "/auth/gds/callback?code=R_lWFyGDxKwzvEKD9fBIkRij-9IEsqFaBVvIbG6xpiQ&state=cd3ed937eee9eeed0373b6ccc8c583b9ed6a029a55ae9277" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
934
482
  Processing by AuthenticationsController#callback as HTML
935
- Parameters: {"code"=>"79bcc1397f0c11b5303566dc40bdb7b4b58049757112daef86f414f5334b3b99", "state"=>"830bc8243c62b9320b873e83ba04c94e36044c30aa0255fc"}
483
+ Parameters: {"code"=>"R_lWFyGDxKwzvEKD9fBIkRij-9IEsqFaBVvIbG6xpiQ", "state"=>"cd3ed937eee9eeed0373b6ccc8c583b9ed6a029a55ae9277"}
936
484
  Authenticating with gds_sso strategy
937
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
938
-  (0.1ms) begin transaction
939
-  (0.1ms) commit transaction
940
-  (0.0ms) begin transaction
941
-  (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]]
942
486
  Redirected to http://www.example-client.com/restricted
943
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
944
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
487
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms | Allocations: 954)
488
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
945
489
  Processing by ExampleController#restricted as HTML
946
- 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"]]
947
- Rendered text template (0.0ms)
948
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
949
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
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]]
491
+ Rendering text template
492
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
493
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 706)
494
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
950
495
  Processing by ExampleController#restricted as HTML
951
496
  Authenticating with gds_sso strategy
952
- Completed in 0ms (ActiveRecord: 0.0ms)
953
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:12 +0000
954
- Started GET "/auth/gds/callback?code=a85d986c64bcd23d6ac88f6d6879f0d0c72396e7bc5372a406c9a9b72bc4fe25&state=5617262dffa6731048617294e6a233f068b014b1a35ce823" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
497
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
498
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
499
+ Started GET "/auth/gds/callback?code=PborNNhaSRNUuYerUy8s7WwRY3cIwhIi0Zg23VsNbIU&state=d1673429b6d57b85fa608c5c09871e8d89c7a0554437c965" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
955
500
  Processing by AuthenticationsController#callback as HTML
956
- Parameters: {"code"=>"a85d986c64bcd23d6ac88f6d6879f0d0c72396e7bc5372a406c9a9b72bc4fe25", "state"=>"5617262dffa6731048617294e6a233f068b014b1a35ce823"}
501
+ Parameters: {"code"=>"PborNNhaSRNUuYerUy8s7WwRY3cIwhIi0Zg23VsNbIU", "state"=>"d1673429b6d57b85fa608c5c09871e8d89c7a0554437c965"}
957
502
  Authenticating with gds_sso strategy
958
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
959
-  (0.1ms) begin transaction
960
-  (0.0ms) commit transaction
961
-  (0.0ms) begin transaction
962
-  (0.0ms) commit transaction
503
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
963
504
  Redirected to http://www.example-client.com/restricted
964
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
965
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
505
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 956)
506
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
966
507
  Processing by ExampleController#restricted as HTML
967
- 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"]]
968
- Rendered text template (0.0ms)
969
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
970
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:13 +0000
971
- Processing by ExampleController#restricted as HTML
972
- 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"]]
973
- Rendered text template (0.0ms)
974
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
975
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
508
+ 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]]
509
+ Rendering text template
510
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
511
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
512
+ Started GET "/" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
513
+ Processing by ExampleController#index as HTML
514
+ Rendering text template
515
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
516
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 152)
517
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
976
518
  Processing by ExampleController#restricted as HTML
977
519
  Authenticating with gds_sso strategy
978
- Completed in 0ms (ActiveRecord: 0.0ms)
979
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
980
- Started GET "/auth/gds/callback?code=cd337cef55f20dbb455571c6882f0182824a8193a3476077b64826d8abc1a2b3&state=74f60128482fb3095cf8075baf672f84ae42c7de839e3368" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
520
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
521
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
522
+ Started GET "/auth/gds/callback?code=FHrVL9iV6eGb8332lllh76sJXT7cNReWGA8qkqTZyZ0&state=8035d255a78ecf5a32692ffc4cb852f79a5fddeca4f8b7ef" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
981
523
  Processing by AuthenticationsController#callback as HTML
982
- Parameters: {"code"=>"cd337cef55f20dbb455571c6882f0182824a8193a3476077b64826d8abc1a2b3", "state"=>"74f60128482fb3095cf8075baf672f84ae42c7de839e3368"}
524
+ Parameters: {"code"=>"FHrVL9iV6eGb8332lllh76sJXT7cNReWGA8qkqTZyZ0", "state"=>"8035d255a78ecf5a32692ffc4cb852f79a5fddeca4f8b7ef"}
983
525
  Authenticating with gds_sso strategy
984
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
985
-  (0.1ms) begin transaction
986
-  (0.0ms) commit transaction
987
-  (0.0ms) begin transaction
988
-  (0.0ms) 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]]
989
527
  Redirected to http://www.example-client.com/restricted
990
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
991
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
528
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
529
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
992
530
  Processing by ExampleController#restricted as HTML
993
- 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"]]
994
- Rendered text template (0.0ms)
995
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
996
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
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]]
532
+ Rendering text template
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 2021-06-10 10:30:37 +0000
997
536
  Processing by ExampleController#restricted as HTML
998
537
  Authenticating with gds_sso strategy
999
- Completed in 0ms (ActiveRecord: 0.0ms)
1000
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1001
- Started GET "/auth/gds/callback?code=768f547a0848cbf0440df0ed7630a4bb35c2bb4331ed4477365bebc9df96b844&state=547ea3f901138f73c5b206a53ec5e35e49a4b84800b06e53" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
538
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
539
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
540
+ Started GET "/auth/gds/callback?code=GEupc4D0RXd_-ZQvHcBcs_AWacINgDIxzncJTFvaaKk&state=8217b0c23f865c15f35eb2fafcb3e2c0b5d27eca876c9aee" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1002
541
  Processing by AuthenticationsController#callback as HTML
1003
- Parameters: {"code"=>"768f547a0848cbf0440df0ed7630a4bb35c2bb4331ed4477365bebc9df96b844", "state"=>"547ea3f901138f73c5b206a53ec5e35e49a4b84800b06e53"}
542
+ Parameters: {"code"=>"GEupc4D0RXd_-ZQvHcBcs_AWacINgDIxzncJTFvaaKk", "state"=>"8217b0c23f865c15f35eb2fafcb3e2c0b5d27eca876c9aee"}
1004
543
  Authenticating with gds_sso strategy
1005
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1006
-  (0.1ms) begin transaction
1007
-  (0.1ms) commit transaction
1008
-  (0.1ms) begin transaction
1009
-  (0.1ms) 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]]
1010
545
  Redirected to http://www.example-client.com/restricted
1011
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1012
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
546
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
547
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1013
548
  Processing by ExampleController#restricted as HTML
1014
- 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"]]
1015
- Rendered text template (0.0ms)
1016
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1017
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
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]]
550
+ Rendering text template
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 2021-06-11 06:35:37 +0000
1018
554
  Processing by ExampleController#restricted as HTML
1019
555
  Authenticating with gds_sso strategy
1020
- Completed in 0ms (ActiveRecord: 0.0ms)
1021
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1022
- Started GET "/auth/gds/callback?code=15b9ba3e07690c6db51b357a084750c4f0d2bcb6687acb93d5a64074c38b7cf4&state=13016dbd3c76bd970b967c37c6e6db88e55df6e956f65e16" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
556
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 518)
557
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:37 +0000
558
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
559
+ Processing by ExampleController#restricted as HTML
560
+ Authenticating with gds_sso strategy
561
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
562
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
563
+ Started GET "/auth/gds/callback?code=26YRM7zzQjcd0kbFCB34Qg5plBP-RGwxGG9Zt48uiys&state=33d6934dbb642702761f59ccd86b80468fc8122d93a77c3e" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1023
564
  Processing by AuthenticationsController#callback as HTML
1024
- Parameters: {"code"=>"15b9ba3e07690c6db51b357a084750c4f0d2bcb6687acb93d5a64074c38b7cf4", "state"=>"13016dbd3c76bd970b967c37c6e6db88e55df6e956f65e16"}
565
+ Parameters: {"code"=>"26YRM7zzQjcd0kbFCB34Qg5plBP-RGwxGG9Zt48uiys", "state"=>"33d6934dbb642702761f59ccd86b80468fc8122d93a77c3e"}
1025
566
  Authenticating with gds_sso strategy
1026
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1027
-  (0.1ms) begin transaction
1028
-  (0.0ms) commit transaction
1029
-  (0.0ms) begin transaction
1030
-  (0.0ms) commit transaction
567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1031
568
  Redirected to http://www.example-client.com/restricted
1032
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1033
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
569
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 956)
570
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1034
571
  Processing by ExampleController#restricted as HTML
1035
- 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"]]
1036
- Rendered text template (0.0ms)
1037
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1038
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
572
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
573
+ Rendering text template
574
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
575
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
576
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:37 +0000
1039
577
  Processing by ExampleController#restricted as HTML
1040
578
  Authenticating with gds_sso strategy
1041
- Completed in 0ms (ActiveRecord: 0.0ms)
1042
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:13 +0000
1043
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
579
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 518)
580
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:37 +0000
581
+ Started GET "/auth/gds/callback?code=OHoMOzgG_1ekae5Oc96Q4EITaWT5V28fOEfB9Qn5m6M&state=c889f0ffdca95a0e97849411c4930fbada920f7520b5884e" for 127.0.0.1 at 2021-06-11 06:35:37 +0000
582
+ Processing by AuthenticationsController#callback as HTML
583
+ Parameters: {"code"=>"OHoMOzgG_1ekae5Oc96Q4EITaWT5V28fOEfB9Qn5m6M", "state"=>"c889f0ffdca95a0e97849411c4930fbada920f7520b5884e"}
584
+ Authenticating with gds_sso strategy
585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
586
+ Redirected to http://www.example-client.com/restricted
587
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1164)
588
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:37 +0000
589
+ Processing by ExampleController#restricted as HTML
590
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
591
+ Rendering text template
592
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
593
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 941)
594
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1044
595
  Processing by ExampleController#restricted as HTML
1045
596
  Authenticating with gds_sso strategy
1046
- Completed in 0ms (ActiveRecord: 0.0ms)
1047
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1048
- Started GET "/auth/gds/callback?code=95669eeef70fddf935f37a9e082a21c4d4d29f30ff355011aee035459a209941&state=190ad76b731783db4fb8201905d65d645e815e20be639000" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
597
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
598
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
599
+ Started GET "/auth/gds/callback?code=DgwvLsSm6JNEkhI3QaYJvus-fqXa_xLHg-msjnm1_DU&state=61420a59a7dd7ea72f630d5c175e4cdf7d8417b681f761f0" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1049
600
  Processing by AuthenticationsController#callback as HTML
1050
- Parameters: {"code"=>"95669eeef70fddf935f37a9e082a21c4d4d29f30ff355011aee035459a209941", "state"=>"190ad76b731783db4fb8201905d65d645e815e20be639000"}
601
+ Parameters: {"code"=>"DgwvLsSm6JNEkhI3QaYJvus-fqXa_xLHg-msjnm1_DU", "state"=>"61420a59a7dd7ea72f630d5c175e4cdf7d8417b681f761f0"}
1051
602
  Authenticating with gds_sso strategy
1052
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1053
-  (0.1ms) begin transaction
1054
-  (0.0ms) commit transaction
1055
-  (0.0ms) begin transaction
1056
-  (0.0ms) commit transaction
603
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1057
604
  Redirected to http://www.example-client.com/restricted
1058
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1059
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
605
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
606
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1060
607
  Processing by ExampleController#restricted as HTML
1061
- 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"]]
1062
- Rendered text template (0.0ms)
1063
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1064
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1065
-  (0.0ms) begin transaction
1066
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
1067
-  (5.9ms) commit transaction
1068
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
608
+ 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]]
609
+ Rendering text template
610
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
611
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
612
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:25:37 +0000
613
+ Processing by ExampleController#restricted as HTML
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]]
615
+ Rendering text template
616
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
617
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 939)
618
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1069
619
  Processing by ExampleController#restricted as HTML
1070
- 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"]]
1071
620
  Authenticating with gds_sso strategy
1072
- Completed in 1ms (ActiveRecord: 0.1ms)
1073
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
1074
- Started GET "/auth/gds/callback?code=3a476b2813ed5ee3c0192a09318149e921a04fc20da35f0bee773ea5dd4260a7&state=98cd0ee42509e856d23aab42d6bb804f4094de674b7cf362" for 127.0.0.1 at 2020-03-02 14:30:13 +0000
621
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 138)
622
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
623
+ Started GET "/auth/gds/callback?code=__kXQJGvRY9iQIu49JUFdYG90m-gJrkxwDyKSbXtgig&state=969fa8f7610fc1c1bbc12dbe8d5cc052bbcb8906a447844f" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1075
624
  Processing by AuthenticationsController#callback as HTML
1076
- Parameters: {"code"=>"3a476b2813ed5ee3c0192a09318149e921a04fc20da35f0bee773ea5dd4260a7", "state"=>"98cd0ee42509e856d23aab42d6bb804f4094de674b7cf362"}
1077
- Authenticating with gds_sso strategy
1078
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1079
-  (0.1ms) begin transaction
1080
-  (0.0ms) commit transaction
1081
-  (0.0ms) begin transaction
1082
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
1083
-  (18.8ms) commit transaction
625
+ Parameters: {"code"=>"__kXQJGvRY9iQIu49JUFdYG90m-gJrkxwDyKSbXtgig", "state"=>"969fa8f7610fc1c1bbc12dbe8d5cc052bbcb8906a447844f"}
626
+ Authenticating with gds_sso strategy
627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1084
628
  Redirected to http://www.example-client.com/restricted
1085
- Completed 302 Found in 23ms (ActiveRecord: 19.3ms)
1086
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:14 +0000
629
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 954)
630
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
1087
631
  Processing by ExampleController#restricted as HTML
1088
- 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"]]
1089
- Rendered text template (0.0ms)
1090
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1091
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:14 +0000
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]]
633
+ Rendering text template
634
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
635
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
636
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
637
+ TRANSACTION (0.0ms) begin transaction
638
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 3]]
639
+ TRANSACTION (8.9ms) commit transaction
640
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
641
+ Processing by ExampleController#restricted as HTML
642
+ 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]]
643
+ Authenticating with gds_sso strategy
644
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 576)
645
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:37 +0000
646
+ Started GET "/auth/gds/callback?code=uGWMkfVa7tpjif3i7Vb-SG_QOQEDOltYmvMJyy5S0do&state=59efd52753bc877dd6bab1fef36cd9ba67b1083422363baa" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
647
+ Processing by AuthenticationsController#callback as HTML
648
+ Parameters: {"code"=>"uGWMkfVa7tpjif3i7Vb-SG_QOQEDOltYmvMJyy5S0do", "state"=>"59efd52753bc877dd6bab1fef36cd9ba67b1083422363baa"}
649
+ Authenticating with gds_sso strategy
650
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
651
+ TRANSACTION (0.0ms) begin transaction
652
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 3]]
653
+ TRANSACTION (8.2ms) commit transaction
654
+ Redirected to http://www.example-client.com/restricted
655
+ Completed 302 Found in 13ms (ActiveRecord: 8.5ms | Allocations: 1164)
656
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
657
+ Processing by ExampleController#restricted as HTML
658
+ 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]]
659
+ Rendering text template
660
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
661
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
662
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
663
+ Processing by ExampleController#restricted as JSON
664
+ Completed in 9ms (ActiveRecord: 0.0ms | Allocations: 2304)
665
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
666
+ Processing by ExampleController#this_requires_signin_permission as JSON
667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
668
+ TRANSACTION (0.0ms) begin transaction
669
+ User Update (0.1ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 3]]
670
+ TRANSACTION (8.7ms) commit transaction
671
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
672
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
673
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
674
+ Rendering text template
675
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
676
+ Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 9.1ms | Allocations: 3566)
677
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
678
+ Processing by ExampleController#restricted as JSON
679
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
680
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
681
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
682
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
683
+ Rendering text template
684
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
685
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 3267)
686
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
687
+ Processing by ExampleController#restricted as JSON
688
+ Completed in 14ms (ActiveRecord: 0.0ms | Allocations: 1804)
689
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:38 +0000
1092
690
  Processing by ExampleController#restricted as HTML
1093
691
  Authenticating with gds_sso strategy
1094
- Completed in 0ms (ActiveRecord: 0.0ms)
1095
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1096
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1097
-  (0.0ms) begin transaction
1098
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1099
-  (3.7ms) commit transaction
1100
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1101
-  (0.1ms) begin transaction
1102
-  (0.0ms) commit transaction
1103
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "dummyapiuser@domain.com"]]
1104
-  (0.0ms) begin transaction
1105
- SQL (0.2ms) INSERT INTO "users" ("email", "uid", "name", "permissions") VALUES (?, ?, ?, ?) [["email", "dummyapiuser@domain.com"], ["uid", "2118"], ["name", "Dummy API user created by gds-sso"], ["permissions", "---\n- signin\n"]]
1106
-  (3.9ms) commit transaction
1107
-  (0.0ms) begin transaction
1108
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
1109
-  (3.5ms) commit transaction
1110
-  (0.0ms) begin transaction
1111
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37628"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1112
-  (3.7ms) commit transaction
1113
-  (0.0ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34291"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1115
-  (3.9ms) commit transaction
692
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 140)
693
+ TRANSACTION (0.1ms) begin transaction
694
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38852"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
695
+ TRANSACTION (6.0ms) commit transaction
696
+ TRANSACTION (0.0ms) begin transaction
697
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39597"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
698
+ TRANSACTION (8.1ms) commit transaction
699
+ Processing by Api::UserController#update as HTML
700
+ Parameters: {"uid"=>"a1s2d38852"}
701
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
702
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
703
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
704
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 262)
705
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
706
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.7ms | Allocations: 356)
707
+ Completed 403 Forbidden in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms | Allocations: 1638)
708
+ TRANSACTION (0.0ms) begin transaction
709
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33216"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
710
+ TRANSACTION (9.0ms) commit transaction
711
+ TRANSACTION (0.0ms) begin transaction
712
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39884"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
713
+ TRANSACTION (7.3ms) commit transaction
714
+ Processing by Api::UserController#update as HTML
715
+ Parameters: {"uid"=>"a1s2d33216"}
716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33216"], ["LIMIT", 1]]
717
+ TRANSACTION (0.0ms) begin transaction
718
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "email" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["name", "Joshua Marshall"], ["email", "user@domain.com"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 6]]
719
+ TRANSACTION (6.3ms) commit transaction
720
+ Completed 200 OK in 9ms (ActiveRecord: 6.6ms | Allocations: 1232)
721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
722
+ TRANSACTION (0.0ms) begin transaction
723
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37543"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
724
+ TRANSACTION (8.4ms) commit transaction
725
+ TRANSACTION (0.0ms) begin transaction
726
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32346"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
727
+ TRANSACTION (21.4ms) commit transaction
1116
728
  Processing by Api::UserController#reauth as HTML
1117
- Parameters: {"uid"=>"a1s2d37628"}
729
+ Parameters: {"uid"=>"a1s2d37543"}
730
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
731
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1118
732
  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/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
733
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 55)
1120
734
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1121
- Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
1122
-  (0.1ms) begin transaction
1123
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35348"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1124
-  (3.7ms) commit transaction
1125
-  (0.0ms) begin transaction
1126
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35349"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1127
-  (4.0ms) commit transaction
735
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.2ms | Allocations: 146)
736
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 527)
737
+ TRANSACTION (0.0ms) begin transaction
738
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39492"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
739
+ TRANSACTION (6.0ms) commit transaction
740
+ TRANSACTION (0.0ms) begin transaction
741
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32633"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
742
+ TRANSACTION (6.0ms) commit transaction
1128
743
  Processing by Api::UserController#reauth as HTML
1129
744
  Parameters: {"uid"=>"nonexistent-user"}
1130
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1131
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1132
-  (0.0ms) begin transaction
1133
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37757"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1134
-  (5.4ms) commit transaction
1135
-  (0.0ms) begin transaction
1136
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39708"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1137
-  (3.9ms) commit transaction
745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
746
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 500)
747
+ TRANSACTION (0.0ms) begin transaction
748
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3674"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
749
+ TRANSACTION (6.9ms) commit transaction
750
+ TRANSACTION (0.0ms) begin transaction
751
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38302"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
752
+ TRANSACTION (5.9ms) commit transaction
1138
753
  Processing by Api::UserController#reauth as HTML
1139
- Parameters: {"uid"=>"a1s2d37757"}
1140
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d37757"]]
1141
-  (0.0ms) begin transaction
1142
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1143
-  (2.5ms) commit transaction
1144
- Completed 200 OK in 4ms (ActiveRecord: 2.8ms)
1145
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1146
-  (0.0ms) begin transaction
1147
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36279"], ["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", "a1s2d3930"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1151
-  (3.4ms) commit transaction
1152
- Processing by Api::UserController#update as HTML
1153
- Parameters: {"uid"=>"a1s2d36279"}
1154
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1155
- Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1156
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1157
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1158
-  (0.0ms) begin transaction
1159
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33911"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1160
-  (6.8ms) commit transaction
1161
-  (0.1ms) begin transaction
1162
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32990"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1163
-  (4.8ms) commit transaction
1164
- Processing by Api::UserController#update as HTML
1165
- Parameters: {"uid"=>"a1s2d33911"}
1166
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33911"]]
1167
-  (0.1ms) begin transaction
1168
- SQL (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", 12]]
1169
-  (6.5ms) commit transaction
1170
- Completed 200 OK in 10ms (ActiveRecord: 6.9ms)
1171
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12]]
754
+ Parameters: {"uid"=>"a1s2d3674"}
755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3674"], ["LIMIT", 1]]
756
+ TRANSACTION (0.1ms) begin transaction
757
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 12]]
758
+ TRANSACTION (9.4ms) commit transaction
759
+ Completed 200 OK in 11ms (ActiveRecord: 9.7ms | Allocations: 889)
760
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]]
1172
761
   (0.1ms) DROP TABLE IF EXISTS "users"
1173
-  (1.2ms) SELECT sqlite_version(*)
1174
-  (3.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1175
-  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
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", "2020-03-02 14:30:20.186663"], ["updated_at", "2020-03-02 14:30:20.186663"]]
1179
-  (3.2ms) commit transaction
1180
-  (5.7ms) 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]]
762
+  (0.9ms) SELECT sqlite_version(*)
763
+  (27.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')
764
+  (9.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
765
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
766
+  (0.0ms) begin transaction
767
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-06-10 10:30:42.481738"], ["updated_at", "2021-06-10 10:30:42.481738"]]
768
+  (9.2ms) commit transaction
769
+  (9.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
770
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1182
771
   (0.0ms) begin transaction
1183
772
   (0.0ms) 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.9ms) commit transaction
1189
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1190
774
   (0.0ms) begin transaction
1191
-  (0.1ms) commit transaction
1192
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1193
- Processing by ExampleController#restricted as HTML
1194
- Authenticating with gds_sso strategy
1195
- Completed in 5ms (ActiveRecord: 0.0ms)
1196
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
775
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9405"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
776
+  (20.6ms) commit transaction
777
+  (0.0ms) begin transaction
778
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
779
+  (11.1ms) commit transaction
780
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1197
781
  Processing by ExampleController#restricted as HTML
1198
782
  Authenticating with gds_sso strategy
1199
- Completed in 0ms (ActiveRecord: 0.0ms)
1200
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1201
- Started GET "/auth/gds/callback?code=626790cbc5ceba33fa24e7224b17c82d37bc78f8df92274c1c794222f36f96ff&state=9bb03a8550932fe10fc993b13a886530d8e2467c3401a2c5" for 127.0.0.1 at 2020-03-02 14:30:20 +0000
1202
- Processing by AuthenticationsController#callback as HTML
1203
- Parameters: {"code"=>"626790cbc5ceba33fa24e7224b17c82d37bc78f8df92274c1c794222f36f96ff", "state"=>"9bb03a8550932fe10fc993b13a886530d8e2467c3401a2c5"}
1204
- Authenticating with gds_sso strategy
783
+ Completed in 4ms (ActiveRecord: 0.0ms)
784
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
785
+ Processing by ExampleController#restricted as JSON
786
+ Completed in 15ms (ActiveRecord: 0.0ms)
787
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
788
+ Processing by ExampleController#restricted as JSON
1205
789
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1206
790
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1207
-  (0.1ms) begin transaction
1208
- 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"]]
1209
-  (5.1ms) commit transaction
1210
-  (0.1ms) begin transaction
1211
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1212
-  (5.2ms) commit transaction
1213
- Redirected to http://www.example-client.com/restricted
1214
- Completed 302 Found in 16ms (ActiveRecord: 11.3ms)
1215
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1216
- Processing by ExampleController#restricted as HTML
1217
- 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]]
791
+  (0.0ms) begin transaction
792
+ 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]]
793
+  (13.3ms) commit transaction
794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
795
+  (0.0ms) begin transaction
796
+  (0.0ms) commit transaction
797
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
798
+  (0.0ms) begin transaction
799
+  (0.0ms) commit transaction
800
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
801
+  (0.0ms) begin transaction
802
+  (0.0ms) commit transaction
803
+  (0.0ms) begin transaction
804
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
805
+  (10.1ms) commit transaction
806
+ Rendering text template
807
+ Rendered text template (0.0ms)
808
+ Completed 200 OK in 32ms (Views: 1.8ms | ActiveRecord: 24.2ms)
809
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
810
+ Processing by ExampleController#restricted as JSON
811
+ Completed in 9ms (ActiveRecord: 0.0ms)
812
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
813
+ Processing by ExampleController#this_requires_signin_permission as JSON
814
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
815
+  (0.0ms) begin transaction
816
+  (0.0ms) commit transaction
817
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
818
+  (0.0ms) begin transaction
819
+  (0.0ms) commit transaction
820
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
821
+  (0.0ms) begin transaction
822
+  (0.0ms) commit transaction
823
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
824
+  (0.0ms) begin transaction
825
+  (0.0ms) commit transaction
826
+  (0.0ms) begin transaction
827
+  (0.0ms) commit transaction
1218
828
  Rendering text template
1219
829
  Rendered text template (0.0ms)
1220
- Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1221
- Started GET "/" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
830
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
831
+ Started GET "/" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1222
832
  Processing by ExampleController#index as HTML
1223
833
  Rendering text template
1224
834
  Rendered text template (0.0ms)
1225
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1226
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
835
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
836
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1227
837
  Processing by ExampleController#restricted as HTML
1228
838
  Authenticating with gds_sso strategy
1229
839
  Completed in 0ms (ActiveRecord: 0.0ms)
1230
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1231
- Started GET "/auth/gds/callback?code=7a1ca26d7a6215c7696dbea073651aabf12a9476c14f3261329d857fcfe58530&state=7f9ab544e0b3ba84927f418032838afef62945a7eb4348da" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
840
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
841
+ Started GET "/auth/gds/callback?code=QK_d2eOlo_pM4cbz_wZJw_H5UKIqelwZiSfIyTvr1uU&state=fb29a403224aeeca35f99fa768696083e9322cc33ebadeaa" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1232
842
  Processing by AuthenticationsController#callback as HTML
1233
- Parameters: {"code"=>"7a1ca26d7a6215c7696dbea073651aabf12a9476c14f3261329d857fcfe58530", "state"=>"7f9ab544e0b3ba84927f418032838afef62945a7eb4348da"}
843
+ Parameters: {"code"=>"QK_d2eOlo_pM4cbz_wZJw_H5UKIqelwZiSfIyTvr1uU", "state"=>"fb29a403224aeeca35f99fa768696083e9322cc33ebadeaa"}
1234
844
  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
1238
-  (0.1ms) begin transaction
1239
-  (0.1ms) commit transaction
845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
846
+  (0.0ms) begin transaction
847
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 2]]
848
+  (13.7ms) commit transaction
849
+  (0.0ms) begin transaction
850
+  (0.0ms) commit transaction
1240
851
  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 2020-03-02 14:30:21 +0000
852
+ Completed 302 Found in 16ms (ActiveRecord: 14.1ms)
853
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1243
854
  Processing by ExampleController#restricted as HTML
1244
- 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]]
855
+ 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]]
1245
856
  Rendering text template
1246
857
  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 2020-03-02 14:30:21 +0000
858
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
859
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1249
860
  Processing by ExampleController#restricted as HTML
1250
861
  Authenticating with gds_sso strategy
1251
862
  Completed in 0ms (ActiveRecord: 0.0ms)
1252
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1253
- Started GET "/auth/gds/callback?code=b16dcb8e40320f38403e25cd0c23c56e5a3480752a950a5fc212fc875daefde0&state=04a2f73151bfd8a64f2ff4241c137eb3e42328102142c300" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
863
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
864
+ Started GET "/auth/gds/callback?code=DNF6vhrLSyxmhK7Pqh84b__wcEFAucetYCG1Z7BCEzU&state=6736e66f5a569591dfadb8f730c9d5e77588072e8a22d858" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1254
865
  Processing by AuthenticationsController#callback as HTML
1255
- Parameters: {"code"=>"b16dcb8e40320f38403e25cd0c23c56e5a3480752a950a5fc212fc875daefde0", "state"=>"04a2f73151bfd8a64f2ff4241c137eb3e42328102142c300"}
866
+ Parameters: {"code"=>"DNF6vhrLSyxmhK7Pqh84b__wcEFAucetYCG1Z7BCEzU", "state"=>"6736e66f5a569591dfadb8f730c9d5e77588072e8a22d858"}
1256
867
  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
868
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
869
+  (0.0ms) begin transaction
1259
870
   (0.0ms) commit transaction
1260
871
   (0.0ms) begin transaction
1261
872
   (0.0ms) commit transaction
1262
873
  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 2020-03-02 14:30:21 +0000
874
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
875
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1265
876
  Processing by ExampleController#restricted as HTML
1266
877
  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
878
  Rendering text template
1268
879
  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 2020-03-02 14:30:21 +0000
880
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
881
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1271
882
  Processing by ExampleController#this_requires_signin_permission as HTML
1272
883
  Authenticating with gds_sso strategy
1273
884
  Completed in 0ms (ActiveRecord: 0.0ms)
1274
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1275
- Started GET "/auth/gds/callback?code=c5067ee091130c71216b3b8b91b03b96a72786634d88126fc1daac4dd7c73746&state=c279600a9c2ba5699334bfc8945825e5bde3472b484d0ee5" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
885
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
886
+ Started GET "/auth/gds/callback?code=sUN3qAGjbsnPLRVYmvhXzGzY_0BuvJinA1NUsJla_a4&state=e7a5cb0c448ddabdd11e7018842cc3aaf3a38ea09d279f5c" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1276
887
  Processing by AuthenticationsController#callback as HTML
1277
- Parameters: {"code"=>"c5067ee091130c71216b3b8b91b03b96a72786634d88126fc1daac4dd7c73746", "state"=>"c279600a9c2ba5699334bfc8945825e5bde3472b484d0ee5"}
888
+ Parameters: {"code"=>"sUN3qAGjbsnPLRVYmvhXzGzY_0BuvJinA1NUsJla_a4", "state"=>"e7a5cb0c448ddabdd11e7018842cc3aaf3a38ea09d279f5c"}
1278
889
  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]]
890
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1280
891
   (0.1ms) begin transaction
1281
892
   (0.0ms) commit transaction
1282
893
   (0.0ms) begin transaction
1283
-  (0.0ms) commit transaction
894
+  (0.1ms) commit transaction
1284
895
  Redirected to http://www.example-client.com/this_requires_signin_permission
1285
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1286
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
896
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
897
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1287
898
  Processing by ExampleController#this_requires_signin_permission as HTML
1288
899
  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
900
  Rendering text template
1290
901
  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 2020-03-02 14:30:21 +0000
902
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
903
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1293
904
  Processing by ExampleController#this_requires_signin_permission as HTML
1294
905
  Authenticating with gds_sso strategy
1295
906
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1297
- Started GET "/auth/gds/callback?code=ce170146f1a9fc5c8b1ca145de07d59f0db643828a1f59af5081c5278e00de6d&state=bd1c94079d6f5db32407967b9c274ad8e62eb4f2db479bcd" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
907
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
908
+ Started GET "/auth/gds/callback?code=5kU3CGbve2-NyI3okYOhxKSZ8Ty12I4iIQEAEuyrhKk&state=ffd8d6b733e6e65e6fe20758eb7f41b4f2979f38459d1108" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1298
909
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"ce170146f1a9fc5c8b1ca145de07d59f0db643828a1f59af5081c5278e00de6d", "state"=>"bd1c94079d6f5db32407967b9c274ad8e62eb4f2db479bcd"}
910
+ Parameters: {"code"=>"5kU3CGbve2-NyI3okYOhxKSZ8Ty12I4iIQEAEuyrhKk", "state"=>"ffd8d6b733e6e65e6fe20758eb7f41b4f2979f38459d1108"}
1300
911
  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
912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
913
+  (0.0ms) begin transaction
1303
914
   (0.0ms) commit transaction
1304
915
   (0.0ms) begin transaction
1305
916
   (0.0ms) commit transaction
1306
917
  Redirected to http://www.example-client.com/this_requires_signin_permission
1307
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1308
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
918
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
919
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1309
920
  Processing by ExampleController#this_requires_signin_permission as HTML
1310
921
  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
922
  Rendering text template
1312
923
  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 2020-03-02 14:30:21 +0000
924
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
925
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1315
926
  Processing by ExampleController#restricted as HTML
1316
927
  Authenticating with gds_sso strategy
1317
928
  Completed in 0ms (ActiveRecord: 0.0ms)
1318
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
1319
- Started GET "/auth/gds/callback?code=8e00c01772841ff655c5d18d34825c00956262dacb5bc11c8964766111fa5207&state=ec05d99780afc9407694c9127cd060c0324cd7121b2a7b69" for 127.0.0.1 at 2020-03-02 14:30:21 +0000
929
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
930
+ Started GET "/auth/gds/callback?code=s4taQ0QYYulHdoABDFTTPoGD540UFcOIuzULMycjL_c&state=ce7ce9282452e95a51819276ce69fedbe08f026bc0ce5803" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1320
931
  Processing by AuthenticationsController#callback as HTML
1321
- Parameters: {"code"=>"8e00c01772841ff655c5d18d34825c00956262dacb5bc11c8964766111fa5207", "state"=>"ec05d99780afc9407694c9127cd060c0324cd7121b2a7b69"}
932
+ Parameters: {"code"=>"s4taQ0QYYulHdoABDFTTPoGD540UFcOIuzULMycjL_c", "state"=>"ce7ce9282452e95a51819276ce69fedbe08f026bc0ce5803"}
1322
933
  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]]
934
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
935
   (0.1ms) begin transaction
1325
936
   (0.0ms) commit transaction
1326
937
   (0.0ms) begin transaction
1327
938
   (0.0ms) commit transaction
1328
939
  Redirected to http://www.example-client.com/restricted
1329
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1330
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
940
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
941
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1331
942
  Processing by ExampleController#restricted as HTML
1332
943
  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
944
  Rendering text template
1334
945
  Rendered text template (0.0ms)
1335
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1336
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1337
-  (0.1ms) begin transaction
1338
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1339
-  (3.3ms) commit transaction
1340
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
946
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
947
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1341
948
  Processing by ExampleController#restricted as HTML
1342
- 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]]
1343
949
  Authenticating with gds_sso strategy
1344
- Completed in 1ms (ActiveRecord: 0.2ms)
1345
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1346
- Started GET "/auth/gds/callback?code=a837e0cb98b649eced542dee4503af1d5d69c71f3b06e9f283b391c17045d839&state=b5cc52d039fed338ce80f9fd2a9e7af207922325a01ca0c4" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
950
+ Completed in 0ms (ActiveRecord: 0.0ms)
951
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
952
+ Started GET "/auth/gds/callback?code=Doo_CwRG4YPycpbdoaB_chDCoDbb2r1f946OX5Gqndw&state=68ff82c7edebdd9d4fed3221168bc3ddac7c8d91f2b89929" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1347
953
  Processing by AuthenticationsController#callback as HTML
1348
- Parameters: {"code"=>"a837e0cb98b649eced542dee4503af1d5d69c71f3b06e9f283b391c17045d839", "state"=>"b5cc52d039fed338ce80f9fd2a9e7af207922325a01ca0c4"}
954
+ Parameters: {"code"=>"Doo_CwRG4YPycpbdoaB_chDCoDbb2r1f946OX5Gqndw", "state"=>"68ff82c7edebdd9d4fed3221168bc3ddac7c8d91f2b89929"}
1349
955
  Authenticating with gds_sso strategy
1350
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1351
957
   (0.1ms) begin transaction
1352
-  (0.1ms) commit transaction
958
+  (0.0ms) commit transaction
1353
959
   (0.0ms) begin transaction
1354
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1355
-  (7.3ms) commit transaction
960
+  (0.0ms) commit transaction
1356
961
  Redirected to http://www.example-client.com/restricted
1357
- Completed 302 Found in 11ms (ActiveRecord: 7.9ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
962
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
963
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1359
964
  Processing by ExampleController#restricted as HTML
1360
965
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1361
966
  Rendering text template
1362
967
  Rendered text template (0.0ms)
1363
968
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1364
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
969
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
1365
970
  Processing by ExampleController#restricted as HTML
1366
971
  Authenticating with gds_sso strategy
1367
972
  Completed in 0ms (ActiveRecord: 0.0ms)
1368
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1369
- Started GET "/auth/gds/callback?code=09bb090192a3fb641c49521957157840b3250ccda499b4ccdd5aaf3797b7cec5&state=8a26a0f2a5c76d7081c032c348e7563af4cb3d1bcc72190a" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
973
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
974
+ Started GET "/auth/gds/callback?code=kxARoNzri-TDJlarm1ALNYW4uJFEoBsniUiDwZN6z-E&state=05bb7f251aaec94c33a25e6d1b851aa5769d568d98f79d99" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
1370
975
  Processing by AuthenticationsController#callback as HTML
1371
- Parameters: {"code"=>"09bb090192a3fb641c49521957157840b3250ccda499b4ccdd5aaf3797b7cec5", "state"=>"8a26a0f2a5c76d7081c032c348e7563af4cb3d1bcc72190a"}
976
+ Parameters: {"code"=>"kxARoNzri-TDJlarm1ALNYW4uJFEoBsniUiDwZN6z-E", "state"=>"05bb7f251aaec94c33a25e6d1b851aa5769d568d98f79d99"}
1372
977
  Authenticating with gds_sso strategy
1373
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1374
-  (0.1ms) begin transaction
1375
-  (0.1ms) commit transaction
978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1376
979
   (0.0ms) begin transaction
1377
-  (0.1ms) commit transaction
980
+  (0.0ms) commit transaction
981
+  (0.0ms) begin transaction
982
+  (0.0ms) commit transaction
1378
983
  Redirected to http://www.example-client.com/restricted
1379
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1380
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
984
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
985
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
1381
986
  Processing by ExampleController#restricted as HTML
1382
987
  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]]
1383
988
  Rendering text template
1384
989
  Rendered text template (0.0ms)
1385
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1386
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
990
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
991
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1387
992
  Processing by ExampleController#restricted as HTML
1388
993
  Authenticating with gds_sso strategy
1389
- Completed in 1ms (ActiveRecord: 0.0ms)
1390
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1391
- Started GET "/auth/gds/callback?code=c9423215c28c868fccb983d4ca9d72d3a7d88e4f6ef854e1c558e9e1f8afc0a9&state=c93fe7a89ba326850f02ebac1ad95edca138e89cae6be8bc" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
994
+ Completed in 0ms (ActiveRecord: 0.0ms)
995
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
996
+ Started GET "/auth/gds/callback?code=5MGEnx70vmT8_CMUizzk3AZ9AJGM9mEEx7VtK3pf4T8&state=70cbead71a278aa73e9ec38cb377623b57d8fd41ac17cc9f" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1392
997
  Processing by AuthenticationsController#callback as HTML
1393
- Parameters: {"code"=>"c9423215c28c868fccb983d4ca9d72d3a7d88e4f6ef854e1c558e9e1f8afc0a9", "state"=>"c93fe7a89ba326850f02ebac1ad95edca138e89cae6be8bc"}
998
+ Parameters: {"code"=>"5MGEnx70vmT8_CMUizzk3AZ9AJGM9mEEx7VtK3pf4T8", "state"=>"70cbead71a278aa73e9ec38cb377623b57d8fd41ac17cc9f"}
1394
999
  Authenticating with gds_sso strategy
1395
1000
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1396
-  (0.1ms) begin transaction
1001
+  (0.0ms) begin transaction
1397
1002
   (0.0ms) commit transaction
1398
1003
   (0.0ms) begin transaction
1399
1004
   (0.0ms) commit transaction
1400
1005
  Redirected to http://www.example-client.com/restricted
1401
1006
  Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1402
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1007
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1008
+ Processing by ExampleController#restricted as HTML
1009
+ 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]]
1010
+ Rendering text template
1011
+ Rendered text template (0.0ms)
1012
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1013
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:25:43 +0000
1403
1014
  Processing by ExampleController#restricted as HTML
1404
1015
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1405
1016
  Rendering text template
1406
1017
  Rendered text template (0.0ms)
1407
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1408
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1018
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1019
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1409
1020
  Processing by ExampleController#restricted as HTML
1410
1021
  Authenticating with gds_sso strategy
1411
1022
  Completed in 0ms (ActiveRecord: 0.0ms)
1412
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1413
- Started GET "/auth/gds/callback?code=fc42762943c3692c1bac1d077ce46106280af432c787a006968631eca7f18a8e&state=46ee961f49dee5ee19c62b5fc7ce19b947da04b571fdedfd" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1023
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1024
+ Started GET "/auth/gds/callback?code=epw4QdEergGgmxUoejRDP5VD4iQoe9pH6NivI2gpWeQ&state=3bb357fbc74b0a4e1b759b1d88194bcee5cb3786c75f1c06" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1414
1025
  Processing by AuthenticationsController#callback as HTML
1415
- Parameters: {"code"=>"fc42762943c3692c1bac1d077ce46106280af432c787a006968631eca7f18a8e", "state"=>"46ee961f49dee5ee19c62b5fc7ce19b947da04b571fdedfd"}
1026
+ Parameters: {"code"=>"epw4QdEergGgmxUoejRDP5VD4iQoe9pH6NivI2gpWeQ", "state"=>"3bb357fbc74b0a4e1b759b1d88194bcee5cb3786c75f1c06"}
1416
1027
  Authenticating with gds_sso strategy
1417
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1418
-  (0.1ms) begin transaction
1028
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1029
+  (0.0ms) begin transaction
1419
1030
   (0.0ms) commit transaction
1420
1031
   (0.0ms) begin transaction
1421
1032
   (0.0ms) commit transaction
1422
1033
  Redirected to http://www.example-client.com/restricted
1423
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1424
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1034
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1035
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1425
1036
  Processing by ExampleController#restricted as HTML
1426
1037
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1427
1038
  Rendering text template
1428
1039
  Rendered text template (0.0ms)
1429
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1430
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1040
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1041
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
1431
1042
  Processing by ExampleController#restricted as HTML
1432
1043
  Authenticating with gds_sso strategy
1433
- Completed in 1ms (ActiveRecord: 0.0ms)
1434
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-03 10:35:22 +0000
1435
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1044
+ Completed in 0ms (ActiveRecord: 0.0ms)
1045
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:43 +0000
1046
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1436
1047
  Processing by ExampleController#restricted as HTML
1437
1048
  Authenticating with gds_sso strategy
1438
1049
  Completed in 0ms (ActiveRecord: 0.0ms)
1439
- Started GET "/auth/gds" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1440
- Started GET "/auth/gds/callback?code=10ac9f7faf9d82745efd4d8c9964a65a31fa5559dbf3945c94f91b8aa28eb737&state=19ef884d3d6f613b15aede46430ada937b86469378a5da77" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1050
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1051
+ Started GET "/auth/gds/callback?code=_2JU42Ywty2c9KR_7TA8dvwOPm6F6GiTKPh5fI65qCE&state=1c665e9802ad618373ba4f0b78002fac4075fb35097832f8" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1441
1052
  Processing by AuthenticationsController#callback as HTML
1442
- Parameters: {"code"=>"10ac9f7faf9d82745efd4d8c9964a65a31fa5559dbf3945c94f91b8aa28eb737", "state"=>"19ef884d3d6f613b15aede46430ada937b86469378a5da77"}
1053
+ Parameters: {"code"=>"_2JU42Ywty2c9KR_7TA8dvwOPm6F6GiTKPh5fI65qCE", "state"=>"1c665e9802ad618373ba4f0b78002fac4075fb35097832f8"}
1443
1054
  Authenticating with gds_sso strategy
1444
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1445
-  (0.1ms) begin transaction
1446
-  (0.1ms) commit transaction
1447
-  (0.1ms) begin transaction
1055
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1056
+  (0.0ms) begin transaction
1057
+  (0.0ms) commit transaction
1058
+  (0.0ms) begin transaction
1448
1059
   (0.0ms) commit transaction
1449
1060
  Redirected to http://www.example-client.com/restricted
1450
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1451
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1452
- Processing by ExampleController#restricted as HTML
1453
- 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]]
1454
- Rendering text template
1455
- Rendered text template (0.0ms)
1456
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1457
- Started GET "/restricted" for 127.0.0.1 at 2020-03-03 10:25:22 +0000
1061
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1062
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1458
1063
  Processing by ExampleController#restricted as HTML
1459
1064
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1460
1065
  Rendering text template
1461
1066
  Rendered text template (0.0ms)
1462
1067
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1463
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1464
- Processing by ExampleController#restricted as JSON
1465
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1068
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1466
1069
   (0.0ms) begin transaction
1467
- User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1468
-  (7.4ms) commit transaction
1070
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
1071
+  (14.8ms) commit transaction
1072
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1073
+ Processing by ExampleController#restricted as HTML
1074
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1075
+ Authenticating with gds_sso strategy
1076
+ Completed in 1ms (ActiveRecord: 0.1ms)
1077
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1078
+ Started GET "/auth/gds/callback?code=0WoPdbd1Jba2Dfu2D9e2jWUVDJfuEf5ZtN_Mg6YfFg4&state=19df4417ee75a80d363d099c4321a9d6cda190738bebfd86" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1079
+ Processing by AuthenticationsController#callback as HTML
1080
+ Parameters: {"code"=>"0WoPdbd1Jba2Dfu2D9e2jWUVDJfuEf5ZtN_Mg6YfFg4", "state"=>"19df4417ee75a80d363d099c4321a9d6cda190738bebfd86"}
1081
+ Authenticating with gds_sso strategy
1469
1082
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1470
1083
   (0.0ms) begin transaction
1471
1084
   (0.0ms) commit transaction
1472
- 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.0ms) begin transaction
1474
-  (0.0ms) commit transaction
1475
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1476
-  (0.0ms) begin transaction
1477
-  (0.0ms) commit transaction
1478
-  (0.0ms) begin transaction
1479
-  (0.0ms) commit transaction
1480
- Rendering text template
1481
- Rendered text template (0.0ms)
1482
- Completed 200 OK in 62ms (Views: 0.3ms | ActiveRecord: 8.3ms)
1483
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:22 +0000
1484
- Processing by ExampleController#restricted as JSON
1485
- Completed in 12ms (ActiveRecord: 0.0ms)
1486
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-03-02 14:30:23 +0000
1487
- Processing by ExampleController#this_requires_signin_permission as JSON
1488
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1489
-  (0.1ms) begin transaction
1490
-  (0.0ms) commit transaction
1491
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1492
-  (0.0ms) begin transaction
1493
-  (0.0ms) commit transaction
1494
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
-  (0.0ms) begin transaction
1496
-  (0.0ms) commit transaction
1497
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1498
-  (0.0ms) begin transaction
1499
-  (0.0ms) commit transaction
1500
1085
   (0.0ms) begin transaction
1501
-  (0.0ms) commit transaction
1086
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
1087
+  (7.2ms) commit transaction
1088
+ Redirected to http://www.example-client.com/restricted
1089
+ Completed 302 Found in 10ms (ActiveRecord: 7.5ms)
1090
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:43 +0000
1091
+ Processing by ExampleController#restricted as HTML
1092
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1502
1093
  Rendering text template
1503
1094
  Rendered text template (0.0ms)
1504
- Completed 200 OK in 57ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1505
- Started GET "/restricted" for 127.0.0.1 at 2020-03-02 14:30:23 +0000
1506
- Processing by ExampleController#restricted as JSON
1507
- Completed in 18ms (ActiveRecord: 0.0ms)
1508
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1509
-  (0.0ms) begin transaction
1510
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2217"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1511
-  (6.0ms) commit transaction
1512
-  (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
-  (5.4ms) commit transaction
1095
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1515
1096
   (0.0ms) begin transaction
1516
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33333"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1517
-  (11.3ms) commit transaction
1097
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39364"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1098
+  (7.5ms) commit transaction
1518
1099
   (0.0ms) begin transaction
1519
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34038"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1520
-  (5.7ms) commit transaction
1100
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39409"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1101
+  (4.3ms) commit transaction
1521
1102
  Processing by Api::UserController#update as HTML
1522
- Parameters: {"uid"=>"a1s2d33333"}
1103
+ Parameters: {"uid"=>"a1s2d39364"}
1523
1104
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1524
1105
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1525
1106
  Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1526
1107
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1527
- Completed 403 Forbidden in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1108
+ Completed 403 Forbidden in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
1528
1109
   (0.0ms) begin transaction
1529
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34776"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1530
-  (8.7ms) commit transaction
1110
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38528"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1111
+  (4.7ms) commit transaction
1531
1112
   (0.0ms) begin transaction
1532
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34840"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1533
-  (4.4ms) commit transaction
1113
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39891"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1114
+  (5.7ms) commit transaction
1534
1115
  Processing by Api::UserController#update as HTML
1535
- Parameters: {"uid"=>"a1s2d34776"}
1536
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34776"], ["LIMIT", 1]]
1116
+ Parameters: {"uid"=>"a1s2d38528"}
1117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38528"], ["LIMIT", 1]]
1118
+  (0.1ms) begin transaction
1119
+ 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", 5]]
1120
+  (5.6ms) commit transaction
1121
+ Completed 200 OK in 8ms (ActiveRecord: 5.9ms)
1122
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1537
1123
   (0.0ms) begin transaction
1538
- 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]]
1539
-  (3.1ms) commit transaction
1540
- Completed 200 OK in 6ms (ActiveRecord: 3.5ms)
1541
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1124
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31137"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1125
+  (6.0ms) commit transaction
1126
+  (0.0ms) begin transaction
1127
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36378"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1128
+  (4.5ms) commit transaction
1129
+ Processing by Api::UserController#reauth as HTML
1130
+ Parameters: {"uid"=>"a1s2d31137"}
1131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31137"], ["LIMIT", 1]]
1542
1132
   (0.0ms) begin transaction
1543
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33605"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1544
-  (2.7ms) commit transaction
1133
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
1134
+  (4.5ms) commit transaction
1135
+ Completed 200 OK in 6ms (ActiveRecord: 4.8ms)
1136
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
1137
+  (0.0ms) begin transaction
1138
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39459"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1139
+  (4.6ms) commit transaction
1545
1140
   (0.0ms) begin transaction
1546
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37908"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1547
-  (5.1ms) commit transaction
1141
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34705"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1142
+  (4.5ms) commit transaction
1548
1143
  Processing by Api::UserController#reauth as HTML
1549
1144
  Parameters: {"uid"=>"nonexistent-user"}
1550
1145
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1551
1146
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1552
-  (0.1ms) begin transaction
1553
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35409"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1554
-  (4.5ms) commit transaction
1555
-  (0.1ms) begin transaction
1556
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35522"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1557
-  (12.4ms) commit transaction
1558
- Processing by Api::UserController#reauth as HTML
1559
- Parameters: {"uid"=>"a1s2d35409"}
1560
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35409"], ["LIMIT", 1]]
1561
1147
   (0.0ms) begin transaction
1562
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1563
-  (3.0ms) commit transaction
1564
- Completed 200 OK in 5ms (ActiveRecord: 3.4ms)
1565
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1148
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39237"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1149
+  (8.1ms) commit transaction
1150
+  (0.0ms) begin transaction
1151
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31577"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1152
+  (8.2ms) commit transaction
1153
+ Processing by Api::UserController#reauth as HTML
1154
+ Parameters: {"uid"=>"a1s2d39237"}
1155
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1156
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1157
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1158
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1159
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1160
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1566
1162
   (0.0ms) begin transaction
1567
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33382"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1568
-  (4.2ms) commit transaction
1163
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1164
+  (7.9ms) commit transaction
1165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1569
1166
   (0.0ms) begin transaction
1570
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35766"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1571
-  (2.9ms) commit transaction
1167
+  (0.0ms) commit transaction
1168
+  (1.0ms) SELECT sqlite_version(*)
1169
+  (0.0ms) SELECT sqlite_version(*)
1170
+  (0.1ms) DROP TABLE IF EXISTS "users"
1171
+  (53.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)
1172
+  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1173
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1174
+ TRANSACTION (0.0ms) begin transaction
1175
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-06-10 10:30:49.080981"], ["updated_at", "2021-06-10 10:30:49.080981"]]
1176
+ TRANSACTION (13.4ms) commit transaction
1177
+  (6.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1178
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1179
+  (0.1ms) SELECT sqlite_version(*)
1180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1181
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1182
+ TRANSACTION (0.0ms) begin transaction
1183
+ 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]]
1184
+ TRANSACTION (7.2ms) commit transaction
1185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1186
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1187
+ Processing by ExampleController#restricted as HTML
1188
+ Authenticating with gds_sso strategy
1189
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1044)
1190
+ Started GET "/" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1191
+ Processing by ExampleController#index as HTML
1192
+ Rendering text template
1193
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
1194
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms | Allocations: 1010)
1195
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1196
+ Processing by ExampleController#this_requires_signin_permission as HTML
1197
+ Authenticating with gds_sso strategy
1198
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 127)
1199
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1200
+ Started GET "/auth/gds/callback?code=poY3NLTz67iH--VeVJOSPJs4tEJdf7lS8kHjO-WLzSk&state=9d453f5f56a0b1416ead5010b8c1867c1169bad85ff6429f" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1201
+ Processing by AuthenticationsController#callback as HTML
1202
+ Parameters: {"code"=>"poY3NLTz67iH--VeVJOSPJs4tEJdf7lS8kHjO-WLzSk", "state"=>"9d453f5f56a0b1416ead5010b8c1867c1169bad85ff6429f"}
1203
+ Authenticating with gds_sso strategy
1204
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1206
+ TRANSACTION (0.1ms) begin transaction
1207
+ 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"]]
1208
+ TRANSACTION (4.7ms) commit transaction
1209
+ TRANSACTION (0.0ms) begin transaction
1210
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1211
+ TRANSACTION (4.3ms) commit transaction
1212
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1213
+ Completed 302 Found in 13ms (ActiveRecord: 9.5ms | Allocations: 1375)
1214
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1215
+ Processing by ExampleController#this_requires_signin_permission as HTML
1216
+ 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]]
1217
+ Rendering text template
1218
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1219
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 671)
1220
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1221
+ Processing by ExampleController#this_requires_signin_permission as HTML
1222
+ Authenticating with gds_sso strategy
1223
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1224
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1225
+ Started GET "/auth/gds/callback?code=Zdj9h1Ccr1q1cC9vWr-u_SZm2seKWX3yHYF5AuzHS_w&state=8bbabbddebb4195509444f8ae34f0d386ec6fc40cdaa4eab" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1226
+ Processing by AuthenticationsController#callback as HTML
1227
+ Parameters: {"code"=>"Zdj9h1Ccr1q1cC9vWr-u_SZm2seKWX3yHYF5AuzHS_w", "state"=>"8bbabbddebb4195509444f8ae34f0d386ec6fc40cdaa4eab"}
1228
+ Authenticating with gds_sso strategy
1229
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1230
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1231
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1232
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1233
+ Processing by ExampleController#this_requires_signin_permission as HTML
1234
+ 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]]
1235
+ Rendering text template
1236
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1237
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 644)
1238
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1239
+ Processing by ExampleController#restricted as HTML
1240
+ Authenticating with gds_sso strategy
1241
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1242
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1243
+ Started GET "/auth/gds/callback?code=_Z7DZyL_PQotnyAvO9L6yokfndLFW4N2UVq28MvqoPE&state=f3cfb828d6260e7a9c0ef84756421f8ff7bf9db03fc7b10e" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1244
+ Processing by AuthenticationsController#callback as HTML
1245
+ Parameters: {"code"=>"_Z7DZyL_PQotnyAvO9L6yokfndLFW4N2UVq28MvqoPE", "state"=>"f3cfb828d6260e7a9c0ef84756421f8ff7bf9db03fc7b10e"}
1246
+ Authenticating with gds_sso strategy
1247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1248
+ Redirected to http://www.example-client.com/restricted
1249
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1250
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1251
+ Processing by ExampleController#restricted as HTML
1252
+ 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]]
1253
+ Rendering text template
1254
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1255
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 644)
1256
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1257
+ Processing by ExampleController#restricted as HTML
1258
+ Authenticating with gds_sso strategy
1259
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1260
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1261
+ Started GET "/auth/gds/callback?code=Kw1tXFSJYPgcyo0zaPOkkpLv8x7Mo_oCJ3wW-jyJdbs&state=a8c915ef91aab15a499f8c8f87ab6d6a3ce2763e376381da" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1262
+ Processing by AuthenticationsController#callback as HTML
1263
+ Parameters: {"code"=>"Kw1tXFSJYPgcyo0zaPOkkpLv8x7Mo_oCJ3wW-jyJdbs", "state"=>"a8c915ef91aab15a499f8c8f87ab6d6a3ce2763e376381da"}
1264
+ Authenticating with gds_sso strategy
1265
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1266
+ Redirected to http://www.example-client.com/restricted
1267
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1268
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1269
+ Processing by ExampleController#restricted as HTML
1270
+ 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]]
1271
+ Rendering text template
1272
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1273
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 644)
1274
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1275
+ Processing by ExampleController#restricted as HTML
1276
+ Authenticating with gds_sso strategy
1277
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1278
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1279
+ Started GET "/auth/gds/callback?code=GERF15kDluQa2dp5XeTqf_7H4GgZWzyvS-tPoTFCYiw&state=95648fed8f1442abd58dece4ab1fb85681df97f135c47681" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1280
+ Processing by AuthenticationsController#callback as HTML
1281
+ Parameters: {"code"=>"GERF15kDluQa2dp5XeTqf_7H4GgZWzyvS-tPoTFCYiw", "state"=>"95648fed8f1442abd58dece4ab1fb85681df97f135c47681"}
1282
+ Authenticating with gds_sso strategy
1283
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1284
+ Redirected to http://www.example-client.com/restricted
1285
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 852)
1286
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1287
+ Processing by ExampleController#restricted as HTML
1288
+ 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]]
1289
+ Rendering text template
1290
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1291
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 646)
1292
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:49 +0000
1293
+ Processing by ExampleController#restricted as HTML
1294
+ Authenticating with gds_sso strategy
1295
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1296
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1297
+ Started GET "/auth/gds/callback?code=SS7ZRwlXI033cU2y2tasB5ERe6f4enwfkLT2nBJSQ_k&state=978a61f7ffe7e72506de4a0bf2ec41f7c67701de4ebb1a8c" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1298
+ Processing by AuthenticationsController#callback as HTML
1299
+ Parameters: {"code"=>"SS7ZRwlXI033cU2y2tasB5ERe6f4enwfkLT2nBJSQ_k", "state"=>"978a61f7ffe7e72506de4a0bf2ec41f7c67701de4ebb1a8c"}
1300
+ Authenticating with gds_sso strategy
1301
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
+ Redirected to http://www.example-client.com/restricted
1303
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1304
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1305
+ Processing by ExampleController#restricted as HTML
1306
+ 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]]
1307
+ Rendering text template
1308
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1309
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 645)
1310
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:25:50 +0000
1311
+ Processing by ExampleController#restricted as HTML
1312
+ 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]]
1313
+ Rendering text template
1314
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1315
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 877)
1316
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1317
+ Processing by ExampleController#restricted as HTML
1318
+ Authenticating with gds_sso strategy
1319
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1320
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1321
+ Started GET "/auth/gds/callback?code=b-a6dkrt1fgeJE5Ejz0_jhGRMv-bXOok8ZfCGq1Zcz4&state=d83dd2370fc717c28d666a5646b07c2246b6f1eaff641be5" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1322
+ Processing by AuthenticationsController#callback as HTML
1323
+ Parameters: {"code"=>"b-a6dkrt1fgeJE5Ejz0_jhGRMv-bXOok8ZfCGq1Zcz4", "state"=>"d83dd2370fc717c28d666a5646b07c2246b6f1eaff641be5"}
1324
+ Authenticating with gds_sso strategy
1325
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1326
+ Redirected to http://www.example-client.com/restricted
1327
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1328
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1329
+ Processing by ExampleController#restricted as HTML
1330
+ 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]]
1331
+ Rendering text template
1332
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1333
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 644)
1334
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1335
+ Processing by ExampleController#restricted as HTML
1336
+ Authenticating with gds_sso strategy
1337
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 496)
1338
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1339
+ Started GET "/auth/gds/callback?code=vdoTkyc_Xkm-CGB4jUm4z4lmRaOaiiljYd4ZzRQL3bU&state=7fc532132e5776ef16749310626079a6bb451bfc4b81a289" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1340
+ Processing by AuthenticationsController#callback as HTML
1341
+ Parameters: {"code"=>"vdoTkyc_Xkm-CGB4jUm4z4lmRaOaiiljYd4ZzRQL3bU", "state"=>"7fc532132e5776ef16749310626079a6bb451bfc4b81a289"}
1342
+ Authenticating with gds_sso strategy
1343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1344
+ Redirected to http://www.example-client.com/restricted
1345
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1061)
1346
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1347
+ Processing by ExampleController#restricted as HTML
1348
+ 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]]
1349
+ Rendering text template
1350
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1351
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 879)
1352
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1353
+ Processing by ExampleController#restricted as HTML
1354
+ Authenticating with gds_sso strategy
1355
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1356
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1357
+ Started GET "/auth/gds/callback?code=EWxMYyyrCCr9d0lvtWvLgmnFQoi20_HTDsZ-R_UEteA&state=a0f70e3e74e22c22374faa25973314489a40bbc9b9e3b2c5" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1358
+ Processing by AuthenticationsController#callback as HTML
1359
+ Parameters: {"code"=>"EWxMYyyrCCr9d0lvtWvLgmnFQoi20_HTDsZ-R_UEteA", "state"=>"a0f70e3e74e22c22374faa25973314489a40bbc9b9e3b2c5"}
1360
+ Authenticating with gds_sso strategy
1361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1362
+ Redirected to http://www.example-client.com/restricted
1363
+ Completed 302 Found in 5ms (ActiveRecord: 0.1ms | Allocations: 852)
1364
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1365
+ Processing by ExampleController#restricted as HTML
1366
+ 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]]
1367
+ Rendering text template
1368
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1369
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 646)
1370
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1371
+ Processing by ExampleController#restricted as HTML
1372
+ Authenticating with gds_sso strategy
1373
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 496)
1374
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-11 06:35:50 +0000
1375
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1376
+ Processing by ExampleController#restricted as HTML
1377
+ Authenticating with gds_sso strategy
1378
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 125)
1379
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1380
+ Started GET "/auth/gds/callback?code=CQeMtdfpnAsZytncHbONqt5KLBtB8U8UrXKcGzjQz1c&state=ba8ed7ba8835953a6de1b33d768647894a66fac64ec91a94" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1381
+ Processing by AuthenticationsController#callback as HTML
1382
+ Parameters: {"code"=>"CQeMtdfpnAsZytncHbONqt5KLBtB8U8UrXKcGzjQz1c", "state"=>"ba8ed7ba8835953a6de1b33d768647894a66fac64ec91a94"}
1383
+ Authenticating with gds_sso strategy
1384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1385
+ Redirected to http://www.example-client.com/restricted
1386
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 851)
1387
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1388
+ Processing by ExampleController#restricted as HTML
1389
+ 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]]
1390
+ Rendering text template
1391
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1392
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 644)
1393
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1394
+ TRANSACTION (0.0ms) begin transaction
1395
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 2]]
1396
+ TRANSACTION (5.3ms) commit transaction
1397
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1398
+ Processing by ExampleController#restricted as HTML
1399
+ 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]]
1400
+ Authenticating with gds_sso strategy
1401
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 527)
1402
+ Started GET "/auth/gds" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1403
+ Started GET "/auth/gds/callback?code=JlyYyrWR1NDMYPUNDxrSRZlBXfqjY3bqPpgtiHzTuMw&state=28eb94d6b9576677d4983efd3181a2aa99ae4d89f4bdc974" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1404
+ Processing by AuthenticationsController#callback as HTML
1405
+ Parameters: {"code"=>"JlyYyrWR1NDMYPUNDxrSRZlBXfqjY3bqPpgtiHzTuMw", "state"=>"28eb94d6b9576677d4983efd3181a2aa99ae4d89f4bdc974"}
1406
+ Authenticating with gds_sso strategy
1407
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1408
+ TRANSACTION (0.0ms) begin transaction
1409
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1410
+ TRANSACTION (6.0ms) commit transaction
1411
+ Redirected to http://www.example-client.com/restricted
1412
+ Completed 302 Found in 8ms (ActiveRecord: 6.3ms | Allocations: 1042)
1413
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1414
+ Processing by ExampleController#restricted as HTML
1415
+ 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]]
1416
+ Rendering text template
1417
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1418
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 643)
1419
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1420
+ Processing by ExampleController#restricted as JSON
1421
+ Completed in 12ms (ActiveRecord: 0.0ms | Allocations: 2025)
1422
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1423
+ Processing by ExampleController#restricted as JSON
1424
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1425
+ TRANSACTION (0.1ms) begin transaction
1426
+ User Update (0.1ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1427
+ TRANSACTION (5.0ms) commit transaction
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
+ Rendering text template
1432
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1433
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 5.4ms | Allocations: 3196)
1434
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1435
+ Processing by ExampleController#this_requires_signin_permission as JSON
1436
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1437
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1438
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1439
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1440
+ Rendering text template
1441
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1442
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 2921)
1443
+ Started GET "/restricted" for 127.0.0.1 at 2021-06-10 10:30:50 +0000
1444
+ Processing by ExampleController#restricted as JSON
1445
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1815)
1446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1447
+ TRANSACTION (0.1ms) begin transaction
1448
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "152"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1449
+ TRANSACTION (5.3ms) commit transaction
1450
+ TRANSACTION (0.0ms) begin transaction
1451
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 3]]
1452
+ TRANSACTION (20.8ms) commit transaction
1453
+ TRANSACTION (0.0ms) begin transaction
1454
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36151"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1455
+ TRANSACTION (6.3ms) commit transaction
1456
+ TRANSACTION (0.0ms) begin transaction
1457
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34951"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1458
+ TRANSACTION (4.6ms) commit transaction
1459
+ Processing by Api::UserController#update as HTML
1460
+ Parameters: {"uid"=>"a1s2d36151"}
1461
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36151"], ["LIMIT", 1]]
1462
+ TRANSACTION (0.0ms) begin transaction
1463
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "email" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["name", "Joshua Marshall"], ["email", "user@domain.com"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
1464
+ TRANSACTION (6.7ms) commit transaction
1465
+ Completed 200 OK in 9ms (ActiveRecord: 7.0ms | Allocations: 1219)
1466
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
1467
+ TRANSACTION (0.0ms) begin transaction
1468
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32720"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1469
+ TRANSACTION (6.9ms) commit transaction
1470
+ TRANSACTION (0.0ms) begin transaction
1471
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36670"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1472
+ TRANSACTION (6.0ms) commit transaction
1473
+ Processing by Api::UserController#update as HTML
1474
+ Parameters: {"uid"=>"a1s2d32720"}
1475
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
1476
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1477
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1478
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 191)
1479
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1480
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.6ms | Allocations: 267)
1481
+ Completed 403 Forbidden in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 1359)
1482
+ TRANSACTION (0.1ms) begin transaction
1483
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35740"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1484
+ TRANSACTION (6.2ms) commit transaction
1485
+ TRANSACTION (0.1ms) begin transaction
1486
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32301"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1487
+ TRANSACTION (6.8ms) commit transaction
1572
1488
  Processing by Api::UserController#reauth as HTML
1573
- Parameters: {"uid"=>"a1s2d33382"}
1489
+ Parameters: {"uid"=>"a1s2d35740"}
1490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35740"], ["LIMIT", 1]]
1491
+ TRANSACTION (0.0ms) begin transaction
1492
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 8]]
1493
+ TRANSACTION (7.8ms) commit transaction
1494
+ Completed 200 OK in 9ms (ActiveRecord: 8.0ms | Allocations: 849)
1495
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
1496
+ TRANSACTION (0.0ms) begin transaction
1497
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37995"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1498
+ TRANSACTION (5.4ms) commit transaction
1499
+ TRANSACTION (0.0ms) begin transaction
1500
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31590"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1501
+ TRANSACTION (6.2ms) commit transaction
1502
+ Processing by Api::UserController#reauth as HTML
1503
+ Parameters: {"uid"=>"a1s2d37995"}
1504
+ Rendering layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb
1574
1505
  Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1575
1506
  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/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1507
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 45)
1577
1508
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1578
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1509
+ Rendered layout /var/lib/jenkins/workspace/gds-sso_master/app/views/layouts/unauthorised.html.erb (Duration: 0.2ms | Allocations: 119)
1510
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 515)
1511
+ TRANSACTION (0.0ms) begin transaction
1512
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d353"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1513
+ TRANSACTION (6.1ms) commit transaction
1514
+ TRANSACTION (0.1ms) begin transaction
1515
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38660"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1516
+ TRANSACTION (6.3ms) commit transaction
1517
+ Processing by Api::UserController#reauth as HTML
1518
+ Parameters: {"uid"=>"nonexistent-user"}
1519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1520
+ Completed 200 OK in 3ms (ActiveRecord: 0.1ms | Allocations: 501)