gds-sso 15.0.1 → 15.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2435fe77d5992ffde6d0cb2aaf09ed4449c17c73908e4509e0a9a0ad6dc2763
4
- data.tar.gz: fdeae2412f7a8a2f665b6d3ef8da833fc49737bab89336517b52c89bd3148cc5
3
+ metadata.gz: d9939f8497b777014a8a39d2cf78cf00c70d9951c18d6e9fe6a64b74d5d8ad5a
4
+ data.tar.gz: 8d9d5ecedb3f70038be1708fd61e3306d8b6ea198dbb50e8b74245504f38aede
5
5
  SHA512:
6
- metadata.gz: b5357aa5392b165604cda90222b0edd561dceff9ec8aa18da4bf40d4bf4818b65cc32b7df96f2ef8ae8a92b0e094a84e729448c4d5bd0a54a4ce1d62fbafde85
7
- data.tar.gz: 8ad294caa8d1e2c09256f3e41e7cf380cd271d9b5c3504daef1e3e0651cba1130e9f29a92c1c66c183c373b156858d61755e998b99ab1ad125ed92906d28ce14
6
+ metadata.gz: 765326eafa7ccc1827c905c289a653bd0f6bfcd345f61b074b030d035e5b136281181ed157582163ffb328bc40183c252fbf0bfe97bec337a2bd22eb5a7ad8cf
7
+ data.tar.gz: 2a19bf5a37e1d4ac3aa3c98f6d653b3684baa30c5a898c9616a263e3f6a933aeec4379a1f366781e6962d7c11b3ceedc2e6d1504a12d20070a5fde53b7aa683d
data/README.md CHANGED
@@ -14,55 +14,26 @@ Some of the applications that use this gem:
14
14
 
15
15
  ### Integration with a Rails 4+ app
16
16
 
17
- To use gds-sso you will need an oAuth client ID and secret for Signon or a compatible system.
18
- These can be provided by one of the team with admin access to Signon.
17
+ - Include the gem in your Gemfile:
19
18
 
20
- Then include the gem in your Gemfile:
19
+ ```ruby
20
+ gem 'gds-sso', '<version>'
21
+ ```
21
22
 
22
- ```ruby
23
- gem 'gds-sso', '<version>'
24
- ```
25
-
26
- Create a `config/initializers/gds-sso.rb` that looks like:
27
-
28
- ```ruby
29
- GDS::SSO.config do |config|
30
- config.user_model = 'User'
31
-
32
- # set up ID and Secret in a way which doesn't require it to be checked in to source control...
33
- config.oauth_id = ENV['OAUTH_ID']
34
- config.oauth_secret = ENV['OAUTH_SECRET']
23
+ - Create a "users" table in the database: ([example migration with all the necessary fields](https://github.com/alphagov/content-publisher/blob/16c58a40745c1ea61ec241e5aeb702ae15238f98/db/migrate/20160622154200_create_users.rb))
35
24
 
36
- # optional config for location of Signon
37
- config.oauth_root_url = "http://localhost:3001"
38
-
39
- # Pass in a caching adapter cache bearer token requests.
40
- config.cache = Rails.cache
41
- end
42
- ```
43
-
44
- The user model must include the `GDS::SSO::User` module.
45
-
46
- It should have the following fields:
47
-
48
- ```ruby
49
- string "name"
50
- string "email"
51
- string "uid"
52
- string "organisation_slug"
53
- string "organisation_content_id"
54
- array "permissions"
55
- boolean "remotely_signed_out", :default => false
56
- boolean "disabled", :default => false
57
- ```
25
+ - Create a User model with the following:
58
26
 
59
- You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController.
27
+ ```ruby
28
+ serialize :permissions, Array
29
+ ```
60
30
 
61
- For ActiveRecord, you probably want to declare permissions as "serialized" like this:
31
+ - Add to your `ApplicationController`:
62
32
 
63
- ```ruby
64
- serialize :permissions, Array
65
- ```
33
+ ```ruby
34
+ include GDS::SSO::ControllerMethods
35
+ before_action :authenticate_user!
36
+ ```
66
37
 
67
38
  ### Securing your application
68
39
 
