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