gds-sso 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbec88e513c5466e5b132a86a6974502371aa890
4
- data.tar.gz: 6838ffe5908c7a90399b031036bf1c64fdf0cce5
3
+ metadata.gz: 5631ed3451bf7a920107d8c4824612ef3ca79d26
4
+ data.tar.gz: 9a9cf474fb50419c0f904d337a1a2fc50a345b39
5
5
  SHA512:
6
- metadata.gz: 1e7f9a752718a4bdf49b6a76900f9237afa5a2f30bbf4400db32e3539773aa5d16ee652b811491e994fca5c2d81fe041724f4b94f31247aa3e5b62f52e7da3b7
7
- data.tar.gz: 7de11e1d22a66d8a2d40a9dc6131c06df6e26f74e8891f8b8980561987a136a3f383428bc7cae1a6c6aa4fa66432621b7aa76b3b348e30c8098cf34a5ede2cb2
6
+ metadata.gz: 917c719abe6c0274e0ff6fd21e10a2c7c905814e19e8ccc3d2750b7db65baa8e322bebcdf8c07e2650cb072cb169713ec31d4413347a00590f473f4ce028941a
7
+ data.tar.gz: a4382cf7d842114984ccb0292f0d6aa26746eaab57fda2258f7cb08b075f2ba458fbb2c43037ca75805d95843367cf902bd8f348388456bf3b3589faa64888c2
data/README.md CHANGED
@@ -104,6 +104,16 @@ private
104
104
  end