@@ -113,22 +84,11 @@ as an [API user](https://signon.publishing.service.gov.uk/api_users).
113
84
  To authorise with a bearer token, a request has to be made with the header:
114
85
 
115
86
  ```
87
+ # See https://github.com/alphagov/gds-api-adapters/blob/41e9cbf12bec738489340bd9dc63d62427ee3fe7/lib/gds_api/json_client.rb#L122
116
88
  Authorization: Bearer your-token-here
117
89
  ```
118
90
 
119
- This gem will then authenticate the token with the Signon application. If
120
- valid, the API client will be authorised in the same way as a single-sign-on
121
- user. The [gds-api-adapters gem](https://github.com/alphagov/gds-api-adapters#app-level-authentication)
122
- has functionality for sending the bearer token for each request. To avoid making
123
- these requests for each incoming request, specify a caching adapter like `Rails.cache`:
124
-
125
- ```ruby
126
- GDS::SSO.config do |config|
127
- # ...
128
- # Pass in a caching adapter cache bearer token requests.
129
- config.cache = Rails.cache
130
- end
131
- ```
91
+ To avoid making these requests for each incoming request, this gem will [automatically cache a successful response](https://github.com/alphagov/gds-sso/blob/master/lib/gds-sso/bearer_token.rb), using the [Rails cache](https://github.com/alphagov/gds-sso/blob/master/lib/gds-sso/railtie.rb).
132
92
 
133
93
  If you are using a Rails 5 app in
134
94
  [api_only](http://guides.rubyonrails.org/api_app.html) mode this gem will
@@ -143,6 +103,13 @@ GDS::SSO.config do |config|
143
103
  end
144
104
  ```
145
105
 
106
+ ### Use in production mode
107
+
108
+ To use gds-sso in production you will need to setup the following environment variables, which we look for in [the config](https://github.com/alphagov/gds-sso/blob/master/lib/gds-sso/config.rb). You will need to have admin access to Signon to get these.
109
+
110
+ - OAUTH_ID
111
+ - OAUTH_SECRET
112
+
146
113
  ### Use in development mode
147
114
 
148
115
  In development, you generally want to be able to run an application without needing to run your own SSO server to be running as well. GDS-SSO facilitates this by using a 'mock' mode in development. Mock mode loads an arbitrary user from the local application's user tables:
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
- next if GDS::SSO::Config.api_only?
2
+ next if GDS::SSO::Config.api_only
3
3
 
4
4
  get "/auth/gds/callback", to: "authentications#callback", as: :gds_sign_in
5
5
  get "/auth/gds/sign_out", to: "authentications#sign_out", as: :gds_sign_out
@@ -6,6 +6,8 @@ require "gds-sso/warden_config"
6
6
  require "omniauth"
7
7
  require "omniauth-gds"
8
8
 
9
+ require "gds-sso/railtie" if defined?(Rails)
10
+
9
11
  module GDS
10
12
  module SSO
11
13
  autoload :FailureApp, "gds-sso/failure_app"
@@ -26,7 +28,7 @@ module GDS
26
28
  config.before_eager_load(&:reload_routes!)
27
29
 
28
30
  config.app_middleware.use ::OmniAuth::Builder do
29
- next if GDS::SSO::Config.api_only?
31
+ next if GDS::SSO::Config.api_only
30
32
 
31
33
  provider :gds, GDS::SSO::Config.oauth_id, GDS::SSO::Config.oauth_secret,
32
34
  client_options: {
@@ -1,4 +1,5 @@
1
1
  require "active_support/cache/null_store"
2
+ require "plek"
2
3
 
3
4
  module GDS
4
5
  module SSO
@@ -11,13 +12,15 @@ module GDS
11
12
 
12
13
  # OAuth ID
13
14
  mattr_accessor :oauth_id
15
+ @@oauth_id = ENV.fetch("OAUTH_ID", "test-oauth-id")
14
16
 
15
17
  # OAuth Secret
16
18
  mattr_accessor :oauth_secret
19
+ @@oauth_secret = ENV.fetch("OAUTH_SECRET", "test-oauth-secret")
17
20
 
18
21
  # Location of the OAuth server
19
22
  mattr_accessor :oauth_root_url
20
- @@oauth_root_url = "http://localhost:3001"
23
+ @@oauth_root_url = Plek.new.external_url_for("signon")
21
24
 
22
25
  mattr_accessor :auth_valid_for
23
26
  @@auth_valid_for = 20 * 3600
@@ -25,7 +28,7 @@ module GDS
25
28
  mattr_accessor :cache
26
29
  @@cache = ActiveSupport::Cache::NullStore.new
27
30
 
28
- mattr_writer :api_only
31
+ mattr_accessor :api_only
29
32
 
30
33
  mattr_accessor :additional_mock_permissions_required
31
34
 
@@ -54,12 +57,6 @@ module GDS
54
57
  ENV.fetch("GDS_SSO_STRATEGY", default_strategy) == "mock"
55
58
  end
56
59
 
57
- def self.api_only?
58
- config = Rails.configuration
59
- default = config.respond_to?(:api_only) ? config.api_only : false
60
- @@api_only.nil? ? default : @@api_only
61
- end
62
-
63
60
  # rubocop:enable Style/ClassVars
64
61
  end
65
62
  end
@@ -6,14 +6,14 @@ module GDS
6
6
 
7
7
  def self.included(base)
8
8
  base.rescue_from PermissionDeniedException do |e|
9
- if GDS::SSO::Config.api_only?
9
+ if GDS::SSO::Config.api_only
10
10
  render json: { message: e.message }, status: :forbidden
11
11
  else
12
12
  render "authorisations/unauthorised", layout: "unauthorised", status: :forbidden, locals: { message: e.message }
13
13
  end
14
14
  end
15
15
 
16
- unless GDS::SSO::Config.api_only?
16
+ unless GDS::SSO::Config.api_only
17
17
  base.helper_method :user_signed_in?
18
18
  base.helper_method :current_user
19
19
  end
@@ -18,7 +18,7 @@ module GDS
18
18
  def self.call(env)
19
19
  if GDS::SSO::ApiAccess.api_call?(env)
20
20
  action(:api_invalid_token).call(env)
21
- elsif GDS::SSO::Config.api_only?
21
+ elsif GDS::SSO::Config.api_only
22
22
  action(:api_missing_token).call(env)
23
23
  else
24
24
  action(:redirect).call(env)
@@ -0,0 +1,12 @@
1
+ module GDS
2
+ module SSO
3
+ class Railtie < Rails::Railtie
4
+ initializer "gds-sso.initializer" do
5
+ GDS::SSO.config do |config|
6
+ config.cache = Rails.cache
7
+ config.api_only = Rails.configuration.api_only
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "15.0.1".freeze
3
+ VERSION = "15.1.0".freeze
4
4
  end
5
5
  end
@@ -1,371 +1,307 @@
1
1
   (0.1ms) DROP TABLE IF EXISTS "users"
2
-  (1.1ms) SELECT sqlite_version(*)
3
-  (6.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
-  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
6
-  (0.1ms) begin transaction
7
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:10:58.659218"], ["updated_at", "2020-07-28 10:10:58.659218"]]
8
-  (5.4ms) commit transaction
9
-  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
10
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
-  (0.1ms) begin transaction
12
-  (0.0ms) commit transaction
13
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
14
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15
-  (0.0ms) begin transaction
16
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
17
-  (4.2ms) commit transaction
18
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
19
-  (0.0ms) begin transaction
20
-  (0.1ms) commit transaction
21
-  (0.1ms) begin transaction
22
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33188"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
23
-  (4.4ms) commit transaction
24
-  (0.0ms) begin transaction
25
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32885"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
26
-  (3.4ms) commit transaction
27
- Processing by Api::UserController#reauth as HTML
28
- Parameters: {"uid"=>"a1s2d33188"}
29
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
30
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
31
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
32
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
33
- Completed 403 Forbidden in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
2
+  (0.9ms) SELECT sqlite_version(*)
3
+  (8.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
4
+  (37.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
34
6
   (0.0ms) begin transaction
35
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39666"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
36
-  (4.0ms) commit transaction
37
-  (0.1ms) begin transaction
38
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35794"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
39
-  (4.3ms) commit transaction
40
- Processing by Api::UserController#reauth as HTML
41
- Parameters: {"uid"=>"nonexistent-user"}
42
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
43
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
44
-  (0.1ms) begin transaction
45
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32544"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
46
-  (4.3ms) commit transaction
47
-  (0.1ms) begin transaction
48
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3705"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
49
-  (3.3ms) commit transaction
50
- Processing by Api::UserController#reauth as HTML
51
- Parameters: {"uid"=>"a1s2d32544"}
52
- User Load (11.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32544"], ["LIMIT", 1]]
53
-  (0.5ms) begin transaction
54
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
55
-  (4.0ms) commit transaction
56
- Completed 200 OK in 18ms (ActiveRecord: 16.0ms)
57
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
58
-  (0.0ms) begin transaction
59
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32525"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
60
-  (3.6ms) commit transaction
7
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:50:59.688219"], ["updated_at", "2020-10-26 14:50:59.688219"]]
8
+  (6.0ms) commit transaction
9
+  (6.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
10
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
61
11
   (0.0ms) begin transaction
62
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38924"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
63
-  (4.0ms) commit transaction
64
- Processing by Api::UserController#update as HTML
65
- Parameters: {"uid"=>"a1s2d32525"}
66
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
67
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
68
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
69
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
70
- Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
71
-  (0.1ms) begin transaction
72
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33880"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
73
-  (4.4ms) commit transaction
12
+  (0.0ms) commit transaction
13
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
74
14
   (0.0ms) begin transaction
75
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31256"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
76
-  (3.3ms) commit transaction
77
- Processing by Api::UserController#update as HTML
78
- Parameters: {"uid"=>"a1s2d33880"}
79
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33880"], ["LIMIT", 1]]
15
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "1000"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
16
+  (4.1ms) commit transaction
80
17
   (0.0ms) begin transaction
81
- User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
82
-  (4.4ms) commit transaction
83
- Completed 200 OK in 7ms (ActiveRecord: 4.8ms)
84
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
85
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
18
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
19
+  (6.0ms) commit transaction
20
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
21
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
86
22
   (0.0ms) begin transaction
87
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "4114"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
88
-  (3.6ms) commit transaction
23
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
24
+  (4.9ms) commit transaction
25
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
89
26
   (0.0ms) begin transaction
90
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 12]]
91
-  (4.5ms) commit transaction
92
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
27
+  (0.0ms) commit transaction
28
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
93
29
  Processing by ExampleController#restricted as HTML
94
30
  Authenticating with gds_sso strategy
95
- Completed in 5ms (ActiveRecord: 0.0ms)
96
- Started GET "/" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
97
- Processing by ExampleController#index as HTML
98
- Rendering text template
99
- Rendered text template (0.0ms)
100
- Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
101
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
31
+ Completed in 4ms (ActiveRecord: 0.0ms)
32
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
102
33
  Processing by ExampleController#restricted as HTML
103
34
  Authenticating with gds_sso strategy
104
35
  Completed in 0ms (ActiveRecord: 0.0ms)
105
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:10:59 +0000
106
- Started GET "/auth/gds/callback?code=XIrk0A1OcJZLjwOKsphEfEP_i18paaY1G6XKN85PNoA&state=a663c9e16160f9fd0c5ed4cb4ded2075230c98d848c828cc" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
36
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
37
+ Started GET "/auth/gds/callback?code=qlgWGND49FA4hmi1xxwtSmNDpxMu8JdbWneB08p7_qU&state=eae923f804055f5089297e4d477619f6307606c3c9445704" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
107
38
  Processing by AuthenticationsController#callback as HTML
108
- Parameters: {"code"=>"XIrk0A1OcJZLjwOKsphEfEP_i18paaY1G6XKN85PNoA", "state"=>"a663c9e16160f9fd0c5ed4cb4ded2075230c98d848c828cc"}
39
+ Parameters: {"code"=>"qlgWGND49FA4hmi1xxwtSmNDpxMu8JdbWneB08p7_qU", "state"=>"eae923f804055f5089297e4d477619f6307606c3c9445704"}
109
40
  Authenticating with gds_sso strategy
110
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
41
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
111
42
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
112
-  (0.0ms) begin transaction
113
- User Create (0.8ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
114
-  (8.4ms) commit transaction
115
43
   (0.1ms) begin transaction
116
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
117
-  (3.3ms) commit transaction
44
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
45
+  (8.9ms) commit transaction
46
+  (0.0ms) begin transaction
47
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
48
+  (5.4ms) commit transaction
118
49
  Redirected to http://www.example-client.com/restricted
119
- Completed 302 Found in 17ms (ActiveRecord: 13.1ms)
120
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
50
+ Completed 302 Found in 18ms (ActiveRecord: 14.9ms)
51
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
121
52
  Processing by ExampleController#restricted as HTML
122
53
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
123
54
  Rendering text template
124
55
  Rendered text template (0.0ms)
125
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
126
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
127
- Processing by ExampleController#restricted as HTML
128
- Authenticating with gds_sso strategy
129
- Completed in 0ms (ActiveRecord: 0.0ms)
130
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
131
- Started GET "/auth/gds/callback?code=WD6GHKCg2CceSXQtOxpX5uX5Q52y3tLAYG4nJAjNBVw&state=64085a336fb8d8da6d3e32b6b7085cda856a0fb03fcaac46" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
132
- Processing by AuthenticationsController#callback as HTML
133
- Parameters: {"code"=>"WD6GHKCg2CceSXQtOxpX5uX5Q52y3tLAYG4nJAjNBVw", "state"=>"64085a336fb8d8da6d3e32b6b7085cda856a0fb03fcaac46"}
134
- Authenticating with gds_sso strategy
135
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
136
-  (0.1ms) begin transaction
137
-  (0.1ms) commit transaction
138
-  (0.0ms) begin transaction
139
-  (0.1ms) commit transaction
140
- Redirected to http://www.example-client.com/restricted
141
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
142
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
143
- Processing by ExampleController#restricted as HTML
144
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
56
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
57
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
58
+ Processing by ExampleController#index as HTML
145
59
  Rendering text template
146
60
  Rendered text template (0.0ms)
147
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
148
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
149
- Processing by ExampleController#restricted as HTML
61
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
62
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
63
+ Processing by ExampleController#this_requires_signin_permission as HTML
150
64
  Authenticating with gds_sso strategy
151
65
  Completed in 0ms (ActiveRecord: 0.0ms)
152
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
153
- Started GET "/auth/gds/callback?code=iwwQkvHOLQi9vgrkLGQiTUuM8AIMHyyDj57VPjM2zoQ&state=e3f1de3579ed6acfb19a247be93dadfaa4c02116c49718f6" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
66
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
67
+ Started GET "/auth/gds/callback?code=N3zgRiV63CM3n82JL5m4VJybtab5jqD9T8rdOUfOjfQ&state=44c677e6a122e188c1897be58e35ca209ce417e5a7a5b5d0" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
154
68
  Processing by AuthenticationsController#callback as HTML
155
- Parameters: {"code"=>"iwwQkvHOLQi9vgrkLGQiTUuM8AIMHyyDj57VPjM2zoQ", "state"=>"e3f1de3579ed6acfb19a247be93dadfaa4c02116c49718f6"}
69
+ Parameters: {"code"=>"N3zgRiV63CM3n82JL5m4VJybtab5jqD9T8rdOUfOjfQ", "state"=>"44c677e6a122e188c1897be58e35ca209ce417e5a7a5b5d0"}
156
70
  Authenticating with gds_sso strategy
157
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
158
-  (0.1ms) begin transaction
71
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
72
+  (0.0ms) begin transaction
159
73
   (0.0ms) commit transaction
160
74
   (0.0ms) begin transaction
161
75
   (0.0ms) commit transaction
162
- Redirected to http://www.example-client.com/restricted
163
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
164
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
165
- Processing by ExampleController#restricted as HTML
76
+ Redirected to http://www.example-client.com/this_requires_signin_permission
77
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
78
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
79
+ Processing by ExampleController#this_requires_signin_permission as HTML
166
80
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
167
81
  Rendering text template
168
82
  Rendered text template (0.0ms)
169
83
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
170
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
84
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
171
85
  Processing by ExampleController#this_requires_signin_permission as HTML
172
86
  Authenticating with gds_sso strategy
173
87
  Completed in 0ms (ActiveRecord: 0.0ms)
174
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
175
- Started GET "/auth/gds/callback?code=5fq0RKvlzv0B9qQsCEyhdd88h2JBCkiUtBUSdtGLpZE&state=8b5bf5abbd9de238e72dfe27d5122e14bcf1d9babe86c6f0" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
88
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
89
+ Started GET "/auth/gds/callback?code=QvJd4HB0b8Qg-S6I1iAFJ4yp6HTUHa-BoZ1x1dud5J8&state=0e6eb994121ee71c83cb083646a8529a53e979e1262f8742" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
176
90
  Processing by AuthenticationsController#callback as HTML
177
- Parameters: {"code"=>"5fq0RKvlzv0B9qQsCEyhdd88h2JBCkiUtBUSdtGLpZE", "state"=>"8b5bf5abbd9de238e72dfe27d5122e14bcf1d9babe86c6f0"}
91
+ Parameters: {"code"=>"QvJd4HB0b8Qg-S6I1iAFJ4yp6HTUHa-BoZ1x1dud5J8", "state"=>"0e6eb994121ee71c83cb083646a8529a53e979e1262f8742"}
178
92
  Authenticating with gds_sso strategy
179
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
180
-  (0.1ms) begin transaction
181
-  (0.1ms) commit transaction
182
-  (0.1ms) begin transaction
93
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
94
+  (0.0ms) begin transaction
95
+  (0.0ms) commit transaction
96
+  (0.0ms) begin transaction
183
97
   (0.0ms) commit transaction
184
98
  Redirected to http://www.example-client.com/this_requires_signin_permission
185
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
186
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
99
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
100
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
187
101
  Processing by ExampleController#this_requires_signin_permission as HTML
188
102
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
189
103
  Rendering text template
190
104
  Rendered text template (0.0ms)
191
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
192
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
193
- Processing by ExampleController#this_requires_signin_permission as HTML
105
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
106
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
107
+ Processing by ExampleController#restricted as HTML
194
108
  Authenticating with gds_sso strategy
195
109
  Completed in 0ms (ActiveRecord: 0.0ms)
196
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:00 +0000
197
- Started GET "/auth/gds/callback?code=Y6UMFRXTtBvR0Xt7fmZMoYz7B_qLyB85fCAauwmGJVo&state=b9b2e0f203aa00fbc610c7399455b8e87c5b4ce94369d959" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
110
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
111
+ Started GET "/auth/gds/callback?code=t3e9CdalZQIChrxQZWpw0C4kcAIpf4dCS7G1hh65b3o&state=38ba7880dfb04b0b344a5cc201d904c51afc8bcfaf4444cf" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
198
112
  Processing by AuthenticationsController#callback as HTML
199
- Parameters: {"code"=>"Y6UMFRXTtBvR0Xt7fmZMoYz7B_qLyB85fCAauwmGJVo", "state"=>"b9b2e0f203aa00fbc610c7399455b8e87c5b4ce94369d959"}
113
+ Parameters: {"code"=>"t3e9CdalZQIChrxQZWpw0C4kcAIpf4dCS7G1hh65b3o", "state"=>"38ba7880dfb04b0b344a5cc201d904c51afc8bcfaf4444cf"}
200
114
  Authenticating with gds_sso strategy
201
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
202
-  (0.1ms) begin transaction
203
-  (0.1ms) commit transaction
115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
204
116
   (0.0ms) begin transaction
205
117
   (0.0ms) commit transaction
206
- Redirected to http://www.example-client.com/this_requires_signin_permission
207
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
208
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
209
- Processing by ExampleController#this_requires_signin_permission as HTML
118
+  (0.0ms) begin transaction
119
+  (0.0ms) commit transaction
120
+ Redirected to http://www.example-client.com/restricted
121
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
122
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
123
+ Processing by ExampleController#restricted as HTML
210
124
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
211
125
  Rendering text template
212
126
  Rendered text template (0.0ms)
213
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
214
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
127
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
128
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
215
129
  Processing by ExampleController#restricted as HTML
216
130
  Authenticating with gds_sso strategy
217
131
  Completed in 0ms (ActiveRecord: 0.0ms)
218
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
219
- Started GET "/auth/gds/callback?code=fteVPA642fJHI-UDcDBpcDoij_VODquH_w4dUBvrCk4&state=33f56805f43198fbf151d75bd5e80ea858af449826755474" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
132
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
133
+ Started GET "/auth/gds/callback?code=2YP0egP8EK9BjzxAFLSlCetha4Lpip5E3_0-aCoT2vw&state=320c0056d754ab4a4a58c33809306ce636054ce148fd3f62" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
220
134
  Processing by AuthenticationsController#callback as HTML
221
- Parameters: {"code"=>"fteVPA642fJHI-UDcDBpcDoij_VODquH_w4dUBvrCk4", "state"=>"33f56805f43198fbf151d75bd5e80ea858af449826755474"}
135
+ Parameters: {"code"=>"2YP0egP8EK9BjzxAFLSlCetha4Lpip5E3_0-aCoT2vw", "state"=>"320c0056d754ab4a4a58c33809306ce636054ce148fd3f62"}
222
136
  Authenticating with gds_sso strategy
223
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
224
-  (0.1ms) begin transaction
225
-  (0.4ms) commit transaction
137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
226
138
   (0.0ms) begin transaction
227
-  (0.1ms) commit transaction
139
+  (0.0ms) commit transaction
140
+  (0.0ms) begin transaction
141
+  (0.0ms) commit transaction
228
142
  Redirected to http://www.example-client.com/restricted
229
- Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
230
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
143
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
144
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
231
145
  Processing by ExampleController#restricted as HTML
232
146
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
233
147
  Rendering text template
234
148
  Rendered text template (0.0ms)
235
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
236
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
237
- Processing by ExampleController#restricted as HTML
238
- Authenticating with gds_sso strategy
239
- Completed in 0ms (ActiveRecord: 0.0ms)
240
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
241
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
149
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
150
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
242
151
  Processing by ExampleController#restricted as HTML
243
152
  Authenticating with gds_sso strategy
244
153
  Completed in 0ms (ActiveRecord: 0.0ms)
245
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
246
- Started GET "/auth/gds/callback?code=I4g-SNUSGUIlrh0zevm1P9RkqZeEuUMGZ5IM5K6nfKc&state=3a1c7bfa60afd57a7f1eba98d4ec07a5391094b798b42295" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
154
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
155
+ Started GET "/auth/gds/callback?code=hLgxcit_ayAHov_NJbBYdr6FHspd3885lUbCY_kbD_A&state=90adbdefeb4f7bd88b3c95756a7bbda0f791377ed8063fcd" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
247
156
  Processing by AuthenticationsController#callback as HTML
248
- Parameters: {"code"=>"I4g-SNUSGUIlrh0zevm1P9RkqZeEuUMGZ5IM5K6nfKc", "state"=>"3a1c7bfa60afd57a7f1eba98d4ec07a5391094b798b42295"}
157
+ Parameters: {"code"=>"hLgxcit_ayAHov_NJbBYdr6FHspd3885lUbCY_kbD_A", "state"=>"90adbdefeb4f7bd88b3c95756a7bbda0f791377ed8063fcd"}
249
158
  Authenticating with gds_sso strategy
250
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
251
-  (0.1ms) begin transaction
252
-  (0.1ms) commit transaction
253
-  (0.1ms) begin transaction
254
-  (0.1ms) commit transaction
159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
160
+  (0.0ms) begin transaction
161
+  (0.0ms) commit transaction
162
+  (0.0ms) begin transaction
163
+  (0.0ms) commit transaction
255
164
  Redirected to http://www.example-client.com/restricted
256
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
257
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
165
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
166
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
258
167
  Processing by ExampleController#restricted as HTML
259
168
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
260
169
  Rendering text template
261
170
  Rendered text template (0.0ms)
262
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
263
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
171
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
172
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
264
173
  Processing by ExampleController#restricted as HTML
265
174
  Authenticating with gds_sso strategy
266
175
  Completed in 0ms (ActiveRecord: 0.0ms)
267
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
268
- Started GET "/auth/gds/callback?code=uuYU7T9saWv_WHz16C37qVCQx1yhVm9TpQYrcxkYmFc&state=3a809c5e8ef281168837d2ffc744a23c5d863085b40a1c7b" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
176
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
177
+ Started GET "/auth/gds/callback?code=L9OOGVZzZXA-A8yjejj5D-a6TMKqHAU0R2KzZpDfA-Y&state=940afe6d5b93445643da282f1a71fcd431d61585e8a93515" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
269
178
  Processing by AuthenticationsController#callback as HTML
270
- Parameters: {"code"=>"uuYU7T9saWv_WHz16C37qVCQx1yhVm9TpQYrcxkYmFc", "state"=>"3a809c5e8ef281168837d2ffc744a23c5d863085b40a1c7b"}
179
+ Parameters: {"code"=>"L9OOGVZzZXA-A8yjejj5D-a6TMKqHAU0R2KzZpDfA-Y", "state"=>"940afe6d5b93445643da282f1a71fcd431d61585e8a93515"}
271
180
  Authenticating with gds_sso strategy
272
181
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
273
-  (0.1ms) begin transaction
182
+  (0.0ms) begin transaction
183
+  (0.0ms) commit transaction
184
+  (0.0ms) begin transaction
274
185
   (0.0ms) commit transaction
275
-  (0.1ms) begin transaction
276
-  (0.1ms) commit transaction
277
186
  Redirected to http://www.example-client.com/restricted
278
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
279
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:01 +0000
187
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
188
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:00 +0000
280
189
  Processing by ExampleController#restricted as HTML
281
190
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
282
191
  Rendering text template
283
192
  Rendered text template (0.0ms)
284
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
285
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
193
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
194
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
286
195
  Processing by ExampleController#restricted as HTML
287
196
  Authenticating with gds_sso strategy
288
197
  Completed in 0ms (ActiveRecord: 0.0ms)
289
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
290
- Started GET "/auth/gds/callback?code=0KvD-U3mbOr7IQCo9xGjz5XFI2ISiBQ3-Fkard2qMss&state=03fcadf877cb14fd2d698e2a7259325f1db0a61891e8ef38" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
198
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
199
+ Started GET "/auth/gds/callback?code=5ic6sOKhJSYDURBYZoFJHexP5G2bfXJjIV79xqDNFJ4&state=80aabeb7042e4b14007db50f5bbedc7f49363322faeb15c9" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
291
200
  Processing by AuthenticationsController#callback as HTML
292
- Parameters: {"code"=>"0KvD-U3mbOr7IQCo9xGjz5XFI2ISiBQ3-Fkard2qMss", "state"=>"03fcadf877cb14fd2d698e2a7259325f1db0a61891e8ef38"}
201
+ Parameters: {"code"=>"5ic6sOKhJSYDURBYZoFJHexP5G2bfXJjIV79xqDNFJ4", "state"=>"80aabeb7042e4b14007db50f5bbedc7f49363322faeb15c9"}
293
202
  Authenticating with gds_sso strategy
294
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
295
-  (0.2ms) begin transaction
203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
204
+  (0.0ms) begin transaction
296
205
   (0.0ms) commit transaction
297
206
   (0.0ms) begin transaction
298
207
   (0.0ms) commit transaction
299
208
  Redirected to http://www.example-client.com/restricted
300
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
301
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
209
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
210
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
302
211
  Processing by ExampleController#restricted as HTML
303
212
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
304
213
  Rendering text template
305
214
  Rendered text template (0.0ms)
306
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
307
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:01 +0000
215
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
216
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:00 +0000
308
217
  Processing by ExampleController#restricted as HTML
309
218
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
310
219
  Rendering text template
311
220
  Rendered text template (0.0ms)
312
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
313
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
221
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
222
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
314
223
  Processing by ExampleController#restricted as HTML
315
224
  Authenticating with gds_sso strategy
316
225
  Completed in 0ms (ActiveRecord: 0.0ms)
317
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
318
- Started GET "/auth/gds/callback?code=lkMut4J9C-GGDBDF29-8lz6yZNhdI26xdK5sgAvBLaA&state=282d995502a62b1832b6f0220fd3996160caa61ac071b576" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
226
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:00 +0000
227
+ Started GET "/auth/gds/callback?code=5unc36p8g7n2ZSWxVmKzQJqtfQHU46Ize10_86EatxE&state=e66c42d4403f0a73e63f057037a7b9a79659047a0281a7c5" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
319
228
  Processing by AuthenticationsController#callback as HTML
320
- Parameters: {"code"=>"lkMut4J9C-GGDBDF29-8lz6yZNhdI26xdK5sgAvBLaA", "state"=>"282d995502a62b1832b6f0220fd3996160caa61ac071b576"}
229
+ Parameters: {"code"=>"5unc36p8g7n2ZSWxVmKzQJqtfQHU46Ize10_86EatxE", "state"=>"e66c42d4403f0a73e63f057037a7b9a79659047a0281a7c5"}
321
230
  Authenticating with gds_sso strategy
322
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
323
-  (0.1ms) begin transaction
231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
232
+  (0.0ms) begin transaction
324
233
   (0.0ms) commit transaction
325
234
   (0.0ms) begin transaction
326
235
   (0.0ms) commit transaction
327
236
  Redirected to http://www.example-client.com/restricted
328
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
329
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:01 +0000
237
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
238
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
330
239
  Processing by ExampleController#restricted as HTML
331
240
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
332
241
  Rendering text template
333
242
  Rendered text template (0.0ms)
334
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
335
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
336
-  (0.1ms) begin transaction
337
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
338
-  (7.1ms) commit transaction
339
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
243
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
244
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:01 +0000
245
+ Processing by ExampleController#restricted as HTML
246
+ Authenticating with gds_sso strategy
247
+ Completed in 0ms (ActiveRecord: 0.0ms)
248
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:01 +0000
249
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
250
+ Processing by ExampleController#restricted as HTML
251
+ Authenticating with gds_sso strategy
252
+ Completed in 0ms (ActiveRecord: 0.0ms)
253
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
254
+ Started GET "/auth/gds/callback?code=9DCTU1hpKPN8xOmtADg00cg7HVlQHEgSIs_qH8_8eQg&state=ba7a01e8e51a2c83e7c233d7757fce6ecc8d35737dca4067" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
255
+ Processing by AuthenticationsController#callback as HTML
256
+ Parameters: {"code"=>"9DCTU1hpKPN8xOmtADg00cg7HVlQHEgSIs_qH8_8eQg", "state"=>"ba7a01e8e51a2c83e7c233d7757fce6ecc8d35737dca4067"}
257
+ Authenticating with gds_sso strategy
258
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
259
+  (0.0ms) begin transaction
260
+  (0.0ms) commit transaction
261
+  (0.0ms) begin transaction
262
+  (0.0ms) commit transaction
263
+ Redirected to http://www.example-client.com/restricted
264
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
265
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
266
+ Processing by ExampleController#restricted as HTML
267
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
268
+ Rendering text template
269
+ Rendered text template (0.0ms)
270
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
272
+  (0.0ms) begin transaction
273
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
274
+  (6.6ms) commit transaction
275
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
340
276
  Processing by ExampleController#restricted as HTML
341
277
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
342
278
  Authenticating with gds_sso strategy
343
279
  Completed in 1ms (ActiveRecord: 0.1ms)
344
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
345
- Started GET "/auth/gds/callback?code=0tod4KmKNl5dbJ9u5nGbam9VmIFAdW_tp6OAdsA1xr8&state=b577b9071423563943a94e5a61a755689c8818337e0e72c6" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
280
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
281
+ Started GET "/auth/gds/callback?code=eXlvYYRe2IqnS8eEnMRI7woLmtLres33w6NsssIPWfM&state=553b4734786e1342b14853bfac88a9c543fbe33785db4164" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
346
282
  Processing by AuthenticationsController#callback as HTML
347
- Parameters: {"code"=>"0tod4KmKNl5dbJ9u5nGbam9VmIFAdW_tp6OAdsA1xr8", "state"=>"b577b9071423563943a94e5a61a755689c8818337e0e72c6"}
283
+ Parameters: {"code"=>"eXlvYYRe2IqnS8eEnMRI7woLmtLres33w6NsssIPWfM", "state"=>"553b4734786e1342b14853bfac88a9c543fbe33785db4164"}
348
284
  Authenticating with gds_sso strategy
349
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
350
-  (0.1ms) begin transaction
351
-  (0.0ms) commit transaction
285
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
352
286
   (0.0ms) begin transaction
353
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
354
-  (6.0ms) commit transaction
287
+  (0.1ms) commit transaction
288
+  (0.0ms) begin transaction
289
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
290
+  (4.5ms) commit transaction
355
291
  Redirected to http://www.example-client.com/restricted
356
- Completed 302 Found in 10ms (ActiveRecord: 6.6ms)
357
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
292
+ Completed 302 Found in 7ms (ActiveRecord: 4.9ms)
293
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
358
294
  Processing by ExampleController#restricted as HTML
359
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
295
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
360
296
  Rendering text template
361
297
  Rendered text template (0.0ms)
362
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
363
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
298
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
299
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
364
300
  Processing by ExampleController#restricted as JSON
365
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
301
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
366
302
   (0.0ms) begin transaction
367
- User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
368
-  (3.9ms) commit transaction
303
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 3]]
304
+  (6.5ms) commit transaction
369
305
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
370
306
   (0.0ms) begin transaction
371
307
   (0.0ms) commit transaction
@@ -379,15 +315,15 @@ Processing by ExampleController#restricted as JSON
379
315
   (0.0ms) commit transaction
380
316
  Rendering text template
381
317
  Rendered text template (0.0ms)
382
- Completed 200 OK in 55ms (Views: 0.3ms | ActiveRecord: 4.8ms)
383
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
318
+ Completed 200 OK in 21ms (Views: 0.2ms | ActiveRecord: 7.1ms)
319
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
384
320
  Processing by ExampleController#restricted as JSON
385
- Completed in 11ms (ActiveRecord: 0.0ms)
386
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
321
+ Completed in 12ms (ActiveRecord: 0.0ms)
322
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
387
323
  Processing by ExampleController#this_requires_signin_permission as JSON
388
324
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
389
325
   (0.0ms) begin transaction
390
-  (0.1ms) commit transaction
326
+  (0.0ms) commit transaction
391
327
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
392
328
   (0.0ms) begin transaction
393
329
   (0.0ms) commit transaction
@@ -395,1118 +331,1182 @@ Processing by ExampleController#this_requires_signin_permission as JSON
395
331
   (0.0ms) begin transaction
396
332
   (0.0ms) commit transaction
397
333
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
398
-  (0.1ms) begin transaction
399
-  (0.1ms) commit transaction
334
+  (0.0ms) begin transaction
335
+  (0.0ms) commit transaction
400
336
   (0.0ms) begin transaction
401
337
   (0.0ms) commit transaction
402
338
  Rendering text template
403
339
  Rendered text template (0.0ms)
404
- Completed 200 OK in 50ms (Views: 0.4ms | ActiveRecord: 0.7ms)
405
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:02 +0000
340
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
341
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:01 +0000
406
342
  Processing by ExampleController#restricted as JSON
407
- Completed in 17ms (ActiveRecord: 0.0ms)
408
-  (1.4ms) SELECT sqlite_version(*)
409
-  (0.1ms) SELECT sqlite_version(*)
410
-  (0.2ms) DROP TABLE IF EXISTS "users"
411
-  (9.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
412
-  (4.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
413
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
-  (0.1ms) begin transaction
415
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:11.696416"], ["updated_at", "2020-07-28 10:11:11.696416"]]
416
-  (4.7ms) commit transaction
417
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
418
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
419
-  (1.4ms) SELECT sqlite_version(*)
420
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
421
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
422
-  (0.1ms) begin transaction
423
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
424
-  (5.0ms) commit transaction
425
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
426
-  (0.1ms) begin transaction
427
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37378"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
428
-  (11.3ms) commit transaction
429
-  (0.1ms) begin transaction
430
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31593"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
431
-  (12.2ms) commit transaction
432
- Processing by Api::UserController#update as HTML
433
- Parameters: {"uid"=>"a1s2d37378"}
434
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
343
+ Completed in 7ms (ActiveRecord: 0.0ms)
344
+  (0.0ms) begin transaction
345
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36751"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
346
+  (7.0ms) commit transaction
347
+  (0.0ms) begin transaction
348
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37112"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
349
+  (6.0ms) commit transaction
350
+ Processing by Api::UserController#reauth as HTML
351
+ Parameters: {"uid"=>"a1s2d36751"}
352
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36751"], ["LIMIT", 1]]
353
+  (0.0ms) begin transaction
354
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
355
+  (4.6ms) commit transaction
356
+ Completed 200 OK in 6ms (ActiveRecord: 4.9ms)
357
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
358
+  (0.0ms) begin transaction
359
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39451"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
360
+  (9.7ms) commit transaction
361
+  (0.0ms) begin transaction
362
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38478"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
363
+  (15.0ms) commit transaction
364
+ Processing by Api::UserController#reauth as HTML
365
+ Parameters: {"uid"=>"nonexistent-user"}
366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
367
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
368
+  (0.0ms) begin transaction
369
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36453"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
370
+  (4.2ms) commit transaction
371
+  (0.0ms) begin transaction
372
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3600"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
373
+  (4.5ms) commit transaction
374
+ Processing by Api::UserController#reauth as HTML
375
+ Parameters: {"uid"=>"a1s2d36453"}
376
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
435
377
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
436
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.6ms | Allocations: 265)
378
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
437
379
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
438
- Completed 403 Forbidden in 8ms (Views: 5.3ms | ActiveRecord: 0.0ms | Allocations: 3265)
439
-  (0.1ms) begin transaction
440
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33604"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
441
-  (3.5ms) commit transaction
442
-  (0.1ms) begin transaction
443
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38516"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
444
-  (3.2ms) commit transaction
380
+ Completed 403 Forbidden in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
381
+  (0.0ms) begin transaction
382
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37723"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
383
+  (5.4ms) commit transaction
384
+  (0.0ms) begin transaction
385
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36478"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
386
+  (4.2ms) commit transaction
445
387
  Processing by Api::UserController#update as HTML
446
- Parameters: {"uid"=>"a1s2d33604"}
447
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33604"], ["LIMIT", 1]]
448
-  (0.1ms) begin transaction
449
- User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
450
-  (3.1ms) commit transaction
451
- Completed 200 OK in 6ms (ActiveRecord: 3.5ms | Allocations: 1313)
452
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
453
-  (0.1ms) begin transaction
454
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31894"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
455
-  (4.5ms) commit transaction
456
-  (0.1ms) begin transaction
457
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36660"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
458
-  (3.2ms) commit transaction
388
+ Parameters: {"uid"=>"a1s2d37723"}
389
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37723"], ["LIMIT", 1]]
390
+  (0.0ms) begin transaction
391
+ User Update (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
392
+  (4.2ms) commit transaction
393
+ Completed 200 OK in 6ms (ActiveRecord: 4.5ms)
394
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
395
+  (0.0ms) begin transaction
396
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31835"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
397
+  (5.2ms) commit transaction
398
+  (0.0ms) begin transaction
399
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34167"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
400
+  (4.0ms) commit transaction
401
+ Processing by Api::UserController#update as HTML
402
+ Parameters: {"uid"=>"a1s2d31835"}
403
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
404
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
405
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
406
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
407
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
408
+  (1.0ms) SELECT sqlite_version(*)
409
+  (0.0ms) SELECT sqlite_version(*)
410
+  (0.1ms) DROP TABLE IF EXISTS "users"
411
+  (8.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
412
+  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
413
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
414
+  (0.0ms) begin transaction
415
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:51:09.395508"], ["updated_at", "2020-10-26 14:51:09.395508"]]
416
+  (5.1ms) commit transaction
417
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
418
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
419
+  (0.1ms) SELECT sqlite_version(*)
420
+  (0.0ms) begin transaction
421
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3521"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
422
+  (8.8ms) commit transaction
423
+  (0.0ms) begin transaction
424
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31612"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
425
+  (9.4ms) commit transaction
426
+ Processing by Api::UserController#reauth as HTML
427
+ Parameters: {"uid"=>"a1s2d3521"}
428
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
429
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
430
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 266)
431
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
432
+ Completed 403 Forbidden in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 3270)
433
+  (0.0ms) begin transaction
434
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35772"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
435
+  (5.7ms) commit transaction
436
+  (0.0ms) begin transaction
437
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39235"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
438
+  (7.3ms) commit transaction
439
+ Processing by Api::UserController#reauth as HTML
440
+ Parameters: {"uid"=>"a1s2d35772"}
441
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35772"], ["LIMIT", 1]]
442
+  (0.0ms) begin transaction
443
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 3]]
444
+  (7.3ms) commit transaction
445
+ Completed 200 OK in 10ms (ActiveRecord: 7.7ms | Allocations: 1138)
446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
447
+  (0.0ms) begin transaction
448
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35156"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
449
+  (7.9ms) commit transaction
450
+  (0.0ms) begin transaction
451
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34813"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
452
+  (5.1ms) commit transaction
459
453
  Processing by Api::UserController#reauth as HTML
460
454
  Parameters: {"uid"=>"nonexistent-user"}
461
455
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
462
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 522)
463
-  (0.1ms) begin transaction
464
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36194"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
465
-  (3.1ms) commit transaction
466
-  (0.1ms) begin transaction
467
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32577"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
468
-  (3.5ms) commit transaction
469
- Processing by Api::UserController#reauth as HTML
470
- Parameters: {"uid"=>"a1s2d36194"}
471
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
456
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 521)
457
+  (0.0ms) begin transaction
458
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34405"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
459
+  (5.0ms) commit transaction
460
+  (0.0ms) begin transaction
461
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3951"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
462
+  (7.0ms) commit transaction
463
+ Processing by Api::UserController#update as HTML
464
+ Parameters: {"uid"=>"a1s2d34405"}
465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34405"], ["LIMIT", 1]]
466
+  (0.0ms) begin transaction
467
+ User Update (0.1ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 7]]
468
+  (6.3ms) commit transaction
469
+ Completed 200 OK in 8ms (ActiveRecord: 6.6ms | Allocations: 1284)
470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
471
+  (0.0ms) begin transaction
472
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34335"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
473
+  (9.8ms) commit transaction
474
+  (0.0ms) begin transaction
475
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39368"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
476
+  (7.4ms) commit transaction
477
+ Processing by Api::UserController#update as HTML
478
+ Parameters: {"uid"=>"a1s2d34335"}
479
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
472
480
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
473
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.2ms | Allocations: 56)
481
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 56)
474
482
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
475
- Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms | Allocations: 514)
476
-  (0.1ms) begin transaction
477
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31351"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
478
-  (3.2ms) commit transaction
479
-  (0.1ms) begin transaction
480
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32956"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
481
-  (3.9ms) commit transaction
482
- Processing by Api::UserController#reauth as HTML
483
- Parameters: {"uid"=>"a1s2d31351"}
484
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31351"], ["LIMIT", 1]]
485
-  (0.1ms) begin transaction
486
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 10]]
487
-  (3.2ms) commit transaction
488
- Completed 200 OK in 6ms (ActiveRecord: 3.6ms | Allocations: 928)
489
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
490
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
491
- Processing by ExampleController#restricted as HTML
492
- Authenticating with gds_sso strategy
493
- Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 162)
494
- Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
495
- Processing by ExampleController#index as HTML
496
- Rendering text template
497
- Rendered text template (Duration: 0.0ms | Allocations: 1)
498
- Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms | Allocations: 475)
499
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
500
- Processing by ExampleController#restricted as HTML
483
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 514)
484
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
485
+  (0.0ms) begin transaction
486
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "3749"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
487
+  (11.3ms) commit transaction
488
+  (0.0ms) begin transaction
489
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
490
+  (13.2ms) commit transaction
491
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
493
+  (0.0ms) begin transaction
494
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
495
+  (6.9ms) commit transaction
496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
497
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
498
+ Processing by ExampleController#this_requires_signin_permission as HTML
501
499
  Authenticating with gds_sso strategy
502
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 115)
503
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
504
- Started GET "/auth/gds/callback?code=aFjAs4wwnCYsih8y8lFaG-GVdG2n1uHgaHiDbqvWGRA&state=105756fa9458618cf24e279350e44cb409bd6b25b1ee0d79" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
500
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 161)
501
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
502
+ Started GET "/auth/gds/callback?code=CcfEoM1MpM4hcEeZL5WZUmoWjkNxiM0Oa1L7rWJLKBs&state=156fe842e93761b639e9a74480699111a72a9be4a4fc1e17" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
505
503
  Processing by AuthenticationsController#callback as HTML
506
- Parameters: {"code"=>"aFjAs4wwnCYsih8y8lFaG-GVdG2n1uHgaHiDbqvWGRA", "state"=>"105756fa9458618cf24e279350e44cb409bd6b25b1ee0d79"}
504
+ Parameters: {"code"=>"CcfEoM1MpM4hcEeZL5WZUmoWjkNxiM0Oa1L7rWJLKBs", "state"=>"156fe842e93761b639e9a74480699111a72a9be4a4fc1e17"}
507
505
  Authenticating with gds_sso strategy
508
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
509
507
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
510
-  (0.1ms) begin transaction
511
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
512
-  (4.7ms) commit transaction
513
-  (0.1ms) begin transaction
514
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 12]]
515
-  (4.4ms) commit transaction
516
- Redirected to http://www.example-client.com/restricted
517
- Completed 302 Found in 14ms (ActiveRecord: 10.0ms | Allocations: 1592)
518
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
519
- Processing by ExampleController#restricted as HTML
508
+  (0.0ms) begin transaction
509
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
510
+  (5.3ms) commit transaction
511
+  (0.0ms) begin transaction
512
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
513
+  (4.2ms) commit transaction
514
+ Redirected to http://www.example-client.com/this_requires_signin_permission
515
+ Completed 302 Found in 13ms (ActiveRecord: 10.1ms | Allocations: 1593)
516
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
517
+ Processing by ExampleController#this_requires_signin_permission as HTML
520
518
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
521
519
  Rendering text template
522
520
  Rendered text template (Duration: 0.0ms | Allocations: 1)
523
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 731)
524
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
521
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms | Allocations: 1054)
522
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
525
523
  Processing by ExampleController#this_requires_signin_permission as HTML
526
524
  Authenticating with gds_sso strategy
527
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
528
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:12 +0000
529
- Started GET "/auth/gds/callback?code=UoqQuZKYHON4cJVzd03wNP0Fzj09csPTYFNMMJ6B7hA&state=230f7021c6c21a0e3ae9a32d44d76634f4b5eada178a37e8" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
525
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
526
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
527
+ Started GET "/auth/gds/callback?code=P_GEjdhe51Awp_rBVMBHcqmzzX64bBiYtbzHlOCLd1A&state=a3e67583ddbdc93e9a05d777b9f8f47211da874e1bf08a89" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
530
528
  Processing by AuthenticationsController#callback as HTML
531
- Parameters: {"code"=>"UoqQuZKYHON4cJVzd03wNP0Fzj09csPTYFNMMJ6B7hA", "state"=>"230f7021c6c21a0e3ae9a32d44d76634f4b5eada178a37e8"}
529
+ Parameters: {"code"=>"P_GEjdhe51Awp_rBVMBHcqmzzX64bBiYtbzHlOCLd1A", "state"=>"a3e67583ddbdc93e9a05d777b9f8f47211da874e1bf08a89"}
532
530
  Authenticating with gds_sso strategy
533
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
534
532
  Redirected to http://www.example-client.com/this_requires_signin_permission
535
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
536
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
533
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
534
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
537
535
  Processing by ExampleController#this_requires_signin_permission as HTML
538
536
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
539
537
  Rendering text template
540
538
  Rendered text template (Duration: 0.0ms | Allocations: 1)
541
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
542
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
543
- Processing by ExampleController#this_requires_signin_permission as HTML
539
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
540
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
541
+ Processing by ExampleController#restricted as HTML
544
542
  Authenticating with gds_sso strategy
545
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
546
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
547
- Started GET "/auth/gds/callback?code=70nwMjegd4XlaKu7HNf13FrTkz5W_rk7F6FreB_m2r8&state=5ef9993d6f09d4d162928d9173a1d5d3c570c16c49f8eee5" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
543
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
544
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
545
+ Started GET "/auth/gds/callback?code=vw71a-deJx87P19bBjLXxD9r3B3vPQRW7movQkxVyg4&state=f086f068f227e08a5a6c23086c801305a3bf33eacae3c724" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
548
546
  Processing by AuthenticationsController#callback as HTML
549
- Parameters: {"code"=>"70nwMjegd4XlaKu7HNf13FrTkz5W_rk7F6FreB_m2r8", "state"=>"5ef9993d6f09d4d162928d9173a1d5d3c570c16c49f8eee5"}
547
+ Parameters: {"code"=>"vw71a-deJx87P19bBjLXxD9r3B3vPQRW7movQkxVyg4", "state"=>"f086f068f227e08a5a6c23086c801305a3bf33eacae3c724"}
550
548
  Authenticating with gds_sso strategy
551
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
552
- Redirected to http://www.example-client.com/this_requires_signin_permission
553
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
554
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
555
- Processing by ExampleController#this_requires_signin_permission as HTML
556
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
549
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
550
+ Redirected to http://www.example-client.com/restricted
551
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
552
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
553
+ Processing by ExampleController#restricted as HTML
554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
557
555
  Rendering text template
558
556
  Rendered text template (Duration: 0.0ms | Allocations: 1)
559
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 706)
560
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
557
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
558
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
561
559
  Processing by ExampleController#restricted as HTML
562
560
  Authenticating with gds_sso strategy
563
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
564
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
565
- Started GET "/auth/gds/callback?code=dTqlS-0Xq0T9HdEE0WoDRhvKL5K9-rfP6kF3c5gEAWo&state=c492c8c76e68cc3470317e8c77fbd009db706a37995d3447" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
561
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
562
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
563
+ Started GET "/auth/gds/callback?code=gKSQCO3T605t6Bd3ty3fTGxwcWnUBnKKQ0WS_qsE9Sg&state=85c6bc6df2137b74f313bcab3e7fe9a031c3961c98396d4b" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
566
564
  Processing by AuthenticationsController#callback as HTML
567
- Parameters: {"code"=>"dTqlS-0Xq0T9HdEE0WoDRhvKL5K9-rfP6kF3c5gEAWo", "state"=>"c492c8c76e68cc3470317e8c77fbd009db706a37995d3447"}
565
+ Parameters: {"code"=>"gKSQCO3T605t6Bd3ty3fTGxwcWnUBnKKQ0WS_qsE9Sg", "state"=>"85c6bc6df2137b74f313bcab3e7fe9a031c3961c98396d4b"}
568
566
  Authenticating with gds_sso strategy
569
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
570
568
  Redirected to http://www.example-client.com/restricted
571
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
572
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
569
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
570
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
573
571
  Processing by ExampleController#restricted as HTML
574
572
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
575
573
  Rendering text template
576
574
  Rendered text template (Duration: 0.0ms | Allocations: 1)
577
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
578
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
575
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
576
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
579
577
  Processing by ExampleController#restricted as HTML
580
578
  Authenticating with gds_sso strategy
581
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
582
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
583
- Started GET "/auth/gds/callback?code=98uew1cTav8MSNecc31YVR8YDtu9OIeaOJb2qEomgD8&state=bab999a3c0d2952fd4f34d3ae7df1bd3cce905daaea0adc0" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
579
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
580
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
581
+ Started GET "/auth/gds/callback?code=BnFkDrfN9Z2hyimBvnmSqcPfovbOQyFvaIG9cohTHfM&state=ebc1316410d9746f3da5be6009e776a648c23afa996ed286" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
584
582
  Processing by AuthenticationsController#callback as HTML
585
- Parameters: {"code"=>"98uew1cTav8MSNecc31YVR8YDtu9OIeaOJb2qEomgD8", "state"=>"bab999a3c0d2952fd4f34d3ae7df1bd3cce905daaea0adc0"}
583
+ Parameters: {"code"=>"BnFkDrfN9Z2hyimBvnmSqcPfovbOQyFvaIG9cohTHfM", "state"=>"ebc1316410d9746f3da5be6009e776a648c23afa996ed286"}
586
584
  Authenticating with gds_sso strategy
587
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
588
586
  Redirected to http://www.example-client.com/restricted
589
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
590
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
587
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
588
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
591
589
  Processing by ExampleController#restricted as HTML
592
590
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
593
591
  Rendering text template
594
592
  Rendered text template (Duration: 0.0ms | Allocations: 1)
595
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 706)
596
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
593
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
594
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
595
+ Processing by ExampleController#index as HTML
596
+ Rendering text template
597
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
598
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 153)
599
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
597
600
  Processing by ExampleController#restricted as HTML
598
601
  Authenticating with gds_sso strategy
599
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
600
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
601
- Started GET "/auth/gds/callback?code=eZufCW2sAKLT6PdExAMXK9drlUiuP8wALWbeeTdqbIY&state=533e795cc72dd064e022b56bee0acf097fdeb74cc209cd00" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
602
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
603
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
604
+ Started GET "/auth/gds/callback?code=APoibDDfGWp4YOYOb-mlhAGZ4ddhM99vujOTRaNe8fM&state=31b2dd657ea3fb2f658a27903cd6731ae4b5a1b5e4a31a35" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
602
605
  Processing by AuthenticationsController#callback as HTML
603
- Parameters: {"code"=>"eZufCW2sAKLT6PdExAMXK9drlUiuP8wALWbeeTdqbIY", "state"=>"533e795cc72dd064e022b56bee0acf097fdeb74cc209cd00"}
606
+ Parameters: {"code"=>"APoibDDfGWp4YOYOb-mlhAGZ4ddhM99vujOTRaNe8fM", "state"=>"31b2dd657ea3fb2f658a27903cd6731ae4b5a1b5e4a31a35"}
604
607
  Authenticating with gds_sso strategy
605
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
608
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
606
609
  Redirected to http://www.example-client.com/restricted
607
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1020)
608
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
609
- Processing by ExampleController#restricted as HTML
610
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
611
- Rendering text template
612
- Rendered text template (Duration: 0.0ms | Allocations: 1)
613
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 709)
614
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:13 +0000
610
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
611
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
615
612
  Processing by ExampleController#restricted as HTML
616
613
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
617
614
  Rendering text template
618
615
  Rendered text template (Duration: 0.0ms | Allocations: 1)
619
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 929)
620
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:13 +0000
616
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 709)
617
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
621
618
  Processing by ExampleController#restricted as HTML
622
619
  Authenticating with gds_sso strategy
623
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
624
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
625
- Started GET "/auth/gds/callback?code=5Unedqs9r-W_C-K_4WgsScBjKNJpiS31nHl3fzP7OMs&state=83d3e8d784318705bce7d00f45e6a4eb68039fa61e3e5141" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
620
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
621
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
622
+ Started GET "/auth/gds/callback?code=7K72nCsn8CzZstyeITpn5_tqeSamkl20rDOAnjEAvhE&state=39077c375107ad6496606d3943549c493bdc6ed4fd38c558" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
626
623
  Processing by AuthenticationsController#callback as HTML
627
- Parameters: {"code"=>"5Unedqs9r-W_C-K_4WgsScBjKNJpiS31nHl3fzP7OMs", "state"=>"83d3e8d784318705bce7d00f45e6a4eb68039fa61e3e5141"}
624
+ Parameters: {"code"=>"7K72nCsn8CzZstyeITpn5_tqeSamkl20rDOAnjEAvhE", "state"=>"39077c375107ad6496606d3943549c493bdc6ed4fd38c558"}
628
625
  Authenticating with gds_sso strategy
629
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
626
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
630
627
  Redirected to http://www.example-client.com/restricted
631
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
632
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
628
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1217)
629
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
633
630
  Processing by ExampleController#restricted as HTML
634
631
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
635
632
  Rendering text template
636
633
  Rendered text template (Duration: 0.0ms | Allocations: 1)
637
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 706)
638
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
634
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 931)
635
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
639
636
  Processing by ExampleController#restricted as HTML
640
637
  Authenticating with gds_sso strategy
641
- Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 499)
642
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
643
- Started GET "/auth/gds/callback?code=xMQ-HoOr0S2m7lo11s9LSrZjM7OcnnWvhEzjHLAo9yI&state=f75c8a45dfff87d84935f9c9775eb862203bf372a0158ecc" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
638
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
639
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
640
+ Started GET "/auth/gds/callback?code=IT_etADQWF1aJWi9LF93q_RAkpAR81y52ZPecBrS4RE&state=4cdc532d5e0d6b31f8dd68839f3ab032ebf1396f521219a0" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
644
641
  Processing by AuthenticationsController#callback as HTML
645
- Parameters: {"code"=>"xMQ-HoOr0S2m7lo11s9LSrZjM7OcnnWvhEzjHLAo9yI", "state"=>"f75c8a45dfff87d84935f9c9775eb862203bf372a0158ecc"}
642
+ Parameters: {"code"=>"IT_etADQWF1aJWi9LF93q_RAkpAR81y52ZPecBrS4RE", "state"=>"4cdc532d5e0d6b31f8dd68839f3ab032ebf1396f521219a0"}
646
643
  Authenticating with gds_sso strategy
647
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
648
645
  Redirected to http://www.example-client.com/restricted
649
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1218)
650
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
646
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
647
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
651
648
  Processing by ExampleController#restricted as HTML
652
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
653
650
  Rendering text template
654
651
  Rendered text template (Duration: 0.0ms | Allocations: 1)
655
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 931)
656
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
652
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
653
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
654
+ Processing by ExampleController#restricted as HTML
655
+ Authenticating with gds_sso strategy
656
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 498)
657
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:10 +0000
658
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
657
659
  Processing by ExampleController#restricted as HTML
658
660
  Authenticating with gds_sso strategy
659
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
660
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
661
- Started GET "/auth/gds/callback?code=Agxoyv8mKmmRsiQnuIFYhe5fSfvO2G3qkzq_TL5SRfI&state=408db98efb6da62cb34c6f41e01cb5715e72ac856538e8fe" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
661
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
662
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
663
+ Started GET "/auth/gds/callback?code=O4wvIT3_l7tiliaqAACJZ20qbUqq_pVNmbXZ7LQb-nw&state=8485936984b0a357019f3679e1a0c3cb257b9125fe85d1c4" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
662
664
  Processing by AuthenticationsController#callback as HTML
663
- Parameters: {"code"=>"Agxoyv8mKmmRsiQnuIFYhe5fSfvO2G3qkzq_TL5SRfI", "state"=>"408db98efb6da62cb34c6f41e01cb5715e72ac856538e8fe"}
665
+ Parameters: {"code"=>"O4wvIT3_l7tiliaqAACJZ20qbUqq_pVNmbXZ7LQb-nw", "state"=>"8485936984b0a357019f3679e1a0c3cb257b9125fe85d1c4"}
664
666
  Authenticating with gds_sso strategy
665
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
666
668
  Redirected to http://www.example-client.com/restricted
667
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
668
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
669
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1015)
670
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
669
671
  Processing by ExampleController#restricted as HTML
670
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
672
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
671
673
  Rendering text template
672
674
  Rendered text template (Duration: 0.0ms | Allocations: 1)
673
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 706)
674
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
675
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 706)
676
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:10 +0000
675
677
  Processing by ExampleController#restricted as HTML
676
- Authenticating with gds_sso strategy
677
- Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 499)
678
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:14 +0000
679
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
678
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
679
+ Rendering text template
680
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
681
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 929)
682
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
680
683
  Processing by ExampleController#restricted as HTML
681
684
  Authenticating with gds_sso strategy
682
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 113)
683
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
684
- Started GET "/auth/gds/callback?code=JAilgkkSwSh7mM0JcpjQ_pHblu106hx6MxAA_a3NVzM&state=9e438e307f854d56ff9e71f8662eeb4781f366b28276370c" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
685
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 112)
686
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
687
+ Started GET "/auth/gds/callback?code=h5AvSzO9-B-1cin-UDSU-p1dIsEbFKeD7lweCROjrho&state=9e8442a545bde8802ef556f04e1c8fdde3db5c75819d3b4c" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
685
688
  Processing by AuthenticationsController#callback as HTML
686
- Parameters: {"code"=>"JAilgkkSwSh7mM0JcpjQ_pHblu106hx6MxAA_a3NVzM", "state"=>"9e438e307f854d56ff9e71f8662eeb4781f366b28276370c"}
689
+ Parameters: {"code"=>"h5AvSzO9-B-1cin-UDSU-p1dIsEbFKeD7lweCROjrho", "state"=>"9e8442a545bde8802ef556f04e1c8fdde3db5c75819d3b4c"}
687
690
  Authenticating with gds_sso strategy
688
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
689
692
  Redirected to http://www.example-client.com/restricted
690
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1016)
691
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
693
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1019)
694
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
692
695
  Processing by ExampleController#restricted as HTML
693
696
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
694
697
  Rendering text template
695
698
  Rendered text template (Duration: 0.0ms | Allocations: 1)
696
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 706)
699
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 708)
697
700
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
698
-  (0.1ms) begin transaction
699
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 12]]
700
-  (4.9ms) commit transaction
701
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
701
+  (0.0ms) begin transaction
702
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
703
+  (4.1ms) commit transaction
704
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
702
705
  Processing by ExampleController#restricted as HTML
703
706
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
704
707
  Authenticating with gds_sso strategy
705
- Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 575)
706
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
707
- Started GET "/auth/gds/callback?code=0CKodWNlhfpLIzo7X1jEXf3Vp2MlJhPeMvagU2OhLqU&state=6dc239a4a1e50e667c93ec1a9ff694589798cd05bcc3a671" for 127.0.0.1 at 2020-07-28 10:11:14 +0000
708
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 574)
709
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
710
+ Started GET "/auth/gds/callback?code=B40rOBHLorgUVjtPFZSVFMxf4QnH7ryN4p6tUQR1vtg&state=c6e381ce1a1c9c84ae78a3e18e447ad294b0ed65cf25130f" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
708
711
  Processing by AuthenticationsController#callback as HTML
709
- Parameters: {"code"=>"0CKodWNlhfpLIzo7X1jEXf3Vp2MlJhPeMvagU2OhLqU", "state"=>"6dc239a4a1e50e667c93ec1a9ff694589798cd05bcc3a671"}
712
+ Parameters: {"code"=>"B40rOBHLorgUVjtPFZSVFMxf4QnH7ryN4p6tUQR1vtg", "state"=>"c6e381ce1a1c9c84ae78a3e18e447ad294b0ed65cf25130f"}
710
713
  Authenticating with gds_sso strategy
711
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
714
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
712
715
   (0.1ms) begin transaction
713
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 12]]
714
-  (5.0ms) commit transaction
716
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
717
+  (5.2ms) commit transaction
715
718
  Redirected to http://www.example-client.com/restricted
716
- Completed 302 Found in 9ms (ActiveRecord: 5.6ms | Allocations: 1226)
717
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
719
+ Completed 302 Found in 8ms (ActiveRecord: 5.5ms | Allocations: 1225)
720
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
718
721
  Processing by ExampleController#restricted as HTML
719
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
722
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
720
723
  Rendering text template
721
- Rendered text template (Duration: 0.1ms | Allocations: 1)
722
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 704)
723
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
724
- Processing by ExampleController#this_requires_signin_permission as JSON
725
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
724
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
725
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 704)
726
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
727
+ Processing by ExampleController#restricted as JSON
728
+ Completed in 14ms (ActiveRecord: 0.0ms | Allocations: 2116)
729
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
730
+ Processing by ExampleController#restricted as JSON
731
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1871)
732
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
733
+ Processing by ExampleController#restricted as JSON
734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
726
735
   (0.1ms) begin transaction
727
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
728
-  (3.4ms) commit transaction
729
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
736
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
737
+  (5.2ms) commit transaction
738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
730
739
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
731
740
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
732
741
  Rendering text template
733
742
  Rendered text template (Duration: 0.0ms | Allocations: 1)
734
- Completed 200 OK in 96ms (Views: 0.3ms | ActiveRecord: 4.2ms | Allocations: 7451)
735
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
736
- Processing by ExampleController#restricted as JSON
737
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
743
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 5.7ms | Allocations: 3631)
744
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
745
+ Processing by ExampleController#this_requires_signin_permission as JSON
746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
738
747
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
739
748
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
740
749
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
741
750
  Rendering text template
742
751
  Rendered text template (Duration: 0.0ms | Allocations: 1)
743
- Completed 200 OK in 87ms (Views: 0.3ms | ActiveRecord: 0.3ms | Allocations: 6804)
744
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
745
- Processing by ExampleController#restricted as JSON
746
- Completed in 31ms (ActiveRecord: 0.0ms | Allocations: 1852)
747
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:15 +0000
748
- Processing by ExampleController#restricted as JSON
749
- Completed in 16ms (ActiveRecord: 0.0ms | Allocations: 1958)
750
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
751
-  (0.1ms) begin transaction
752
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2568"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
753
-  (4.2ms) commit transaction
754
-  (0.1ms) begin transaction
755
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 13]]
756
-  (4.0ms) commit transaction
752
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 3319)
753
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:10 +0000
754
+ Processing by ExampleController#restricted as HTML
755
+ Authenticating with gds_sso strategy
756
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 114)
757
757
   (0.1ms) DROP TABLE IF EXISTS "users"
758
-  (1.4ms) SELECT sqlite_version(*)
759
-  (4.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
760
-  (4.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
761
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
762
-  (0.1ms) begin transaction
763
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:20.563604"], ["updated_at", "2020-07-28 10:11:20.563604"]]
764
-  (4.7ms) commit transaction
765
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
766
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
758
+  (0.9ms) SELECT sqlite_version(*)
759
+  (17.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
760
+  (8.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
761
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
762
+  (0.0ms) begin transaction
763
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:51:15.152563"], ["updated_at", "2020-10-26 14:51:15.152563"]]
764
+  (5.6ms) commit transaction
765
+  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
766
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
767
767
   (0.0ms) begin transaction
768
768
   (0.0ms) commit transaction
769
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
770
-  (0.1ms) begin transaction
771
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "567"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
772
-  (18.5ms) commit transaction
773
-  (0.1ms) begin transaction
774
- User Update (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
775
-  (29.7ms) commit transaction
776
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
777
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
778
770
   (0.0ms) begin transaction
779
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
780
-  (14.3ms) commit transaction
781
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
771
+ User Create (1.0ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "2686"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
772
+  (5.2ms) commit transaction
782
773
   (0.0ms) begin transaction
783
-  (0.1ms) commit transaction
784
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
785
- Processing by ExampleController#restricted as HTML
786
- Authenticating with gds_sso strategy
787
- Completed in 5ms (ActiveRecord: 0.0ms)
788
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
789
- Processing by ExampleController#this_requires_signin_permission as JSON
790
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
791
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
792
-  (0.1ms) begin transaction
793
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
774
+ User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
775
+  (4.2ms) commit transaction
776
+  (0.0ms) begin transaction
777
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31161"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
778
+  (4.7ms) commit transaction
779
+  (0.0ms) begin transaction
780
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34234"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
781
+  (5.1ms) commit transaction
782
+ Processing by Api::UserController#update as HTML
783
+ Parameters: {"uid"=>"a1s2d31161"}
784
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
785
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
786
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.2ms)
787
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
788
+ Completed 403 Forbidden in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
789
+  (0.0ms) begin transaction
790
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32959"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
791
+  (5.7ms) commit transaction
792
+  (0.0ms) begin transaction
793
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39467"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
794
794
   (5.8ms) commit transaction
795
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
796
-  (0.1ms) begin transaction
797
-  (0.0ms) commit transaction
798
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
799
-  (0.1ms) begin transaction
800
-  (0.0ms) commit transaction
801
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
802
-  (0.1ms) begin transaction
803
-  (0.0ms) commit transaction
795
+ Processing by Api::UserController#update as HTML
796
+ Parameters: {"uid"=>"a1s2d32959"}
797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32959"], ["LIMIT", 1]]
804
798
   (0.0ms) begin transaction
805
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
806
-  (16.6ms) commit transaction
807
- Rendering text template
808
- Rendered text template (0.0ms)
809
- Completed 200 OK in 104ms (Views: 3.5ms | ActiveRecord: 24.1ms)
810
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
811
- Processing by ExampleController#restricted as JSON
812
- Completed in 18ms (ActiveRecord: 0.0ms)
813
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
814
- Processing by ExampleController#restricted as JSON
815
- Completed in 23ms (ActiveRecord: 0.0ms)
816
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
817
- Processing by ExampleController#restricted as JSON
818
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
819
-  (0.1ms) begin transaction
820
-  (0.0ms) commit transaction
821
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
799
+ User Update (0.1ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
800
+  (5.1ms) commit transaction
801
+ Completed 200 OK in 9ms (ActiveRecord: 5.4ms)
802
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
822
803
   (0.0ms) begin transaction
823
-  (0.0ms) commit transaction
824
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
825
-  (0.1ms) begin transaction
826
-  (0.0ms) commit transaction
827
- CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
828
-  (0.1ms) begin transaction
829
-  (0.2ms) commit transaction
804
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34570"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
805
+  (4.1ms) commit transaction
806
+  (0.0ms) begin transaction
807
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39231"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
808
+  (4.2ms) commit transaction
809
+ Processing by Api::UserController#reauth as HTML
810
+ Parameters: {"uid"=>"a1s2d34570"}
811
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
812
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
813
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
814
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
815
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
816
+  (0.0ms) begin transaction
817
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d314"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
818
+  (5.1ms) commit transaction
819
+  (1.0ms) begin transaction
820
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35325"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
821
+  (5.1ms) commit transaction
822
+ Processing by Api::UserController#reauth as HTML
823
+ Parameters: {"uid"=>"a1s2d314"}
824
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d314"], ["LIMIT", 1]]
825
+  (0.0ms) begin transaction
826
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
827
+  (5.1ms) commit transaction
828
+ Completed 200 OK in 7ms (ActiveRecord: 5.3ms)
829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
830
+  (0.0ms) begin transaction
831
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37331"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
832
+  (4.8ms) commit transaction
833
+  (0.0ms) begin transaction
834
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3677"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
835
+  (5.4ms) commit transaction
836
+ Processing by Api::UserController#reauth as HTML
837
+ Parameters: {"uid"=>"nonexistent-user"}
838
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
839
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
841
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
842
+  (0.0ms) begin transaction
843
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
844
+  (4.6ms) commit transaction
845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
830
846
   (0.0ms) begin transaction
831
847
   (0.0ms) commit transaction
832
- Rendering text template
833
- Rendered text template (0.0ms)
834
- Completed 200 OK in 59ms (Views: 0.4ms | ActiveRecord: 0.9ms)
835
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
848
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
836
849
  Processing by ExampleController#restricted as HTML
837
850
  Authenticating with gds_sso strategy
838
- Completed in 0ms (ActiveRecord: 0.0ms)
839
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:21 +0000
840
- Started GET "/auth/gds/callback?code=P_LklHe2gx1uTfoC98GPH4WLvzyBTLts-VPXCS2FP7Y&state=f84bb098719835d98b54b321d635174357451dcf2d7fb07c" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
851
+ Completed in 4ms (ActiveRecord: 0.0ms)
852
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
853
+ Started GET "/auth/gds/callback?code=Q9Xym_iQS39k93lYjTQmU_M46Qh7yfKef1UwVv273B8&state=a888e7930f94b3210e33ee38ef27f2f6c59989749a591104" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
841
854
  Processing by AuthenticationsController#callback as HTML
842
- Parameters: {"code"=>"P_LklHe2gx1uTfoC98GPH4WLvzyBTLts-VPXCS2FP7Y", "state"=>"f84bb098719835d98b54b321d635174357451dcf2d7fb07c"}
855
+ Parameters: {"code"=>"Q9Xym_iQS39k93lYjTQmU_M46Qh7yfKef1UwVv273B8", "state"=>"a888e7930f94b3210e33ee38ef27f2f6c59989749a591104"}
843
856
  Authenticating with gds_sso strategy
844
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
845
-  (0.1ms) begin transaction
846
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 3]]
847
-  (14.9ms) commit transaction
857
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
858
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
848
859
   (0.0ms) begin transaction
849
-  (0.0ms) commit transaction
860
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
861
+  (5.1ms) commit transaction
862
+  (0.0ms) begin transaction
863
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
864
+  (4.2ms) commit transaction
850
865
  Redirected to http://www.example-client.com/restricted
851
- Completed 302 Found in 20ms (ActiveRecord: 15.5ms)
852
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
866
+ Completed 302 Found in 13ms (ActiveRecord: 9.9ms)
867
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
853
868
  Processing by ExampleController#restricted as HTML
854
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
855
- Rendering text template
856
- Rendered text template (0.0ms)
857
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
858
- Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
859
- Processing by ExampleController#index as HTML
869
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
860
870
  Rendering text template
861
871
  Rendered text template (0.0ms)
862
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
863
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
864
- Processing by ExampleController#this_requires_signin_permission as HTML
872
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
873
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
874
+ Processing by ExampleController#restricted as HTML
865
875
  Authenticating with gds_sso strategy
866
876
  Completed in 0ms (ActiveRecord: 0.0ms)
867
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
868
- Started GET "/auth/gds/callback?code=ZN0r75qfZtwcnW6sVRGBHXb0qIrOaa3n93X6wzYWnSc&state=bb5593d63fd3eda7b2055ad46376964c8772acef1320a183" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
877
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:15 +0000
878
+ Started GET "/auth/gds/callback?code=sseENFS7d6YBWzqiG7fpzVhhedUEcvD5PY7jKg9lHzo&state=135f1b3de39cee89529dcae630868efd0e66c62948fe6fad" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
869
879
  Processing by AuthenticationsController#callback as HTML
870
- Parameters: {"code"=>"ZN0r75qfZtwcnW6sVRGBHXb0qIrOaa3n93X6wzYWnSc", "state"=>"bb5593d63fd3eda7b2055ad46376964c8772acef1320a183"}
880
+ Parameters: {"code"=>"sseENFS7d6YBWzqiG7fpzVhhedUEcvD5PY7jKg9lHzo", "state"=>"135f1b3de39cee89529dcae630868efd0e66c62948fe6fad"}
871
881
  Authenticating with gds_sso strategy
872
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
873
-  (0.1ms) begin transaction
882
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
883
+  (0.0ms) begin transaction
874
884
   (0.0ms) commit transaction
875
885
   (0.0ms) begin transaction
876
886
   (0.0ms) commit transaction
877
- Redirected to http://www.example-client.com/this_requires_signin_permission
878
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
879
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
880
- Processing by ExampleController#this_requires_signin_permission as HTML
887
+ Redirected to http://www.example-client.com/restricted
888
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
889
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
890
+ Processing by ExampleController#restricted as HTML
881
891
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
882
892
  Rendering text template
883
893
  Rendered text template (0.0ms)
884
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
885
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
894
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
895
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
886
896
  Processing by ExampleController#this_requires_signin_permission as HTML
887
897
  Authenticating with gds_sso strategy
888
898
  Completed in 0ms (ActiveRecord: 0.0ms)
889
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
890
- Started GET "/auth/gds/callback?code=XtsuQ4QET_S_LEFerL4SktH8OuB2fop_qw4VQPvNw6c&state=5a09c642a67e0fbe4c5ca5ccf72f98dd5b4c377fe563f392" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
899
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
900
+ Started GET "/auth/gds/callback?code=QID8NNYuBDTecvsjSiD-nYSJchn1zEou8UuDw9wfo5g&state=d42a09f463c9f9256d77595275b83baf607fc9f326a95764" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
891
901
  Processing by AuthenticationsController#callback as HTML
892
- Parameters: {"code"=>"XtsuQ4QET_S_LEFerL4SktH8OuB2fop_qw4VQPvNw6c", "state"=>"5a09c642a67e0fbe4c5ca5ccf72f98dd5b4c377fe563f392"}
902
+ Parameters: {"code"=>"QID8NNYuBDTecvsjSiD-nYSJchn1zEou8UuDw9wfo5g", "state"=>"d42a09f463c9f9256d77595275b83baf607fc9f326a95764"}
893
903
  Authenticating with gds_sso strategy
894
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
895
-  (0.1ms) begin transaction
904
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
905
+  (0.0ms) begin transaction
896
906
   (0.0ms) commit transaction
897
907
   (0.0ms) begin transaction
898
908
   (0.0ms) commit transaction
899
909
  Redirected to http://www.example-client.com/this_requires_signin_permission
900
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
901
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
910
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
911
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
902
912
  Processing by ExampleController#this_requires_signin_permission as HTML
903
913
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
904
914
  Rendering text template
905
915
  Rendered text template (0.0ms)
906
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
907
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
908
- Processing by ExampleController#restricted as HTML
916
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
917
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
918
+ Processing by ExampleController#this_requires_signin_permission as HTML
909
919
  Authenticating with gds_sso strategy
910
920
  Completed in 0ms (ActiveRecord: 0.0ms)
911
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
912
- Started GET "/auth/gds/callback?code=J8lwR8nnXnHwMNcdF_S81OwcCWATJVORinj2_XO5f18&state=1569939c766c6757642d0842377794a7f6e2aa0da000f731" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
921
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
922
+ Started GET "/auth/gds/callback?code=fRqwvJN7sEVyv-ak_G85JDH9aG72tj15sEfXqHMEVNo&state=4da89b2888a3812c467f79184df679a0fca58af49dbf8bef" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
913
923
  Processing by AuthenticationsController#callback as HTML
914
- Parameters: {"code"=>"J8lwR8nnXnHwMNcdF_S81OwcCWATJVORinj2_XO5f18", "state"=>"1569939c766c6757642d0842377794a7f6e2aa0da000f731"}
924
+ Parameters: {"code"=>"fRqwvJN7sEVyv-ak_G85JDH9aG72tj15sEfXqHMEVNo", "state"=>"4da89b2888a3812c467f79184df679a0fca58af49dbf8bef"}
915
925
  Authenticating with gds_sso strategy
916
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
917
-  (0.1ms) begin transaction
926
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
927
+  (0.0ms) begin transaction
918
928
   (0.0ms) commit transaction
919
929
   (0.0ms) begin transaction
920
930
   (0.0ms) commit transaction
921
- Redirected to http://www.example-client.com/restricted
922
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
923
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
924
- Processing by ExampleController#restricted as HTML
931
+ Redirected to http://www.example-client.com/this_requires_signin_permission
932
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
933
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
934
+ Processing by ExampleController#this_requires_signin_permission as HTML
925
935
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
926
936
  Rendering text template
927
937
  Rendered text template (0.0ms)
928
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
929
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
930
- Processing by ExampleController#restricted as HTML
931
- Authenticating with gds_sso strategy
932
- Completed in 0ms (ActiveRecord: 0.0ms)
933
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:22 +0000
934
- Started GET "/auth/gds/callback?code=blV2C8QALQ9e_f_NxQbtbqmeUixHRtnNwyHwEEr_k8o&state=520555c8cc018aadbfa6bee8f3f70f698a9b24bcafe43b85" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
935
- Processing by AuthenticationsController#callback as HTML
936
- Parameters: {"code"=>"blV2C8QALQ9e_f_NxQbtbqmeUixHRtnNwyHwEEr_k8o", "state"=>"520555c8cc018aadbfa6bee8f3f70f698a9b24bcafe43b85"}
937
- Authenticating with gds_sso strategy
938
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
939
-  (0.1ms) begin transaction
940
-  (0.2ms) commit transaction
941
-  (0.1ms) begin transaction
942
-  (0.0ms) commit transaction
943
- Redirected to http://www.example-client.com/restricted
944
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
945
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
946
- Processing by ExampleController#restricted as HTML
947
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
938
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
939
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
940
+ Processing by ExampleController#index as HTML
948
941
  Rendering text template
949
942
  Rendered text template (0.0ms)
950
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
951
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
943
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
944
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
952
945
  Processing by ExampleController#restricted as HTML
953
946
  Authenticating with gds_sso strategy
954
947
  Completed in 0ms (ActiveRecord: 0.0ms)
955
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
956
- Started GET "/auth/gds/callback?code=nYFRLgvp9Vh7yfvxdfyHawy3FV2pA008ZSkUYGAtagQ&state=5210e4a9a5a51d3b2702667414ec72d5149a6e5fc6c5c3bc" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
948
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
949
+ Started GET "/auth/gds/callback?code=0my6EyJ18tST4xHWoxB70-9MIbZe4Y96U3eQuNLxMWA&state=b5a0ee528dcf895b4ca52d06b2e1a77b2d1b03913e412e65" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
957
950
  Processing by AuthenticationsController#callback as HTML
958
- Parameters: {"code"=>"nYFRLgvp9Vh7yfvxdfyHawy3FV2pA008ZSkUYGAtagQ", "state"=>"5210e4a9a5a51d3b2702667414ec72d5149a6e5fc6c5c3bc"}
951
+ Parameters: {"code"=>"0my6EyJ18tST4xHWoxB70-9MIbZe4Y96U3eQuNLxMWA", "state"=>"b5a0ee528dcf895b4ca52d06b2e1a77b2d1b03913e412e65"}
959
952
  Authenticating with gds_sso strategy
960
953
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
961
-  (0.1ms) begin transaction
962
-  (0.0ms) commit transaction
963
954
   (0.0ms) begin transaction
964
955
   (0.0ms) commit transaction
956
+  (0.1ms) begin transaction
957
+  (0.0ms) commit transaction
965
958
  Redirected to http://www.example-client.com/restricted
966
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
967
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
959
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
960
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
968
961
  Processing by ExampleController#restricted as HTML
969
962
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
970
963
  Rendering text template
971
964
  Rendered text template (0.0ms)
972
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
973
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
974
-  (0.0ms) begin transaction
975
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
976
-  (4.1ms) commit transaction
977
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
965
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
966
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
978
967
  Processing by ExampleController#restricted as HTML
979
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
980
968
  Authenticating with gds_sso strategy
981
- Completed in 1ms (ActiveRecord: 0.1ms)
982
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
983
- Started GET "/auth/gds/callback?code=fCAi8JIcOFPJoTA2vL5a-PXCiUw9rzKafqtA0re-IgE&state=1938240ddcc5b1d715fd2191a14b8b0d0fd4bc733a50ae01" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
969
+ Completed in 0ms (ActiveRecord: 0.0ms)
970
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
971
+ Started GET "/auth/gds/callback?code=PMYkbsLpF3HdAt-tuGm2z7SZ9ql0Unbkm6JytGmT7k0&state=c5c3d7f8011877996153f7d94658f795bb7909298c18a0f6" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
984
972
  Processing by AuthenticationsController#callback as HTML
985
- Parameters: {"code"=>"fCAi8JIcOFPJoTA2vL5a-PXCiUw9rzKafqtA0re-IgE", "state"=>"1938240ddcc5b1d715fd2191a14b8b0d0fd4bc733a50ae01"}
973
+ Parameters: {"code"=>"PMYkbsLpF3HdAt-tuGm2z7SZ9ql0Unbkm6JytGmT7k0", "state"=>"c5c3d7f8011877996153f7d94658f795bb7909298c18a0f6"}
986
974
  Authenticating with gds_sso strategy
987
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
975
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
988
976
   (0.1ms) begin transaction
989
-  (0.0ms) commit transaction
977
+  (0.1ms) commit transaction
990
978
   (0.0ms) begin transaction
991
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 3]]
992
-  (4.1ms) commit transaction
979
+  (0.1ms) commit transaction
993
980
  Redirected to http://www.example-client.com/restricted
994
- Completed 302 Found in 8ms (ActiveRecord: 4.7ms)
995
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
981
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
982
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
996
983
  Processing by ExampleController#restricted as HTML
997
984
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
998
985
  Rendering text template
999
986
  Rendered text template (0.0ms)
1000
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1001
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
987
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
988
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
989
+ Processing by ExampleController#restricted as HTML
990
+ Authenticating with gds_sso strategy
991
+ Completed in 1ms (ActiveRecord: 0.0ms)
992
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
993
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1002
994
  Processing by ExampleController#restricted as HTML
1003
995
  Authenticating with gds_sso strategy
1004
996
  Completed in 0ms (ActiveRecord: 0.0ms)
1005
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1006
- Started GET "/auth/gds/callback?code=WPs6YBEZPQypco2N5D-vHK55aJbmPOM12Ptdpm-G910&state=34cf706bcca8af2534e84758deb3357d60aa0e70ad1f4d2f" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
997
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
998
+ Started GET "/auth/gds/callback?code=Q_rMbceGZWd_zjBYuOFHd6NKfHBcHGgwVDcXV6UZI48&state=e65b340ea778029e7fbfe50f2b416bd2ddeee9460b159533" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1007
999
  Processing by AuthenticationsController#callback as HTML
1008
- Parameters: {"code"=>"WPs6YBEZPQypco2N5D-vHK55aJbmPOM12Ptdpm-G910", "state"=>"34cf706bcca8af2534e84758deb3357d60aa0e70ad1f4d2f"}
1000
+ Parameters: {"code"=>"Q_rMbceGZWd_zjBYuOFHd6NKfHBcHGgwVDcXV6UZI48", "state"=>"e65b340ea778029e7fbfe50f2b416bd2ddeee9460b159533"}
1009
1001
  Authenticating with gds_sso strategy
1010
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1011
1003
   (0.1ms) begin transaction
1012
1004
   (0.0ms) commit transaction
1013
1005
   (0.0ms) begin transaction
1014
1006
   (0.0ms) commit transaction
1015
1007
  Redirected to http://www.example-client.com/restricted
1016
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1017
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1008
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1009
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1018
1010
  Processing by ExampleController#restricted as HTML
1019
1011
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1020
1012
  Rendering text template
1021
1013
  Rendered text template (0.0ms)
1022
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1023
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1014
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1015
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1024
1016
  Processing by ExampleController#restricted as HTML
1025
1017
  Authenticating with gds_sso strategy
1026
- Completed in 1ms (ActiveRecord: 0.0ms)
1027
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1028
- Started GET "/auth/gds/callback?code=OYWbMAH0X6LIjZDJMTZT-57akHXHJ0dc5gsvchFSfYU&state=780869fba9ba3290e6a5ed74cb4dc1f4be362e657275990a" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1018
+ Completed in 0ms (ActiveRecord: 0.0ms)
1019
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1020
+ Started GET "/auth/gds/callback?code=F1Azm4-OYL03Kgox-DnlpMRjNDOIEOXswvjl5JRie0U&state=857bddb98bab5f7375cfe3c884d90a4d4afbef44c9b6b702" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1029
1021
  Processing by AuthenticationsController#callback as HTML
1030
- Parameters: {"code"=>"OYWbMAH0X6LIjZDJMTZT-57akHXHJ0dc5gsvchFSfYU", "state"=>"780869fba9ba3290e6a5ed74cb4dc1f4be362e657275990a"}
1022
+ Parameters: {"code"=>"F1Azm4-OYL03Kgox-DnlpMRjNDOIEOXswvjl5JRie0U", "state"=>"857bddb98bab5f7375cfe3c884d90a4d4afbef44c9b6b702"}
1031
1023
  Authenticating with gds_sso strategy
1032
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1033
-  (0.1ms) begin transaction
1024
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1025
+  (0.0ms) begin transaction
1034
1026
   (0.0ms) commit transaction
1035
1027
   (0.0ms) begin transaction
1036
1028
   (0.0ms) commit transaction
1037
1029
  Redirected to http://www.example-client.com/restricted
1038
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1039
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:23 +0000
1030
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1031
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:16 +0000
1040
1032
  Processing by ExampleController#restricted as HTML
1041
1033
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1042
1034
  Rendering text template
1043
1035
  Rendered text template (0.0ms)
1044
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1045
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1036
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1037
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1046
1038
  Processing by ExampleController#restricted as HTML
1047
1039
  Authenticating with gds_sso strategy
1048
1040
  Completed in 0ms (ActiveRecord: 0.0ms)
1049
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:23 +0000
1050
- Started GET "/auth/gds/callback?code=uLPgIDvNdONxlHYAhrP-Z9qFihfQw8JccqQTnst9sFk&state=6dd140252e8d98b66bd282ff41d795913891fc09025b10b6" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1041
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1042
+ Started GET "/auth/gds/callback?code=V5VabBRBYodhQsV5Yk7m5jo6ks4vj5FDHrZTlHnxBZ4&state=7756d177cb339841b9f792b67023ba169c9d08181456fb96" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1051
1043
  Processing by AuthenticationsController#callback as HTML
1052
- Parameters: {"code"=>"uLPgIDvNdONxlHYAhrP-Z9qFihfQw8JccqQTnst9sFk", "state"=>"6dd140252e8d98b66bd282ff41d795913891fc09025b10b6"}
1044
+ Parameters: {"code"=>"V5VabBRBYodhQsV5Yk7m5jo6ks4vj5FDHrZTlHnxBZ4", "state"=>"7756d177cb339841b9f792b67023ba169c9d08181456fb96"}
1053
1045
  Authenticating with gds_sso strategy
1054
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1055
-  (0.1ms) begin transaction
1046
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1047
+  (0.0ms) begin transaction
1056
1048
   (0.0ms) commit transaction
1057
-  (0.1ms) begin transaction
1049
+  (0.0ms) begin transaction
1058
1050
   (0.0ms) commit transaction
1059
1051
  Redirected to http://www.example-client.com/restricted
1060
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1061
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1052
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1053
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1062
1054
  Processing by ExampleController#restricted as HTML
1063
1055
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1064
1056
  Rendering text template
1065
1057
  Rendered text template (0.0ms)
1066
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1067
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:24 +0000
1058
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1059
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:16 +0000
1068
1060
  Processing by ExampleController#restricted as HTML
1069
1061
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1070
1062
  Rendering text template
1071
1063
  Rendered text template (0.0ms)
1072
1064
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1073
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1065
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1074
1066
  Processing by ExampleController#restricted as HTML
1075
1067
  Authenticating with gds_sso strategy
1076
1068
  Completed in 0ms (ActiveRecord: 0.0ms)
1077
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1078
- Started GET "/auth/gds/callback?code=HyaBgBCoecHgzI0rmkV0BmJo4Gm3yU719FzMP8B5Z5I&state=f6ad088570995cb0cd16ad099e57194bba41b9e0d79e4095" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1069
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1070
+ Started GET "/auth/gds/callback?code=Zv6qwzvfJxFkdQi6YdvVmQOnasH1DwSBT581CaKM3JI&state=c70be6f7328e80c7b899b0fcd0601cdcc7c1b57542ddc96f" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1079
1071
  Processing by AuthenticationsController#callback as HTML
1080
- Parameters: {"code"=>"HyaBgBCoecHgzI0rmkV0BmJo4Gm3yU719FzMP8B5Z5I", "state"=>"f6ad088570995cb0cd16ad099e57194bba41b9e0d79e4095"}
1072
+ Parameters: {"code"=>"Zv6qwzvfJxFkdQi6YdvVmQOnasH1DwSBT581CaKM3JI", "state"=>"c70be6f7328e80c7b899b0fcd0601cdcc7c1b57542ddc96f"}
1081
1073
  Authenticating with gds_sso strategy
1082
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1083
-  (0.1ms) begin transaction
1074
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1075
+  (0.0ms) begin transaction
1084
1076
   (0.0ms) commit transaction
1085
1077
   (0.0ms) begin transaction
1086
1078
   (0.0ms) commit transaction
1087
1079
  Redirected to http://www.example-client.com/restricted
1088
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1089
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:24 +0000
1080
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1081
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1090
1082
  Processing by ExampleController#restricted as HTML
1091
1083
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1092
1084
  Rendering text template
1093
1085
  Rendered text template (0.0ms)
1094
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1095
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:24 +0000
1086
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1087
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1088
+  (0.0ms) begin transaction
1089
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 13]]
1090
+  (12.8ms) commit transaction
1091
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1096
1092
  Processing by ExampleController#restricted as HTML
1093
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1097
1094
  Authenticating with gds_sso strategy
1098
- Completed in 1ms (ActiveRecord: 0.0ms)
1099
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:24 +0000
1100
-  (0.1ms) begin transaction
1101
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31368"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1102
-  (3.5ms) commit transaction
1095
+ Completed in 1ms (ActiveRecord: 0.1ms)
1096
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1097
+ Started GET "/auth/gds/callback?code=sc6BrE3I9al5FWLj-6W1Kimm3naOqZo-zhU3eDLeno0&state=e49cc60c6430580f953d5de40f1a7f3263d66e0d707adbbe" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1098
+ Processing by AuthenticationsController#callback as HTML
1099
+ Parameters: {"code"=>"sc6BrE3I9al5FWLj-6W1Kimm3naOqZo-zhU3eDLeno0", "state"=>"e49cc60c6430580f953d5de40f1a7f3263d66e0d707adbbe"}
1100
+ Authenticating with gds_sso strategy
1101
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1103
1102
   (0.0ms) begin transaction
1104
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39668"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1105
-  (3.1ms) commit transaction
1106
- Processing by Api::UserController#update as HTML
1107
- Parameters: {"uid"=>"a1s2d31368"}
1108
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1109
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1110
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1111
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1112
- Completed 403 Forbidden in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
1103
+  (0.0ms) commit transaction
1113
1104
   (0.0ms) begin transaction
1114
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31349"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
-  (3.3ms) commit transaction
1105
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 13]]
1106
+  (6.5ms) commit transaction
1107
+ Redirected to http://www.example-client.com/restricted
1108
+ Completed 302 Found in 9ms (ActiveRecord: 6.9ms)
1109
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1110
+ Processing by ExampleController#restricted as HTML
1111
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1112
+ Rendering text template
1113
+ Rendered text template (0.0ms)
1114
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1115
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1116
+ Processing by ExampleController#restricted as HTML
1117
+ Authenticating with gds_sso strategy
1118
+ Completed in 0ms (ActiveRecord: 0.0ms)
1119
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1120
+ Processing by ExampleController#restricted as JSON
1121
+ Completed in 9ms (ActiveRecord: 0.0ms)
1122
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1123
+ Processing by ExampleController#restricted as JSON
1124
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1116
1125
   (0.0ms) begin transaction
1117
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39882"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
-  (3.4ms) commit transaction
1119
- Processing by Api::UserController#update as HTML
1120
- Parameters: {"uid"=>"a1s2d31349"}
1121
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31349"], ["LIMIT", 1]]
1122
-  (0.1ms) begin transaction
1123
- User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 6]]
1124
-  (3.0ms) commit transaction
1125
- Completed 200 OK in 6ms (ActiveRecord: 3.5ms)
1126
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1126
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1127
+  (6.0ms) commit transaction
1128
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1127
1129
   (0.0ms) begin transaction
1128
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37989"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1129
-  (4.9ms) commit transaction
1130
+  (0.1ms) commit transaction
1131
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1130
1132
   (0.0ms) begin transaction
1131
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31905"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1132
-  (2.9ms) commit transaction
1133
- Processing by Api::UserController#reauth as HTML
1134
- Parameters: {"uid"=>"nonexistent-user"}
1135
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1136
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1133
+  (0.0ms) commit transaction
1134
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1137
1135
   (0.0ms) begin transaction
1138
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35833"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1139
-  (3.3ms) commit transaction
1136
+  (0.0ms) commit transaction
1140
1137
   (0.0ms) begin transaction
1141
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37396"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1142
-  (3.0ms) commit transaction
1143
- Processing by Api::UserController#reauth as HTML
1144
- Parameters: {"uid"=>"a1s2d35833"}
1145
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35833"], ["LIMIT", 1]]
1138
+  (0.0ms) commit transaction
1139
+ Rendering text template
1140
+ Rendered text template (0.0ms)
1141
+ Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 6.7ms)
1142
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1143
+ Processing by ExampleController#this_requires_signin_permission as JSON
1144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1146
1145
   (0.0ms) begin transaction
1147
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
1148
-  (4.0ms) commit transaction
1149
- Completed 200 OK in 6ms (ActiveRecord: 4.3ms)
1150
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1146
+  (0.0ms) commit transaction
1147
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1151
1148
   (0.0ms) begin transaction
1152
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34035"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1153
-  (3.8ms) commit transaction
1149
+  (0.0ms) commit transaction
1150
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1154
1151
   (0.0ms) begin transaction
1155
- User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31271"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1156
-  (3.7ms) commit transaction
1157
- Processing by Api::UserController#reauth as HTML
1158
- Parameters: {"uid"=>"a1s2d34035"}
1159
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1160
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1161
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1162
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1163
- Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1164
-  (1.5ms) SELECT sqlite_version(*)
1165
-  (0.1ms) SELECT sqlite_version(*)
1166
-  (0.2ms) DROP TABLE IF EXISTS "users"
1167
-  (5.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
1168
-  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1169
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1170
-  (0.1ms) begin transaction
1171
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-28 10:11:32.682361"], ["updated_at", "2020-07-28 10:11:32.682361"]]
1172
-  (3.6ms) commit transaction
1173
-  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1174
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1152
+  (0.0ms) commit transaction
1153
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1154
+  (0.0ms) begin transaction
1155
+  (0.0ms) commit transaction
1156
+  (0.0ms) begin transaction
1157
+  (0.0ms) commit transaction
1158
+ Rendering text template
1159
+ Rendered text template (0.0ms)
1160
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1161
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:16 +0000
1162
+ Processing by ExampleController#restricted as JSON
1163
+ Completed in 13ms (ActiveRecord: 0.0ms)
1164
+  (1.0ms) SELECT sqlite_version(*)
1165
+  (0.0ms) SELECT sqlite_version(*)
1166
+  (0.1ms) DROP TABLE IF EXISTS "users"
1167
+  (7.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 0)
1168
+  (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1169
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1170
+  (0.0ms) begin transaction
1171
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-10-26 14:51:22.380901"], ["updated_at", "2020-10-26 14:51:22.380901"]]
1172
+  (5.6ms) commit transaction
1173
+  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1174
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1175
1175
   (0.1ms) SELECT sqlite_version(*)
1176
-  (0.1ms) begin transaction
1177
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36619"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1178
-  (4.1ms) commit transaction
1179
-  (0.1ms) begin transaction
1180
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35636"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1181
-  (3.4ms) commit transaction
1182
- Processing by Api::UserController#reauth as HTML
1183
- Parameters: {"uid"=>"nonexistent-user"}
1184
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1185
- Completed 200 OK in 3ms (ActiveRecord: 0.2ms | Allocations: 1427)
1186
-  (0.1ms) begin transaction
1187
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35989"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1188
-  (6.0ms) commit transaction
1189
-  (0.1ms) begin transaction
1190
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33992"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1191
-  (3.5ms) commit transaction
1192
- Processing by Api::UserController#reauth as HTML
1193
- Parameters: {"uid"=>"a1s2d35989"}
1194
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1195
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1196
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 1.1ms | Allocations: 201)
1197
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1198
- Completed 403 Forbidden in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms | Allocations: 1977)
1199
-  (0.1ms) begin transaction
1200
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38773"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1201
-  (4.3ms) commit transaction
1202
-  (0.1ms) begin transaction
1203
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36879"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1204
-  (3.5ms) commit transaction
1205
- Processing by Api::UserController#reauth as HTML
1206
- Parameters: {"uid"=>"a1s2d38773"}
1207
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38773"], ["LIMIT", 1]]
1208
-  (0.1ms) begin transaction
1209
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 5]]
1210
-  (3.4ms) commit transaction
1211
- Completed 200 OK in 6ms (ActiveRecord: 3.9ms | Allocations: 930)
1212
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1213
-  (0.1ms) begin transaction
1214
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35174"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1215
-  (4.2ms) commit transaction
1216
-  (0.1ms) begin transaction
1217
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33679"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1218
-  (3.4ms) commit transaction
1219
- Processing by Api::UserController#update as HTML
1220
- Parameters: {"uid"=>"a1s2d35174"}
1221
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1222
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1223
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.2ms | Allocations: 47)
1224
- Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1225
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 510)
1226
-  (0.1ms) begin transaction
1227
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34309"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1228
-  (3.7ms) commit transaction
1229
-  (0.1ms) begin transaction
1230
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35617"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1231
-  (4.2ms) commit transaction
1232
- Processing by Api::UserController#update as HTML
1233
- Parameters: {"uid"=>"a1s2d34309"}
1234
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34309"], ["LIMIT", 1]]
1235
-  (0.1ms) begin transaction
1236
- User Update (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1237
-  (3.9ms) commit transaction
1238
- Completed 200 OK in 7ms (ActiveRecord: 4.4ms | Allocations: 1227)
1239
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1240
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1241
-  (0.1ms) begin transaction
1242
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "178"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1243
-  (3.6ms) commit transaction
1244
-  (0.1ms) begin transaction
1245
- User Update (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 11]]
1246
-  (3.2ms) commit transaction
1247
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1248
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1249
-  (0.1ms) begin transaction
1250
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1251
-  (3.6ms) commit transaction
1252
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1253
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "dummyapiuser@domain.com"], ["LIMIT", 1]]
1177
+  (0.0ms) begin transaction
1178
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Dummy API user created by gds-sso"], ["uid", "9790"], ["email", "dummyapiuser@domain.com"], ["permissions", "---\n- signin\n"]]
1179
+  (5.0ms) commit transaction
1180
+  (0.0ms) begin transaction
1181
+ User Update (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = ? [["permissions", "---\n- signin\n- extra_permission\n"], ["id", 1]]
1182
+  (4.9ms) commit transaction
1183
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1254
1184
  Processing by ExampleController#restricted as HTML
1255
1185
  Authenticating with gds_sso strategy
1256
- Completed in 5ms (ActiveRecord: 0.0ms | Allocations: 151)
1257
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1258
- Started GET "/auth/gds/callback?code=Oj1D9udBilzd78OsJhnpbTQJLx4hXFgbR67DHw727LI&state=a886423e6e48f93b1942ddd0d78f58401e450f76e8246dfd" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1186
+ Completed in 4ms (ActiveRecord: 0.0ms | Allocations: 161)
1187
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1188
+ Started GET "/auth/gds/callback?code=Sfl1PZlW0kvV7mxi_j7nipAK5PmuIIFupkzKfPqBx6M&state=25e69dbc146d2fd2aace060b8f407032b56e7c4445737afb" for 127.0.0.1 at 2020-10-26 14:51:22 +0000
1259
1189
  Processing by AuthenticationsController#callback as HTML
1260
- Parameters: {"code"=>"Oj1D9udBilzd78OsJhnpbTQJLx4hXFgbR67DHw727LI", "state"=>"a886423e6e48f93b1942ddd0d78f58401e450f76e8246dfd"}
1190
+ Parameters: {"code"=>"Sfl1PZlW0kvV7mxi_j7nipAK5PmuIIFupkzKfPqBx6M", "state"=>"25e69dbc146d2fd2aace060b8f407032b56e7c4445737afb"}
1261
1191
  Authenticating with gds_sso strategy
1262
1192
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1263
1193
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1264
-  (0.1ms) begin transaction
1265
- User Create (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1266
-  (5.9ms) commit transaction
1267
-  (0.1ms) begin transaction
1268
- User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1269
-  (5.0ms) commit transaction
1194
+  (0.0ms) begin transaction
1195
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1196
+  (5.3ms) commit transaction
1197
+  (0.0ms) begin transaction
1198
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1199
+  (4.1ms) commit transaction
1270
1200
  Redirected to http://www.example-client.com/restricted
1271
- Completed 302 Found in 17ms (ActiveRecord: 11.9ms | Allocations: 1447)
1272
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1201
+ Completed 302 Found in 13ms (ActiveRecord: 10.1ms | Allocations: 1492)
1202
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1273
1203
  Processing by ExampleController#restricted as HTML
1274
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1275
- Rendering text template
1276
- Rendered text template (Duration: 0.0ms | Allocations: 1)
1277
- Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.3ms | Allocations: 984)
1278
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1279
- Processing by ExampleController#this_requires_signin_permission as HTML
1280
- Authenticating with gds_sso strategy
1281
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1282
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:33 +0000
1283
- Started GET "/auth/gds/callback?code=XC0200_RbEtKPMFUFljPkmfCP9oONTmGQRHC7vHw-30&state=19e877bfb32e477fbefcad0bc8bdc4657ac412d389773cf1" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1284
- Processing by AuthenticationsController#callback as HTML
1285
- Parameters: {"code"=>"XC0200_RbEtKPMFUFljPkmfCP9oONTmGQRHC7vHw-30", "state"=>"19e877bfb32e477fbefcad0bc8bdc4657ac412d389773cf1"}
1286
- Authenticating with gds_sso strategy
1287
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1288
- Redirected to http://www.example-client.com/this_requires_signin_permission
1289
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1290
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1291
- Processing by ExampleController#this_requires_signin_permission as HTML
1292
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1204
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1293
1205
  Rendering text template
1294
- Rendered text template (Duration: 0.0ms | Allocations: 1)
1295
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 652)
1296
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1297
- Processing by ExampleController#this_requires_signin_permission as HTML
1206
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
1207
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms | Allocations: 1544)
1208
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1209
+ Processing by ExampleController#restricted as HTML
1298
1210
  Authenticating with gds_sso strategy
1299
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1300
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1301
- Started GET "/auth/gds/callback?code=dso8fTwunwLSSxMq8aftUdfsCJmXMLWM7UVSkKwTKlM&state=80e4f134de98379e8f5d0caff3b19bea7a0c0f10247f2f53" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1211
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1212
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1213
+ Started GET "/auth/gds/callback?code=Y3O9Fs0VsVJtPNkQc-dpwaBjtkIiJhtNT5m_zdnF9uo&state=0ce4a4943aaf5319577dedf86e7f0cd1fefef2d247625374" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1302
1214
  Processing by AuthenticationsController#callback as HTML
1303
- Parameters: {"code"=>"dso8fTwunwLSSxMq8aftUdfsCJmXMLWM7UVSkKwTKlM", "state"=>"80e4f134de98379e8f5d0caff3b19bea7a0c0f10247f2f53"}
1215
+ Parameters: {"code"=>"Y3O9Fs0VsVJtPNkQc-dpwaBjtkIiJhtNT5m_zdnF9uo", "state"=>"0ce4a4943aaf5319577dedf86e7f0cd1fefef2d247625374"}
1304
1216
  Authenticating with gds_sso strategy
1305
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1306
- Redirected to http://www.example-client.com/this_requires_signin_permission
1307
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1308
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1309
- Processing by ExampleController#this_requires_signin_permission as HTML
1217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1218
+ Redirected to http://www.example-client.com/restricted
1219
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 913)
1220
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1221
+ Processing by ExampleController#restricted as HTML
1310
1222
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1311
1223
  Rendering text template
1312
1224
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1313
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 652)
1314
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1225
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1226
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1315
1227
  Processing by ExampleController#restricted as HTML
1316
1228
  Authenticating with gds_sso strategy
1317
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1318
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1319
- Started GET "/auth/gds/callback?code=xVeVplpFbmzCdPKHt5pMQDxM4fDXTDnR3JuTFBQpwW4&state=83c0b531feddb39d11b6d324f20fc2e1a97d81e5124aed5d" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1229
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1230
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1231
+ Started GET "/auth/gds/callback?code=tBgDLG95eMGQSrnP0Qmbr546Wju9WyzjR5chjYSHocE&state=02d28e934929f9a54cab1f6b7fe669e40800080c4525eabc" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1320
1232
  Processing by AuthenticationsController#callback as HTML
1321
- Parameters: {"code"=>"xVeVplpFbmzCdPKHt5pMQDxM4fDXTDnR3JuTFBQpwW4", "state"=>"83c0b531feddb39d11b6d324f20fc2e1a97d81e5124aed5d"}
1233
+ Parameters: {"code"=>"tBgDLG95eMGQSrnP0Qmbr546Wju9WyzjR5chjYSHocE", "state"=>"02d28e934929f9a54cab1f6b7fe669e40800080c4525eabc"}
1322
1234
  Authenticating with gds_sso strategy
1323
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1324
1236
  Redirected to http://www.example-client.com/restricted
1325
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 913)
1326
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1237
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 914)
1238
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1327
1239
  Processing by ExampleController#restricted as HTML
1328
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1240
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1329
1241
  Rendering text template
1330
1242
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1331
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 655)
1332
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1333
- Processing by ExampleController#restricted as HTML
1243
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 655)
1244
+ Started GET "/" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1245
+ Processing by ExampleController#index as HTML
1246
+ Rendering text template
1247
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1248
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 137)
1249
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1250
+ Processing by ExampleController#this_requires_signin_permission as HTML
1334
1251
  Authenticating with gds_sso strategy
1335
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1336
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1337
- Started GET "/auth/gds/callback?code=vcaFlA1VZB0JvaIvCGfDWpZSZvixa97R1ikQNiZxK9I&state=fb740bb80a69463c6e419ce29d72f9e7439dc16d34826c9d" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1252
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1253
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1254
+ Started GET "/auth/gds/callback?code=4Fy6FyFR9O4Mjg0kZCgjY-Pd-pHsJ8pZ_B-XAEA_jyY&state=fba83e14267eb214b07ddf5ed4ff10b3999734143bbbbcb3" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1338
1255
  Processing by AuthenticationsController#callback as HTML
1339
- Parameters: {"code"=>"vcaFlA1VZB0JvaIvCGfDWpZSZvixa97R1ikQNiZxK9I", "state"=>"fb740bb80a69463c6e419ce29d72f9e7439dc16d34826c9d"}
1256
+ Parameters: {"code"=>"4Fy6FyFR9O4Mjg0kZCgjY-Pd-pHsJ8pZ_B-XAEA_jyY", "state"=>"fba83e14267eb214b07ddf5ed4ff10b3999734143bbbbcb3"}
1340
1257
  Authenticating with gds_sso strategy
1341
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
- Redirected to http://www.example-client.com/restricted
1343
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 915)
1344
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1345
- Processing by ExampleController#restricted as HTML
1258
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1259
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1260
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1261
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1262
+ Processing by ExampleController#this_requires_signin_permission as HTML
1346
1263
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1347
1264
  Rendering text template
1348
1265
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1349
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 653)
1350
- Started GET "/" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1351
- Processing by ExampleController#index as HTML
1266
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1267
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1268
+ Processing by ExampleController#this_requires_signin_permission as HTML
1269
+ Authenticating with gds_sso strategy
1270
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1271
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1272
+ Started GET "/auth/gds/callback?code=Tf2X4Sb305VGS9ToUsyWoGwTMBPGT9v0421F6VARSHA&state=b5909fbb28df9acc65aca35853d83ac869485afc9dadf098" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1273
+ Processing by AuthenticationsController#callback as HTML
1274
+ Parameters: {"code"=>"Tf2X4Sb305VGS9ToUsyWoGwTMBPGT9v0421F6VARSHA", "state"=>"b5909fbb28df9acc65aca35853d83ac869485afc9dadf098"}
1275
+ Authenticating with gds_sso strategy
1276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1277
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1278
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1279
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1280
+ Processing by ExampleController#this_requires_signin_permission as HTML
1281
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1352
1282
  Rendering text template
1353
1283
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1354
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 137)
1355
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1284
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1285
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1356
1286
  Processing by ExampleController#restricted as HTML
1357
1287
  Authenticating with gds_sso strategy
1358
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1359
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:34 +0000
1360
- Started GET "/auth/gds/callback?code=4H8LH6jbmLmbqb8xc0DJdHTb6II1aaCnOneJQZA7GFU&state=072113ca0beac7394405bcad7cd25d5d65e44f73af659c3d" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1288
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1289
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1290
+ Started GET "/auth/gds/callback?code=BDMiqmAhSUmubuek5f3fz92ekVUqSTd-igF_aeIbzbo&state=808869a9cd86784f5074bff81cc774ce9c98eea912a2d8c3" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1361
1291
  Processing by AuthenticationsController#callback as HTML
1362
- Parameters: {"code"=>"4H8LH6jbmLmbqb8xc0DJdHTb6II1aaCnOneJQZA7GFU", "state"=>"072113ca0beac7394405bcad7cd25d5d65e44f73af659c3d"}
1292
+ Parameters: {"code"=>"BDMiqmAhSUmubuek5f3fz92ekVUqSTd-igF_aeIbzbo", "state"=>"808869a9cd86784f5074bff81cc774ce9c98eea912a2d8c3"}
1363
1293
  Authenticating with gds_sso strategy
1364
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1294
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1365
1295
  Redirected to http://www.example-client.com/restricted
1366
- Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 913)
1367
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1296
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1297
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1368
1298
  Processing by ExampleController#restricted as HTML
1369
1299
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1370
1300
  Rendering text template
1371
1301
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1372
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 652)
1302
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1373
1303
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1374
-  (0.1ms) begin transaction
1375
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 13]]
1376
-  (5.4ms) commit transaction
1377
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1304
+  (0.0ms) begin transaction
1305
+ User Update (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 2]]
1306
+  (4.5ms) commit transaction
1307
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1378
1308
  Processing by ExampleController#restricted as HTML
1379
1309
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1380
1310
  Authenticating with gds_sso strategy
1381
- Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 533)
1382
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1383
- Started GET "/auth/gds/callback?code=4k3GTNNvVGyA_D7WzbeC1adZSkzeJyvzQP-zUEAerRM&state=faf8f1a7b56c569e308b9df75875150d993e06c7a6927412" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1311
+ Completed in 1ms (ActiveRecord: 0.1ms | Allocations: 532)
1312
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1313
+ Started GET "/auth/gds/callback?code=ULrH80fYJMjbZhFg7SM9pY9dwSD3DucnSyNFeNaOpNs&state=2b102c56bfc92b3e9d3abe9f8fb1d6fb85b982a5d9030ac8" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1384
1314
  Processing by AuthenticationsController#callback as HTML
1385
- Parameters: {"code"=>"4k3GTNNvVGyA_D7WzbeC1adZSkzeJyvzQP-zUEAerRM", "state"=>"faf8f1a7b56c569e308b9df75875150d993e06c7a6927412"}
1315
+ Parameters: {"code"=>"ULrH80fYJMjbZhFg7SM9pY9dwSD3DucnSyNFeNaOpNs", "state"=>"2b102c56bfc92b3e9d3abe9f8fb1d6fb85b982a5d9030ac8"}
1386
1316
  Authenticating with gds_sso strategy
1387
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1388
-  (0.1ms) begin transaction
1389
- User Update (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 13]]
1390
-  (3.6ms) commit transaction
1317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1318
+  (0.0ms) begin transaction
1319
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 0], ["id", 2]]
1320
+  (4.3ms) commit transaction
1391
1321
  Redirected to http://www.example-client.com/restricted
1392
- Completed 302 Found in 8ms (ActiveRecord: 4.2ms | Allocations: 1104)
1393
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1322
+ Completed 302 Found in 7ms (ActiveRecord: 4.5ms | Allocations: 1103)
1323
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1394
1324
  Processing by ExampleController#restricted as HTML
1395
1325
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1396
1326
  Rendering text template
1397
1327
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1398
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 650)
1399
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1328
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 650)
1329
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1400
1330
  Processing by ExampleController#restricted as HTML
1401
1331
  Authenticating with gds_sso strategy
1402
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1403
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1404
- Started GET "/auth/gds/callback?code=n37NLIGMdzx5QimD-cSPPlTVH-9HFe5xu4O1d5TnnSc&state=264e446faf159b884add968d8ad5f004d32bff57cbe582e4" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1332
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1333
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1334
+ Started GET "/auth/gds/callback?code=1ii4HmDcFSY4Wbj9v79MrIVmenNGY7SxuyGLkaLYswA&state=40b1fbad4bc5be3f73a23dc92e5dc7a289db3d4cf2607dc2" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1405
1335
  Processing by AuthenticationsController#callback as HTML
1406
- Parameters: {"code"=>"n37NLIGMdzx5QimD-cSPPlTVH-9HFe5xu4O1d5TnnSc", "state"=>"264e446faf159b884add968d8ad5f004d32bff57cbe582e4"}
1336
+ Parameters: {"code"=>"1ii4HmDcFSY4Wbj9v79MrIVmenNGY7SxuyGLkaLYswA", "state"=>"40b1fbad4bc5be3f73a23dc92e5dc7a289db3d4cf2607dc2"}
1407
1337
  Authenticating with gds_sso strategy
1408
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1409
1339
  Redirected to http://www.example-client.com/restricted
1410
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 914)
1411
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1340
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1341
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1412
1342
  Processing by ExampleController#restricted as HTML
1413
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1414
1344
  Rendering text template
1415
1345
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1416
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 655)
1417
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1346
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1347
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1418
1348
  Processing by ExampleController#restricted as HTML
1419
1349
  Authenticating with gds_sso strategy
1420
- Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 480)
1421
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1422
- Started GET "/auth/gds/callback?code=KIHHM2-vQD7P2spez07YxyRpTwjuwkBrAWakVC00ezk&state=aec0498ead34d9b6a62a15a9894ffec6ed6e34facb724d40" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1350
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 479)
1351
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1352
+ Started GET "/auth/gds/callback?code=CCRzd3loz6THeyHMYh5OoCj84uRMei8okdG6yBP7MUE&state=9ca840e746f47c54ae507bbafca211b0fd575c163c9f3435" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1423
1353
  Processing by AuthenticationsController#callback as HTML
1424
- Parameters: {"code"=>"KIHHM2-vQD7P2spez07YxyRpTwjuwkBrAWakVC00ezk", "state"=>"aec0498ead34d9b6a62a15a9894ffec6ed6e34facb724d40"}
1354
+ Parameters: {"code"=>"CCRzd3loz6THeyHMYh5OoCj84uRMei8okdG6yBP7MUE", "state"=>"9ca840e746f47c54ae507bbafca211b0fd575c163c9f3435"}
1425
1355
  Authenticating with gds_sso strategy
1426
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1427
1357
  Redirected to http://www.example-client.com/restricted
1428
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 1115)
1429
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1358
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 1115)
1359
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1430
1360
  Processing by ExampleController#restricted as HTML
1431
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1432
1362
  Rendering text template
1433
1363
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1434
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 877)
1435
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1364
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 879)
1365
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1436
1366
  Processing by ExampleController#restricted as HTML
1437
1367
  Authenticating with gds_sso strategy
1438
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1439
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1440
- Started GET "/auth/gds/callback?code=6Yrr-jvsw4txE1DJUE9cBsTcYutw-AEKGjzJfpmOPHY&state=15589942c994ae56728d00e99838552c7d35c8500859c285" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1368
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1369
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1370
+ Started GET "/auth/gds/callback?code=b8s-kXAuetGtMPf0qd-evTQQebvXsS6juUttnUlj_KI&state=091092ef775a27a53d074af06150387698a9565ea7256204" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1441
1371
  Processing by AuthenticationsController#callback as HTML
1442
- Parameters: {"code"=>"6Yrr-jvsw4txE1DJUE9cBsTcYutw-AEKGjzJfpmOPHY", "state"=>"15589942c994ae56728d00e99838552c7d35c8500859c285"}
1372
+ Parameters: {"code"=>"b8s-kXAuetGtMPf0qd-evTQQebvXsS6juUttnUlj_KI", "state"=>"091092ef775a27a53d074af06150387698a9565ea7256204"}
1443
1373
  Authenticating with gds_sso strategy
1444
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1374
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1445
1375
  Redirected to http://www.example-client.com/restricted
1446
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms | Allocations: 913)
1447
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1376
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1377
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1448
1378
  Processing by ExampleController#restricted as HTML
1449
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1450
1380
  Rendering text template
1451
1381
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1452
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 652)
1453
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1382
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 653)
1383
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1454
1384
  Processing by ExampleController#restricted as HTML
1455
1385
  Authenticating with gds_sso strategy
1456
- Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 480)
1457
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-29 06:16:35 +0000
1458
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1386
+ Completed in 1ms (ActiveRecord: 0.0ms | Allocations: 479)
1387
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-27 10:56:23 +0000
1388
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1459
1389
  Processing by ExampleController#restricted as HTML
1460
1390
  Authenticating with gds_sso strategy
1461
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 103)
1462
- Started GET "/auth/gds" for 127.0.0.1 at 2020-07-28 10:11:35 +0000
1463
- Started GET "/auth/gds/callback?code=V4C4G085QyxJZbkrmdwghKBuEppEmkyf5b1oOLW-A-0&state=486c0ea1075520065090312235e3f52e48d040b8df6cac5a" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1391
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 102)
1392
+ Started GET "/auth/gds" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1393
+ Started GET "/auth/gds/callback?code=Pt3AQ4pm5niA5TlkSaosLd1ov8PreanA86IVVfHd9H8&state=92f7f73fd253c2f094bd594446565a95b5d4fdb8b46afbea" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1464
1394
  Processing by AuthenticationsController#callback as HTML
1465
- Parameters: {"code"=>"V4C4G085QyxJZbkrmdwghKBuEppEmkyf5b1oOLW-A-0", "state"=>"486c0ea1075520065090312235e3f52e48d040b8df6cac5a"}
1395
+ Parameters: {"code"=>"Pt3AQ4pm5niA5TlkSaosLd1ov8PreanA86IVVfHd9H8", "state"=>"92f7f73fd253c2f094bd594446565a95b5d4fdb8b46afbea"}
1466
1396
  Authenticating with gds_sso strategy
1467
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1397
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1468
1398
  Redirected to http://www.example-client.com/restricted
1469
- Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 915)
1470
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1399
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms | Allocations: 912)
1400
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1471
1401
  Processing by ExampleController#restricted as HTML
1472
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1402
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1473
1403
  Rendering text template
1474
1404
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1475
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 655)
1476
- Started GET "/restricted" for 127.0.0.1 at 2020-07-29 06:06:36 +0000
1405
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 652)
1406
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-27 10:46:23 +0000
1477
1407
  Processing by ExampleController#restricted as HTML
1478
1408
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", 0], ["LIMIT", 1]]
1479
1409
  Rendering text template
1480
1410
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1481
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 875)
1482
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1483
- Processing by ExampleController#restricted as HTML
1484
- Authenticating with gds_sso strategy
1485
- Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 105)
1486
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1487
- Processing by ExampleController#this_requires_signin_permission as JSON
1488
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1411
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms | Allocations: 875)
1412
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1413
+ Processing by ExampleController#restricted as JSON
1414
+ Completed in 12ms (ActiveRecord: 0.0ms | Allocations: 1955)
1415
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1416
+ Processing by ExampleController#restricted as JSON
1417
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1489
1418
   (0.1ms) begin transaction
1490
- User Update (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 13]]
1491
-  (3.6ms) commit transaction
1492
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1419
+ User Update (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1420
+  (5.7ms) commit transaction
1421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1493
1422
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1494
1423
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1495
1424
  Rendering text template
1496
1425
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1497
- Completed 200 OK in 65ms (Views: 0.5ms | ActiveRecord: 4.5ms | Allocations: 6880)
1498
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1426
+ Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 6.1ms | Allocations: 3311)
1427
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1499
1428
  Processing by ExampleController#restricted as JSON
1500
- Completed in 21ms (ActiveRecord: 0.0ms | Allocations: 1754)
1501
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1502
- Processing by ExampleController#restricted as JSON
1503
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1429
+ Completed in 7ms (ActiveRecord: 0.0ms | Allocations: 1776)
1430
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1431
+ Processing by ExampleController#this_requires_signin_permission as JSON
1432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1504
1433
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1505
1434
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1506
1435
  CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1507
1436
  Rendering text template
1508
1437
  Rendered text template (Duration: 0.0ms | Allocations: 1)
1509
- Completed 200 OK in 62ms (Views: 0.5ms | ActiveRecord: 0.3ms | Allocations: 6323)
1510
- Started GET "/restricted" for 127.0.0.1 at 2020-07-28 10:11:36 +0000
1511
- Processing by ExampleController#restricted as JSON
1512
- Completed in 15ms (ActiveRecord: 0.0ms | Allocations: 1855)
1438
+ Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 3020)
1439
+ Started GET "/restricted" for 127.0.0.1 at 2020-10-26 14:51:23 +0000
1440
+ Processing by ExampleController#restricted as HTML
1441
+ Authenticating with gds_sso strategy
1442
+ Completed in 0ms (ActiveRecord: 0.0ms | Allocations: 104)
1443
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1445
+  (0.1ms) begin transaction
1446
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1447
+  (5.7ms) commit transaction
1448
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1449
+  (0.1ms) begin transaction
1450
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35050"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1451
+  (4.3ms) commit transaction
1452
+  (0.0ms) begin transaction
1453
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38503"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1454
+  (5.8ms) commit transaction
1455
+ Processing by Api::UserController#update as HTML
1456
+ Parameters: {"uid"=>"a1s2d35050"}
1457
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35050"], ["LIMIT", 1]]
1458
+  (0.0ms) begin transaction
1459
+ User Update (0.1ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
1460
+  (5.1ms) commit transaction
1461
+ Completed 200 OK in 7ms (ActiveRecord: 5.4ms | Allocations: 1266)
1462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
1463
+  (0.1ms) begin transaction
1464
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34112"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1465
+  (5.2ms) commit transaction
1466
+  (0.0ms) begin transaction
1467
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36543"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1468
+  (3.7ms) commit transaction
1469
+ Processing by Api::UserController#update as HTML
1470
+ Parameters: {"uid"=>"a1s2d34112"}
1471
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1472
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1473
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.5ms | Allocations: 192)
1474
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1475
+ Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms | Allocations: 1353)
1476
+  (0.0ms) begin transaction
1477
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33647"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1478
+  (5.1ms) commit transaction
1479
+  (0.0ms) begin transaction
1480
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38442"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1481
+  (4.0ms) commit transaction
1482
+ Processing by Api::UserController#reauth as HTML
1483
+ Parameters: {"uid"=>"a1s2d33647"}
1484
+ Rendering /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1485
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1486
+ Rendered /var/lib/jenkins/workspace/gds-sso_master/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (Duration: 0.1ms | Allocations: 46)
1487
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
1488
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 508)
1489
+  (0.0ms) begin transaction
1490
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3570"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1491
+  (5.0ms) commit transaction
1492
+  (0.0ms) begin transaction
1493
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33250"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1494
+  (3.9ms) commit transaction
1495
+ Processing by Api::UserController#reauth as HTML
1496
+ Parameters: {"uid"=>"a1s2d3570"}
1497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3570"], ["LIMIT", 1]]
1498
+  (0.0ms) begin transaction
1499
+ User Update (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", 1], ["id", 10]]
1500
+  (5.2ms) commit transaction
1501
+ Completed 200 OK in 7ms (ActiveRecord: 5.5ms | Allocations: 882)
1502
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1503
+  (0.0ms) begin transaction
1504
+ User Create (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39749"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1505
+  (5.0ms) commit transaction
1506
+  (0.0ms) begin transaction
1507
+ User Create (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38771"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1508
+  (3.8ms) commit transaction
1509
+ Processing by Api::UserController#reauth as HTML
1510
+ Parameters: {"uid"=>"nonexistent-user"}
1511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1512
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms | Allocations: 525)