105
105
  ```
106
106
 
107
+ `authorise_user!` can be configured to check for multiple permissions:
108
+
109
+ ```ruby
110
+ # fails unless the user has at least one of these permissions
111
+ authorise_user!(any_of: %w(edit create))
112
+
113
+ # fails unless the user has both of these permissions
114
+ authorise_user!(all_of: %w(edit create))
115
+ ```
116
+
107
117
  ### Authorisation for API Users
108
118
 
109
119
  In addition to the single-sign-on strategy, this gem also allows authorisation
@@ -13,13 +13,26 @@ module GDS
13
13
  end
14
14
 
15
15
 
16
- def authorise_user!(permission)
16
+ def authorise_user!(permissions)
17
17
  # Ensure that we're authenticated (and by extension that current_user is set).
18
18
  # Otherwise current_user might be nil, and we'd error out
19
19
  authenticate_user!
20
20
 
21
- if not current_user.has_permission?(permission)
22
- raise PermissionDeniedException, "Sorry, you don't seem to have the #{permission} permission for this app."
21
+ case permissions
22
+ when String
23
+ unless current_user.has_permission?(permissions)
24
+ raise PermissionDeniedException, "Sorry, you don't seem to have the #{permissions} permission for this app."
25
+ end
26
+ when Hash
27
+ raise ArgumentError, "Must be either `any_of` or `all_of`" unless permissions.keys.size == 1
28
+
29
+ if permissions[:any_of]
30
+ authorise_user_with_at_least_one_of_permissions!(permissions[:any_of])
31
+ elsif permissions[:all_of]
32
+ authorise_user_with_all_permissions!(permissions[:all_of])
33
+ else
34
+ raise ArgumentError, "Must be either `any_of` or `all_of`"
35
+ end
23
36
  end
24
37
  end
25
38
 
@@ -52,6 +65,22 @@ module GDS
52
65
  def warden
53
66
  request.env['warden']
54
67
  end
68
+
69
+ private
70
+
71
+ def authorise_user_with_at_least_one_of_permissions!(permissions)
72
+ if permissions.none? { |permission| current_user.has_permission?(permission) }
73
+ raise PermissionDeniedException,
74
+ "Sorry, you don't seem to have any of the permissions: #{permissions.to_sentence} for this app."
75
+ end
76
+ end
77
+
78
+ def authorise_user_with_all_permissions!(permissions)
79
+ unless permissions.all? { |permission| current_user.has_permission?(permission) }
80
+ raise PermissionDeniedException,
81
+ "Sorry, you don't seem to have all of the permissions: #{permissions.to_sentence} for this app."
82
+ end
83
+ end
55
84
  end
56
85
  end
57
86
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "13.0.0"
3
+ VERSION = "13.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe GDS::SSO::ControllerMethods, '#authorise_user!' do
4
+ class ControllerSpy < ApplicationController
5
+ include GDS::SSO::ControllerMethods
6
+
7
+ def initialize(current_user)
8
+ @current_user = current_user
9
+ end
10
+
11
+ def authenticate_user!
12
+ true
13
+ end
14
+
15
+ attr_reader :current_user
16
+ end
17
+
18
+ let(:current_user) { double }
19
+ let(:expected_error) { GDS::SSO::ControllerMethods::PermissionDeniedException }
20
+
21
+ context 'with a single string permission argument' do
22
+ it 'permits users with the required permission' do
23
+ allow(current_user).to receive(:has_permission?).with('good').and_return(true)
24
+
25
+ expect { ControllerSpy.new(current_user).authorise_user!('good') }.not_to raise_error
26
+ end
27
+
28
+ it 'does not permit the users without the required permission' do
29
+ allow(current_user).to receive(:has_permission?).with('good').and_return(false)
30
+
31
+ expect { ControllerSpy.new(current_user).authorise_user!('good') }.to raise_error(expected_error)
32
+ end
33
+ end
34
+
35
+ context 'with the `all_of` option' do
36
+ it 'permits users with all of the required permissions' do
37
+ allow(current_user).to receive(:has_permission?).with('good').and_return(true)
38
+ allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
39
+
40
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.not_to raise_error
41
+ end
42
+
43
+ it 'does not permit users without all of the required permissions' do
44
+ allow(current_user).to receive(:has_permission?).with('good').and_return(false)
45
+ allow(current_user).to receive(:has_permission?).with('bad').and_return(true)
46
+
47
+ expect { ControllerSpy.new(current_user).authorise_user!(all_of: %w(good bad)) }.to raise_error(expected_error)
48
+ end
49
+ end
50
+
51
+ context 'with the `any_of` option' do
52
+ it 'permits users with any of the required permissions' do
53
+ allow(current_user).to receive(:has_permission?).with('good').and_return(true)
54
+ allow(current_user).to receive(:has_permission?).with('bad').and_return(false)
55
+
56
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.not_to raise_error
57
+ end
58
+
59
+ it 'does not permit users without any of the required permissions' do
60
+ allow(current_user).to receive(:has_permission?).and_return(false)
61
+
62
+ expect { ControllerSpy.new(current_user).authorise_user!(any_of: %w(good bad)) }.to raise_error(expected_error)
63
+ end
64
+ end
65
+
66
+ context 'with none of `any_of` or `all_of`' do
67
+ it 'raises an `ArgumentError`' do
68
+ expect { ControllerSpy.new(current_user).authorise_user!(whoops: 'bad') }.to raise_error(ArgumentError)
69
+ end
70
+ end
71
+ end
@@ -18,7 +18,7 @@ INSERT INTO `supported_permissions` (id, application_id, name, created_at, updat
18
18
  VALUES (2,2,'signin','2012-04-19 13:26:54','2012-04-19 13:26:54');
19
19
 
20
20
  INSERT INTO `users` (id, email, encrypted_password, password_salt, created_at, updated_at, confirmed_at, name, uid, role, password_changed_at)
21
- VALUES (1,'test@example-client.com','bb8e19edbaa1e7721abe0faa5c1663a7685950093b8c7eceb0f2e3889bdea4c5f17ca97820b2c663edf46ea532d1a9baa04b680fc537b4de8a3f376dd28e3ffd','MpLsZ8q1UaAojTa6bTC6','2012-04-19 13:26:54','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', "normal", NOW());
21
+ VALUES (1,'test@example-client.com','3a890fe5e95b328b83f2ba57ea893cae595f4937291ff5550acb68f4a8dafeac22e5f8120c1e66be8f2b769df142dd3d111b404c5c1741595c9ecc9e7e6ad827','QCsZsJs7m5ojdgvysHSy','2012-04-19 13:26:54','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', "normal", NOW());
22
22
 
23
23
  INSERT INTO `user_application_permissions` (user_id, application_id, supported_permission_id, created_at, updated_at)
24
24
  VALUES (1,1,1,'2012-04-19 13:26:54','2012-04-19 13:26:54');
@@ -1,86 +1,83 @@
1
-  (18.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') 
2
-  (13.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (35.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (11.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+  (31.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
5
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
6
6
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
7
7
   (0.1ms) begin transaction
8
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
9
-  (17.3ms) commit transaction
8
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
9
+  (28.9ms) commit transaction
10
10
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
11
11
   (0.1ms) begin transaction
12
12
   (0.1ms) commit transaction
13
13
   (0.1ms) begin transaction
14
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3538"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
15
-  (31.0ms) commit transaction
14
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35531"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
15
+  (14.3ms) commit transaction
16
16
   (0.1ms) begin transaction
17
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35391"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
-  (25.3ms) commit transaction
17
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35203"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
18
+  (11.2ms) commit transaction
19
19
  Processing by Api::UserController#update as HTML
20
- Parameters: {"uid"=>"a1s2d3538"}
21
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3538"]]
20
+ Parameters: {"uid"=>"a1s2d35531"}
21
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
22
+ Completed 403 Forbidden in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
23
+  (0.1ms) begin transaction
24
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34549"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
25
+  (37.0ms) commit transaction
22
26
   (0.2ms) begin transaction
23
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 2]]
24
-  (12.6ms) commit transaction
25
- Completed 200 OK in 18ms (ActiveRecord: 13.1ms)
26
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
27
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34041"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
28
+  (25.5ms) commit transaction
29
+ Processing by Api::UserController#update as HTML
30
+ Parameters: {"uid"=>"a1s2d34549"}
31
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34549"]]
32
+  (0.1ms) begin transaction
33
+ SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
34
+  (14.2ms) commit transaction
35
+ Completed 200 OK in 20ms (ActiveRecord: 14.7ms)
36
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
27
37
   (0.1ms) begin transaction
28
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37391"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
29
-  (6.3ms) commit transaction
38
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38988"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
39
+  (26.7ms) commit transaction
30
40
   (0.1ms) begin transaction
31
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39472"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
32
-  (9.6ms) commit transaction
33
- Processing by Api::UserController#update as HTML
34
- Parameters: {"uid"=>"a1s2d37391"}
35
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
36
- Completed 403 Forbidden in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
41
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35119"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
42
+  (10.9ms) commit transaction
43
+ Processing by Api::UserController#reauth as HTML
44
+ Parameters: {"uid"=>"a1s2d38988"}
45
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
46
+ Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
37
47
   (0.1ms) begin transaction
38
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38787"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
39
-  (9.5ms) commit transaction
48
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39922"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
49
+  (9.1ms) commit transaction
40
50
   (0.1ms) begin transaction
41
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31292"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
42
-  (6.1ms) commit transaction
51
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3547"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
52
+  (9.2ms) commit transaction
43
53
  Processing by Api::UserController#reauth as HTML
44
54
  Parameters: {"uid"=>"nonexistent-user"}
45
55
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
46
56
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
47
57
   (0.1ms) begin transaction
48
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37690"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
49
-  (26.9ms) commit transaction
50
-  (0.1ms) begin transaction
51
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33291"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
52
-  (10.2ms) commit transaction
53
- Processing by Api::UserController#reauth as HTML
54
- Parameters: {"uid"=>"a1s2d37690"}
55
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
56
- Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
57
-  (0.1ms) begin transaction
58
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35548"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
59
-  (10.5ms) commit transaction
58
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35459"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
59
+  (10.1ms) commit transaction
60
60
   (0.1ms) begin transaction
61
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36496"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
62
-  (9.8ms) commit transaction
61
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34974"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
62
+  (10.4ms) commit transaction
63
63
  Processing by Api::UserController#reauth as HTML
64
- Parameters: {"uid"=>"a1s2d35548"}
65
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35548"]]
64
+ Parameters: {"uid"=>"a1s2d35459"}
65
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35459"]]
66
66
   (0.1ms) begin transaction
67
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
68
-  (8.8ms) commit transaction
69
- Completed 200 OK in 12ms (ActiveRecord: 9.3ms)
67
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
68
+  (32.2ms) commit transaction
69
+ Completed 200 OK in 35ms (ActiveRecord: 32.6ms)
70
70
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
71
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
72
- Processing by ExampleController#restricted as JSON
73
- Completed in 149ms (ActiveRecord: 0.0ms)
74
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
75
- Processing by ExampleController#restricted as JSON
76
- Completed in 33ms (ActiveRecord: 0.0ms)
77
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
71
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
78
72
  Processing by ExampleController#restricted as JSON
73
+ Completed in 126ms (ActiveRecord: 0.0ms)
74
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
75
+ Processing by ExampleController#this_requires_signin_permission as JSON
79
76
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
80
77
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
81
78
   (0.1ms) begin transaction
82
79
  SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
83
-  (17.7ms) commit transaction
80
+  (22.7ms) commit transaction
84
81
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
85
82
   (0.1ms) begin transaction
86
83
   (0.1ms) commit transaction
@@ -90,13 +87,16 @@ Processing by ExampleController#restricted as JSON
90
87
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
91
88
   (0.1ms) begin transaction
92
89
   (0.1ms) commit transaction
93
-  (0.0ms) begin transaction
90
+  (0.1ms) begin transaction
94
91
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
95
-  (34.4ms) commit transaction
92
+  (20.5ms) commit transaction
96
93
  Rendered text template (0.0ms)
97
- Completed 200 OK in 193ms (Views: 1.3ms | ActiveRecord: 53.5ms)
98
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
99
- Processing by ExampleController#this_requires_signin_permission as JSON
94
+ Completed 200 OK in 238ms (Views: 1.5ms | ActiveRecord: 44.6ms)
95
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
96
+ Processing by ExampleController#restricted as JSON
97
+ Completed in 18ms (ActiveRecord: 0.0ms)
98
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
99
+ Processing by ExampleController#restricted as JSON
100
100
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
101
101
   (0.1ms) begin transaction
102
102
   (0.1ms) commit transaction
@@ -109,40 +109,40 @@ Processing by ExampleController#this_requires_signin_permission as JSON
109
109
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
110
110
   (0.1ms) begin transaction
111
111
   (0.1ms) commit transaction
112
-  (0.0ms) begin transaction
113
-  (0.0ms) commit transaction
112
+  (0.1ms) begin transaction
113
+  (0.1ms) commit transaction
114
114
  Rendered text template (0.0ms)
115
- Completed 200 OK in 69ms (Views: 0.3ms | ActiveRecord: 0.9ms)
116
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
115
+ Completed 200 OK in 77ms (Views: 0.4ms | ActiveRecord: 1.0ms)
116
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
117
117
  Processing by ExampleController#this_requires_signin_permission as HTML
118
118
  Authenticating with gds_sso strategy
119
- Completed in 0ms (ActiveRecord: 0.0ms)
120
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:33 +0000
121
- Started GET "/auth/gds/callback?code=b9999d7967e3fb60578183e2f4d126826a485c5ff7a897beade1cb4e19376d91&state=2adfa3a413c809a983ea6039ca6474cc852030b9e2db995b" for 127.0.0.1 at 2016-09-22 10:04:44 +0000
119
+ Completed in 1ms (ActiveRecord: 0.0ms)
120
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:28 +0000
121
+ Started GET "/auth/gds/callback?code=0406dfb10516969c1d7102990e91b9550ed0e008047d796666d1ec39a2eaab84&state=3ee46c89f5795b1b78505adce93de7186356f53217a16f0f" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
122
122
  Processing by AuthenticationsController#callback as HTML
123
- Parameters: {"code"=>"b9999d7967e3fb60578183e2f4d126826a485c5ff7a897beade1cb4e19376d91", "state"=>"2adfa3a413c809a983ea6039ca6474cc852030b9e2db995b"}
123
+ Parameters: {"code"=>"0406dfb10516969c1d7102990e91b9550ed0e008047d796666d1ec39a2eaab84", "state"=>"3ee46c89f5795b1b78505adce93de7186356f53217a16f0f"}
124
124
  Authenticating with gds_sso strategy
125
125
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
126
126
   (0.1ms) begin transaction
127
127
  SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
128
-  (35.3ms) commit transaction
128
+  (14.3ms) commit transaction
129
129
   (0.1ms) begin transaction
130
-  (0.0ms) commit transaction
130
+  (0.1ms) commit transaction
131
131
  Redirected to http://www.example-client.com/this_requires_signin_permission
132
- Completed 302 Found in 41ms (ActiveRecord: 35.8ms)
133
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:44 +0000
132
+ Completed 302 Found in 20ms (ActiveRecord: 14.9ms)
133
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
134
134
  Processing by ExampleController#this_requires_signin_permission as HTML
135
135
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
136
136
  Rendered text template (0.0ms)
137
137
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
138
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:44 +0000
138
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
139
139
  Processing by ExampleController#this_requires_signin_permission as HTML
140
140
  Authenticating with gds_sso strategy
141
141
  Completed in 0ms (ActiveRecord: 0.0ms)
142
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:44 +0000
143
- Started GET "/auth/gds/callback?code=3be5ae4126092b8bb1a2d9a54d90fe56842cc8a53f1b4203de3d2940ebf3621b&state=b6fc160b10f1a8d26ae7487b9655ca8a6cf157176fa9912c" for 127.0.0.1 at 2016-09-22 10:04:44 +0000
142
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
143
+ Started GET "/auth/gds/callback?code=fb325e6a959f5b4ceb5f764cc26ce406d4b9cc94eed40f9fa08ddddc0a15cdd5&state=89f87e3d60b0acb5331152ca5ab604dba94898cbcb0a9f2c" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
144
144
  Processing by AuthenticationsController#callback as HTML
145
- Parameters: {"code"=>"3be5ae4126092b8bb1a2d9a54d90fe56842cc8a53f1b4203de3d2940ebf3621b", "state"=>"b6fc160b10f1a8d26ae7487b9655ca8a6cf157176fa9912c"}
145
+ Parameters: {"code"=>"fb325e6a959f5b4ceb5f764cc26ce406d4b9cc94eed40f9fa08ddddc0a15cdd5", "state"=>"89f87e3d60b0acb5331152ca5ab604dba94898cbcb0a9f2c"}
146
146
  Authenticating with gds_sso strategy
147
147
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
148
148
   (0.1ms) begin transaction
@@ -151,95 +151,95 @@ Authenticating with gds_sso strategy
151
151
   (0.1ms) commit transaction
152
152
  Redirected to http://www.example-client.com/this_requires_signin_permission
153
153
  Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
154
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
154
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
155
155
  Processing by ExampleController#this_requires_signin_permission as HTML
156
156
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
157
157
  Rendered text template (0.0ms)
158
158
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
159
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
159
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
160
160
  Processing by ExampleController#restricted as HTML
161
161
  Authenticating with gds_sso strategy
162
162
  Completed in 0ms (ActiveRecord: 0.0ms)
163
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
164
- Started GET "/auth/gds/callback?code=812861b61a0e7216b5df60db2f8fee6a4d3ba2f4ce0f4394c9a7b43746d47e90&state=7fc011f7d527322187918cf22c2167f0749dd4421e3f9327" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
163
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
164
+ Started GET "/auth/gds/callback?code=711606807dc7895ccb50ecf6d9c24d870400cac80b29f2b478be367053266b80&state=5ef7eedc4153066bb139dd97e198fc8c0c47f7f24c6ad82a" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
165
165
  Processing by AuthenticationsController#callback as HTML
166
- Parameters: {"code"=>"812861b61a0e7216b5df60db2f8fee6a4d3ba2f4ce0f4394c9a7b43746d47e90", "state"=>"7fc011f7d527322187918cf22c2167f0749dd4421e3f9327"}
166
+ Parameters: {"code"=>"711606807dc7895ccb50ecf6d9c24d870400cac80b29f2b478be367053266b80", "state"=>"5ef7eedc4153066bb139dd97e198fc8c0c47f7f24c6ad82a"}
167
167
  Authenticating with gds_sso strategy
168
168
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
169
169
   (0.1ms) begin transaction
170
-  (0.0ms) commit transaction
171
-  (0.0ms) begin transaction
170
+  (0.1ms) commit transaction
171
+  (0.1ms) begin transaction
172
172
   (0.1ms) commit transaction
173
173
  Redirected to http://www.example-client.com/restricted
174
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
175
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
174
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
175
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
176
176
  Processing by ExampleController#restricted as HTML
177
177
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
178
178
  Rendered text template (0.0ms)
179
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
180
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
179
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
180
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
181
181
  Processing by ExampleController#restricted as HTML
182
182
  Authenticating with gds_sso strategy
183
183
  Completed in 0ms (ActiveRecord: 0.0ms)
184
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
185
- Started GET "/auth/gds/callback?code=3bd5a3ef3799d0de3ba38c816c33a4135bd7750c20a81c00b0958cd48d5983c2&state=39edfe0259d68d7f484a53a6a3ec14eae7851161fdad1e4f" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
184
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
185
+ Started GET "/auth/gds/callback?code=c7121cd1cea22a0d021cbdb4beef41fbeddc85b6bb0b8fd7268230456d5a573d&state=5eed248724c469fac15036a056c5d65e577790d7fe7b1e69" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
186
186
  Processing by AuthenticationsController#callback as HTML
187
- Parameters: {"code"=>"3bd5a3ef3799d0de3ba38c816c33a4135bd7750c20a81c00b0958cd48d5983c2", "state"=>"39edfe0259d68d7f484a53a6a3ec14eae7851161fdad1e4f"}
187
+ Parameters: {"code"=>"c7121cd1cea22a0d021cbdb4beef41fbeddc85b6bb0b8fd7268230456d5a573d", "state"=>"5eed248724c469fac15036a056c5d65e577790d7fe7b1e69"}
188
188
  Authenticating with gds_sso strategy
189
189
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
190
190
   (0.1ms) begin transaction
191
191
   (0.1ms) commit transaction
192
-  (0.0ms) begin transaction
193
-  (0.0ms) commit transaction
192
+  (0.1ms) begin transaction
193
+  (0.2ms) commit transaction
194
194
  Redirected to http://www.example-client.com/restricted
195
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
196
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
195
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
196
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
197
197
  Processing by ExampleController#restricted as HTML
198
198
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
199
199
  Rendered text template (0.0ms)
200
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
201
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
200
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
201
+ Started GET "/" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
202
+ Processing by ExampleController#index as HTML
203
+ Rendered text template (0.0ms)
204
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
205
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
202
206
  Processing by ExampleController#restricted as HTML
203
207
  Authenticating with gds_sso strategy
204
208
  Completed in 0ms (ActiveRecord: 0.0ms)
205
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
206
- Started GET "/auth/gds/callback?code=e80e7e12473417d318714132940a9420b125aa0ce11bf6bdfcbdd0e613854bf7&state=0d0ba0299e9b72adb823ce3d47866c057531f6ec40484b89" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
209
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
210
+ Started GET "/auth/gds/callback?code=e273b6559260f3bd87eb3087e91a591c7902f3a7d089611b83811612afe110d7&state=b3fa9d11984ff8b4842f4e48662dd782783279dc6b99696b" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
207
211
  Processing by AuthenticationsController#callback as HTML
208
- Parameters: {"code"=>"e80e7e12473417d318714132940a9420b125aa0ce11bf6bdfcbdd0e613854bf7", "state"=>"0d0ba0299e9b72adb823ce3d47866c057531f6ec40484b89"}
212
+ Parameters: {"code"=>"e273b6559260f3bd87eb3087e91a591c7902f3a7d089611b83811612afe110d7", "state"=>"b3fa9d11984ff8b4842f4e48662dd782783279dc6b99696b"}
209
213
  Authenticating with gds_sso strategy
210
214
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
211
215
   (0.1ms) begin transaction
212
216
   (0.1ms) commit transaction
213
-  (0.0ms) begin transaction
214
-  (0.0ms) commit transaction
217
+  (0.1ms) begin transaction
218
+  (0.1ms) commit transaction
215
219
  Redirected to http://www.example-client.com/restricted
216
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
217
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
220
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
221
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
218
222
  Processing by ExampleController#restricted as HTML
219
223
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
220
224
  Rendered text template (0.0ms)
221
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
222
- Started GET "/" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
223
- Processing by ExampleController#index as HTML
224
- Rendered text template (0.0ms)
225
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
226
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
225
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
226
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
227
227
  Processing by ExampleController#restricted as HTML
228
228
  Authenticating with gds_sso strategy
229
229
  Completed in 0ms (ActiveRecord: 0.0ms)
230
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
231
- Started GET "/auth/gds/callback?code=4d283d9f18e9d2785227159bc43fd152ea442acb67ea220f6ae2956d2e919df2&state=e64e1fa9e7c1ac11de1f04d6387ae79e57ddc60c1d4257af" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
230
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
231
+ Started GET "/auth/gds/callback?code=c6a66a12344832afab9212d4e958f24b8afc11e916094fcd85c2e3f0a2c19ed0&state=ea7fb51110108ccc0bae549b117fdd085f59962ee2574d55" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
232
232
  Processing by AuthenticationsController#callback as HTML
233
- Parameters: {"code"=>"4d283d9f18e9d2785227159bc43fd152ea442acb67ea220f6ae2956d2e919df2", "state"=>"e64e1fa9e7c1ac11de1f04d6387ae79e57ddc60c1d4257af"}
233
+ Parameters: {"code"=>"c6a66a12344832afab9212d4e958f24b8afc11e916094fcd85c2e3f0a2c19ed0", "state"=>"ea7fb51110108ccc0bae549b117fdd085f59962ee2574d55"}
234
234
  Authenticating with gds_sso strategy
235
235
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
236
236
   (0.1ms) begin transaction
237
-  (0.0ms) commit transaction
238
-  (0.0ms) begin transaction
239
-  (0.0ms) commit transaction
237
+  (0.1ms) commit transaction
238
+  (0.1ms) begin transaction
239
+  (0.1ms) commit transaction
240
240
  Redirected to http://www.example-client.com/restricted
241
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
242
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:45 +0000
241
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
242
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
243
243
  Processing by ExampleController#restricted as HTML
244
244
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
245
245
  Rendered text template (0.0ms)
@@ -247,1224 +247,1224 @@ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
247
247
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
248
248
   (0.1ms) begin transaction
249
249
  SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
250
-  (13.5ms) commit transaction
251
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
250
+  (32.1ms) commit transaction
251
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
252
252
  Processing by ExampleController#restricted as HTML
253
253
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
254
254
  Authenticating with gds_sso strategy
255
255
  Completed in 1ms (ActiveRecord: 0.1ms)
256
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
257
- Started GET "/auth/gds/callback?code=666b5049819d8e54a22af51abaf5558d3f103c0ffac6b189a6cbf99edbe7ef9d&state=6c1985ff2a80d459373ac18a8de7775ad042699b1afcd5b7" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
256
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
257
+ Started GET "/auth/gds/callback?code=91b37d0ce383321139a08eca982c84913d700302e93332efe20934390b11cefb&state=e31feeb10724049b767acdeb26b0e740815c99b933970a73" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
258
258
  Processing by AuthenticationsController#callback as HTML
259
- Parameters: {"code"=>"666b5049819d8e54a22af51abaf5558d3f103c0ffac6b189a6cbf99edbe7ef9d", "state"=>"6c1985ff2a80d459373ac18a8de7775ad042699b1afcd5b7"}
259
+ Parameters: {"code"=>"91b37d0ce383321139a08eca982c84913d700302e93332efe20934390b11cefb", "state"=>"e31feeb10724049b767acdeb26b0e740815c99b933970a73"}
260
260
  Authenticating with gds_sso strategy
261
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
261
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
262
262
   (0.1ms) begin transaction
263
-  (0.0ms) commit transaction
264
-  (0.0ms) begin transaction
265
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
266
-  (9.5ms) commit transaction
263
+  (0.1ms) commit transaction
264
+  (0.1ms) begin transaction
265
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
266
+  (76.4ms) commit transaction
267
267
  Redirected to http://www.example-client.com/restricted
268
- Completed 302 Found in 14ms (ActiveRecord: 9.8ms)
269
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
268
+ Completed 302 Found in 83ms (ActiveRecord: 77.0ms)
269
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
270
270
  Processing by ExampleController#restricted as HTML
271
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
271
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
272
272
  Rendered text template (0.0ms)
273
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
274
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
273
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
274
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
275
275
  Processing by ExampleController#restricted as HTML
276
276
  Authenticating with gds_sso strategy
277
- Completed in 0ms (ActiveRecord: 0.0ms)
278
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
279
- Started GET "/auth/gds/callback?code=de9bca40e4b7305e54229215af33ea91de4448f86e11b9e37cccec43cc8d48c7&state=3c2e7277a9146f0db8eb1330b3ea47ec75d933df6e9057b0" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
277
+ Completed in 1ms (ActiveRecord: 0.0ms)
278
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
279
+ Started GET "/auth/gds/callback?code=3b99a00462a1dfe651f70163d62ebf212b8f2f1efd089c2a86ff37db4246ea63&state=5244721127270573b884a62a75f352bbc73b9ff910a58055" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
280
280
  Processing by AuthenticationsController#callback as HTML
281
- Parameters: {"code"=>"de9bca40e4b7305e54229215af33ea91de4448f86e11b9e37cccec43cc8d48c7", "state"=>"3c2e7277a9146f0db8eb1330b3ea47ec75d933df6e9057b0"}
281
+ Parameters: {"code"=>"3b99a00462a1dfe651f70163d62ebf212b8f2f1efd089c2a86ff37db4246ea63", "state"=>"5244721127270573b884a62a75f352bbc73b9ff910a58055"}
282
282
  Authenticating with gds_sso strategy
283
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
283
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
284
+  (0.2ms) begin transaction
285
+  (0.1ms) commit transaction
284
286
   (0.1ms) begin transaction
285
-  (0.0ms) commit transaction
286
-  (0.0ms) begin transaction
287
-  (0.0ms) commit transaction
287
+  (0.1ms) commit transaction
288
288
  Redirected to http://www.example-client.com/restricted
289
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
290
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
289
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
290
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
291
291
  Processing by ExampleController#restricted as HTML
292
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
292
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
293
293
  Rendered text template (0.0ms)
294
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
295
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
294
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
295
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
296
296
  Processing by ExampleController#restricted as HTML
297
297
  Authenticating with gds_sso strategy
298
298
  Completed in 1ms (ActiveRecord: 0.0ms)
299
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
300
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
299
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
300
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
301
301
  Processing by ExampleController#restricted as HTML
302
302
  Authenticating with gds_sso strategy
303
303
  Completed in 0ms (ActiveRecord: 0.0ms)
304
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
305
- Started GET "/auth/gds/callback?code=9a355be39c34c9a0815610977f9146f13ab252a74d1a64652c0252185c6db86a&state=33bdc210d2b198905360db27d43e95f50a276d9681f96201" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
304
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
305
+ Started GET "/auth/gds/callback?code=f28e50fefafb715670f3ddf85ead5a9fdf3164e254f40725781643754a7bd72e&state=e4fef793d433c8cbf96ea7ed2e6ce7c7a60a08a8947785ca" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
306
306
  Processing by AuthenticationsController#callback as HTML
307
- Parameters: {"code"=>"9a355be39c34c9a0815610977f9146f13ab252a74d1a64652c0252185c6db86a", "state"=>"33bdc210d2b198905360db27d43e95f50a276d9681f96201"}
307
+ Parameters: {"code"=>"f28e50fefafb715670f3ddf85ead5a9fdf3164e254f40725781643754a7bd72e", "state"=>"e4fef793d433c8cbf96ea7ed2e6ce7c7a60a08a8947785ca"}
308
308
  Authenticating with gds_sso strategy
309
309
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
310
310
   (0.1ms) begin transaction
311
-  (0.0ms) commit transaction
312
-  (0.0ms) begin transaction
313
-  (0.0ms) commit transaction
311
+  (0.1ms) commit transaction
312
+  (0.1ms) begin transaction
313
+  (0.1ms) commit transaction
314
314
  Redirected to http://www.example-client.com/restricted
315
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
316
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
315
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
316
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
317
317
  Processing by ExampleController#restricted as HTML
318
318
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
319
319
  Rendered text template (0.0ms)
320
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
321
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
320
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
321
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:38:42 +0000
322
+ Processing by ExampleController#restricted as HTML
323
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
324
+ Rendered text template (0.0ms)
325
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
326
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
322
327
  Processing by ExampleController#restricted as HTML
323
328
  Authenticating with gds_sso strategy
324
- Completed in 1ms (ActiveRecord: 0.0ms)
325
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
326
- Started GET "/auth/gds/callback?code=ed72d86812db9837e8e5bd7c04d7b5a2f5020efed3879c80e3f242a633ba1017&state=df987ec9f6b7830e319fe8861a0ddb4aecf814bef2b2d675" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
329
+ Completed in 0ms (ActiveRecord: 0.0ms)
330
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
331
+ Started GET "/auth/gds/callback?code=6f7d011b37482536e90ab3d297ba7577b3e4b6db2297f06d1da2b0af5e7cd630&state=79f487227727059b4a1f1f3c11e85c063f4c80673f1c91b2" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
327
332
  Processing by AuthenticationsController#callback as HTML
328
- Parameters: {"code"=>"ed72d86812db9837e8e5bd7c04d7b5a2f5020efed3879c80e3f242a633ba1017", "state"=>"df987ec9f6b7830e319fe8861a0ddb4aecf814bef2b2d675"}
333
+ Parameters: {"code"=>"6f7d011b37482536e90ab3d297ba7577b3e4b6db2297f06d1da2b0af5e7cd630", "state"=>"79f487227727059b4a1f1f3c11e85c063f4c80673f1c91b2"}
329
334
  Authenticating with gds_sso strategy
330
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
331
-  (0.1ms) begin transaction
332
-  (0.1ms) commit transaction
333
-  (0.1ms) begin transaction
334
-  (0.1ms) commit transaction
335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
336
+  (0.1ms) begin transaction
337
+  (0.1ms) commit transaction
338
+  (0.1ms) begin transaction
339
+  (0.1ms) commit transaction
335
340
  Redirected to http://www.example-client.com/restricted
336
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
337
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:09:46 +0000
341
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
342
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:42 +0000
338
343
  Processing by ExampleController#restricted as HTML
339
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
344
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
340
345
  Rendered text template (0.0ms)
341
346
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
342
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
347
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
343
348
  Processing by ExampleController#restricted as HTML
344
349
  Authenticating with gds_sso strategy
345
- Completed in 0ms (ActiveRecord: 0.0ms)
346
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:46 +0000
347
- Started GET "/auth/gds/callback?code=614129cc2216c3ed2623808fc34d41efc96659faed7781e820605b66469bbdc7&state=ed4ff213c34081723e6d6ade24bde9332954631d92781e43" for 127.0.0.1 at 2016-09-22 10:04:47 +0000
350
+ Completed in 1ms (ActiveRecord: 0.0ms)
351
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
352
+ Started GET "/auth/gds/callback?code=88adb4c72e3a5a871dc1ba32021f4e7d210e6fac394e386579b5d9f1c3fdd553&state=4fea53313bf70e131656e8dd79083d763d4332b7e17cf8d2" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
348
353
  Processing by AuthenticationsController#callback as HTML
349
- Parameters: {"code"=>"614129cc2216c3ed2623808fc34d41efc96659faed7781e820605b66469bbdc7", "state"=>"ed4ff213c34081723e6d6ade24bde9332954631d92781e43"}
354
+ Parameters: {"code"=>"88adb4c72e3a5a871dc1ba32021f4e7d210e6fac394e386579b5d9f1c3fdd553", "state"=>"4fea53313bf70e131656e8dd79083d763d4332b7e17cf8d2"}
350
355
  Authenticating with gds_sso strategy
351
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
352
-  (0.1ms) begin transaction
353
-  (0.0ms) commit transaction
354
-  (0.0ms) begin transaction
355
-  (0.0ms) commit transaction
356
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
357
+  (0.1ms) begin transaction
358
+  (0.1ms) commit transaction
359
+  (0.1ms) begin transaction
360
+  (0.1ms) commit transaction
356
361
  Redirected to http://www.example-client.com/restricted
357
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
358
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:47 +0000
359
- Processing by ExampleController#restricted as HTML
360
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
361
- Rendered text template (0.0ms)
362
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
363
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 05:59:47 +0000
362
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
363
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
364
364
  Processing by ExampleController#restricted as HTML
365
365
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
366
366
  Rendered text template (0.0ms)
367
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
368
-  (14.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
369
-  (15.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
367
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
368
+  (29.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')
369
+  (17.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
370
370
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
371
371
   (0.1ms) begin transaction
372
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-09-22 10:04:57 UTC], ["updated_at", 2016-09-22 10:04:57 UTC]]
373
-  (13.9ms) commit transaction
374
-  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
372
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-11-25 13:43:49 UTC], ["updated_at", 2016-11-25 13:43:49 UTC]]
373
+  (17.1ms) commit transaction
374
+  (12.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
375
375
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
376
376
   (0.1ms) begin transaction
377
377
   (0.1ms) commit transaction
378
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
378
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
379
379
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
380
380
   (0.1ms) begin transaction
381
381
  SQL (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]]
382
-  (11.8ms) commit transaction
382
+  (50.4ms) commit transaction
383
383
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
384
384
   (0.1ms) begin transaction
385
-  (0.0ms) commit transaction
386
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
387
- Processing by ExampleController#restricted as JSON
388
- Completed in 29ms (ActiveRecord: 0.0ms)
389
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
390
- Processing by ExampleController#restricted as JSON
391
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
392
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
393
-  (0.0ms) begin transaction
394
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
395
-  (10.4ms) commit transaction
396
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
397
-  (0.0ms) begin transaction
398
385
   (0.1ms) commit transaction
399
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
400
386
   (0.1ms) begin transaction
401
-  (0.1ms) commit transaction
402
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
387
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37643"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
388
+  (29.4ms) commit transaction
403
389
   (0.1ms) begin transaction
404
-  (0.0ms) commit transaction
390
+ SQL (1.8ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34253"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
391
+  (26.6ms) commit transaction
392
+ Processing by Api::UserController#reauth as HTML
393
+ Parameters: {"uid"=>"a1s2d37643"}
394
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
395
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
396
+ Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
405
397
   (0.1ms) begin transaction
406
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 2]]
407
-  (7.7ms) commit transaction
408
- Rendering text template
409
- Rendered text template (0.0ms)
410
- Completed 200 OK in 90ms (Views: 2.9ms | ActiveRecord: 19.6ms)
411
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
412
- Processing by ExampleController#this_requires_signin_permission as JSON
413
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
398
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39074"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
399
+  (12.7ms) commit transaction
414
400
   (0.1ms) begin transaction
415
-  (0.0ms) commit transaction
416
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
401
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36182"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
402
+  (34.5ms) commit transaction
403
+ Processing by Api::UserController#reauth as HTML
404
+ Parameters: {"uid"=>"nonexistent-user"}
405
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
406
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
417
407
   (0.1ms) begin transaction
418
-  (0.0ms) commit transaction
419
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
408
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38554"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
409
+  (18.3ms) commit transaction
420
410
   (0.1ms) begin transaction
421
-  (0.0ms) commit transaction
422
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
411
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39994"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
412
+  (29.3ms) commit transaction
413
+ Processing by Api::UserController#reauth as HTML
414
+ Parameters: {"uid"=>"a1s2d38554"}
415
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38554"], ["LIMIT", 1]]
423
416
   (0.1ms) begin transaction
424
-  (0.0ms) commit transaction
425
- Rendering text template
426
- Rendered text template (0.0ms)
427
- Completed 200 OK in 62ms (Views: 0.3ms | ActiveRecord: 0.7ms)
428
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
429
- Processing by ExampleController#restricted as JSON
430
- Completed in 16ms (ActiveRecord: 0.0ms)
431
- Started GET "/" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
432
- Processing by ExampleController#index as HTML
433
- Rendering text template
434
- Rendered text template (0.0ms)
435
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
436
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
417
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 6]]
418
+  (47.6ms) commit transaction
419
+ Completed 200 OK in 52ms (ActiveRecord: 48.0ms)
420
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
421
+  (0.1ms) begin transaction
422
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39438"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
423
+  (32.8ms) commit transaction
424
+  (0.1ms) begin transaction
425
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32962"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
426
+  (22.7ms) commit transaction
427
+ Processing by Api::UserController#update as HTML
428
+ Parameters: {"uid"=>"a1s2d39438"}
429
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
430
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
431
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
432
+  (0.1ms) begin transaction
433
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32517"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
434
+  (42.2ms) commit transaction
435
+  (0.1ms) begin transaction
436
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32395"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
437
+  (59.3ms) commit transaction
438
+ Processing by Api::UserController#update as HTML
439
+ Parameters: {"uid"=>"a1s2d32517"}
440
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32517"], ["LIMIT", 1]]
441
+  (0.1ms) begin transaction
442
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
443
+  (41.8ms) commit transaction
444
+ Completed 200 OK in 47ms (ActiveRecord: 42.3ms)
445
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
446
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
437
447
  Processing by ExampleController#restricted as HTML
438
448
  Authenticating with gds_sso strategy
439
- Completed in 0ms (ActiveRecord: 0.0ms)
440
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
441
- Started GET "/auth/gds/callback?code=22fc26cd4b42b8deb746458cef08cbc063f120f6d0771ce6df837be0d0305fd2&state=a289207cec96fcc18209588dad1b6517be8b31689f37928f" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
449
+ Completed in 9ms (ActiveRecord: 0.0ms)
450
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
451
+ Started GET "/auth/gds/callback?code=20e5974b28bfda5733c3cf3ee87d0f8ac998ae732db51dcbd2cc21f94db3a7ca&state=89a9ffe6907fbf149376136993a1a3dd5fe6d97223b5fa83" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
442
452
  Processing by AuthenticationsController#callback as HTML
443
- Parameters: {"code"=>"22fc26cd4b42b8deb746458cef08cbc063f120f6d0771ce6df837be0d0305fd2", "state"=>"a289207cec96fcc18209588dad1b6517be8b31689f37928f"}
453
+ Parameters: {"code"=>"20e5974b28bfda5733c3cf3ee87d0f8ac998ae732db51dcbd2cc21f94db3a7ca", "state"=>"89a9ffe6907fbf149376136993a1a3dd5fe6d97223b5fa83"}
444
454
  Authenticating with gds_sso strategy
445
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
455
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
456
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
457
+  (0.1ms) begin transaction
458
+ SQL (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"]]
459
+  (14.9ms) commit transaction
446
460
   (0.1ms) begin transaction
447
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 2]]
448
-  (23.8ms) commit transaction
461
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
462
+  (30.0ms) commit transaction
449
463
  Redirected to http://www.example-client.com/restricted
450
- Completed 302 Found in 30ms (ActiveRecord: 24.3ms)
451
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
464
+ Completed 302 Found in 52ms (ActiveRecord: 45.9ms)
465
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
452
466
  Processing by ExampleController#restricted as HTML
453
- 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", false], ["LIMIT", 1]]
467
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
454
468
  Rendering text template
455
469
  Rendered text template (0.0ms)
456
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
457
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
470
+ Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms)
471
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
458
472
  Processing by ExampleController#this_requires_signin_permission as HTML
459
473
  Authenticating with gds_sso strategy
460
- Completed in 0ms (ActiveRecord: 0.0ms)
461
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
462
- Started GET "/auth/gds/callback?code=9cb18cadeff6d4f1b02b63f9b97f04bc2bd686ffd61b4d7947dc17fa890a0bbb&state=7cde7e30fa83228141312fd8fe9392776c048d5e26d8f21d" for 127.0.0.1 at 2016-09-22 10:04:58 +0000
474
+ Completed in 1ms (ActiveRecord: 0.0ms)
475
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:50 +0000
476
+ Started GET "/auth/gds/callback?code=d9fce11583aecbac87e2f6d47bb6e16808e7975493bdf51cfff2486ed0c3ee6f&state=a314d62a587f324f4677a42240877eeafb1aa2868a6e8add" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
463
477
  Processing by AuthenticationsController#callback as HTML
464
- Parameters: {"code"=>"9cb18cadeff6d4f1b02b63f9b97f04bc2bd686ffd61b4d7947dc17fa890a0bbb", "state"=>"7cde7e30fa83228141312fd8fe9392776c048d5e26d8f21d"}
478
+ Parameters: {"code"=>"d9fce11583aecbac87e2f6d47bb6e16808e7975493bdf51cfff2486ed0c3ee6f", "state"=>"a314d62a587f324f4677a42240877eeafb1aa2868a6e8add"}
465
479
  Authenticating with gds_sso strategy
466
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
480
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
467
481
   (0.1ms) begin transaction
468
482
   (0.1ms) commit transaction
469
483
  Redirected to http://www.example-client.com/this_requires_signin_permission
470
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
471
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
484
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
485
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
472
486
  Processing by ExampleController#this_requires_signin_permission as HTML
473
487
  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", false], ["LIMIT", 1]]
474
488
  Rendering text template
475
489
  Rendered text template (0.0ms)
476
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
477
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
490
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
491
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
478
492
  Processing by ExampleController#this_requires_signin_permission as HTML
479
493
  Authenticating with gds_sso strategy
480
494
  Completed in 0ms (ActiveRecord: 0.0ms)
481
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
482
- Started GET "/auth/gds/callback?code=2823476a6ee1050f637ff2265f75bc6ddf2ccce57c825305300983f9e3cfc6d1&state=982680112c5de2cdc2bc8e06e880f84ccaa24bacf576de69" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
495
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
496
+ Started GET "/auth/gds/callback?code=6e3eb4fa26ff4b043ec518a09c79e706aa089ed45f288298c49a230e5351d616&state=0c61be3bded0f5f657cd3d29653417788c385768c992d61d" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
483
497
  Processing by AuthenticationsController#callback as HTML
484
- Parameters: {"code"=>"2823476a6ee1050f637ff2265f75bc6ddf2ccce57c825305300983f9e3cfc6d1", "state"=>"982680112c5de2cdc2bc8e06e880f84ccaa24bacf576de69"}
498
+ Parameters: {"code"=>"6e3eb4fa26ff4b043ec518a09c79e706aa089ed45f288298c49a230e5351d616", "state"=>"0c61be3bded0f5f657cd3d29653417788c385768c992d61d"}
485
499
  Authenticating with gds_sso strategy
486
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
487
-  (0.0ms) begin transaction
488
-  (0.0ms) commit transaction
500
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
501
+  (0.1ms) begin transaction
502
+  (0.1ms) commit transaction
489
503
  Redirected to http://www.example-client.com/this_requires_signin_permission
490
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
491
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
504
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
505
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
492
506
  Processing by ExampleController#this_requires_signin_permission as HTML
493
- 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", false], ["LIMIT", 1]]
507
+ 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", false], ["LIMIT", 1]]
494
508
  Rendering text template
495
509
  Rendered text template (0.0ms)
496
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
497
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
510
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
511
+ Started GET "/" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
512
+ Processing by ExampleController#index as HTML
513
+ Rendering text template
514
+ Rendered text template (0.0ms)
515
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
516
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
498
517
  Processing by ExampleController#restricted as HTML
499
518
  Authenticating with gds_sso strategy
500
519
  Completed in 0ms (ActiveRecord: 0.0ms)
501
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
502
- Started GET "/auth/gds/callback?code=955013d6882fc1960189c5fc56a89ef7b5a5e4f88da1e5eff4ed3d771f492bc3&state=aef829bc374ebffb7a98a7ddfc843354cb8ecd65a0f55689" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
520
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
521
+ Started GET "/auth/gds/callback?code=fc3efc5ff3e6060cea9e71bb6e6f3e4a80fc3d949453918978e3f2438d96aa76&state=8841e8604f5e521c89e68560267b5ac26804f9f55030e105" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
503
522
  Processing by AuthenticationsController#callback as HTML
504
- Parameters: {"code"=>"955013d6882fc1960189c5fc56a89ef7b5a5e4f88da1e5eff4ed3d771f492bc3", "state"=>"aef829bc374ebffb7a98a7ddfc843354cb8ecd65a0f55689"}
523
+ Parameters: {"code"=>"fc3efc5ff3e6060cea9e71bb6e6f3e4a80fc3d949453918978e3f2438d96aa76", "state"=>"8841e8604f5e521c89e68560267b5ac26804f9f55030e105"}
505
524
  Authenticating with gds_sso strategy
506
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
507
-  (0.0ms) begin transaction
508
-  (0.0ms) commit transaction
525
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
526
+  (0.1ms) begin transaction
527
+  (0.1ms) commit transaction
509
528
  Redirected to http://www.example-client.com/restricted
510
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
511
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
529
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
530
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
512
531
  Processing by ExampleController#restricted as HTML
513
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
532
+ 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", false], ["LIMIT", 1]]
514
533
  Rendering text template
515
534
  Rendered text template (0.0ms)
516
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
517
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
535
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
536
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
518
537
  Processing by ExampleController#restricted as HTML
519
538
  Authenticating with gds_sso strategy
520
539
  Completed in 0ms (ActiveRecord: 0.0ms)
521
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
522
- Started GET "/auth/gds/callback?code=61c694ad088e5c3049c04c7ccece4823664f2bd89eda1848fb258805c6f346bf&state=7c1a9663c5d12471c4bbf30286fe550c941960f7c7850148" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
540
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
541
+ Started GET "/auth/gds/callback?code=37e4f12f3139b7f09ca5138a666348adbe2de9fef12018724e8c9b4599e50f1b&state=d0de14ea6a33f30df7db5659413a176dfc1e367582af40f6" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
523
542
  Processing by AuthenticationsController#callback as HTML
524
- Parameters: {"code"=>"61c694ad088e5c3049c04c7ccece4823664f2bd89eda1848fb258805c6f346bf", "state"=>"7c1a9663c5d12471c4bbf30286fe550c941960f7c7850148"}
543
+ Parameters: {"code"=>"37e4f12f3139b7f09ca5138a666348adbe2de9fef12018724e8c9b4599e50f1b", "state"=>"d0de14ea6a33f30df7db5659413a176dfc1e367582af40f6"}
525
544
  Authenticating with gds_sso strategy
526
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
527
-  (0.0ms) begin transaction
528
-  (0.0ms) commit transaction
545
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
546
+  (0.1ms) begin transaction
547
+  (0.1ms) commit transaction
529
548
  Redirected to http://www.example-client.com/restricted
530
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
531
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
549
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
550
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
532
551
  Processing by ExampleController#restricted as HTML
533
- 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", false], ["LIMIT", 1]]
552
+ 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", false], ["LIMIT", 1]]
534
553
  Rendering text template
535
554
  Rendered text template (0.0ms)
536
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
537
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
555
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
556
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
538
557
  Processing by ExampleController#restricted as HTML
539
558
  Authenticating with gds_sso strategy
540
559
  Completed in 0ms (ActiveRecord: 0.0ms)
541
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
542
- Started GET "/auth/gds/callback?code=958b12c0c19998b7be1c2aef7a3ed821f9ec168625ca76fd6d596e20f81017b7&state=1b7c2fa35d8bb4059b270df8ec47178c3f70ebf9d5e7e40e" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
560
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:51 +0000
561
+ Started GET "/auth/gds/callback?code=6c9bfeb102f4e0e1120398cfc1c1c31cba3f4cb3f85ff8ae0385a0f0e995ce04&state=9093f73a23bcecce0e2c374cdbf37f0108cae9bbc6754520" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
543
562
  Processing by AuthenticationsController#callback as HTML
544
- Parameters: {"code"=>"958b12c0c19998b7be1c2aef7a3ed821f9ec168625ca76fd6d596e20f81017b7", "state"=>"1b7c2fa35d8bb4059b270df8ec47178c3f70ebf9d5e7e40e"}
563
+ Parameters: {"code"=>"6c9bfeb102f4e0e1120398cfc1c1c31cba3f4cb3f85ff8ae0385a0f0e995ce04", "state"=>"9093f73a23bcecce0e2c374cdbf37f0108cae9bbc6754520"}
545
564
  Authenticating with gds_sso strategy
546
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
565
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
547
566
   (0.1ms) begin transaction
548
-  (0.0ms) commit transaction
567
+  (0.1ms) commit transaction
549
568
  Redirected to http://www.example-client.com/restricted
550
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
551
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
569
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
570
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
552
571
  Processing by ExampleController#restricted as HTML
553
- 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", false], ["LIMIT", 1]]
572
+ 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", false], ["LIMIT", 1]]
554
573
  Rendering text template
555
574
  Rendered text template (0.0ms)
556
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
557
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 05:59:59 +0000
575
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
576
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:38:52 +0000
558
577
  Processing by ExampleController#restricted as HTML
559
578
  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", false], ["LIMIT", 1]]
560
579
  Rendering text template
561
580
  Rendered text template (0.0ms)
562
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
563
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
581
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
582
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
564
583
  Processing by ExampleController#restricted as HTML
565
584
  Authenticating with gds_sso strategy
566
585
  Completed in 0ms (ActiveRecord: 0.0ms)
567
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:04:59 +0000
568
- Started GET "/auth/gds/callback?code=6026ba885f1a987e83386835bc406c8ef3ec69bae95f35c26623f09973dc1ffe&state=814199e3152207e5cc09e757fb8901083de37cf4bf1e52c1" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
586
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
587
+ Started GET "/auth/gds/callback?code=c63978b042d97f8a745efc08a3432c13a07692fbedbc4079044b7844dff0d7e8&state=6c8246395eb6eb3393b389ac551e2522b7d8e70684d8f22e" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
569
588
  Processing by AuthenticationsController#callback as HTML
570
- Parameters: {"code"=>"6026ba885f1a987e83386835bc406c8ef3ec69bae95f35c26623f09973dc1ffe", "state"=>"814199e3152207e5cc09e757fb8901083de37cf4bf1e52c1"}
589
+ Parameters: {"code"=>"c63978b042d97f8a745efc08a3432c13a07692fbedbc4079044b7844dff0d7e8", "state"=>"6c8246395eb6eb3393b389ac551e2522b7d8e70684d8f22e"}
571
590
  Authenticating with gds_sso strategy
572
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
591
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
573
592
   (0.1ms) begin transaction
574
-  (0.0ms) commit transaction
593
+  (0.1ms) commit transaction
575
594
  Redirected to http://www.example-client.com/restricted
576
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
577
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
595
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
596
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
578
597
  Processing by ExampleController#restricted as HTML
579
598
  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", false], ["LIMIT", 1]]
580
599
  Rendering text template
581
600
  Rendered text template (0.0ms)
582
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
583
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
601
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
602
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
603
+ Processing by ExampleController#restricted as HTML
604
+ Authenticating with gds_sso strategy
605
+ Completed in 1ms (ActiveRecord: 0.0ms)
606
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
607
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
584
608
  Processing by ExampleController#restricted as HTML
585
609
  Authenticating with gds_sso strategy
586
610
  Completed in 0ms (ActiveRecord: 0.0ms)
587
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
588
- Started GET "/auth/gds/callback?code=6c20df8297cad645201fd38305f96c5319a4f83e61673e91c107ec112256fb57&state=3d92ec4d4e886cf4d3d0e545b2cdaf76d151073d53be359a" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
611
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
612
+ Started GET "/auth/gds/callback?code=5229ba82ef286c3fde70ffe4fbef3a21d7c703461e48c72ddee14bcb62071076&state=333d26dd26654d38e2a6868b68a341568167fec3d698aa6e" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
589
613
  Processing by AuthenticationsController#callback as HTML
590
- Parameters: {"code"=>"6c20df8297cad645201fd38305f96c5319a4f83e61673e91c107ec112256fb57", "state"=>"3d92ec4d4e886cf4d3d0e545b2cdaf76d151073d53be359a"}
614
+ Parameters: {"code"=>"5229ba82ef286c3fde70ffe4fbef3a21d7c703461e48c72ddee14bcb62071076", "state"=>"333d26dd26654d38e2a6868b68a341568167fec3d698aa6e"}
591
615
  Authenticating with gds_sso strategy
592
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
593
617
   (0.1ms) begin transaction
594
618
   (0.1ms) commit transaction
595
619
  Redirected to http://www.example-client.com/restricted
596
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
597
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
620
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
621
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
598
622
  Processing by ExampleController#restricted as HTML
599
623
  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", false], ["LIMIT", 1]]
600
624
  Rendering text template
601
625
  Rendered text template (0.0ms)
602
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
603
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
626
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
627
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
604
628
  Processing by ExampleController#restricted as HTML
605
629
  Authenticating with gds_sso strategy
606
- Completed in 0ms (ActiveRecord: 0.0ms)
607
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
608
- Started GET "/auth/gds/callback?code=15be64cd8675db43385a11314cddb356e370afe6ae4a3bbfc201842cc8ad41da&state=c6c886f4971721a02b8c3124a12e50539e9ab6951a81b2a0" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
630
+ Completed in 1ms (ActiveRecord: 0.0ms)
631
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
632
+ Started GET "/auth/gds/callback?code=f05a8b4e9102c7eba4fcfcf26b7e9524a7d172427b7765b328cd52a0f107cd38&state=1f8e53a7b16af9400f9234ee26b862d0a56e7b78e8e8b39b" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
609
633
  Processing by AuthenticationsController#callback as HTML
610
- Parameters: {"code"=>"15be64cd8675db43385a11314cddb356e370afe6ae4a3bbfc201842cc8ad41da", "state"=>"c6c886f4971721a02b8c3124a12e50539e9ab6951a81b2a0"}
634
+ Parameters: {"code"=>"f05a8b4e9102c7eba4fcfcf26b7e9524a7d172427b7765b328cd52a0f107cd38", "state"=>"1f8e53a7b16af9400f9234ee26b862d0a56e7b78e8e8b39b"}
611
635
  Authenticating with gds_sso strategy
612
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
613
-  (0.0ms) begin transaction
614
-  (0.0ms) commit transaction
636
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
637
+  (0.1ms) begin transaction
638
+  (0.1ms) commit transaction
615
639
  Redirected to http://www.example-client.com/restricted
616
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
617
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
640
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
641
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:52 +0000
618
642
  Processing by ExampleController#restricted as HTML
619
- 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", false], ["LIMIT", 1]]
643
+ 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", false], ["LIMIT", 1]]
620
644
  Rendering text template
621
645
  Rendered text template (0.0ms)
622
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
623
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
624
- Processing by ExampleController#restricted as HTML
625
- Authenticating with gds_sso strategy
626
- Completed in 0ms (ActiveRecord: 0.0ms)
627
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:00 +0000
628
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
646
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
647
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
629
648
  Processing by ExampleController#restricted as HTML
630
649
  Authenticating with gds_sso strategy
631
650
  Completed in 0ms (ActiveRecord: 0.0ms)
632
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
633
- Started GET "/auth/gds/callback?code=89667d80f0c874ab50278689ba40f40d88a2054b049b401cfb42ec73f0510cb7&state=a25fdc84737b025e2bc5b7fb1b3a5842f363d019f657d2f3" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
651
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
652
+ Started GET "/auth/gds/callback?code=7e818e1c5c01ac8cd30f5b96e84dcb6e0c72ed8b51e4d25ed4db93c9171ca963&state=a14348956a612958a57fd91a9a5624bdf87c587d20624e33" for 127.0.0.1 at 2016-11-25 13:43:52 +0000
634
653
  Processing by AuthenticationsController#callback as HTML
635
- Parameters: {"code"=>"89667d80f0c874ab50278689ba40f40d88a2054b049b401cfb42ec73f0510cb7", "state"=>"a25fdc84737b025e2bc5b7fb1b3a5842f363d019f657d2f3"}
654
+ Parameters: {"code"=>"7e818e1c5c01ac8cd30f5b96e84dcb6e0c72ed8b51e4d25ed4db93c9171ca963", "state"=>"a14348956a612958a57fd91a9a5624bdf87c587d20624e33"}
636
655
  Authenticating with gds_sso strategy
637
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
638
-  (0.0ms) begin transaction
639
-  (0.0ms) commit transaction
656
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
657
+  (0.1ms) begin transaction
658
+  (0.1ms) commit transaction
640
659
  Redirected to http://www.example-client.com/restricted
641
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
642
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
660
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
661
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
643
662
  Processing by ExampleController#restricted as HTML
644
- 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", false], ["LIMIT", 1]]
663
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
645
664
  Rendering text template
646
665
  Rendered text template (0.0ms)
647
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
648
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
666
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
667
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
649
668
   (0.1ms) begin transaction
650
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 2]]
651
-  (30.1ms) commit transaction
652
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
669
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 12]]
670
+  (20.1ms) commit transaction
671
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
653
672
  Processing by ExampleController#restricted as HTML
654
673
  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", false], ["LIMIT", 1]]
655
674
  Authenticating with gds_sso strategy
656
675
  Completed in 2ms (ActiveRecord: 0.2ms)
657
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:00 +0000
658
- Started GET "/auth/gds/callback?code=c4a54f65eae1c7dd0af2f75bee1a640b76f99558f1d8903b107907292cad82cf&state=7dbea1ef26eaf3334ccaa8476716672eb1444f918f91a5cf" for 127.0.0.1 at 2016-09-22 10:05:01 +0000
676
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
677
+ Started GET "/auth/gds/callback?code=5e28167f5be69dda4b0fe3984973b050e9bd032d369589588e6aeda3d3a5c0e1&state=997f9516ea7ec6ebfe79b80b62812c32aaa75d4a2db1015f" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
659
678
  Processing by AuthenticationsController#callback as HTML
660
- Parameters: {"code"=>"c4a54f65eae1c7dd0af2f75bee1a640b76f99558f1d8903b107907292cad82cf", "state"=>"7dbea1ef26eaf3334ccaa8476716672eb1444f918f91a5cf"}
679
+ Parameters: {"code"=>"5e28167f5be69dda4b0fe3984973b050e9bd032d369589588e6aeda3d3a5c0e1", "state"=>"997f9516ea7ec6ebfe79b80b62812c32aaa75d4a2db1015f"}
661
680
  Authenticating with gds_sso strategy
662
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
663
-  (0.0ms) begin transaction
664
-  (0.0ms) commit transaction
665
-  (0.0ms) begin transaction
666
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 2]]
667
-  (16.8ms) commit transaction
681
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
682
+  (0.1ms) begin transaction
683
+  (0.1ms) commit transaction
684
+  (0.1ms) begin transaction
685
+ SQL (0.5ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
686
+  (27.5ms) commit transaction
668
687
  Redirected to http://www.example-client.com/restricted
669
- Completed 302 Found in 21ms (ActiveRecord: 17.4ms)
670
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:01 +0000
688
+ Completed 302 Found in 34ms (ActiveRecord: 28.3ms)
689
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
671
690
  Processing by ExampleController#restricted as HTML
672
- 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", false], ["LIMIT", 1]]
691
+ 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", false], ["LIMIT", 1]]
673
692
  Rendering text template
674
693
  Rendered text template (0.0ms)
675
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
676
-  (0.1ms) begin transaction
677
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38606"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
678
-  (43.1ms) commit transaction
694
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
695
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
696
+ Processing by ExampleController#this_requires_signin_permission as JSON
697
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
679
698
   (0.1ms) begin transaction
680
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39742"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
681
-  (55.6ms) commit transaction
682
- Processing by Api::UserController#reauth as HTML
683
- Parameters: {"uid"=>"a1s2d38606"}
684
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
685
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
686
- Completed 403 Forbidden in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
699
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
700
+  (20.6ms) commit transaction
701
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
687
702
   (0.1ms) begin transaction
688
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35817"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
689
-  (48.9ms) commit transaction
703
+  (0.1ms) commit transaction
704
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
690
705
   (0.1ms) begin transaction
691
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31611"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
692
-  (14.5ms) commit transaction
693
- Processing by Api::UserController#reauth as HTML
694
- Parameters: {"uid"=>"a1s2d35817"}
695
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35817"], ["LIMIT", 1]]
706
+  (0.1ms) commit transaction
707
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
696
708
   (0.1ms) begin transaction
697
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 5]]
698
-  (12.9ms) commit transaction
699
- Completed 200 OK in 17ms (ActiveRecord: 13.3ms)
700
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
709
+  (0.1ms) commit transaction
710
+ Rendering text template
711
+ Rendered text template (0.0ms)
712
+ Completed 200 OK in 99ms (Views: 0.6ms | ActiveRecord: 22.3ms)
713
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
714
+ Processing by ExampleController#restricted as JSON
715
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
716
+  (0.3ms) begin transaction
717
+  (0.1ms) commit transaction
718
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
701
719
   (0.1ms) begin transaction
702
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35685"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
703
-  (12.3ms) commit transaction
720
+  (0.1ms) commit transaction
721
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
704
722
   (0.1ms) begin transaction
705
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31670"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
706
-  (10.6ms) commit transaction
707
- Processing by Api::UserController#reauth as HTML
708
- Parameters: {"uid"=>"nonexistent-user"}
709
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
710
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
711
-  (0.1ms) begin transaction
712
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32961"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
713
-  (26.9ms) commit transaction
714
-  (0.1ms) begin transaction
715
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36065"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
716
-  (12.9ms) commit transaction
717
- Processing by Api::UserController#update as HTML
718
- Parameters: {"uid"=>"a1s2d32961"}
719
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32961"], ["LIMIT", 1]]
720
-  (0.1ms) begin transaction
721
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
722
-  (27.2ms) commit transaction
723
- Completed 200 OK in 31ms (ActiveRecord: 27.5ms)
724
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
725
-  (0.1ms) begin transaction
726
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3877"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
727
-  (30.0ms) commit transaction
723
+  (0.1ms) commit transaction
724
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
728
725
   (0.1ms) begin transaction
729
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35352"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
730
-  (11.3ms) commit transaction
731
- Processing by Api::UserController#update as HTML
732
- Parameters: {"uid"=>"a1s2d3877"}
733
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
734
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
735
- Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
736
-  (32.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') 
737
-  (47.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
738
-  (0.1ms) select sqlite_version(*)
739
-  (41.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
740
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
741
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
742
-  (0.1ms) begin transaction
743
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
744
-  (26.2ms) commit transaction
745
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
746
-  (0.0ms) begin transaction
747
-  (0.0ms) commit transaction
726
+  (0.1ms) commit transaction
727
+ Rendering text template
728
+ Rendered text template (0.0ms)
729
+ Completed 200 OK in 80ms (Views: 0.4ms | ActiveRecord: 1.2ms)
730
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
731
+ Processing by ExampleController#restricted as JSON
732
+ Completed in 18ms (ActiveRecord: 0.0ms)
733
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:53 +0000
734
+ Processing by ExampleController#restricted as JSON
735
+ Completed in 16ms (ActiveRecord: 0.0ms)
736
+  (200.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
737
+  (164.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
738
+  (0.4ms) select sqlite_version(*)
739
+  (138.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
748
740
   (0.1ms) begin transaction
749
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37002"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
750
-  (15.6ms) commit transaction
741
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31425"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
742
+  (158.0ms) commit transaction
751
743
   (0.1ms) begin transaction
752
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39576"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
753
-  (35.0ms) commit transaction
754
- Processing by Api::UserController#update as HTML
755
- Parameters: {"uid"=>"a1s2d37002"}
756
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
757
- Completed 403 Forbidden in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
744
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39436"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
745
+  (132.1ms) commit transaction
746
+ Processing by Api::UserController#reauth as HTML
747
+ Parameters: {"uid"=>"a1s2d31425"}
748
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
749
+ Completed 403 Forbidden in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)
758
750
   (0.1ms) begin transaction
759
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3166"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
760
-  (16.8ms) commit transaction
751
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36156"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
752
+  (226.6ms) commit transaction
761
753
   (0.1ms) begin transaction
762
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38445"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
-  (9.6ms) commit transaction
764
- Processing by Api::UserController#update as HTML
765
- Parameters: {"uid"=>"a1s2d3166"}
766
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3166"]]
767
-  (0.0ms) begin transaction
768
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
769
-  (10.3ms) commit transaction
770
- Completed 200 OK in 14ms (ActiveRecord: 10.6ms)
771
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
772
-  (0.1ms) begin transaction
773
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39534"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
774
-  (15.5ms) commit transaction
775
-  (0.0ms) begin transaction
776
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39063"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
777
-  (11.7ms) commit transaction
754
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37890"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
755
+  (177.0ms) commit transaction
778
756
  Processing by Api::UserController#reauth as HTML
779
757
  Parameters: {"uid"=>"nonexistent-user"}
780
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
781
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
758
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
759
+ Completed 200 OK in 6ms (ActiveRecord: 0.2ms)
760
+  (0.1ms) begin transaction
761
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38533"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
762
+  (126.1ms) commit transaction
782
763
   (0.1ms) begin transaction
783
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38003"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
784
-  (16.7ms) commit transaction
785
-  (0.0ms) begin transaction
786
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32526"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
787
-  (12.4ms) commit transaction
764
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36126"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
765
+  (124.6ms) commit transaction
788
766
  Processing by Api::UserController#reauth as HTML
789
- Parameters: {"uid"=>"a1s2d38003"}
790
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
791
- Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
767
+ Parameters: {"uid"=>"a1s2d38533"}
768
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38533"]]
769
+  (0.1ms) begin transaction
770
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
771
+  (125.8ms) commit transaction
772
+ Completed 200 OK in 130ms (ActiveRecord: 126.2ms)
773
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
792
774
   (0.1ms) begin transaction
793
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33624"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
794
-  (54.6ms) commit transaction
775
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32438"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
776
+  (184.0ms) commit transaction
795
777
   (0.1ms) begin transaction
796
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39640"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
797
-  (15.9ms) commit transaction
798
- Processing by Api::UserController#reauth as HTML
799
- Parameters: {"uid"=>"a1s2d33624"}
800
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33624"]]
778
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32890"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
779
+  (250.4ms) commit transaction
780
+ Processing by Api::UserController#update as HTML
781
+ Parameters: {"uid"=>"a1s2d32438"}
782
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
783
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
784
+  (0.1ms) begin transaction
785
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32914"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
786
+  (85.4ms) commit transaction
801
787
   (0.1ms) begin transaction
802
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 10]]
803
-  (27.0ms) commit transaction
804
- Completed 200 OK in 29ms (ActiveRecord: 27.3ms)
805
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
806
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
807
- Processing by ExampleController#restricted as JSON
808
- Completed in 27ms (ActiveRecord: 0.0ms)
809
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
810
- Processing by ExampleController#this_requires_signin_permission as JSON
811
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
812
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
788
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33322"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
789
+  (121.6ms) commit transaction
790
+ Processing by Api::UserController#update as HTML
791
+ Parameters: {"uid"=>"a1s2d32914"}
792
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d32914"]]
813
793
   (0.1ms) begin transaction
814
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
815
-  (20.3ms) commit transaction
816
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
794
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
795
+  (83.7ms) commit transaction
796
+ Completed 200 OK in 88ms (ActiveRecord: 84.1ms)
797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
798
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
799
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
817
800
   (0.1ms) begin transaction
818
-  (0.1ms) commit transaction
819
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
-  (0.1ms) begin transaction
821
-  (0.0ms) commit transaction
822
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
801
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
802
+  (66.5ms) commit transaction
803
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
823
804
   (0.1ms) begin transaction
824
-  (0.0ms) commit transaction
825
-  (0.0ms) begin transaction
826
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
827
-  (33.0ms) commit transaction
805
+  (0.1ms) commit transaction
806
+ Started GET "/" for 127.0.0.1 at 2016-11-25 13:43:59 +0000
807
+ Processing by ExampleController#index as HTML
828
808
  Rendered text template (0.0ms)
829
- Completed 200 OK in 122ms (Views: 1.2ms | ActiveRecord: 54.6ms)
830
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
831
- Processing by ExampleController#restricted as JSON
832
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
833
-  (0.1ms) begin transaction
834
-  (0.0ms) commit transaction
835
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
836
-  (0.1ms) begin transaction
837
-  (0.1ms) commit transaction
838
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
809
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
810
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:59 +0000
811
+ Processing by ExampleController#restricted as HTML
812
+ Authenticating with gds_sso strategy
813
+ Completed in 9ms (ActiveRecord: 0.0ms)
814
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:43:59 +0000
815
+ Started GET "/auth/gds/callback?code=f26bab61e3821688dbabf19d7350ce7439de62c6234faac4c5576e87a30d76a4&state=3c86a804ac28c20971241bd0f80807ffe7d57bc37cf6bb9d" for 127.0.0.1 at 2016-11-25 13:44:00 +0000
816
+ Processing by AuthenticationsController#callback as HTML
817
+ Parameters: {"code"=>"f26bab61e3821688dbabf19d7350ce7439de62c6234faac4c5576e87a30d76a4", "state"=>"3c86a804ac28c20971241bd0f80807ffe7d57bc37cf6bb9d"}
818
+ Authenticating with gds_sso strategy
819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
839
821
   (0.1ms) begin transaction
840
-  (0.0ms) commit transaction
841
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
822
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
823
+  (252.9ms) commit transaction
842
824
   (0.1ms) begin transaction
843
-  (0.0ms) commit transaction
844
-  (0.0ms) begin transaction
845
-  (0.1ms) commit transaction
825
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
826
+  (246.9ms) commit transaction
827
+ Redirected to http://www.example-client.com/restricted
828
+ Completed 302 Found in 507ms (ActiveRecord: 500.6ms)
829
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:00 +0000
830
+ Processing by ExampleController#restricted as HTML
831
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
846
832
  Rendered text template (0.0ms)
847
- Completed 200 OK in 62ms (Views: 0.3ms | ActiveRecord: 0.9ms)
848
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
849
- Processing by ExampleController#restricted as JSON
850
- Completed in 17ms (ActiveRecord: 0.0ms)
851
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
833
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
834
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:00 +0000
852
835
  Processing by ExampleController#restricted as HTML
853
836
  Authenticating with gds_sso strategy
854
837
  Completed in 0ms (ActiveRecord: 0.0ms)
855
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
856
- Started GET "/auth/gds/callback?code=f33621569eb850d2920725d2ffae4b5a1d3a02219b206f9f9e395facf097441c&state=410d48744ace8227473dd6eb6ea44c9532ea197569eac2cd" for 127.0.0.1 at 2016-09-22 10:05:05 +0000
838
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:00 +0000
839
+ Started GET "/auth/gds/callback?code=55112b3e0436989f0cc684e21124051dc9a0c4985ba5bd0c0a3377079f728642&state=9f2d78f675b870239ed1b7178276eedfd6c16aaea1d543e4" for 127.0.0.1 at 2016-11-25 13:44:00 +0000
857
840
  Processing by AuthenticationsController#callback as HTML
858
- Parameters: {"code"=>"f33621569eb850d2920725d2ffae4b5a1d3a02219b206f9f9e395facf097441c", "state"=>"410d48744ace8227473dd6eb6ea44c9532ea197569eac2cd"}
841
+ Parameters: {"code"=>"55112b3e0436989f0cc684e21124051dc9a0c4985ba5bd0c0a3377079f728642", "state"=>"9f2d78f675b870239ed1b7178276eedfd6c16aaea1d543e4"}
859
842
  Authenticating with gds_sso strategy
860
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
843
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
861
844
   (0.1ms) begin transaction
862
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
863
-  (39.3ms) commit transaction
864
-  (0.1ms) begin transaction
865
-  (0.0ms) commit transaction
845
+  (0.1ms) commit transaction
846
+  (0.1ms) begin transaction
847
+  (0.1ms) commit transaction
866
848
  Redirected to http://www.example-client.com/restricted
867
- Completed 302 Found in 44ms (ActiveRecord: 39.8ms)
868
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
849
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
850
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
869
851
  Processing by ExampleController#restricted as HTML
870
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
852
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
871
853
  Rendered text template (0.0ms)
872
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
873
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
854
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
855
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
874
856
  Processing by ExampleController#restricted as HTML
875
857
  Authenticating with gds_sso strategy
876
858
  Completed in 0ms (ActiveRecord: 0.0ms)
877
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
878
- Started GET "/auth/gds/callback?code=6969705eb944424da444720d5419f8a77404816aefc8075bf0bb1a28a2cb0bb8&state=0250daf05dd3f2b4c635ac92ab300822850d79cfa312da59" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
859
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
860
+ Started GET "/auth/gds/callback?code=97fe3c4a409a4abe1419ac55c829f11c81aafe6b9d2c649676c180aee5c24750&state=e48e84d3df03d4468e1ab954d55b0486b92fb3e20c979a6f" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
879
861
  Processing by AuthenticationsController#callback as HTML
880
- Parameters: {"code"=>"6969705eb944424da444720d5419f8a77404816aefc8075bf0bb1a28a2cb0bb8", "state"=>"0250daf05dd3f2b4c635ac92ab300822850d79cfa312da59"}
862
+ Parameters: {"code"=>"97fe3c4a409a4abe1419ac55c829f11c81aafe6b9d2c649676c180aee5c24750", "state"=>"e48e84d3df03d4468e1ab954d55b0486b92fb3e20c979a6f"}
881
863
  Authenticating with gds_sso strategy
882
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
883
-  (0.1ms) begin transaction
884
-  (0.0ms) commit transaction
885
-  (0.0ms) begin transaction
886
-  (0.1ms) commit transaction
864
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
865
+  (0.1ms) begin transaction
866
+  (0.1ms) commit transaction
867
+  (0.1ms) begin transaction
868
+  (0.1ms) commit transaction
887
869
  Redirected to http://www.example-client.com/restricted
888
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
889
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
870
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
871
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
890
872
  Processing by ExampleController#restricted as HTML
891
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
873
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
892
874
  Rendered text template (0.0ms)
893
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
894
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
875
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
876
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
895
877
  Processing by ExampleController#this_requires_signin_permission as HTML
896
878
  Authenticating with gds_sso strategy
897
879
  Completed in 0ms (ActiveRecord: 0.0ms)
898
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
899
- Started GET "/auth/gds/callback?code=a6a37cf409cd1e11fb7c6e3832d8fc770c5204e6965a96ec999648e581c15ad5&state=db8939a8bf387015fdf492cf0e91964d23b0f4ae70402a34" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
880
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
881
+ Started GET "/auth/gds/callback?code=b720f5c47ad488aa3c2aa6a9c40b0d98685c585dd69abf70b5a096e9b027a5ec&state=e3797714256bd03d1b17dd097aba01c38ca2d39b404009fa" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
900
882
  Processing by AuthenticationsController#callback as HTML
901
- Parameters: {"code"=>"a6a37cf409cd1e11fb7c6e3832d8fc770c5204e6965a96ec999648e581c15ad5", "state"=>"db8939a8bf387015fdf492cf0e91964d23b0f4ae70402a34"}
883
+ Parameters: {"code"=>"b720f5c47ad488aa3c2aa6a9c40b0d98685c585dd69abf70b5a096e9b027a5ec", "state"=>"e3797714256bd03d1b17dd097aba01c38ca2d39b404009fa"}
902
884
  Authenticating with gds_sso strategy
903
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
904
-  (0.1ms) begin transaction
905
-  (0.0ms) commit transaction
906
-  (0.0ms) begin transaction
907
-  (0.0ms) commit transaction
885
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
886
+  (0.1ms) begin transaction
887
+  (0.1ms) commit transaction
888
+  (0.1ms) begin transaction
889
+  (0.1ms) commit transaction
908
890
  Redirected to http://www.example-client.com/this_requires_signin_permission
909
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
910
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
891
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
892
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
911
893
  Processing by ExampleController#this_requires_signin_permission as HTML
912
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
894
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
913
895
  Rendered text template (0.0ms)
914
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
915
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
896
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
897
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
916
898
  Processing by ExampleController#this_requires_signin_permission as HTML
917
899
  Authenticating with gds_sso strategy
918
900
  Completed in 0ms (ActiveRecord: 0.0ms)
919
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
920
- Started GET "/auth/gds/callback?code=539a9ca2c0484189f742ce7bb676685214a798074d47ee4e22efdfbd095e8973&state=48f2412bfad0fe0650dc775ff6e57a73145f806f79733f11" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
901
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
902
+ Started GET "/auth/gds/callback?code=1c66b2bc93853363593ce073ddc618681ff20b2bc038e1326e99088b0a7bb8ae&state=644fa6b26ac85fcbeaf539b0a3b42bdc98118ee7ad3a0fb0" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
921
903
  Processing by AuthenticationsController#callback as HTML
922
- Parameters: {"code"=>"539a9ca2c0484189f742ce7bb676685214a798074d47ee4e22efdfbd095e8973", "state"=>"48f2412bfad0fe0650dc775ff6e57a73145f806f79733f11"}
904
+ Parameters: {"code"=>"1c66b2bc93853363593ce073ddc618681ff20b2bc038e1326e99088b0a7bb8ae", "state"=>"644fa6b26ac85fcbeaf539b0a3b42bdc98118ee7ad3a0fb0"}
923
905
  Authenticating with gds_sso strategy
924
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
925
-  (0.1ms) begin transaction
926
-  (0.0ms) commit transaction
927
-  (0.0ms) begin transaction
928
-  (0.0ms) commit transaction
906
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
907
+  (0.1ms) begin transaction
908
+  (0.1ms) commit transaction
909
+  (0.1ms) begin transaction
910
+  (0.1ms) commit transaction
929
911
  Redirected to http://www.example-client.com/this_requires_signin_permission
930
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
931
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
912
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
913
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
932
914
  Processing by ExampleController#this_requires_signin_permission as HTML
933
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
915
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
934
916
  Rendered text template (0.0ms)
935
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
936
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
917
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
918
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
937
919
  Processing by ExampleController#restricted as HTML
938
920
  Authenticating with gds_sso strategy
939
921
  Completed in 0ms (ActiveRecord: 0.0ms)
940
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
941
- Started GET "/auth/gds/callback?code=a61cdeaa131ffcac90e60b867a4a7dde2117c4e955f06ac77eaf8fe39075a7be&state=f256db33fd29304cda9cc6f2b0c8d352513ffa4b6de6c07e" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
922
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
923
+ Started GET "/auth/gds/callback?code=0eef37849744379db73f6df0c3a9c1ab11cc6c0454e8ec59f6c624edc9a3d83d&state=3fac31e26fef953d07e1ea1a622e890654fcd4be2be1971f" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
942
924
  Processing by AuthenticationsController#callback as HTML
943
- Parameters: {"code"=>"a61cdeaa131ffcac90e60b867a4a7dde2117c4e955f06ac77eaf8fe39075a7be", "state"=>"f256db33fd29304cda9cc6f2b0c8d352513ffa4b6de6c07e"}
925
+ Parameters: {"code"=>"0eef37849744379db73f6df0c3a9c1ab11cc6c0454e8ec59f6c624edc9a3d83d", "state"=>"3fac31e26fef953d07e1ea1a622e890654fcd4be2be1971f"}
944
926
  Authenticating with gds_sso strategy
945
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
946
-  (0.1ms) begin transaction
947
-  (0.1ms) commit transaction
948
-  (0.0ms) begin transaction
949
-  (0.0ms) commit transaction
927
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
928
+  (0.1ms) begin transaction
929
+  (0.1ms) commit transaction
930
+  (0.1ms) begin transaction
931
+  (0.1ms) commit transaction
950
932
  Redirected to http://www.example-client.com/restricted
951
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
952
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
933
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
934
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:01 +0000
953
935
  Processing by ExampleController#restricted as HTML
954
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
955
- Rendered text template (0.0ms)
956
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
957
- Started GET "/" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
958
- Processing by ExampleController#index as HTML
936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
959
937
  Rendered text template (0.0ms)
960
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
961
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
938
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
939
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:01 +0000
962
940
  Processing by ExampleController#restricted as HTML
963
941
  Authenticating with gds_sso strategy
964
- Completed in 0ms (ActiveRecord: 0.0ms)
965
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:06 +0000
966
- Started GET "/auth/gds/callback?code=c26b370a1eeec668c1e2d189eb0b84d6e144f880654d291bc7d64dab2e4eee3e&state=f4f486980cc657831069d6316115c7dd549aa38320c7d4d6" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
942
+ Completed in 1ms (ActiveRecord: 0.0ms)
943
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:49:01 +0000
944
+ Started GET "/auth/gds/callback?code=4a535912bbaf726c29f2ba86838fa2508865787d2c2f97a34de60fc2db09577d&state=e2593e5b8190f1f67f5bb52ed37c69f96671e51442786701" for 127.0.0.1 at 2016-11-26 09:49:02 +0000
967
945
  Processing by AuthenticationsController#callback as HTML
968
- Parameters: {"code"=>"c26b370a1eeec668c1e2d189eb0b84d6e144f880654d291bc7d64dab2e4eee3e", "state"=>"f4f486980cc657831069d6316115c7dd549aa38320c7d4d6"}
946
+ Parameters: {"code"=>"4a535912bbaf726c29f2ba86838fa2508865787d2c2f97a34de60fc2db09577d", "state"=>"e2593e5b8190f1f67f5bb52ed37c69f96671e51442786701"}
969
947
  Authenticating with gds_sso strategy
970
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
971
-  (0.1ms) begin transaction
972
-  (0.1ms) commit transaction
973
-  (0.0ms) begin transaction
974
-  (0.0ms) commit transaction
948
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
949
+  (0.1ms) begin transaction
950
+  (0.3ms) commit transaction
951
+  (0.1ms) begin transaction
952
+  (0.1ms) commit transaction
975
953
  Redirected to http://www.example-client.com/restricted
976
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
977
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
978
- 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 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
980
- Rendered text template (0.0ms)
981
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
982
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
954
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
955
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:02 +0000
983
956
  Processing by ExampleController#restricted as HTML
984
- Authenticating with gds_sso strategy
985
- Completed in 0ms (ActiveRecord: 0.0ms)
986
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
987
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
958
+ Rendered text template (0.1ms)
959
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
960
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
988
961
  Processing by ExampleController#restricted as HTML
989
962
  Authenticating with gds_sso strategy
990
963
  Completed in 0ms (ActiveRecord: 0.0ms)
991
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
992
- Started GET "/auth/gds/callback?code=db5092dc90efc353f73bcf070a7e51fb8fc5341c4f49985396c9f3144130cc92&state=5fe1ff6b9809b6e6b455aef3a0da588f8a804a108a1c12e0" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
964
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
965
+ Started GET "/auth/gds/callback?code=9f1f0a040a9a52aafc0f018f32e878ebe193a739f6da233a6d5ac70832085d5b&state=3e8d2364176666119009c02519aca7cdcd154c763e9e7f98" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
993
966
  Processing by AuthenticationsController#callback as HTML
994
- Parameters: {"code"=>"db5092dc90efc353f73bcf070a7e51fb8fc5341c4f49985396c9f3144130cc92", "state"=>"5fe1ff6b9809b6e6b455aef3a0da588f8a804a108a1c12e0"}
967
+ Parameters: {"code"=>"9f1f0a040a9a52aafc0f018f32e878ebe193a739f6da233a6d5ac70832085d5b", "state"=>"3e8d2364176666119009c02519aca7cdcd154c763e9e7f98"}
995
968
  Authenticating with gds_sso strategy
996
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
997
-  (0.1ms) begin transaction
998
-  (0.0ms) commit transaction
999
-  (0.1ms) begin transaction
1000
-  (0.1ms) commit transaction
969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
970
+  (0.1ms) begin transaction
971
+  (0.1ms) commit transaction
972
+  (0.1ms) begin transaction
973
+  (0.1ms) commit transaction
1001
974
  Redirected to http://www.example-client.com/restricted
1002
975
  Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1003
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
976
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1004
977
  Processing by ExampleController#restricted as HTML
1005
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1006
979
  Rendered text template (0.0ms)
1007
980
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1008
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
981
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:02 +0000
1009
982
  Processing by ExampleController#restricted as HTML
1010
983
  Authenticating with gds_sso strategy
1011
984
  Completed in 1ms (ActiveRecord: 0.0ms)
1012
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
1013
- Started GET "/auth/gds/callback?code=8a5e252b43f8c7b6e8c0e89688dd1eb341180131fa30bb00184172c75237b064&state=d429c8a382f5fcfb3137d2c814781de6798f29e03be4fdbc" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
985
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:49:02 +0000
986
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
987
+ Processing by ExampleController#restricted as HTML
988
+ Authenticating with gds_sso strategy
989
+ Completed in 0ms (ActiveRecord: 0.0ms)
990
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
991
+ Started GET "/auth/gds/callback?code=e6182dd9a8a4c90de0bc3778feda841b03003ec8a1f0dcaed046d030468b0709&state=745b5439b70881cd8057544a5f32d6541adef54c55dd5ad2" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1014
992
  Processing by AuthenticationsController#callback as HTML
1015
- Parameters: {"code"=>"8a5e252b43f8c7b6e8c0e89688dd1eb341180131fa30bb00184172c75237b064", "state"=>"d429c8a382f5fcfb3137d2c814781de6798f29e03be4fdbc"}
993
+ Parameters: {"code"=>"e6182dd9a8a4c90de0bc3778feda841b03003ec8a1f0dcaed046d030468b0709", "state"=>"745b5439b70881cd8057544a5f32d6541adef54c55dd5ad2"}
1016
994
  Authenticating with gds_sso strategy
1017
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1018
-  (0.1ms) begin transaction
1019
-  (0.1ms) commit transaction
1020
-  (0.1ms) begin transaction
1021
-  (0.1ms) commit transaction
995
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
996
+  (0.1ms) begin transaction
997
+  (0.1ms) commit transaction
998
+  (0.1ms) begin transaction
999
+  (0.1ms) commit transaction
1022
1000
  Redirected to http://www.example-client.com/restricted
1023
- Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
1024
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:07 +0000
1001
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1002
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1003
+ Processing by ExampleController#restricted as HTML
1004
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1005
+ Rendered text template (0.0ms)
1006
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1007
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:39:02 +0000
1025
1008
  Processing by ExampleController#restricted as HTML
1026
1009
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1027
1010
  Rendered text template (0.0ms)
1028
1011
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1029
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1012
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1030
1013
  Processing by ExampleController#restricted as HTML
1031
1014
  Authenticating with gds_sso strategy
1032
1015
  Completed in 0ms (ActiveRecord: 0.0ms)
1033
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1034
- Started GET "/auth/gds/callback?code=1455bb937ed2f8e76290657a6d3580f33ee1db0b207f3ee789fb2231adc7498f&state=e1e25df1e85817c2a8d761bec3dc0f387f950b6623ea9abb" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1016
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1017
+ Started GET "/auth/gds/callback?code=ac6ea4384f64b9ff95c2684f4337e55fa0175f6b72600ca38778264694814fb3&state=23e2e2d01dfa08ccb5ed2fc4e734a847a5e11b7236ccf6e9" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1035
1018
  Processing by AuthenticationsController#callback as HTML
1036
- Parameters: {"code"=>"1455bb937ed2f8e76290657a6d3580f33ee1db0b207f3ee789fb2231adc7498f", "state"=>"e1e25df1e85817c2a8d761bec3dc0f387f950b6623ea9abb"}
1019
+ Parameters: {"code"=>"ac6ea4384f64b9ff95c2684f4337e55fa0175f6b72600ca38778264694814fb3", "state"=>"23e2e2d01dfa08ccb5ed2fc4e734a847a5e11b7236ccf6e9"}
1037
1020
  Authenticating with gds_sso strategy
1038
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1021
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1022
+  (0.1ms) begin transaction
1023
+  (0.1ms) commit transaction
1039
1024
   (0.1ms) begin transaction
1040
1025
   (0.1ms) commit transaction
1041
-  (0.0ms) begin transaction
1042
-  (0.0ms) commit transaction
1043
1026
  Redirected to http://www.example-client.com/restricted
1044
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1045
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1027
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1028
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1046
1029
  Processing by ExampleController#restricted as HTML
1047
1030
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1048
1031
  Rendered text template (0.0ms)
1049
1032
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1050
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:00:07 +0000
1051
- Processing by ExampleController#restricted as HTML
1052
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1053
- Rendered text template (0.0ms)
1054
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1055
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1033
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1034
+  (0.1ms) begin transaction
1035
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
1036
+  (164.2ms) commit transaction
1037
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1056
1038
  Processing by ExampleController#restricted as HTML
1039
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1057
1040
  Authenticating with gds_sso strategy
1058
- Completed in 0ms (ActiveRecord: 0.0ms)
1059
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1060
- Started GET "/auth/gds/callback?code=0c2dbb08a44c92bb569750a41a7c9d725fe2d83f2f8cdfa7b3abba1cdaad9dbd&state=1de7cab3fe76ffe238056bd262630fdf91e740fe8c98f408" for 127.0.0.1 at 2016-09-22 10:05:07 +0000
1041
+ Completed in 2ms (ActiveRecord: 0.1ms)
1042
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1043
+ Started GET "/auth/gds/callback?code=63614c1ec3e831218c836cd59d6e2831e1001797e39509a7acae36083adab320&state=8d27838d7bb70a65ce13441a30b11400f817e91f9886cb7b" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1061
1044
  Processing by AuthenticationsController#callback as HTML
1062
- Parameters: {"code"=>"0c2dbb08a44c92bb569750a41a7c9d725fe2d83f2f8cdfa7b3abba1cdaad9dbd", "state"=>"1de7cab3fe76ffe238056bd262630fdf91e740fe8c98f408"}
1045
+ Parameters: {"code"=>"63614c1ec3e831218c836cd59d6e2831e1001797e39509a7acae36083adab320", "state"=>"8d27838d7bb70a65ce13441a30b11400f817e91f9886cb7b"}
1063
1046
  Authenticating with gds_sso strategy
1064
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1047
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1065
1048
   (0.1ms) begin transaction
1066
-  (0.0ms) commit transaction
1067
-  (0.0ms) begin transaction
1068
-  (0.0ms) commit transaction
1069
- Redirected to http://www.example-client.com/restricted
1070
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1071
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:08 +0000
1072
- Processing by ExampleController#restricted as HTML
1073
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1074
- Rendered text template (0.0ms)
1075
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1076
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1049
+  (0.1ms) commit transaction
1077
1050
   (0.1ms) begin transaction
1078
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
1079
-  (11.3ms) commit transaction
1080
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:08 +0000
1051
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1052
+  (163.5ms) commit transaction
1053
+ Redirected to http://www.example-client.com/restricted
1054
+ Completed 302 Found in 169ms (ActiveRecord: 164.0ms)
1055
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1081
1056
  Processing by ExampleController#restricted as HTML
1082
1057
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1083
- Authenticating with gds_sso strategy
1084
- Completed in 1ms (ActiveRecord: 0.1ms)
1085
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:08 +0000
1086
- Started GET "/auth/gds/callback?code=5895acf7fd8a9dad17e50b058c3e9977cae84505a70d0cdb8949dd65d25421f9&state=26c7545bc20bbf552e49f3e7654efcef0c9c18e0637a7218" for 127.0.0.1 at 2016-09-22 10:05:08 +0000
1087
- Processing by AuthenticationsController#callback as HTML
1088
- Parameters: {"code"=>"5895acf7fd8a9dad17e50b058c3e9977cae84505a70d0cdb8949dd65d25421f9", "state"=>"26c7545bc20bbf552e49f3e7654efcef0c9c18e0637a7218"}
1089
- Authenticating with gds_sso strategy
1058
+ Rendered text template (0.0ms)
1059
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1060
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1061
+ Processing by ExampleController#restricted as JSON
1062
+ Completed in 18ms (ActiveRecord: 0.0ms)
1063
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1064
+ Processing by ExampleController#restricted as JSON
1090
1065
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1091
1066
   (0.1ms) begin transaction
1092
-  (0.0ms) commit transaction
1093
-  (0.0ms) begin transaction
1094
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1095
-  (143.0ms) commit transaction
1096
- Redirected to http://www.example-client.com/restricted
1097
- Completed 302 Found in 147ms (ActiveRecord: 143.4ms)
1098
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:08 +0000
1099
- Processing by ExampleController#restricted as HTML
1100
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1067
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
1068
+  (190.5ms) commit transaction
1069
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1070
+  (0.2ms) begin transaction
1071
+  (0.1ms) commit transaction
1072
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1073
+  (0.1ms) begin transaction
1074
+  (0.1ms) commit transaction
1075
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1076
+  (0.1ms) begin transaction
1077
+  (0.1ms) commit transaction
1078
+  (0.1ms) begin transaction
1079
+  (0.1ms) commit transaction
1101
1080
  Rendered text template (0.0ms)
1102
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1103
-  (19.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1104
-  (10.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1081
+ Completed 200 OK in 261ms (Views: 0.3ms | ActiveRecord: 191.8ms)
1082
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1083
+ Processing by ExampleController#restricted as JSON
1084
+ Completed in 16ms (ActiveRecord: 0.0ms)
1085
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:03 +0000
1086
+ Processing by ExampleController#this_requires_signin_permission as JSON
1087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1088
+  (0.1ms) begin transaction
1089
+  (0.1ms) commit transaction
1090
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1091
+  (0.1ms) begin transaction
1092
+  (0.1ms) commit transaction
1093
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1094
+  (0.1ms) begin transaction
1095
+  (0.1ms) commit transaction
1096
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1097
+  (0.1ms) begin transaction
1098
+  (0.1ms) commit transaction
1099
+  (0.1ms) begin transaction
1100
+  (0.1ms) commit transaction
1101
+ Rendered text template (0.0ms)
1102
+ Completed 200 OK in 69ms (Views: 0.3ms | ActiveRecord: 1.0ms)
1103
+  (134.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1104
+  (115.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1105
1105
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1106
1106
   (0.1ms) begin transaction
1107
- SQL (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-09-22 10:05:11 UTC], ["updated_at", 2016-09-22 10:05:11 UTC]]
1108
-  (8.1ms) commit transaction
1109
-  (25.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1110
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1111
-  (0.0ms) begin transaction
1112
-  (0.0ms) commit transaction
1113
-  (0.1ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34324"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
-  (22.4ms) commit transaction
1116
-  (0.1ms) begin transaction
1117
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32175"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
-  (41.7ms) commit transaction
1119
- Processing by Api::UserController#update as HTML
1120
- Parameters: {"uid"=>"a1s2d34324"}
1121
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1122
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1123
- Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
1124
-  (0.1ms) begin transaction
1125
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34566"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1126
-  (19.1ms) commit transaction
1127
-  (0.1ms) begin transaction
1128
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39587"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1129
-  (25.3ms) commit transaction
1130
- Processing by Api::UserController#update as HTML
1131
- Parameters: {"uid"=>"a1s2d34566"}
1132
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34566"], ["LIMIT", 1]]
1133
-  (0.1ms) begin transaction
1134
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
1135
-  (12.3ms) commit transaction
1136
- Completed 200 OK in 18ms (ActiveRecord: 12.8ms)
1137
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1138
-  (0.1ms) begin transaction
1139
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35760"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1140
-  (18.0ms) commit transaction
1141
-  (0.1ms) begin transaction
1142
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32926"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1143
-  (18.2ms) commit transaction
1144
- Processing by Api::UserController#reauth as HTML
1145
- Parameters: {"uid"=>"a1s2d35760"}
1146
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35760"], ["LIMIT", 1]]
1147
-  (0.1ms) begin transaction
1148
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 5]]
1149
-  (20.0ms) commit transaction
1150
- Completed 200 OK in 23ms (ActiveRecord: 20.3ms)
1151
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1152
-  (0.1ms) begin transaction
1153
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32174"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1154
-  (7.3ms) commit transaction
1155
-  (0.1ms) begin transaction
1156
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32940"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1157
-  (19.0ms) commit transaction
1158
- Processing by Api::UserController#reauth as HTML
1159
- Parameters: {"uid"=>"a1s2d32174"}
1160
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1161
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1162
- Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1163
-  (0.1ms) begin transaction
1164
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37777"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1165
-  (22.2ms) commit transaction
1166
-  (0.1ms) begin transaction
1167
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d374"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1168
-  (23.4ms) commit transaction
1169
- Processing by Api::UserController#reauth as HTML
1170
- Parameters: {"uid"=>"nonexistent-user"}
1171
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1172
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1173
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1174
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1175
-  (0.0ms) begin transaction
1176
- SQL (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]]
1177
-  (26.1ms) commit transaction
1178
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1107
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-11-25 13:44:07 UTC], ["updated_at", 2016-11-25 13:44:07 UTC]]
1108
+  (157.5ms) commit transaction
1109
+  (70.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1110
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1179
1111
   (0.1ms) begin transaction
1180
1112
   (0.1ms) commit transaction
1181
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1182
- Processing by ExampleController#this_requires_signin_permission as JSON
1183
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1113
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1114
+ Processing by ExampleController#restricted as JSON
1115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1184
1116
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1185
1117
   (0.1ms) begin transaction
1186
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1187
-  (13.4ms) commit transaction
1188
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1189
-  (0.0ms) begin transaction
1190
-  (0.0ms) commit transaction
1118
+ SQL (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]]
1119
+  (154.1ms) commit transaction
1120
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1121
+  (0.1ms) begin transaction
1122
+  (0.1ms) commit transaction
1191
1123
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1192
1124
   (0.1ms) begin transaction
1193
1125
   (0.1ms) commit transaction
1194
1126
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1195
1127
   (0.1ms) begin transaction
1196
-  (0.0ms) commit transaction
1197
-  (0.0ms) begin transaction
1198
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1199
-  (33.0ms) commit transaction
1128
+  (0.1ms) commit transaction
1129
+  (0.1ms) begin transaction
1130
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
1131
+  (131.7ms) commit transaction
1200
1132
  Rendering text template
1201
1133
  Rendered text template (0.0ms)
1202
- Completed 200 OK in 124ms (Views: 1.3ms | ActiveRecord: 47.9ms)
1203
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1204
- Processing by ExampleController#restricted as JSON
1205
- Completed in 14ms (ActiveRecord: 0.0ms)
1206
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1207
- Processing by ExampleController#restricted as JSON
1208
- Completed in 14ms (ActiveRecord: 0.0ms)
1209
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1134
+ Completed 200 OK in 390ms (Views: 3.6ms | ActiveRecord: 288.2ms)
1135
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1210
1136
  Processing by ExampleController#restricted as JSON
1211
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1212
-  (0.0ms) begin transaction
1213
-  (0.0ms) commit transaction
1137
+ Completed in 25ms (ActiveRecord: 0.0ms)
1138
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1139
+ Processing by ExampleController#this_requires_signin_permission as JSON
1140
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1141
+  (0.1ms) begin transaction
1142
+  (0.1ms) commit transaction
1214
1143
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1215
1144
   (0.1ms) begin transaction
1216
1145
   (0.1ms) commit transaction
1217
1146
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1218
1147
   (0.1ms) begin transaction
1219
-  (0.0ms) commit transaction
1148
+  (0.1ms) commit transaction
1220
1149
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1221
1150
   (0.1ms) begin transaction
1222
-  (0.0ms) commit transaction
1151
+  (0.1ms) commit transaction
1223
1152
  Rendering text template
1224
1153
  Rendered text template (0.0ms)
1225
- Completed 200 OK in 54ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1226
- Started GET "/" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1227
- Processing by ExampleController#index as HTML
1154
+ Completed 200 OK in 91ms (Views: 0.4ms | ActiveRecord: 1.0ms)
1155
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1156
+ Processing by ExampleController#restricted as JSON
1157
+ Completed in 18ms (ActiveRecord: 0.0ms)
1158
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1159
+ Processing by ExampleController#restricted as HTML
1160
+ Authenticating with gds_sso strategy
1161
+ Completed in 1ms (ActiveRecord: 0.0ms)
1162
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1163
+ Started GET "/auth/gds/callback?code=c0a84b9848298a9f262a09a67e03b82a3ddb2e11d32349af67a134f2a8c1df54&state=785ca430b12fe07e5ebbd5d2576cf8d9adaaec586d9b8741" for 127.0.0.1 at 2016-11-25 13:44:08 +0000
1164
+ Processing by AuthenticationsController#callback as HTML
1165
+ Parameters: {"code"=>"c0a84b9848298a9f262a09a67e03b82a3ddb2e11d32349af67a134f2a8c1df54", "state"=>"785ca430b12fe07e5ebbd5d2576cf8d9adaaec586d9b8741"}
1166
+ Authenticating with gds_sso strategy
1167
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1168
+  (0.1ms) begin transaction
1169
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 1]]
1170
+  (104.4ms) commit transaction
1171
+ Redirected to http://www.example-client.com/restricted
1172
+ Completed 302 Found in 109ms (ActiveRecord: 104.9ms)
1173
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1174
+ Processing by ExampleController#restricted as HTML
1175
+ 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", false], ["LIMIT", 1]]
1228
1176
  Rendering text template
1229
1177
  Rendered text template (0.0ms)
1230
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1231
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1178
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1179
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1232
1180
  Processing by ExampleController#this_requires_signin_permission as HTML
1233
1181
  Authenticating with gds_sso strategy
1234
1182
  Completed in 0ms (ActiveRecord: 0.0ms)
1235
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1236
- Started GET "/auth/gds/callback?code=0e660219d9fcf3cecc4e6585393159292097fac873cd8b6da779b606afcdf92c&state=a3345c16775bc34820876453004292277615eb7f3895bdbf" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1183
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1184
+ Started GET "/auth/gds/callback?code=bf76d7f035ac8073a3a23d377ad10f341fd99cb317858d7c202b232a4fbf8ee8&state=4c6e9f8c2ab2cf114c8af1aa29e839c88763904579134b18" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1237
1185
  Processing by AuthenticationsController#callback as HTML
1238
- Parameters: {"code"=>"0e660219d9fcf3cecc4e6585393159292097fac873cd8b6da779b606afcdf92c", "state"=>"a3345c16775bc34820876453004292277615eb7f3895bdbf"}
1186
+ Parameters: {"code"=>"bf76d7f035ac8073a3a23d377ad10f341fd99cb317858d7c202b232a4fbf8ee8", "state"=>"4c6e9f8c2ab2cf114c8af1aa29e839c88763904579134b18"}
1239
1187
  Authenticating with gds_sso strategy
1240
1188
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1241
1189
   (0.1ms) begin transaction
1242
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 12]]
1243
-  (32.8ms) commit transaction
1190
+  (0.1ms) commit transaction
1244
1191
  Redirected to http://www.example-client.com/this_requires_signin_permission
1245
- Completed 302 Found in 37ms (ActiveRecord: 33.4ms)
1246
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1192
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1193
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1247
1194
  Processing by ExampleController#this_requires_signin_permission as HTML
1248
1195
  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", false], ["LIMIT", 1]]
1249
1196
  Rendering text template
1250
1197
  Rendered text template (0.0ms)
1251
1198
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1252
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1199
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1253
1200
  Processing by ExampleController#this_requires_signin_permission as HTML
1254
1201
  Authenticating with gds_sso strategy
1255
1202
  Completed in 0ms (ActiveRecord: 0.0ms)
1256
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1257
- Started GET "/auth/gds/callback?code=f931bc11c988aaa713e5ac07cd5c54a2118bfb64c0d51a33c5fd391c63923dbd&state=976f1204e4303dd7fce566dea130b6e32df5b297fbf88c6f" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1203
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1204
+ Started GET "/auth/gds/callback?code=3a117361caf80c06abc97a5c61eeef6d1b530ab6838b74848703417769f377df&state=37ba9999028828876033494d9ef60de447771819b102f542" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1258
1205
  Processing by AuthenticationsController#callback as HTML
1259
- Parameters: {"code"=>"f931bc11c988aaa713e5ac07cd5c54a2118bfb64c0d51a33c5fd391c63923dbd", "state"=>"976f1204e4303dd7fce566dea130b6e32df5b297fbf88c6f"}
1206
+ Parameters: {"code"=>"3a117361caf80c06abc97a5c61eeef6d1b530ab6838b74848703417769f377df", "state"=>"37ba9999028828876033494d9ef60de447771819b102f542"}
1260
1207
  Authenticating with gds_sso strategy
1261
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1262
-  (0.0ms) begin transaction
1208
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1209
+  (0.1ms) begin transaction
1263
1210
   (0.1ms) commit transaction
1264
1211
  Redirected to http://www.example-client.com/this_requires_signin_permission
1265
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1266
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1212
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1213
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1267
1214
  Processing by ExampleController#this_requires_signin_permission as HTML
1268
1215
  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", false], ["LIMIT", 1]]
1269
1216
  Rendering text template
1270
1217
  Rendered text template (0.0ms)
1271
1218
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1272
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1219
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1273
1220
  Processing by ExampleController#restricted as HTML
1274
1221
  Authenticating with gds_sso strategy
1275
1222
  Completed in 0ms (ActiveRecord: 0.0ms)
1276
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:12 +0000
1277
- Started GET "/auth/gds/callback?code=474cc46d995688b3826b953d885817bb02893debe8fb92e1f6f40a4a84b5421f&state=429238981731f2b9dad89d9d448456c9e4e97a6229c99f1b" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1223
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1224
+ Started GET "/auth/gds/callback?code=b7eae245485328e121e9325ae16ed83aa90f00cecccb5a12e8e16d96602811f0&state=6e18b7da44b64322b9feebfd747f8ab38f8b988ce94a6d66" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1278
1225
  Processing by AuthenticationsController#callback as HTML
1279
- Parameters: {"code"=>"474cc46d995688b3826b953d885817bb02893debe8fb92e1f6f40a4a84b5421f", "state"=>"429238981731f2b9dad89d9d448456c9e4e97a6229c99f1b"}
1226
+ Parameters: {"code"=>"b7eae245485328e121e9325ae16ed83aa90f00cecccb5a12e8e16d96602811f0", "state"=>"6e18b7da44b64322b9feebfd747f8ab38f8b988ce94a6d66"}
1280
1227
  Authenticating with gds_sso strategy
1281
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1228
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1282
1229
   (0.1ms) begin transaction
1283
1230
   (0.1ms) commit transaction
1284
1231
  Redirected to http://www.example-client.com/restricted
1285
1232
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1286
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1233
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1287
1234
  Processing by ExampleController#restricted as HTML
1288
1235
  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", false], ["LIMIT", 1]]
1289
1236
  Rendering text template
1290
1237
  Rendered text template (0.0ms)
1291
1238
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1292
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1239
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1293
1240
  Processing by ExampleController#restricted as HTML
1294
1241
  Authenticating with gds_sso strategy
1295
1242
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1297
- Started GET "/auth/gds/callback?code=f84ba7689c6cb951e669e20538f699bbdb174c90356a27f49daa97de4dd3d13e&state=eb2a5bb6f42cf70f42b03efa074dc59d79a2927d77594dc8" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1243
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1244
+ Started GET "/auth/gds/callback?code=2b981d35b8370b19479ffec3ca76bfbce2e8e96b5625373767de621054930664&state=c20b030e32057395dc69e18b12c5590d943a9c21c905e5fe" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1298
1245
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"f84ba7689c6cb951e669e20538f699bbdb174c90356a27f49daa97de4dd3d13e", "state"=>"eb2a5bb6f42cf70f42b03efa074dc59d79a2927d77594dc8"}
1246
+ Parameters: {"code"=>"2b981d35b8370b19479ffec3ca76bfbce2e8e96b5625373767de621054930664", "state"=>"c20b030e32057395dc69e18b12c5590d943a9c21c905e5fe"}
1300
1247
  Authenticating with gds_sso strategy
1301
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1248
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
1249
   (0.1ms) begin transaction
1303
-  (0.0ms) commit transaction
1250
+  (0.1ms) commit transaction
1304
1251
  Redirected to http://www.example-client.com/restricted
1305
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1306
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1252
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1253
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1307
1254
  Processing by ExampleController#restricted as HTML
1308
- 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", false], ["LIMIT", 1]]
1255
+ 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", false], ["LIMIT", 1]]
1256
+ Rendering text template
1257
+ Rendered text template (0.0ms)
1258
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1259
+ Started GET "/" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1260
+ Processing by ExampleController#index as HTML
1309
1261
  Rendering text template
1310
1262
  Rendered text template (0.0ms)
1311
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1312
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1263
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1264
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1313
1265
  Processing by ExampleController#restricted as HTML
1314
1266
  Authenticating with gds_sso strategy
1315
1267
  Completed in 0ms (ActiveRecord: 0.0ms)
1316
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1317
- Started GET "/auth/gds/callback?code=a722c87e3a447c7716f915fa5d460115eeef66a707038ed1d6b5bc365b744051&state=76fd2e3d77e27caf46cd40aa6c91240f2ed212a84181aea7" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1268
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1269
+ Started GET "/auth/gds/callback?code=a64ee593600313a329104a3a301b885c4de72ca20bbe395c228a31d5637084ac&state=75e9cc0fb0abcde491c545a4ba1f08a2bf1d3c680c80d08d" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1318
1270
  Processing by AuthenticationsController#callback as HTML
1319
- Parameters: {"code"=>"a722c87e3a447c7716f915fa5d460115eeef66a707038ed1d6b5bc365b744051", "state"=>"76fd2e3d77e27caf46cd40aa6c91240f2ed212a84181aea7"}
1271
+ Parameters: {"code"=>"a64ee593600313a329104a3a301b885c4de72ca20bbe395c228a31d5637084ac", "state"=>"75e9cc0fb0abcde491c545a4ba1f08a2bf1d3c680c80d08d"}
1320
1272
  Authenticating with gds_sso strategy
1321
1273
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1322
1274
   (0.1ms) begin transaction
1323
-  (0.0ms) commit transaction
1275
+  (0.1ms) commit transaction
1324
1276
  Redirected to http://www.example-client.com/restricted
1325
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1326
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1277
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1278
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1327
1279
  Processing by ExampleController#restricted as HTML
1328
- 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", false], ["LIMIT", 1]]
1280
+ 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", false], ["LIMIT", 1]]
1329
1281
  Rendering text template
1330
1282
  Rendered text template (0.0ms)
1331
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1332
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1283
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1284
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1285
+  (0.1ms) begin transaction
1286
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
1287
+  (165.7ms) commit transaction
1288
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1333
1289
  Processing by ExampleController#restricted as HTML
1290
+ 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", false], ["LIMIT", 1]]
1334
1291
  Authenticating with gds_sso strategy
1335
- Completed in 0ms (ActiveRecord: 0.0ms)
1336
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1337
- Started GET "/auth/gds/callback?code=3cd8309f9a6ce02f5b9f652eccce65f308d2069174e11170dd3966d0637da93b&state=9b987f343e80c6d425df5734e255e7ea8836091574c9020a" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1292
+ Completed in 2ms (ActiveRecord: 0.2ms)
1293
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1294
+ Started GET "/auth/gds/callback?code=199a427dacb6ebb4bf71a3f78b261a7f56023326646be791b959f8facbd9674f&state=9c1046561c80184c37b0816b5b556aaae34b9472253dc571" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1338
1295
  Processing by AuthenticationsController#callback as HTML
1339
- Parameters: {"code"=>"3cd8309f9a6ce02f5b9f652eccce65f308d2069174e11170dd3966d0637da93b", "state"=>"9b987f343e80c6d425df5734e255e7ea8836091574c9020a"}
1296
+ Parameters: {"code"=>"199a427dacb6ebb4bf71a3f78b261a7f56023326646be791b959f8facbd9674f", "state"=>"9c1046561c80184c37b0816b5b556aaae34b9472253dc571"}
1340
1297
  Authenticating with gds_sso strategy
1341
1298
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
1299
   (0.1ms) begin transaction
1343
1300
   (0.1ms) commit transaction
1301
+  (0.1ms) begin transaction
1302
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
1303
+  (127.2ms) commit transaction
1344
1304
  Redirected to http://www.example-client.com/restricted
1345
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1346
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1305
+ Completed 302 Found in 133ms (ActiveRecord: 127.9ms)
1306
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1347
1307
  Processing by ExampleController#restricted as HTML
1348
- 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", false], ["LIMIT", 1]]
1349
- Rendering text template
1350
- Rendered text template (0.0ms)
1351
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1352
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:00:13 +0000
1353
- Processing by ExampleController#restricted as HTML
1354
- 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", false], ["LIMIT", 1]]
1308
+ 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", false], ["LIMIT", 1]]
1355
1309
  Rendering text template
1356
1310
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1311
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1312
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1359
1313
  Processing by ExampleController#restricted as HTML
1360
1314
  Authenticating with gds_sso strategy
1361
1315
  Completed in 0ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:13 +0000
1363
- Started GET "/auth/gds/callback?code=5486e4c720f999eaf3890c5dfe0c41fc64c4e8c0cf4c72a1c981f2382cabfb73&state=87fdb2c5beb1a0754623eb760288e425275bab801e91a20f" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1316
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:10 +0000
1317
+ Started GET "/auth/gds/callback?code=ba207418b730acd401f90e2ab7767fea110b029de02e40b28b4f5cfb6229a568&state=a58aef958e400d846df3c30d2ac822763d9b1af234c5ae37" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1364
1318
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"5486e4c720f999eaf3890c5dfe0c41fc64c4e8c0cf4c72a1c981f2382cabfb73", "state"=>"87fdb2c5beb1a0754623eb760288e425275bab801e91a20f"}
1319
+ Parameters: {"code"=>"ba207418b730acd401f90e2ab7767fea110b029de02e40b28b4f5cfb6229a568", "state"=>"a58aef958e400d846df3c30d2ac822763d9b1af234c5ae37"}
1366
1320
  Authenticating with gds_sso strategy
1367
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1321
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
1322
   (0.1ms) begin transaction
1369
-  (0.0ms) commit transaction
1323
+  (0.1ms) commit transaction
1370
1324
  Redirected to http://www.example-client.com/restricted
1371
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1372
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1325
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1326
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1373
1327
  Processing by ExampleController#restricted as HTML
1374
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", false], ["LIMIT", 1]]
1375
1329
  Rendering text template
1376
1330
  Rendered text template (0.0ms)
1377
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1378
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1331
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1332
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1379
1333
  Processing by ExampleController#restricted as HTML
1380
1334
  Authenticating with gds_sso strategy
1381
1335
  Completed in 1ms (ActiveRecord: 0.0ms)
1382
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1383
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1384
- Processing by ExampleController#restricted as HTML
1385
- Authenticating with gds_sso strategy
1386
- Completed in 0ms (ActiveRecord: 0.0ms)
1387
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1388
- Started GET "/auth/gds/callback?code=a9c626ac742d02e21c3cd5c7e61c8b38c871b61598050213aed8c1807272bf09&state=3be98684f80c4dfe2532cde67df50755bf8abe4696c2cea9" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1336
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1337
+ Started GET "/auth/gds/callback?code=ba733aaa5e6f5cfd68f43b6d4dcac0b56dc9a824902757b03989f0333dd4929c&state=ab9b252c55e0213badba6ab4d9edd9ea658515cd496c6793" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1389
1338
  Processing by AuthenticationsController#callback as HTML
1390
- Parameters: {"code"=>"a9c626ac742d02e21c3cd5c7e61c8b38c871b61598050213aed8c1807272bf09", "state"=>"3be98684f80c4dfe2532cde67df50755bf8abe4696c2cea9"}
1339
+ Parameters: {"code"=>"ba733aaa5e6f5cfd68f43b6d4dcac0b56dc9a824902757b03989f0333dd4929c", "state"=>"ab9b252c55e0213badba6ab4d9edd9ea658515cd496c6793"}
1391
1340
  Authenticating with gds_sso strategy
1392
1341
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1393
1342
   (0.1ms) begin transaction
1394
1343
   (0.1ms) commit transaction
1395
1344
  Redirected to http://www.example-client.com/restricted
1396
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1397
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1345
+ Completed 302 Found in 12ms (ActiveRecord: 0.4ms)
1346
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1398
1347
  Processing by ExampleController#restricted as HTML
1399
1348
  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", false], ["LIMIT", 1]]
1400
1349
  Rendering text template
1401
1350
  Rendered text template (0.0ms)
1402
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1403
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1351
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1352
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1404
1353
  Processing by ExampleController#restricted as HTML
1405
1354
  Authenticating with gds_sso strategy
1406
1355
  Completed in 0ms (ActiveRecord: 0.0ms)
1407
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1408
- Started GET "/auth/gds/callback?code=f79eeded3e9865dee1c0b012583cd9933beafe1889da44b11a0db8a4f614bfdc&state=7913d81af96c4baae77bf1469c7d8aac54c962b283da691a" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1356
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1357
+ Started GET "/auth/gds/callback?code=cadac2fc142b359cec8bce949fe53f95466e5f47dc876f961f2588ae806888a0&state=43710693a55e9165b8307f7c12d7a9fdd4cc03b5a63281ed" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1409
1358
  Processing by AuthenticationsController#callback as HTML
1410
- Parameters: {"code"=>"f79eeded3e9865dee1c0b012583cd9933beafe1889da44b11a0db8a4f614bfdc", "state"=>"7913d81af96c4baae77bf1469c7d8aac54c962b283da691a"}
1359
+ Parameters: {"code"=>"cadac2fc142b359cec8bce949fe53f95466e5f47dc876f961f2588ae806888a0", "state"=>"43710693a55e9165b8307f7c12d7a9fdd4cc03b5a63281ed"}
1411
1360
  Authenticating with gds_sso strategy
1412
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1361
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1413
1362
   (0.1ms) begin transaction
1414
1363
   (0.1ms) commit transaction
1415
1364
  Redirected to http://www.example-client.com/restricted
1416
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1417
- Started GET "/restricted" for 127.0.0.1 at 2016-09-23 06:10:14 +0000
1365
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1366
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1418
1367
  Processing by ExampleController#restricted as HTML
1419
- 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", false], ["LIMIT", 1]]
1368
+ 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", false], ["LIMIT", 1]]
1420
1369
  Rendering text template
1421
1370
  Rendered text template (0.0ms)
1422
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1423
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1371
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1372
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1373
+ Processing by ExampleController#restricted as HTML
1374
+ Authenticating with gds_sso strategy
1375
+ Completed in 1ms (ActiveRecord: 0.0ms)
1376
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-26 09:49:11 +0000
1377
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1424
1378
  Processing by ExampleController#restricted as HTML
1425
1379
  Authenticating with gds_sso strategy
1426
1380
  Completed in 0ms (ActiveRecord: 0.0ms)
1427
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1428
- Started GET "/auth/gds/callback?code=9dcf95e46554ae688e6c7025b8ccb6165ded300b637a74e44f28bf0d7c86dce4&state=8c1e1948b3d180df9740ae4c8e90ea4c00f99171e49a6217" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1381
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1382
+ Started GET "/auth/gds/callback?code=e97c1923e96ebde4a13a7f6c5bac17afdacae87a877be9cf19b2dacb2bbf008b&state=bbf26cdc855f5873a40f06c8f4806ce2de391f64600ef839" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1429
1383
  Processing by AuthenticationsController#callback as HTML
1430
- Parameters: {"code"=>"9dcf95e46554ae688e6c7025b8ccb6165ded300b637a74e44f28bf0d7c86dce4", "state"=>"8c1e1948b3d180df9740ae4c8e90ea4c00f99171e49a6217"}
1384
+ Parameters: {"code"=>"e97c1923e96ebde4a13a7f6c5bac17afdacae87a877be9cf19b2dacb2bbf008b", "state"=>"bbf26cdc855f5873a40f06c8f4806ce2de391f64600ef839"}
1431
1385
  Authenticating with gds_sso strategy
1432
1386
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1433
1387
   (0.1ms) begin transaction
1434
1388
   (0.1ms) commit transaction
1435
1389
  Redirected to http://www.example-client.com/restricted
1436
- Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
1437
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1390
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1391
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:11 +0000
1438
1392
  Processing by ExampleController#restricted as HTML
1439
1393
  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", false], ["LIMIT", 1]]
1440
1394
  Rendering text template
1441
1395
  Rendered text template (0.0ms)
1442
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1443
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1444
-  (0.1ms) begin transaction
1445
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 12]]
1446
-  (34.0ms) commit transaction
1447
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1448
- 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", false], ["LIMIT", 1]]
1450
- Authenticating with gds_sso strategy
1451
- Completed in 2ms (ActiveRecord: 0.2ms)
1452
- Started GET "/auth/gds" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1453
- Started GET "/auth/gds/callback?code=c08a54ca8860f7ab30f460e8e09fabb3b0acb0f140b0cc0f989bbf434411d52e&state=9c9ddc73d062a327ae1367a206cbdbd5c27069e5e9bc38fb" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1454
- Processing by AuthenticationsController#callback as HTML
1455
- Parameters: {"code"=>"c08a54ca8860f7ab30f460e8e09fabb3b0acb0f140b0cc0f989bbf434411d52e", "state"=>"9c9ddc73d062a327ae1367a206cbdbd5c27069e5e9bc38fb"}
1456
- Authenticating with gds_sso strategy
1457
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1458
-  (0.1ms) begin transaction
1459
-  (0.1ms) commit transaction
1460
-  (0.0ms) begin transaction
1461
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1462
-  (31.8ms) commit transaction
1463
- Redirected to http://www.example-client.com/restricted
1464
- Completed 302 Found in 37ms (ActiveRecord: 32.3ms)
1465
- Started GET "/restricted" for 127.0.0.1 at 2016-09-22 10:05:14 +0000
1396
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1397
+ Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:39:11 +0000
1466
1398
  Processing by ExampleController#restricted as HTML
1467
1399
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1468
1400
  Rendering text template
1469
1401
  Rendered text template (0.0ms)
1470
1402
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1403
+  (0.1ms) begin transaction
1404
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1405
+  (107.7ms) commit transaction
1406
+  (0.1ms) begin transaction
1407
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38982"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1408
+  (136.9ms) commit transaction
1409
+ Processing by Api::UserController#update as HTML
1410
+ Parameters: {"uid"=>"a1s2d39"}
1411
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1412
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1413
+ Completed 403 Forbidden in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
1414
+  (0.1ms) begin transaction
1415
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36889"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1416
+  (87.2ms) commit transaction
1417
+  (0.1ms) begin transaction
1418
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31361"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1419
+  (83.9ms) commit transaction
1420
+ Processing by Api::UserController#update as HTML
1421
+ Parameters: {"uid"=>"a1s2d36889"}
1422
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36889"], ["LIMIT", 1]]
1423
+  (0.1ms) begin transaction
1424
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
1425
+  (70.7ms) commit transaction
1426
+ Completed 200 OK in 76ms (ActiveRecord: 71.2ms)
1427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
1428
+  (0.1ms) begin transaction
1429
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34414"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1430
+  (100.0ms) commit transaction
1431
+  (0.1ms) begin transaction
1432
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33706"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1433
+  (81.0ms) commit transaction
1434
+ Processing by Api::UserController#reauth as HTML
1435
+ Parameters: {"uid"=>"a1s2d34414"}
1436
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34414"], ["LIMIT", 1]]
1437
+  (0.1ms) begin transaction
1438
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 6]]
1439
+  (165.0ms) commit transaction
1440
+ Completed 200 OK in 169ms (ActiveRecord: 165.5ms)
1441
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
1442
+  (0.1ms) begin transaction
1443
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37344"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1444
+  (92.8ms) commit transaction
1445
+  (0.1ms) begin transaction
1446
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36432"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1447
+  (129.2ms) commit transaction
1448
+ Processing by Api::UserController#reauth as HTML
1449
+ Parameters: {"uid"=>"nonexistent-user"}
1450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1451
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
1452
+  (0.1ms) begin transaction
1453
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33449"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1454
+  (144.5ms) commit transaction
1455
+  (0.1ms) begin transaction
1456
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32843"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1457
+  (164.9ms) commit transaction
1458
+ Processing by Api::UserController#reauth as HTML
1459
+ Parameters: {"uid"=>"a1s2d33449"}
1460
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1461
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
1462
+ Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1465
+  (0.1ms) begin transaction
1466
+ SQL (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]]
1467
+  (273.2ms) commit transaction
1468
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1469
+  (0.1ms) begin transaction
1470
+  (0.3ms) commit transaction