gds-sso 13.1.0 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5631ed3451bf7a920107d8c4824612ef3ca79d26
4
- data.tar.gz: 9a9cf474fb50419c0f904d337a1a2fc50a345b39
3
+ metadata.gz: 9f4c161463202bb5caf2111be0f9bc790949aa9c
4
+ data.tar.gz: 277d9b63b33fe337b234a898b1bfb169498bdc85
5
5
  SHA512:
6
- metadata.gz: 917c719abe6c0274e0ff6fd21e10a2c7c905814e19e8ccc3d2750b7db65baa8e322bebcdf8c07e2650cb072cb169713ec31d4413347a00590f473f4ce028941a
7
- data.tar.gz: a4382cf7d842114984ccb0292f0d6aa26746eaab57fda2258f7cb08b075f2ba458fbb2c43037ca75805d95843367cf902bd8f348388456bf3b3589faa64888c2
6
+ metadata.gz: e42272e73d5174d05e51f846f0f53335daf1559ba570ff5ef60c65bbc4b51c29d881cf24a91fdf773633dfcf008567d321400d68d598fffa0f6103386e8e756b
7
+ data.tar.gz: b7ee2256c17aba4a9a42861996749f86d2c5d8297985c070caf42097d05db5530ed539492a2d543f68fdabbce107ec99cbb8e5c679af63032db66e9b28a2f37f
data/lib/gds-sso/user.rb CHANGED
@@ -5,16 +5,6 @@ module GDS
5
5
  module User
6
6
  extend ActiveSupport::Concern
7
7
 
8
- def self.below_rails_4?
9
- Gem.loaded_specs['rails'] && Gem.loaded_specs['rails'].version < Gem::Version.new("4.0")
10
- end
11
-
12
- included do
13
- if GDS::SSO::User.below_rails_4? && respond_to?(:attr_accessible)
14
- attr_accessible :uid, :email, :name, :permissions, :organisation_slug, :organisation_content_id, :disabled, as: :oauth
15
- end
16
- end
17
-
18
8
  def has_permission?(permission)
19
9
  if permissions
20
10
  permissions.include?(permission)
@@ -48,18 +38,10 @@ module GDS
48
38
  self.where(:email => user_params['email']).first
49
39
 
50
40
  if user
51
- if GDS::SSO::User.below_rails_4?
52
- user.update_attributes(user_params, as: :oauth)
53
- else
54
- user.update_attributes(user_params)
55
- end
41
+ user.update_attributes(user_params)
56
42
  user
57
43
  else # Create a new user.
58
- if GDS::SSO::User.below_rails_4?
59
- self.create!(user_params, as: :oauth)
60
- else
61
- self.create!(user_params)
62
- end
44
+ create!(user_params)
63
45
  end
64
46
  end
65
47
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "13.1.0"
3
+ VERSION = "13.2.0"
4
4
  end
5
5
  end
@@ -29,11 +29,6 @@ describe Api::UserController, type: :controller do
29
29
  :name => "SSO Push user",
30
30
  :permissions => ["signin", "user_update_permission"] }]
31
31
 
32
- if GDS::SSO::User.below_rails_4?
33
- user_to_update_attrs << { as: :oauth }
34
- signon_sso_push_user_attrs << { as: :oauth }
35
- end
36
-
37
32
  @user_to_update = User.create!(*user_to_update_attrs)
38
33
  @signon_sso_push_user = User.create!(*signon_sso_push_user_attrs)
39
34
  end
@@ -1,84 +1,81 @@
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)
1
+  (24.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (15.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (31.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
6
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
4
+  (44.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
5
   (0.1ms) begin 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
6
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36712"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
7
+  (25.7ms) commit transaction
8
+  (0.1ms) begin transaction
9
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36205"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
10
+  (13.2ms) commit transaction
11
+ Processing by Api::UserController#reauth as HTML
12
+ Parameters: {"uid"=>"nonexistent-user"}
13
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
14
+ Completed 200 OK in 6ms (ActiveRecord: 0.2ms)
15
+  (0.1ms) begin transaction
16
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35653"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
17
+  (35.2ms) commit transaction
11
18
   (0.1ms) begin transaction
12
-  (0.1ms) commit transaction
19
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39384"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
20
+  (18.1ms) commit transaction
21
+ Processing by Api::UserController#reauth as HTML
22
+ Parameters: {"uid"=>"a1s2d35653"}
23
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35653"]]
24
+  (0.1ms) begin transaction
25
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
26
+  (16.7ms) commit transaction
27
+ Completed 200 OK in 21ms (ActiveRecord: 17.1ms)
28
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
13
29
   (0.1ms) begin 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
30
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39946"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
31
+  (9.6ms) commit transaction
16
32
   (0.1ms) begin 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
- Processing by Api::UserController#update as HTML
20
- Parameters: {"uid"=>"a1s2d35531"}
33
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34132"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
34
+  (13.1ms) commit transaction
35
+ Processing by Api::UserController#reauth as HTML
36
+ Parameters: {"uid"=>"a1s2d39946"}
21
37
  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)
38
+ Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
23
39
   (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
26
-  (0.2ms) begin transaction
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
40
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39843"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
41
+  (18.1ms) commit transaction
42
+  (0.1ms) begin transaction
43
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34615"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
44
+  (15.5ms) commit transaction
29
45
  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"]]
46
+ Parameters: {"uid"=>"a1s2d39843"}
47
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39843"]]
32
48
   (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]]
49
+ 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", 7]]
50
+  (18.3ms) commit transaction
51
+ Completed 200 OK in 23ms (ActiveRecord: 18.7ms)
52
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
37
53
   (0.1ms) begin 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
54
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3479"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
55
+  (10.7ms) commit transaction
40
56
   (0.1ms) begin transaction
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"}
57
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36505"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
58
+  (9.8ms) commit transaction
59
+ Processing by Api::UserController#update as HTML
60
+ Parameters: {"uid"=>"a1s2d3479"}
45
61
  Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
46
62
  Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
63
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
64
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
47
65
   (0.1ms) begin 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
50
-  (0.1ms) begin 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
53
- Processing by Api::UserController#reauth as HTML
54
- Parameters: {"uid"=>"nonexistent-user"}
55
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
56
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
57
-  (0.1ms) begin 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
-  (0.1ms) begin 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
- Processing by Api::UserController#reauth as HTML
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
+ 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]]
67
+  (13.5ms) commit transaction
68
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
66
69
   (0.1ms) begin transaction
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
- 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-11-25 13:43:28 +0000
70
+  (0.1ms) commit transaction
71
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
72
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
76
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
73
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
77
74
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
78
75
   (0.1ms) begin transaction
79
76
  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]]
80
-  (22.7ms) commit transaction
81
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
77
+  (52.1ms) commit transaction
78
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
82
79
   (0.1ms) begin transaction
83
80
   (0.1ms) commit transaction
84
81
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
@@ -89,14 +86,17 @@ Processing by ExampleController#this_requires_signin_permission as JSON
89
86
   (0.1ms) commit transaction
90
87
   (0.1ms) begin transaction
91
88
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
92
-  (20.5ms) commit transaction
89
+  (9.7ms) commit transaction
93
90
  Rendered text template (0.0ms)
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
91
+ Completed 200 OK in 386ms (Views: 1.4ms | ActiveRecord: 63.5ms)
92
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
96
93
  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
94
+ Completed in 17ms (ActiveRecord: 0.0ms)
95
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
99
96
  Processing by ExampleController#restricted as JSON
97
+ Completed in 29ms (ActiveRecord: 0.0ms)
98
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
99
+ Processing by ExampleController#this_requires_signin_permission 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
@@ -112,173 +112,151 @@ Processing by ExampleController#restricted as JSON
112
112
   (0.1ms) begin transaction
113
113
   (0.1ms) commit transaction
114
114
  Rendered text template (0.0ms)
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
115
+ Completed 200 OK in 73ms (Views: 0.3ms | ActiveRecord: 1.0ms)
116
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
117
117
  Processing by ExampleController#this_requires_signin_permission as HTML
118
118
  Authenticating with gds_sso strategy
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
119
+ Completed in 0ms (ActiveRecord: 0.0ms)
120
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
121
+ Started GET "/auth/gds/callback?code=de1b1f9a5f817b4c5056335f3605ea461d9af17cc482b46464b7c6c5c2dadf7d&state=3b9f926e0d91f1510f4eb1ae914e097c934e99c0f7e00835" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
122
122
  Processing by AuthenticationsController#callback as HTML
123
- Parameters: {"code"=>"0406dfb10516969c1d7102990e91b9550ed0e008047d796666d1ec39a2eaab84", "state"=>"3ee46c89f5795b1b78505adce93de7186356f53217a16f0f"}
123
+ Parameters: {"code"=>"de1b1f9a5f817b4c5056335f3605ea461d9af17cc482b46464b7c6c5c2dadf7d", "state"=>"3b9f926e0d91f1510f4eb1ae914e097c934e99c0f7e00835"}
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
-  (14.3ms) commit transaction
128
+  (81.7ms) commit transaction
129
129
   (0.1ms) begin transaction
130
130
   (0.1ms) commit transaction
131
131
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
132
+ Completed 302 Found in 88ms (ActiveRecord: 82.3ms)
133
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +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
- 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-11-25 13:43:40 +0000
137
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
138
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +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-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
142
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
143
+ Started GET "/auth/gds/callback?code=81a39364e7be9158e0087c8d911cd1bf803a2ec649d26ad2c3cf6e87e1d0c65f&state=8006dd92f3a1ce45dfda380f87af525550a0c04630cc18ac" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
144
144
  Processing by AuthenticationsController#callback as HTML
145
- Parameters: {"code"=>"fb325e6a959f5b4ceb5f764cc26ce406d4b9cc94eed40f9fa08ddddc0a15cdd5", "state"=>"89f87e3d60b0acb5331152ca5ab604dba94898cbcb0a9f2c"}
145
+ Parameters: {"code"=>"81a39364e7be9158e0087c8d911cd1bf803a2ec649d26ad2c3cf6e87e1d0c65f", "state"=>"8006dd92f3a1ce45dfda380f87af525550a0c04630cc18ac"}
146
146
  Authenticating with gds_sso strategy
147
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
148
148
   (0.1ms) begin transaction
149
149
   (0.1ms) commit transaction
150
150
   (0.1ms) begin transaction
151
151
   (0.1ms) commit transaction
152
152
  Redirected to http://www.example-client.com/this_requires_signin_permission
153
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
154
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
153
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
154
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +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-11-25 13:43:40 +0000
159
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:38 +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-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
163
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
164
+ Started GET "/auth/gds/callback?code=62941e74cdcee54d19756dc8d4878b1842ae56c3f476128a16a4786bbdf6af50&state=1cad8d6d414084b60e21cb12cd8e1cabaddf906cf35b73a5" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
165
165
  Processing by AuthenticationsController#callback as HTML
166
- Parameters: {"code"=>"711606807dc7895ccb50ecf6d9c24d870400cac80b29f2b478be367053266b80", "state"=>"5ef7eedc4153066bb139dd97e198fc8c0c47f7f24c6ad82a"}
166
+ Parameters: {"code"=>"62941e74cdcee54d19756dc8d4878b1842ae56c3f476128a16a4786bbdf6af50", "state"=>"1cad8d6d414084b60e21cb12cd8e1cabaddf906cf35b73a5"}
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
170
   (0.1ms) commit transaction
171
-  (0.1ms) begin transaction
171
+  (0.0ms) begin transaction
172
172
   (0.1ms) commit transaction
173
173
  Redirected to http://www.example-client.com/restricted
174
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
175
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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.3ms | ActiveRecord: 0.1ms)
180
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:40 +0000
179
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
180
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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-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
184
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
185
+ Started GET "/auth/gds/callback?code=135beefaeab8cbb75e0c23bfe939009fe38e4ca915fdaf79a52a7b4cd07ac7e9&state=d4aab73e45047f92804335bae78a926312ef65d6ce7d9fd0" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
186
186
  Processing by AuthenticationsController#callback as HTML
187
- Parameters: {"code"=>"c7121cd1cea22a0d021cbdb4beef41fbeddc85b6bb0b8fd7268230456d5a573d", "state"=>"5eed248724c469fac15036a056c5d65e577790d7fe7b1e69"}
187
+ Parameters: {"code"=>"135beefaeab8cbb75e0c23bfe939009fe38e4ca915fdaf79a52a7b4cd07ac7e9", "state"=>"d4aab73e45047f92804335bae78a926312ef65d6ce7d9fd0"}
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
192
   (0.1ms) begin transaction
193
-  (0.2ms) commit transaction
193
+  (0.1ms) commit transaction
194
194
  Redirected to http://www.example-client.com/restricted
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
195
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
196
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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
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
201
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
206
202
  Processing by ExampleController#restricted as HTML
207
203
  Authenticating with gds_sso strategy
208
204
  Completed in 0ms (ActiveRecord: 0.0ms)
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
205
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
206
+ Started GET "/auth/gds/callback?code=4755abe3e81e73b9d8aeb594407867d2d86d6b9c42f88e1152959404f6a376ec&state=5484c7035dcf78a67094e81301c4342219bfe24f5e1ba124" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
211
207
  Processing by AuthenticationsController#callback as HTML
212
- Parameters: {"code"=>"e273b6559260f3bd87eb3087e91a591c7902f3a7d089611b83811612afe110d7", "state"=>"b3fa9d11984ff8b4842f4e48662dd782783279dc6b99696b"}
208
+ Parameters: {"code"=>"4755abe3e81e73b9d8aeb594407867d2d86d6b9c42f88e1152959404f6a376ec", "state"=>"5484c7035dcf78a67094e81301c4342219bfe24f5e1ba124"}
213
209
  Authenticating with gds_sso strategy
214
210
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
215
211
   (0.1ms) begin transaction
216
212
   (0.1ms) commit transaction
217
-  (0.1ms) begin transaction
213
+  (0.0ms) begin transaction
218
214
   (0.1ms) commit transaction
219
215
  Redirected to http://www.example-client.com/restricted
220
216
  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
217
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
222
218
  Processing by ExampleController#restricted as HTML
223
219
  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"]]
224
220
  Rendered text template (0.0ms)
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
221
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
222
+ Started GET "/" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
223
+ Processing by ExampleController#index as HTML
224
+ Rendered text template (0.0ms)
225
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
226
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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-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
230
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
231
+ Started GET "/auth/gds/callback?code=de9732b79db33c8d7a6bdd545f54ae922c0676b29118451c314ec444767e3ff2&state=21c7e39676db8e33228d0d8b9ed5592365cd7d72446c9a7f" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
232
232
  Processing by AuthenticationsController#callback as HTML
233
- Parameters: {"code"=>"c6a66a12344832afab9212d4e958f24b8afc11e916094fcd85c2e3f0a2c19ed0", "state"=>"ea7fb51110108ccc0bae549b117fdd085f59962ee2574d55"}
233
+ Parameters: {"code"=>"de9732b79db33c8d7a6bdd545f54ae922c0676b29118451c314ec444767e3ff2", "state"=>"21c7e39676db8e33228d0d8b9ed5592365cd7d72446c9a7f"}
234
234
  Authenticating with gds_sso strategy
235
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
235
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
236
236
   (0.1ms) begin transaction
237
237
   (0.1ms) commit transaction
238
238
   (0.1ms) begin transaction
239
239
   (0.1ms) commit transaction
240
240
  Redirected to http://www.example-client.com/restricted
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
241
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
242
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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)
246
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
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
-  (0.1ms) begin transaction
249
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
250
-  (32.1ms) commit transaction
251
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:43:41 +0000
246
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
247
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:39 +0000
252
248
  Processing by ExampleController#restricted as HTML
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
- Authenticating with gds_sso strategy
255
- Completed in 1ms (ActiveRecord: 0.1ms)
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
- Processing by AuthenticationsController#callback as HTML
259
- Parameters: {"code"=>"91b37d0ce383321139a08eca982c84913d700302e93332efe20934390b11cefb", "state"=>"e31feeb10724049b767acdeb26b0e740815c99b933970a73"}
260
249
  Authenticating with gds_sso strategy
261
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
262
-  (0.1ms) begin 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
- Redirected to http://www.example-client.com/restricted
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
- Processing by ExampleController#restricted as HTML
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
- Rendered text template (0.0ms)
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
250
+ Completed in 1ms (ActiveRecord: 0.0ms)
251
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:39 +0000
252
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
275
253
  Processing by ExampleController#restricted as HTML
276
254
  Authenticating with gds_sso strategy
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
255
+ Completed in 0ms (ActiveRecord: 0.0ms)
256
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
257
+ Started GET "/auth/gds/callback?code=b0c0798cd4048315f2195c7f6c46ce9f1484e5e3dca69e63888d363df233d593&state=3d3a16c647c1d6c5263992925b92da57c3c361827d012892" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
280
258
  Processing by AuthenticationsController#callback as HTML
281
- Parameters: {"code"=>"3b99a00462a1dfe651f70163d62ebf212b8f2f1efd089c2a86ff37db4246ea63", "state"=>"5244721127270573b884a62a75f352bbc73b9ff910a58055"}
259
+ Parameters: {"code"=>"b0c0798cd4048315f2195c7f6c46ce9f1484e5e3dca69e63888d363df233d593", "state"=>"3d3a16c647c1d6c5263992925b92da57c3c361827d012892"}
282
260
  Authenticating with gds_sso strategy
283
261
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
284
262
   (0.2ms) begin transaction
@@ -286,419 +264,376 @@ Authenticating with gds_sso strategy
286
264
   (0.1ms) begin transaction
287
265
   (0.1ms) commit transaction
288
266
  Redirected to http://www.example-client.com/restricted
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
267
+ Completed 302 Found in 39ms (ActiveRecord: 0.6ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
291
269
  Processing by ExampleController#restricted as HTML
292
270
  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
271
  Rendered text template (0.0ms)
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
272
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
273
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:08:40 +0000
296
274
  Processing by ExampleController#restricted as HTML
297
- Authenticating with gds_sso strategy
298
- Completed in 1ms (ActiveRecord: 0.0ms)
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
275
+ 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"]]
276
+ Rendered text template (0.0ms)
277
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
278
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
301
279
  Processing by ExampleController#restricted as HTML
302
280
  Authenticating with gds_sso strategy
303
281
  Completed in 0ms (ActiveRecord: 0.0ms)
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
282
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
283
+ Started GET "/auth/gds/callback?code=21d581ed8bbb4d27a73cc823b03adeb098300af5f279362c46c72daa26fe2956&state=0aca4107c24efac67ba0dca7998edb05c6ec90a4b6cb65d5" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
306
284
  Processing by AuthenticationsController#callback as HTML
307
- Parameters: {"code"=>"f28e50fefafb715670f3ddf85ead5a9fdf3164e254f40725781643754a7bd72e", "state"=>"e4fef793d433c8cbf96ea7ed2e6ce7c7a60a08a8947785ca"}
285
+ Parameters: {"code"=>"21d581ed8bbb4d27a73cc823b03adeb098300af5f279362c46c72daa26fe2956", "state"=>"0aca4107c24efac67ba0dca7998edb05c6ec90a4b6cb65d5"}
308
286
  Authenticating with gds_sso strategy
309
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
310
-  (0.1ms) begin transaction
311
-  (0.1ms) commit transaction
312
-  (0.1ms) begin transaction
313
-  (0.1ms) commit transaction
287
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
288
+  (0.1ms) begin transaction
289
+  (0.1ms) commit transaction
290
+  (0.1ms) begin transaction
291
+  (0.1ms) commit transaction
314
292
  Redirected to http://www.example-client.com/restricted
315
293
  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
294
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
317
295
  Processing by ExampleController#restricted as HTML
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"]]
296
+ 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
297
  Rendered text template (0.0ms)
320
298
  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
299
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
300
+ Processing by ExampleController#restricted as HTML
301
+ Authenticating with gds_sso strategy
302
+ Completed in 1ms (ActiveRecord: 0.0ms)
303
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
304
+ Started GET "/auth/gds/callback?code=cb65563af847e5f0ee8f1f31521243ba6a7be4dd39af40faf65963f2eab5cfe3&state=8cb244238e8c33ecaec6d1dfc96948214da200a484a9042c" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
305
+ Processing by AuthenticationsController#callback as HTML
306
+ Parameters: {"code"=>"cb65563af847e5f0ee8f1f31521243ba6a7be4dd39af40faf65963f2eab5cfe3", "state"=>"8cb244238e8c33ecaec6d1dfc96948214da200a484a9042c"}
307
+ Authenticating with gds_sso strategy
308
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
309
+  (0.1ms) begin transaction
310
+  (0.1ms) commit transaction
311
+  (0.1ms) begin transaction
312
+  (0.1ms) commit transaction
313
+ Redirected to http://www.example-client.com/restricted
314
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
315
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
322
316
  Processing by ExampleController#restricted as HTML
323
317
  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
318
  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
319
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
320
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
327
321
  Processing by ExampleController#restricted as HTML
328
322
  Authenticating with gds_sso strategy
329
323
  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
324
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
325
+ Started GET "/auth/gds/callback?code=a3cfeb5bc3f0559f6c71b07255dbbcaaf14106a2bfdd84f3ef6da71999a12751&state=cdaa23b210d09c4b22389cde774e4cf95f5b42113f5ef06c" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
332
326
  Processing by AuthenticationsController#callback as HTML
333
- Parameters: {"code"=>"6f7d011b37482536e90ab3d297ba7577b3e4b6db2297f06d1da2b0af5e7cd630", "state"=>"79f487227727059b4a1f1f3c11e85c063f4c80673f1c91b2"}
327
+ Parameters: {"code"=>"a3cfeb5bc3f0559f6c71b07255dbbcaaf14106a2bfdd84f3ef6da71999a12751", "state"=>"cdaa23b210d09c4b22389cde774e4cf95f5b42113f5ef06c"}
334
328
  Authenticating with gds_sso strategy
335
329
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
336
330
   (0.1ms) begin transaction
337
331
   (0.1ms) commit transaction
338
-  (0.1ms) begin transaction
332
+  (0.0ms) begin transaction
339
333
   (0.1ms) commit transaction
340
334
  Redirected to http://www.example-client.com/restricted
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
335
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
336
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
343
337
  Processing by ExampleController#restricted as HTML
344
338
  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"]]
345
339
  Rendered text template (0.0ms)
346
340
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
347
- Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:48:42 +0000
341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
342
+  (0.1ms) begin transaction
343
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
344
+  (35.6ms) commit transaction
345
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
348
346
  Processing by ExampleController#restricted as HTML
347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
349
348
  Authenticating with gds_sso strategy
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
349
+ Completed in 1ms (ActiveRecord: 0.1ms)
350
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
351
+ Started GET "/auth/gds/callback?code=2f79647f0aad9bb1826d098bffa2c472a3ff75927c4c08965f33a23a26e440e7&state=3751200c9e5faef8aed92355841f12ffa40faf3f2a3fb047" for 127.0.0.1 at 2016-12-20 12:13:41 +0000
353
352
  Processing by AuthenticationsController#callback as HTML
354
- Parameters: {"code"=>"88adb4c72e3a5a871dc1ba32021f4e7d210e6fac394e386579b5d9f1c3fdd553", "state"=>"4fea53313bf70e131656e8dd79083d763d4332b7e17cf8d2"}
353
+ Parameters: {"code"=>"2f79647f0aad9bb1826d098bffa2c472a3ff75927c4c08965f33a23a26e440e7", "state"=>"3751200c9e5faef8aed92355841f12ffa40faf3f2a3fb047"}
355
354
  Authenticating with gds_sso strategy
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
355
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
356
+  (0.1ms) begin transaction
357
+  (0.1ms) commit transaction
358
+  (0.1ms) begin transaction
359
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
360
+  (9.6ms) commit transaction
361
361
  Redirected to http://www.example-client.com/restricted
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
362
+ Completed 302 Found in 15ms (ActiveRecord: 10.0ms)
363
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:41 +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
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)
368
+  (50.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')
369
+  (28.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-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
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
376
-  (0.1ms) begin transaction
377
-  (0.1ms) commit transaction
378
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
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
-  (0.1ms) begin transaction
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
-  (50.4ms) commit transaction
383
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
372
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-12-20 12:13:53 UTC], ["updated_at", 2016-12-20 12:13:53 UTC]]
373
+  (33.5ms) commit transaction
374
+  (13.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
375
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
384
376
   (0.1ms) begin transaction
385
377
   (0.1ms) commit transaction
386
-  (0.1ms) begin transaction
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
389
-  (0.1ms) begin 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)
397
-  (0.1ms) begin transaction
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
400
-  (0.1ms) begin transaction
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)
407
-  (0.1ms) begin transaction
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
410
-  (0.1ms) begin transaction
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]]
416
-  (0.1ms) begin transaction
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
378
+ Started GET "/" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
379
+ Processing by ExampleController#index as HTML
380
+ Rendering text template
381
+ Rendered text template (0.0ms)
382
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
383
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
447
384
  Processing by ExampleController#restricted as HTML
448
385
  Authenticating with gds_sso strategy
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
386
+ Completed in 10ms (ActiveRecord: 0.0ms)
387
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
388
+ Started GET "/auth/gds/callback?code=b53a54e8b0b3cbdfabdc8a15b70ed0aa08fe90dd93f967f52093010b75deca87&state=75a80f5775406deb80c295cf799b777f47d1fa156a6eddfe" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
452
389
  Processing by AuthenticationsController#callback as HTML
453
- Parameters: {"code"=>"20e5974b28bfda5733c3cf3ee87d0f8ac998ae732db51dcbd2cc21f94db3a7ca", "state"=>"89a9ffe6907fbf149376136993a1a3dd5fe6d97223b5fa83"}
390
+ Parameters: {"code"=>"b53a54e8b0b3cbdfabdc8a15b70ed0aa08fe90dd93f967f52093010b75deca87", "state"=>"75a80f5775406deb80c295cf799b777f47d1fa156a6eddfe"}
454
391
  Authenticating with gds_sso strategy
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]]
392
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
393
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
457
394
   (0.1ms) begin transaction
458
395
  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
396
+  (7.4ms) commit transaction
460
397
   (0.1ms) begin 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
398
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
399
+  (9.3ms) commit transaction
463
400
  Redirected to http://www.example-client.com/restricted
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
401
+ Completed 302 Found in 51ms (ActiveRecord: 18.5ms)
402
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
466
403
  Processing by ExampleController#restricted as HTML
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]]
404
+ 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]]
468
405
  Rendering text template
469
406
  Rendered text template (0.0ms)
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
407
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
408
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
472
409
  Processing by ExampleController#this_requires_signin_permission as HTML
473
410
  Authenticating with gds_sso strategy
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
411
+ Completed in 0ms (ActiveRecord: 0.0ms)
412
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
413
+ Started GET "/auth/gds/callback?code=2dff3e30ade4d365c8963faf730f164a395b501db877cfcdf7e523a995519d44&state=b73d837ffa9c011e212f1292017d24b7a1a040de5d6f0ac9" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
477
414
  Processing by AuthenticationsController#callback as HTML
478
- Parameters: {"code"=>"d9fce11583aecbac87e2f6d47bb6e16808e7975493bdf51cfff2486ed0c3ee6f", "state"=>"a314d62a587f324f4677a42240877eeafb1aa2868a6e8add"}
415
+ Parameters: {"code"=>"2dff3e30ade4d365c8963faf730f164a395b501db877cfcdf7e523a995519d44", "state"=>"b73d837ffa9c011e212f1292017d24b7a1a040de5d6f0ac9"}
479
416
  Authenticating with gds_sso strategy
480
417
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
481
418
   (0.1ms) begin transaction
482
419
   (0.1ms) commit transaction
483
420
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
421
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
422
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
486
423
  Processing by ExampleController#this_requires_signin_permission as HTML
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]]
424
+ 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]]
488
425
  Rendering text template
489
426
  Rendered text template (0.0ms)
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
427
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
428
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
492
429
  Processing by ExampleController#this_requires_signin_permission as HTML
493
430
  Authenticating with gds_sso strategy
494
431
  Completed in 0ms (ActiveRecord: 0.0ms)
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
432
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
433
+ Started GET "/auth/gds/callback?code=2b1e005823ea196c061b627a79d864db70127925341c1bd635a2f76e1c976455&state=0a0fba517482b78dcc12e46edad4a167ec962019cb53bb72" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
497
434
  Processing by AuthenticationsController#callback as HTML
498
- Parameters: {"code"=>"6e3eb4fa26ff4b043ec518a09c79e706aa089ed45f288298c49a230e5351d616", "state"=>"0c61be3bded0f5f657cd3d29653417788c385768c992d61d"}
435
+ Parameters: {"code"=>"2b1e005823ea196c061b627a79d864db70127925341c1bd635a2f76e1c976455", "state"=>"0a0fba517482b78dcc12e46edad4a167ec962019cb53bb72"}
499
436
  Authenticating with gds_sso strategy
500
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
437
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
501
438
   (0.1ms) begin transaction
502
439
   (0.1ms) commit transaction
503
440
  Redirected to http://www.example-client.com/this_requires_signin_permission
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
441
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
442
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
506
443
  Processing by ExampleController#this_requires_signin_permission as HTML
507
444
  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]]
508
445
  Rendering text template
509
446
  Rendered text template (0.0ms)
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
447
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
448
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
517
449
  Processing by ExampleController#restricted as HTML
518
450
  Authenticating with gds_sso strategy
519
- Completed in 0ms (ActiveRecord: 0.0ms)
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
451
+ Completed in 1ms (ActiveRecord: 0.0ms)
452
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
453
+ Started GET "/auth/gds/callback?code=2fe545bca5ab9ced8a80b07063bf7005b1ba3b2b3fc02c370f1fd0ea366535e1&state=b6cec9870ae3c453c1ce03e01a251bad2134617d3a92b425" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
522
454
  Processing by AuthenticationsController#callback as HTML
523
- Parameters: {"code"=>"fc3efc5ff3e6060cea9e71bb6e6f3e4a80fc3d949453918978e3f2438d96aa76", "state"=>"8841e8604f5e521c89e68560267b5ac26804f9f55030e105"}
455
+ Parameters: {"code"=>"2fe545bca5ab9ced8a80b07063bf7005b1ba3b2b3fc02c370f1fd0ea366535e1", "state"=>"b6cec9870ae3c453c1ce03e01a251bad2134617d3a92b425"}
524
456
  Authenticating with gds_sso strategy
525
457
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
526
458
   (0.1ms) begin transaction
527
459
   (0.1ms) commit transaction
528
460
  Redirected to http://www.example-client.com/restricted
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
461
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
462
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
531
463
  Processing by ExampleController#restricted as HTML
532
464
  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]]
533
465
  Rendering text template
534
466
  Rendered text template (0.0ms)
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
467
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
468
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
537
469
  Processing by ExampleController#restricted as HTML
538
470
  Authenticating with gds_sso strategy
539
471
  Completed in 0ms (ActiveRecord: 0.0ms)
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
472
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
473
+ Started GET "/auth/gds/callback?code=9e72ca947db57c4a38a57cebb7278dc1136149a72edcdce5b9b5da90f9a6b332&state=a1db84704077308e11bc62eb6f4eb9abc0c1101a0d5e534a" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
542
474
  Processing by AuthenticationsController#callback as HTML
543
- Parameters: {"code"=>"37e4f12f3139b7f09ca5138a666348adbe2de9fef12018724e8c9b4599e50f1b", "state"=>"d0de14ea6a33f30df7db5659413a176dfc1e367582af40f6"}
475
+ Parameters: {"code"=>"9e72ca947db57c4a38a57cebb7278dc1136149a72edcdce5b9b5da90f9a6b332", "state"=>"a1db84704077308e11bc62eb6f4eb9abc0c1101a0d5e534a"}
544
476
  Authenticating with gds_sso strategy
545
477
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
546
478
   (0.1ms) begin transaction
547
479
   (0.1ms) commit transaction
548
480
  Redirected to http://www.example-client.com/restricted
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
481
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
482
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
551
483
  Processing by ExampleController#restricted as HTML
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]]
484
+ 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]]
553
485
  Rendering text template
554
486
  Rendered text template (0.0ms)
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
487
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
488
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
557
489
  Processing by ExampleController#restricted as HTML
558
490
  Authenticating with gds_sso strategy
559
491
  Completed in 0ms (ActiveRecord: 0.0ms)
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
492
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
493
+ Started GET "/auth/gds/callback?code=f754f3fc8f691d7761bb423ce1a32714eb5033a9ec610293b36b3f960bed6326&state=d53ac52bd80f458329539de3659c9930f94961c168bb7ff3" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
562
494
  Processing by AuthenticationsController#callback as HTML
563
- Parameters: {"code"=>"6c9bfeb102f4e0e1120398cfc1c1c31cba3f4cb3f85ff8ae0385a0f0e995ce04", "state"=>"9093f73a23bcecce0e2c374cdbf37f0108cae9bbc6754520"}
495
+ Parameters: {"code"=>"f754f3fc8f691d7761bb423ce1a32714eb5033a9ec610293b36b3f960bed6326", "state"=>"d53ac52bd80f458329539de3659c9930f94961c168bb7ff3"}
564
496
  Authenticating with gds_sso strategy
565
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
497
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
566
498
   (0.1ms) begin transaction
567
499
   (0.1ms) commit transaction
568
500
  Redirected to http://www.example-client.com/restricted
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
501
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
502
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
571
503
  Processing by ExampleController#restricted as HTML
572
504
  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]]
573
505
  Rendering text template
574
506
  Rendered text template (0.0ms)
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
507
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
508
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
509
+  (0.1ms) begin transaction
510
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
511
+  (10.8ms) commit transaction
512
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
577
513
  Processing by ExampleController#restricted as HTML
578
514
  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]]
579
- Rendering text template
580
- Rendered text template (0.0ms)
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
583
- Processing by ExampleController#restricted as HTML
584
515
  Authenticating with gds_sso strategy
585
- Completed in 0ms (ActiveRecord: 0.0ms)
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
516
+ Completed in 2ms (ActiveRecord: 0.2ms)
517
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
518
+ Started GET "/auth/gds/callback?code=93557adfd1170e5330a63bc9d3ccbcd44bcf850746ad17f1b80b32f7bfc6d61e&state=f958569a1792a0691bc38738bc879814229af5d76b183065" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
588
519
  Processing by AuthenticationsController#callback as HTML
589
- Parameters: {"code"=>"c63978b042d97f8a745efc08a3432c13a07692fbedbc4079044b7844dff0d7e8", "state"=>"6c8246395eb6eb3393b389ac551e2522b7d8e70684d8f22e"}
520
+ Parameters: {"code"=>"93557adfd1170e5330a63bc9d3ccbcd44bcf850746ad17f1b80b32f7bfc6d61e", "state"=>"f958569a1792a0691bc38738bc879814229af5d76b183065"}
590
521
  Authenticating with gds_sso strategy
591
522
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
592
523
   (0.1ms) begin transaction
593
524
   (0.1ms) commit transaction
525
+  (0.1ms) begin transaction
526
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
527
+  (12.7ms) commit transaction
594
528
  Redirected to http://www.example-client.com/restricted
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
529
+ Completed 302 Found in 20ms (ActiveRecord: 13.6ms)
530
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
597
531
  Processing by ExampleController#restricted as HTML
598
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]]
599
533
  Rendering text template
600
534
  Rendered text template (0.0ms)
601
535
  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
536
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
608
537
  Processing by ExampleController#restricted as HTML
609
538
  Authenticating with gds_sso strategy
610
539
  Completed in 0ms (ActiveRecord: 0.0ms)
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
540
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
541
+ Started GET "/auth/gds/callback?code=2f4c371ee353aa938a0c0b4884d678c9ca1a3b8f0c4c0ba4f6062409d7a2678b&state=80046ff1a8d68fb5fd872abbbd7a277d13b173fd02bec941" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
613
542
  Processing by AuthenticationsController#callback as HTML
614
- Parameters: {"code"=>"5229ba82ef286c3fde70ffe4fbef3a21d7c703461e48c72ddee14bcb62071076", "state"=>"333d26dd26654d38e2a6868b68a341568167fec3d698aa6e"}
543
+ Parameters: {"code"=>"2f4c371ee353aa938a0c0b4884d678c9ca1a3b8f0c4c0ba4f6062409d7a2678b", "state"=>"80046ff1a8d68fb5fd872abbbd7a277d13b173fd02bec941"}
615
544
  Authenticating with gds_sso strategy
616
545
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
617
546
   (0.1ms) begin transaction
618
547
   (0.1ms) commit transaction
619
548
  Redirected to http://www.example-client.com/restricted
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
549
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
550
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
622
551
  Processing by ExampleController#restricted as HTML
623
552
  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]]
624
553
  Rendering text template
625
554
  Rendered text template (0.0ms)
626
555
  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
556
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
628
557
  Processing by ExampleController#restricted as HTML
629
558
  Authenticating with gds_sso strategy
630
559
  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
560
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
561
+ Started GET "/auth/gds/callback?code=cf55602d6aac2394eaa6601b069943fbabbfb2b9648bbd7c3d4e463c1ff20a3a&state=d4945f2e66485f1f80aa6c5b875367524a245bfb194ca9e6" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
633
562
  Processing by AuthenticationsController#callback as HTML
634
- Parameters: {"code"=>"f05a8b4e9102c7eba4fcfcf26b7e9524a7d172427b7765b328cd52a0f107cd38", "state"=>"1f8e53a7b16af9400f9234ee26b862d0a56e7b78e8e8b39b"}
563
+ Parameters: {"code"=>"cf55602d6aac2394eaa6601b069943fbabbfb2b9648bbd7c3d4e463c1ff20a3a", "state"=>"d4945f2e66485f1f80aa6c5b875367524a245bfb194ca9e6"}
635
564
  Authenticating with gds_sso strategy
636
- User Load (0.4ms) 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]]
637
566
   (0.1ms) begin transaction
638
567
   (0.1ms) commit transaction
639
568
  Redirected to http://www.example-client.com/restricted
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
569
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
570
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
642
571
  Processing by ExampleController#restricted as HTML
643
572
  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]]
644
573
  Rendering text template
645
574
  Rendered text template (0.0ms)
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
575
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
576
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
648
577
  Processing by ExampleController#restricted as HTML
649
578
  Authenticating with gds_sso strategy
650
579
  Completed in 0ms (ActiveRecord: 0.0ms)
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
580
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
581
+ Started GET "/auth/gds/callback?code=eda09e29bd8e2830e0075c5db8fe57e905af2effeb707f71ed2d81fad615311e&state=0c893c6f4a0c2c3084337e46e77fbc9f4494a2f5b5d53004" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
653
582
  Processing by AuthenticationsController#callback as HTML
654
- Parameters: {"code"=>"7e818e1c5c01ac8cd30f5b96e84dcb6e0c72ed8b51e4d25ed4db93c9171ca963", "state"=>"a14348956a612958a57fd91a9a5624bdf87c587d20624e33"}
583
+ Parameters: {"code"=>"eda09e29bd8e2830e0075c5db8fe57e905af2effeb707f71ed2d81fad615311e", "state"=>"0c893c6f4a0c2c3084337e46e77fbc9f4494a2f5b5d53004"}
655
584
  Authenticating with gds_sso strategy
656
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
585
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
657
586
   (0.1ms) begin transaction
658
587
   (0.1ms) commit transaction
659
588
  Redirected to http://www.example-client.com/restricted
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
589
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
590
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
662
591
  Processing by ExampleController#restricted as HTML
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]]
592
+ 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]]
664
593
  Rendering text template
665
- Rendered text template (0.0ms)
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]]
668
-  (0.1ms) begin transaction
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
594
+ Rendered text template (0.1ms)
595
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
596
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:56 +0000
672
597
  Processing by ExampleController#restricted as HTML
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]]
674
598
  Authenticating with gds_sso strategy
675
- Completed in 2ms (ActiveRecord: 0.2ms)
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
599
+ Completed in 1ms (ActiveRecord: 0.0ms)
600
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:56 +0000
601
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
602
+ Processing by ExampleController#restricted as HTML
603
+ Authenticating with gds_sso strategy
604
+ Completed in 0ms (ActiveRecord: 0.0ms)
605
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
606
+ Started GET "/auth/gds/callback?code=d9773150bbaed328cbc0e9467a34f1a9e64ea2b90e6bc724f57ed6d02b33887d&state=4db4e0eb8647cf92aa8bc997695258ce59a493270ae07002" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
678
607
  Processing by AuthenticationsController#callback as HTML
679
- Parameters: {"code"=>"5e28167f5be69dda4b0fe3984973b050e9bd032d369589588e6aeda3d3a5c0e1", "state"=>"997f9516ea7ec6ebfe79b80b62812c32aaa75d4a2db1015f"}
608
+ Parameters: {"code"=>"d9773150bbaed328cbc0e9467a34f1a9e64ea2b90e6bc724f57ed6d02b33887d", "state"=>"4db4e0eb8647cf92aa8bc997695258ce59a493270ae07002"}
680
609
  Authenticating with gds_sso strategy
681
610
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
682
611
   (0.1ms) begin transaction
683
612
   (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
687
613
  Redirected to http://www.example-client.com/restricted
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
614
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
615
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
690
616
  Processing by ExampleController#restricted as HTML
691
617
  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]]
692
618
  Rendering text template
693
619
  Rendered text template (0.0ms)
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
620
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
621
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:08:56 +0000
622
+ Processing by ExampleController#restricted as HTML
623
+ 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]]
624
+ Rendering text template
625
+ Rendered text template (0.0ms)
626
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
627
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
628
+ Processing by ExampleController#restricted as JSON
629
+ Completed in 24ms (ActiveRecord: 0.0ms)
630
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
696
631
  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]]
632
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
698
633
   (0.1ms) begin transaction
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]]
634
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
635
+  (16.8ms) commit transaction
636
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
702
637
   (0.1ms) begin transaction
703
638
   (0.1ms) commit transaction
704
639
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
@@ -709,11 +644,11 @@ Processing by ExampleController#this_requires_signin_permission as JSON
709
644
   (0.1ms) commit transaction
710
645
  Rendering text template
711
646
  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
647
+ Completed 200 OK in 97ms (Views: 0.4ms | ActiveRecord: 18.2ms)
648
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
714
649
  Processing by ExampleController#restricted as JSON
715
650
  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
651
+  (0.1ms) begin transaction
717
652
   (0.1ms) commit transaction
718
653
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
719
654
   (0.1ms) begin transaction
@@ -726,203 +661,268 @@ Processing by ExampleController#restricted as JSON
726
661
   (0.1ms) commit transaction
727
662
  Rendering text template
728
663
  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
664
+ Completed 200 OK in 86ms (Views: 0.4ms | ActiveRecord: 1.0ms)
665
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
734
666
  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")
667
+ Completed in 19ms (ActiveRecord: 0.0ms)
668
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
670
+  (0.1ms) begin transaction
671
+ 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]]
672
+  (11.5ms) commit transaction
673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
674
+  (0.1ms) begin transaction
675
+  (0.1ms) commit transaction
676
+  (0.1ms) begin transaction
677
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38884"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
678
+  (11.3ms) commit transaction
679
+  (0.1ms) begin transaction
680
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37324"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
681
+  (5.9ms) commit transaction
682
+ Processing by Api::UserController#reauth as HTML
683
+ Parameters: {"uid"=>"nonexistent-user"}
684
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
685
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
686
+  (0.1ms) begin transaction
687
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38288"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
688
+  (8.7ms) commit transaction
689
+  (0.1ms) begin transaction
690
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36018"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
691
+  (7.0ms) commit transaction
692
+ Processing by Api::UserController#reauth as HTML
693
+ Parameters: {"uid"=>"a1s2d38288"}
694
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
695
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
696
+ Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
697
+  (0.1ms) begin transaction
698
+ SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34383"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
699
+  (17.2ms) commit transaction
700
+  (0.1ms) begin transaction
701
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31988"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
702
+  (8.7ms) commit transaction
703
+ Processing by Api::UserController#reauth as HTML
704
+ Parameters: {"uid"=>"a1s2d34383"}
705
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34383"], ["LIMIT", 1]]
706
+  (0.1ms) begin transaction
707
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 7]]
708
+  (7.6ms) commit transaction
709
+ Completed 200 OK in 11ms (ActiveRecord: 8.1ms)
710
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
711
+  (0.1ms) begin transaction
712
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34858"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
713
+  (8.2ms) commit transaction
714
+  (0.1ms) begin transaction
715
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37304"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
716
+  (9.1ms) commit transaction
717
+ Processing by Api::UserController#update as HTML
718
+ Parameters: {"uid"=>"a1s2d34858"}
719
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34858"], ["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
+  (9.1ms) commit transaction
723
+ Completed 200 OK in 14ms (ActiveRecord: 9.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", "a1s2d38853"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
727
+  (24.6ms) commit transaction
728
+  (0.1ms) begin transaction
729
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3825"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
730
+  (21.1ms) commit transaction
731
+ Processing by Api::UserController#update as HTML
732
+ Parameters: {"uid"=>"a1s2d38853"}
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.1ms)
735
+ Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
736
+  (18.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
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
738
+  (0.1ms) select sqlite_version(*)
739
+  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
740
+ User Load (0.2ms) 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"]]
740
742
   (0.1ms) begin 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
743
+ 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]]
744
+  (17.0ms) 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.1ms) begin transaction
747
+  (0.1ms) commit transaction
748
+  (0.1ms) begin transaction
749
+ SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34590"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
750
+  (49.8ms) commit transaction
743
751
   (0.1ms) begin transaction
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
752
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36466"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
753
+  (127.9ms) commit transaction
746
754
  Processing by Api::UserController#reauth as HTML
747
- Parameters: {"uid"=>"a1s2d31425"}
755
+ Parameters: {"uid"=>"a1s2d34590"}
748
756
  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)
757
+ Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
750
758
   (0.1ms) begin 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
759
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39434"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
760
+  (33.3ms) commit transaction
753
761
   (0.1ms) begin 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
762
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36793"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
+  (57.5ms) commit transaction
756
764
  Processing by Api::UserController#reauth as HTML
757
- Parameters: {"uid"=>"nonexistent-user"}
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)
765
+ Parameters: {"uid"=>"a1s2d39434"}
766
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39434"]]
767
+  (0.1ms) begin transaction
768
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
769
+  (28.2ms) commit transaction
770
+ Completed 200 OK in 32ms (ActiveRecord: 28.6ms)
771
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
760
772
   (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
773
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39628"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
774
+  (21.9ms) commit transaction
763
775
   (0.1ms) begin 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
776
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34159"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
777
+  (45.9ms) commit transaction
766
778
  Processing by Api::UserController#reauth as HTML
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]]
779
+ 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)
774
782
   (0.1ms) begin 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
783
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37093"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
784
+  (29.8ms) commit transaction
777
785
   (0.1ms) begin transaction
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
786
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37407"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
787
+  (26.3ms) commit transaction
780
788
  Processing by Api::UserController#update as HTML
781
- Parameters: {"uid"=>"a1s2d32438"}
789
+ Parameters: {"uid"=>"a1s2d37093"}
782
790
  Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
783
791
  Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
784
792
   (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
793
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34602"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
794
+  (18.3ms) commit transaction
787
795
   (0.1ms) begin transaction
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
796
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32032"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
797
+  (8.4ms) commit transaction
790
798
  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"]]
793
-  (0.1ms) begin transaction
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"]]
800
-  (0.1ms) begin transaction
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"]]
799
+ Parameters: {"uid"=>"a1s2d34602"}
800
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34602"]]
804
801
   (0.1ms) begin 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
808
- Rendered text template (0.0ms)
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
802
+ 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]]
803
+  (56.6ms) commit transaction
804
+ Completed 200 OK in 61ms (ActiveRecord: 57.0ms)
805
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
806
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
811
807
  Processing by ExampleController#restricted as HTML
812
808
  Authenticating with gds_sso strategy
813
809
  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
810
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
811
+ Started GET "/auth/gds/callback?code=e83c574e24c350ff3a8edc04116dd82d5c6d5423807be6f248399172b2249c86&state=1c6f0e587f72cbd849afd01c9e44eb50d3eda24fadf36c2d" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
816
812
  Processing by AuthenticationsController#callback as HTML
817
- Parameters: {"code"=>"f26bab61e3821688dbabf19d7350ce7439de62c6234faac4c5576e87a30d76a4", "state"=>"3c86a804ac28c20971241bd0f80807ffe7d57bc37cf6bb9d"}
813
+ Parameters: {"code"=>"e83c574e24c350ff3a8edc04116dd82d5c6d5423807be6f248399172b2249c86", "state"=>"1c6f0e587f72cbd849afd01c9e44eb50d3eda24fadf36c2d"}
818
814
  Authenticating with gds_sso strategy
819
815
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
816
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
821
817
   (0.1ms) begin transaction
822
818
  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
819
+  (55.8ms) commit transaction
824
820
   (0.1ms) begin transaction
825
821
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
826
-  (246.9ms) commit transaction
822
+  (59.9ms) commit transaction
827
823
  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
824
+ Completed 302 Found in 124ms (ActiveRecord: 116.6ms)
825
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
830
826
  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"]]
827
+ 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"]]
832
828
  Rendered text template (0.0ms)
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
835
- Processing by ExampleController#restricted as HTML
829
+ Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
830
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
831
+ Processing by ExampleController#this_requires_signin_permission as HTML
836
832
  Authenticating with gds_sso strategy
837
833
  Completed in 0ms (ActiveRecord: 0.0ms)
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
834
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
835
+ Started GET "/auth/gds/callback?code=815014e9b0d21da1e755c05a6ec370c5dcf1281a4a0d5163a3ab154749c5e5b9&state=d2f7ed5aa6a311325022c700508774724d382acaf0e7bf63" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
840
836
  Processing by AuthenticationsController#callback as HTML
841
- Parameters: {"code"=>"55112b3e0436989f0cc684e21124051dc9a0c4985ba5bd0c0a3377079f728642", "state"=>"9f2d78f675b870239ed1b7178276eedfd6c16aaea1d543e4"}
837
+ Parameters: {"code"=>"815014e9b0d21da1e755c05a6ec370c5dcf1281a4a0d5163a3ab154749c5e5b9", "state"=>"d2f7ed5aa6a311325022c700508774724d382acaf0e7bf63"}
842
838
  Authenticating with gds_sso strategy
843
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
839
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
844
840
   (0.1ms) begin transaction
845
841
   (0.1ms) commit transaction
846
842
   (0.1ms) begin transaction
847
843
   (0.1ms) commit transaction
848
- Redirected to http://www.example-client.com/restricted
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
851
- Processing by ExampleController#restricted as HTML
844
+ Redirected to http://www.example-client.com/this_requires_signin_permission
845
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
846
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
847
+ Processing by ExampleController#this_requires_signin_permission as HTML
852
848
  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"]]
853
849
  Rendered text template (0.0ms)
854
850
  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
856
- Processing by ExampleController#restricted as HTML
851
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
852
+ Processing by ExampleController#this_requires_signin_permission as HTML
857
853
  Authenticating with gds_sso strategy
858
854
  Completed in 0ms (ActiveRecord: 0.0ms)
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
855
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
856
+ Started GET "/auth/gds/callback?code=5e9b99cb06e1c34740db954da63a7eb2e560d3192cacf8909335c94021848514&state=697b0a2a06803b0b60b94edcfa5e06d51bbffdc801f042e8" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
861
857
  Processing by AuthenticationsController#callback as HTML
862
- Parameters: {"code"=>"97fe3c4a409a4abe1419ac55c829f11c81aafe6b9d2c649676c180aee5c24750", "state"=>"e48e84d3df03d4468e1ab954d55b0486b92fb3e20c979a6f"}
858
+ Parameters: {"code"=>"5e9b99cb06e1c34740db954da63a7eb2e560d3192cacf8909335c94021848514", "state"=>"697b0a2a06803b0b60b94edcfa5e06d51bbffdc801f042e8"}
863
859
  Authenticating with gds_sso strategy
864
860
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
865
861
   (0.1ms) begin transaction
866
862
   (0.1ms) commit transaction
867
863
   (0.1ms) begin transaction
868
864
   (0.1ms) commit transaction
869
- Redirected to http://www.example-client.com/restricted
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
872
- Processing by ExampleController#restricted as HTML
865
+ Redirected to http://www.example-client.com/this_requires_signin_permission
866
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
867
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
868
+ Processing by ExampleController#this_requires_signin_permission as HTML
873
869
  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"]]
874
870
  Rendered text template (0.0ms)
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
877
- Processing by ExampleController#this_requires_signin_permission as HTML
871
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
872
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
873
+ Processing by ExampleController#restricted as HTML
878
874
  Authenticating with gds_sso strategy
879
875
  Completed in 0ms (ActiveRecord: 0.0ms)
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
876
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
877
+ Started GET "/auth/gds/callback?code=f61dc7b0678d75071939e02a36a56ffe8cedfb1080fdbf3ebed8f6457c149323&state=652b84b2aec0cb3cfeaeacec285ccabd80e515f432676b10" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
882
878
  Processing by AuthenticationsController#callback as HTML
883
- Parameters: {"code"=>"b720f5c47ad488aa3c2aa6a9c40b0d98685c585dd69abf70b5a096e9b027a5ec", "state"=>"e3797714256bd03d1b17dd097aba01c38ca2d39b404009fa"}
879
+ Parameters: {"code"=>"f61dc7b0678d75071939e02a36a56ffe8cedfb1080fdbf3ebed8f6457c149323", "state"=>"652b84b2aec0cb3cfeaeacec285ccabd80e515f432676b10"}
884
880
  Authenticating with gds_sso strategy
885
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
886
882
   (0.1ms) begin transaction
887
883
   (0.1ms) commit transaction
888
884
   (0.1ms) begin transaction
889
885
   (0.1ms) commit transaction
890
- Redirected to http://www.example-client.com/this_requires_signin_permission
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
893
- Processing by ExampleController#this_requires_signin_permission as HTML
886
+ Redirected to http://www.example-client.com/restricted
887
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
888
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
889
+ Processing by ExampleController#restricted as HTML
894
890
  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"]]
895
891
  Rendered text template (0.0ms)
896
892
  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
898
- Processing by ExampleController#this_requires_signin_permission as HTML
893
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
894
+ Processing by ExampleController#restricted as HTML
899
895
  Authenticating with gds_sso strategy
900
896
  Completed in 0ms (ActiveRecord: 0.0ms)
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
897
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
898
+ Started GET "/auth/gds/callback?code=ddb00bddd9c83f7f2fef1957866c328b0fbc5497ed58aff9cf450dde57cfd78d&state=37b1f68c09a1a2ab6d6c363cb0bebe09a9bf02f3ed77fc79" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
903
899
  Processing by AuthenticationsController#callback as HTML
904
- Parameters: {"code"=>"1c66b2bc93853363593ce073ddc618681ff20b2bc038e1326e99088b0a7bb8ae", "state"=>"644fa6b26ac85fcbeaf539b0a3b42bdc98118ee7ad3a0fb0"}
900
+ Parameters: {"code"=>"ddb00bddd9c83f7f2fef1957866c328b0fbc5497ed58aff9cf450dde57cfd78d", "state"=>"37b1f68c09a1a2ab6d6c363cb0bebe09a9bf02f3ed77fc79"}
905
901
  Authenticating with gds_sso strategy
906
902
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
907
903
   (0.1ms) begin transaction
908
904
   (0.1ms) commit transaction
909
905
   (0.1ms) begin transaction
910
906
   (0.1ms) commit transaction
911
- Redirected to http://www.example-client.com/this_requires_signin_permission
907
+ Redirected to http://www.example-client.com/restricted
912
908
  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
914
- Processing by ExampleController#this_requires_signin_permission as HTML
909
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
910
+ Processing by ExampleController#restricted as HTML
915
911
  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"]]
916
912
  Rendered text template (0.0ms)
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
913
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
914
+ Started GET "/" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
915
+ Processing by ExampleController#index as HTML
916
+ Rendered text template (0.0ms)
917
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
918
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
919
919
  Processing by ExampleController#restricted as HTML
920
920
  Authenticating with gds_sso strategy
921
921
  Completed in 0ms (ActiveRecord: 0.0ms)
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
922
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
923
+ Started GET "/auth/gds/callback?code=5d782eb8f92316cc6e1c2aa278e5bdb71e9c1fb7aa5d295ccf21198682694534&state=d3cfca2752cbf51b944c5e70e1738df35602e8c3f640ab23" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
924
924
  Processing by AuthenticationsController#callback as HTML
925
- Parameters: {"code"=>"0eef37849744379db73f6df0c3a9c1ab11cc6c0454e8ec59f6c624edc9a3d83d", "state"=>"3fac31e26fef953d07e1ea1a622e890654fcd4be2be1971f"}
925
+ Parameters: {"code"=>"5d782eb8f92316cc6e1c2aa278e5bdb71e9c1fb7aa5d295ccf21198682694534", "state"=>"d3cfca2752cbf51b944c5e70e1738df35602e8c3f640ab23"}
926
926
  Authenticating with gds_sso strategy
927
927
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
928
928
   (0.1ms) begin transaction
@@ -931,40 +931,40 @@ Authenticating with gds_sso strategy
931
931
   (0.1ms) commit transaction
932
932
  Redirected to http://www.example-client.com/restricted
933
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
934
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
935
935
  Processing by ExampleController#restricted as HTML
936
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"]]
937
937
  Rendered text template (0.0ms)
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
938
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
939
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
940
940
  Processing by ExampleController#restricted as HTML
941
941
  Authenticating with gds_sso strategy
942
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
943
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
944
+ Started GET "/auth/gds/callback?code=1b136b2495606a2bf087a88aaf75a16938bc4c46478aaaf986b56dd879ee0741&state=b0bd5ae90cd2d6153d28844ec95ab09ff0f0a6872cec177b" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
945
945
  Processing by AuthenticationsController#callback as HTML
946
- Parameters: {"code"=>"4a535912bbaf726c29f2ba86838fa2508865787d2c2f97a34de60fc2db09577d", "state"=>"e2593e5b8190f1f67f5bb52ed37c69f96671e51442786701"}
946
+ Parameters: {"code"=>"1b136b2495606a2bf087a88aaf75a16938bc4c46478aaaf986b56dd879ee0741", "state"=>"b0bd5ae90cd2d6153d28844ec95ab09ff0f0a6872cec177b"}
947
947
  Authenticating with gds_sso strategy
948
948
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
949
949
   (0.1ms) begin transaction
950
-  (0.3ms) commit transaction
950
+  (0.1ms) commit transaction
951
951
   (0.1ms) begin transaction
952
952
   (0.1ms) commit transaction
953
953
  Redirected to http://www.example-client.com/restricted
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
954
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
955
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
956
956
  Processing by ExampleController#restricted as HTML
957
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
958
+ Rendered text template (0.0ms)
959
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
960
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
961
961
  Processing by ExampleController#restricted as HTML
962
962
  Authenticating with gds_sso strategy
963
963
  Completed in 0ms (ActiveRecord: 0.0ms)
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
964
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
965
+ Started GET "/auth/gds/callback?code=03db107ba23a498b84abac261855f02c826e2cc5911ac3472d5d24adf6735430&state=cce2324be8ea1af35578a28cbab9fc3f7ff1ba2058e318b2" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
966
966
  Processing by AuthenticationsController#callback as HTML
967
- Parameters: {"code"=>"9f1f0a040a9a52aafc0f018f32e878ebe193a739f6da233a6d5ac70832085d5b", "state"=>"3e8d2364176666119009c02519aca7cdcd154c763e9e7f98"}
967
+ Parameters: {"code"=>"03db107ba23a498b84abac261855f02c826e2cc5911ac3472d5d24adf6735430", "state"=>"cce2324be8ea1af35578a28cbab9fc3f7ff1ba2058e318b2"}
968
968
  Authenticating with gds_sso strategy
969
969
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
970
970
   (0.1ms) begin transaction
@@ -973,100 +973,97 @@ Authenticating with gds_sso strategy
973
973
   (0.1ms) commit transaction
974
974
  Redirected to http://www.example-client.com/restricted
975
975
  Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
976
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
976
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
977
977
  Processing by ExampleController#restricted as HTML
978
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"]]
979
979
  Rendered text template (0.0ms)
980
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
981
- Started GET "/restricted" for 127.0.0.1 at 2016-11-26 09:49:02 +0000
980
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
981
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:09:03 +0000
982
982
  Processing by ExampleController#restricted as HTML
983
- Authenticating with gds_sso strategy
984
- Completed in 1ms (ActiveRecord: 0.0ms)
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
983
+ 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"]]
984
+ Rendered text template (0.1ms)
985
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
986
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
987
987
  Processing by ExampleController#restricted as HTML
988
988
  Authenticating with gds_sso strategy
989
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
990
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
991
+ Started GET "/auth/gds/callback?code=339c75ffaa47170c9f408b88132d9d4f2b5d87690c36819a1216662484ae81d0&state=4fbd0c12c577843925499060671b572d7f4e49879704627a" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
992
992
  Processing by AuthenticationsController#callback as HTML
993
- Parameters: {"code"=>"e6182dd9a8a4c90de0bc3778feda841b03003ec8a1f0dcaed046d030468b0709", "state"=>"745b5439b70881cd8057544a5f32d6541adef54c55dd5ad2"}
993
+ Parameters: {"code"=>"339c75ffaa47170c9f408b88132d9d4f2b5d87690c36819a1216662484ae81d0", "state"=>"4fbd0c12c577843925499060671b572d7f4e49879704627a"}
994
994
  Authenticating with gds_sso strategy
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
995
+ User Load (0.1ms) 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
1000
1000
  Redirected to http://www.example-client.com/restricted
1001
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
1002
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1008
1003
  Processing by ExampleController#restricted as HTML
1009
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"]]
1010
1005
  Rendered text template (0.0ms)
1011
1006
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1012
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:02 +0000
1007
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
1008
+ Processing by ExampleController#restricted as HTML
1009
+ Authenticating with gds_sso strategy
1010
+ Completed in 1ms (ActiveRecord: 0.0ms)
1011
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
1012
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1013
1013
  Processing by ExampleController#restricted as HTML
1014
1014
  Authenticating with gds_sso strategy
1015
1015
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1016
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1017
+ Started GET "/auth/gds/callback?code=45976954b052808db424af8655041bfd5636b8ab31e88300a2bfc6e4af321335&state=e9b07ec972a760de7b8eae193c3258cb02d35379ba595005" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1018
1018
  Processing by AuthenticationsController#callback as HTML
1019
- Parameters: {"code"=>"ac6ea4384f64b9ff95c2684f4337e55fa0175f6b72600ca38778264694814fb3", "state"=>"23e2e2d01dfa08ccb5ed2fc4e734a847a5e11b7236ccf6e9"}
1019
+ Parameters: {"code"=>"45976954b052808db424af8655041bfd5636b8ab31e88300a2bfc6e4af321335", "state"=>"e9b07ec972a760de7b8eae193c3258cb02d35379ba595005"}
1020
1020
  Authenticating with gds_sso strategy
1021
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1021
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1022
1022
   (0.1ms) begin transaction
1023
1023
   (0.1ms) commit transaction
1024
1024
   (0.1ms) begin transaction
1025
1025
   (0.1ms) commit transaction
1026
1026
  Redirected to http://www.example-client.com/restricted
1027
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
1028
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1029
1029
  Processing by ExampleController#restricted as HTML
1030
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"]]
1031
1031
  Rendered text template (0.0ms)
1032
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1032
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1033
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
1034
   (0.1ms) begin transaction
1035
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
1036
+  (283.7ms) commit transaction
1037
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1038
1038
  Processing by ExampleController#restricted as HTML
1039
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"]]
1040
1040
  Authenticating with gds_sso strategy
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
1041
+ Completed in 1ms (ActiveRecord: 0.1ms)
1042
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1043
+ Started GET "/auth/gds/callback?code=e8aaee5efec2952249ba030aa7f13a3fdefe8310081596ef31995a008cc1e839&state=136e87f9ea15c62569bded7132587fea1c23d5c22c26a2d7" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1044
1044
  Processing by AuthenticationsController#callback as HTML
1045
- Parameters: {"code"=>"63614c1ec3e831218c836cd59d6e2831e1001797e39509a7acae36083adab320", "state"=>"8d27838d7bb70a65ce13441a30b11400f817e91f9886cb7b"}
1045
+ Parameters: {"code"=>"e8aaee5efec2952249ba030aa7f13a3fdefe8310081596ef31995a008cc1e839", "state"=>"136e87f9ea15c62569bded7132587fea1c23d5c22c26a2d7"}
1046
1046
  Authenticating with gds_sso strategy
1047
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1048
1048
   (0.1ms) begin transaction
1049
1049
   (0.1ms) commit transaction
1050
1050
   (0.1ms) begin transaction
1051
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1052
-  (163.5ms) commit transaction
1051
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1052
+  (109.5ms) commit transaction
1053
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
1054
+ Completed 302 Found in 115ms (ActiveRecord: 110.0ms)
1055
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1056
1056
  Processing by ExampleController#restricted as HTML
1057
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"]]
1058
1058
  Rendered text template (0.0ms)
1059
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
1060
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1061
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
1065
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1062
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1066
1063
   (0.1ms) begin transaction
1067
1064
  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"]]
1065
+  (44.2ms) commit transaction
1066
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1070
1067
   (0.2ms) begin transaction
1071
1068
   (0.1ms) commit transaction
1072
1069
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
@@ -1078,11 +1075,8 @@ Processing by ExampleController#restricted as JSON
1078
1075
   (0.1ms) begin transaction
1079
1076
   (0.1ms) commit transaction
1080
1077
  Rendered text template (0.0ms)
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
1078
+ Completed 200 OK in 118ms (Views: 0.3ms | ActiveRecord: 45.6ms)
1079
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1086
1080
  Processing by ExampleController#this_requires_signin_permission as JSON
1087
1081
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1088
1082
   (0.1ms) begin transaction
@@ -1099,372 +1093,378 @@ Processing by ExampleController#this_requires_signin_permission as JSON
1099
1093
   (0.1ms) begin transaction
1100
1094
   (0.1ms) commit transaction
1101
1095
  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)
1096
+ Completed 200 OK in 70ms (Views: 0.4ms | ActiveRecord: 1.0ms)
1097
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1098
+ Processing by ExampleController#restricted as JSON
1099
+ Completed in 16ms (ActiveRecord: 0.0ms)
1100
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1101
+ Processing by ExampleController#restricted as JSON
1102
+ Completed in 16ms (ActiveRecord: 0.0ms)
1103
+  (62.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')
1104
+  (26.6ms) 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.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]]
1107
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-12-20 12:14:08 UTC], ["updated_at", 2016-12-20 12:14:08 UTC]]
1108
+  (48.2ms) commit transaction
1109
+  (22.5ms) 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
1111
   (0.1ms) begin transaction
1112
1112
   (0.1ms) commit transaction
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]]
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]]
1117
1113
   (0.1ms) begin 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]]
1114
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32278"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
+  (16.2ms) commit transaction
1121
1116
   (0.1ms) begin transaction
1122
-  (0.1ms) commit transaction
1123
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1117
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38130"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
+  (20.4ms) commit transaction
1119
+ Processing by Api::UserController#update as HTML
1120
+ Parameters: {"uid"=>"a1s2d32278"}
1121
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32278"], ["LIMIT", 1]]
1124
1122
   (0.1ms) begin transaction
1125
-  (0.1ms) commit transaction
1126
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1123
+ 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", 1]]
1124
+  (15.5ms) commit transaction
1125
+ Completed 200 OK in 22ms (ActiveRecord: 16.0ms)
1126
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1127
1127
   (0.1ms) begin transaction
1128
-  (0.1ms) commit transaction
1128
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36805"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1129
+  (17.4ms) commit transaction
1129
1130
   (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
1132
- Rendering text template
1133
- Rendered text template (0.0ms)
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
1136
- Processing by ExampleController#restricted as JSON
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]]
1131
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3981"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1132
+  (14.4ms) commit transaction
1133
+ Processing by Api::UserController#update as HTML
1134
+ Parameters: {"uid"=>"a1s2d36805"}
1135
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1136
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1137
+ Completed 403 Forbidden in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
1141
1138
   (0.1ms) begin transaction
1142
-  (0.1ms) commit transaction
1143
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1139
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36327"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1140
+  (15.0ms) commit transaction
1144
1141
   (0.1ms) begin transaction
1145
-  (0.1ms) commit transaction
1146
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1142
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31900"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1143
+  (10.8ms) commit transaction
1144
+ Processing by Api::UserController#reauth as HTML
1145
+ Parameters: {"uid"=>"a1s2d36327"}
1146
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36327"], ["LIMIT", 1]]
1147
1147
   (0.1ms) begin transaction
1148
-  (0.1ms) commit transaction
1149
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1148
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 5]]
1149
+  (11.5ms) commit transaction
1150
+ Completed 200 OK in 15ms (ActiveRecord: 11.8ms)
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", "a1s2d31201"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1154
+  (16.8ms) commit transaction
1155
+  (0.1ms) begin transaction
1156
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35356"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1157
+  (55.4ms) commit transaction
1158
+ Processing by Api::UserController#reauth as HTML
1159
+ Parameters: {"uid"=>"nonexistent-user"}
1160
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1161
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1162
+  (0.1ms) begin transaction
1163
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35825"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1164
+  (53.0ms) commit transaction
1165
+  (0.1ms) begin transaction
1166
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33840"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1167
+  (12.5ms) commit transaction
1168
+ Processing by Api::UserController#reauth as HTML
1169
+ Parameters: {"uid"=>"a1s2d35825"}
1170
+ Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1171
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1172
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
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.1ms) 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
+  (34.1ms) commit transaction
1178
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1150
1179
   (0.1ms) begin transaction
1151
1180
   (0.1ms) commit transaction
1152
- Rendering text template
1153
- Rendered text template (0.0ms)
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
1181
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1159
1182
  Processing by ExampleController#restricted as HTML
1160
1183
  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
1184
+ Completed in 8ms (ActiveRecord: 0.0ms)
1185
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1186
+ Started GET "/auth/gds/callback?code=d8dc5f3f1e4f979188078210eb672cc65e65886a1911d3a04e007b6920639aae&state=aacd9976277328788208a01786c2d724c983a1af89b3428c" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1164
1187
  Processing by AuthenticationsController#callback as HTML
1165
- Parameters: {"code"=>"c0a84b9848298a9f262a09a67e03b82a3ddb2e11d32349af67a134f2a8c1df54", "state"=>"785ca430b12fe07e5ebbd5d2576cf8d9adaaec586d9b8741"}
1188
+ Parameters: {"code"=>"d8dc5f3f1e4f979188078210eb672cc65e65886a1911d3a04e007b6920639aae", "state"=>"aacd9976277328788208a01786c2d724c983a1af89b3428c"}
1166
1189
  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]]
1190
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1168
1192
   (0.1ms) begin transaction
1169
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 1]]
1170
-  (104.4ms) commit transaction
1193
+ 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"]]
1194
+  (41.4ms) commit transaction
1195
+  (0.1ms) begin transaction
1196
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1197
+  (32.3ms) commit transaction
1171
1198
  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
1199
+ Completed 302 Found in 81ms (ActiveRecord: 74.8ms)
1200
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1174
1201
  Processing by ExampleController#restricted as HTML
1175
1202
  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]]
1176
1203
  Rendering text template
1177
1204
  Rendered text template (0.0ms)
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
1180
- Processing by ExampleController#this_requires_signin_permission as HTML
1205
+ Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)
1206
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1207
+ Processing by ExampleController#restricted as HTML
1181
1208
  Authenticating with gds_sso strategy
1182
1209
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1210
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1211
+ Started GET "/auth/gds/callback?code=6454c026e285afaade3a0287a25f253e179535e150366a539d95c1abb56c781c&state=bd7243c7e76af115c65015bda69fe6ba81f9d5990191e936" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1185
1212
  Processing by AuthenticationsController#callback as HTML
1186
- Parameters: {"code"=>"bf76d7f035ac8073a3a23d377ad10f341fd99cb317858d7c202b232a4fbf8ee8", "state"=>"4c6e9f8c2ab2cf114c8af1aa29e839c88763904579134b18"}
1213
+ Parameters: {"code"=>"6454c026e285afaade3a0287a25f253e179535e150366a539d95c1abb56c781c", "state"=>"bd7243c7e76af115c65015bda69fe6ba81f9d5990191e936"}
1187
1214
  Authenticating with gds_sso strategy
1188
1215
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1189
1216
   (0.1ms) begin transaction
1190
1217
   (0.1ms) commit transaction
1191
- Redirected to http://www.example-client.com/this_requires_signin_permission
1218
+ Redirected to http://www.example-client.com/restricted
1192
1219
  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
1194
- Processing by ExampleController#this_requires_signin_permission as HTML
1220
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1221
+ Processing by ExampleController#restricted as HTML
1195
1222
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1196
1223
  Rendering text template
1197
1224
  Rendered text template (0.0ms)
1198
1225
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1199
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1200
- Processing by ExampleController#this_requires_signin_permission as HTML
1226
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1227
+ Processing by ExampleController#restricted as HTML
1201
1228
  Authenticating with gds_sso strategy
1202
1229
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1230
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1231
+ Started GET "/auth/gds/callback?code=80e5e5b28eee67bab0781cf4c142b6780cc1b7880cf6d51136b354cd3fb5cf9f&state=7a704ce64594ad2f0d857d02e7e650ca49316059a861cec9" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1205
1232
  Processing by AuthenticationsController#callback as HTML
1206
- Parameters: {"code"=>"3a117361caf80c06abc97a5c61eeef6d1b530ab6838b74848703417769f377df", "state"=>"37ba9999028828876033494d9ef60de447771819b102f542"}
1233
+ Parameters: {"code"=>"80e5e5b28eee67bab0781cf4c142b6780cc1b7880cf6d51136b354cd3fb5cf9f", "state"=>"7a704ce64594ad2f0d857d02e7e650ca49316059a861cec9"}
1207
1234
  Authenticating with gds_sso strategy
1208
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1235
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1209
1236
   (0.1ms) begin transaction
1210
1237
   (0.1ms) commit transaction
1211
- Redirected to http://www.example-client.com/this_requires_signin_permission
1238
+ Redirected to http://www.example-client.com/restricted
1212
1239
  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
1214
- Processing by ExampleController#this_requires_signin_permission as HTML
1240
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1241
+ Processing by ExampleController#restricted as HTML
1215
1242
  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]]
1216
1243
  Rendering text template
1217
1244
  Rendered text template (0.0ms)
1218
1245
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1219
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1220
- Processing by ExampleController#restricted as HTML
1246
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1247
+ Processing by ExampleController#this_requires_signin_permission as HTML
1221
1248
  Authenticating with gds_sso strategy
1222
1249
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1250
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1251
+ Started GET "/auth/gds/callback?code=d67a4a1b558a511c1ad6b1f2c3812383c8cb3f0f0a26b57165027a34b7cabf66&state=015ab0b69b3f7d1ee20818ddfa8ac11a9531568e29cf0cde" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1225
1252
  Processing by AuthenticationsController#callback as HTML
1226
- Parameters: {"code"=>"b7eae245485328e121e9325ae16ed83aa90f00cecccb5a12e8e16d96602811f0", "state"=>"6e18b7da44b64322b9feebfd747f8ab38f8b988ce94a6d66"}
1253
+ Parameters: {"code"=>"d67a4a1b558a511c1ad6b1f2c3812383c8cb3f0f0a26b57165027a34b7cabf66", "state"=>"015ab0b69b3f7d1ee20818ddfa8ac11a9531568e29cf0cde"}
1227
1254
  Authenticating with gds_sso strategy
1228
1255
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1229
1256
   (0.1ms) begin transaction
1230
1257
   (0.1ms) commit transaction
1231
- Redirected to http://www.example-client.com/restricted
1258
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1232
1259
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1233
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1234
- Processing by ExampleController#restricted as HTML
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]]
1260
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1261
+ Processing by ExampleController#this_requires_signin_permission as HTML
1262
+ 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]]
1236
1263
  Rendering text template
1237
1264
  Rendered text template (0.0ms)
1238
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1239
- Started GET "/restricted" for 127.0.0.1 at 2016-11-25 13:44:09 +0000
1240
- Processing by ExampleController#restricted as HTML
1265
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
1266
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1267
+ Processing by ExampleController#this_requires_signin_permission as HTML
1241
1268
  Authenticating with gds_sso strategy
1242
1269
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1270
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1271
+ Started GET "/auth/gds/callback?code=cdad962a36a08db481fe4fecede9f8cc1cad75e8b062efc1f2f9ca7d914cd492&state=7e5b155263da27fc8d73ea1f08761c51db8fb1548965f534" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1245
1272
  Processing by AuthenticationsController#callback as HTML
1246
- Parameters: {"code"=>"2b981d35b8370b19479ffec3ca76bfbce2e8e96b5625373767de621054930664", "state"=>"c20b030e32057395dc69e18b12c5590d943a9c21c905e5fe"}
1273
+ Parameters: {"code"=>"cdad962a36a08db481fe4fecede9f8cc1cad75e8b062efc1f2f9ca7d914cd492", "state"=>"7e5b155263da27fc8d73ea1f08761c51db8fb1548965f534"}
1247
1274
  Authenticating with gds_sso strategy
1248
1275
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1249
1276
   (0.1ms) begin transaction
1250
1277
   (0.1ms) commit transaction
1251
- Redirected to http://www.example-client.com/restricted
1278
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1252
1279
  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
1254
- Processing by ExampleController#restricted as HTML
1280
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1281
+ Processing by ExampleController#this_requires_signin_permission as HTML
1255
1282
  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
1283
  Rendering text template
1257
1284
  Rendered text template (0.0ms)
1258
1285
  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
1286
+ Started GET "/" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1260
1287
  Processing by ExampleController#index as HTML
1261
1288
  Rendering text template
1262
1289
  Rendered text template (0.0ms)
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
1290
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1291
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1265
1292
  Processing by ExampleController#restricted as HTML
1266
1293
  Authenticating with gds_sso strategy
1267
1294
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1295
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1296
+ Started GET "/auth/gds/callback?code=999e4432f7bc83f228510f96699d778c15f0c70804900a679decfecca294149b&state=8c12733cf664d98a06a6ff8733f940688ea9bdef5d6dfcbf" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1270
1297
  Processing by AuthenticationsController#callback as HTML
1271
- Parameters: {"code"=>"a64ee593600313a329104a3a301b885c4de72ca20bbe395c228a31d5637084ac", "state"=>"75e9cc0fb0abcde491c545a4ba1f08a2bf1d3c680c80d08d"}
1298
+ Parameters: {"code"=>"999e4432f7bc83f228510f96699d778c15f0c70804900a679decfecca294149b", "state"=>"8c12733cf664d98a06a6ff8733f940688ea9bdef5d6dfcbf"}
1272
1299
  Authenticating with gds_sso strategy
1273
1300
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1274
1301
   (0.1ms) begin transaction
1275
1302
   (0.1ms) commit transaction
1276
1303
  Redirected to http://www.example-client.com/restricted
1277
1304
  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
1305
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1279
1306
  Processing by ExampleController#restricted as HTML
1280
1307
  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]]
1281
1308
  Rendering text template
1282
1309
  Rendered text template (0.0ms)
1283
1310
  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]]
1311
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1285
1312
   (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
1313
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 12]]
1314
+  (16.3ms) commit transaction
1315
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1289
1316
  Processing by ExampleController#restricted as HTML
1290
1317
  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]]
1291
1318
  Authenticating with gds_sso strategy
1292
1319
  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
1320
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1321
+ Started GET "/auth/gds/callback?code=587251ab2106b620669466be04d27c6654c5e7c8d2b7c17bd1612e6f84b5edae&state=28d71131564fb6b03e614171919d5ba4d9301592c363a253" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1295
1322
  Processing by AuthenticationsController#callback as HTML
1296
- Parameters: {"code"=>"199a427dacb6ebb4bf71a3f78b261a7f56023326646be791b959f8facbd9674f", "state"=>"9c1046561c80184c37b0816b5b556aaae34b9472253dc571"}
1323
+ Parameters: {"code"=>"587251ab2106b620669466be04d27c6654c5e7c8d2b7c17bd1612e6f84b5edae", "state"=>"28d71131564fb6b03e614171919d5ba4d9301592c363a253"}
1297
1324
  Authenticating with gds_sso strategy
1298
1325
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1299
1326
   (0.1ms) begin transaction
1300
1327
   (0.1ms) commit transaction
1301
1328
   (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
1329
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1330
+  (31.1ms) commit transaction
1304
1331
  Redirected to http://www.example-client.com/restricted
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
1332
+ Completed 302 Found in 36ms (ActiveRecord: 31.7ms)
1333
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1307
1334
  Processing by ExampleController#restricted as HTML
1308
1335
  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]]
1309
1336
  Rendering text template
1310
1337
  Rendered text template (0.0ms)
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
1338
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1339
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1313
1340
  Processing by ExampleController#restricted as HTML
1314
1341
  Authenticating with gds_sso strategy
1315
1342
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1343
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1344
+ Started GET "/auth/gds/callback?code=cfc2685d922c20e75a7f1d20b934df05f23e946e3f15ecef516f23905acedb07&state=aea99e3314d693dbb15b849aab75622a8a02c6879af64e94" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1318
1345
  Processing by AuthenticationsController#callback as HTML
1319
- Parameters: {"code"=>"ba207418b730acd401f90e2ab7767fea110b029de02e40b28b4f5cfb6229a568", "state"=>"a58aef958e400d846df3c30d2ac822763d9b1af234c5ae37"}
1346
+ Parameters: {"code"=>"cfc2685d922c20e75a7f1d20b934df05f23e946e3f15ecef516f23905acedb07", "state"=>"aea99e3314d693dbb15b849aab75622a8a02c6879af64e94"}
1320
1347
  Authenticating with gds_sso strategy
1321
1348
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1322
1349
   (0.1ms) begin transaction
1323
1350
   (0.1ms) commit transaction
1324
1351
  Redirected to http://www.example-client.com/restricted
1325
1352
  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
1353
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1327
1354
  Processing by ExampleController#restricted as HTML
1328
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1355
+ 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]]
1329
1356
  Rendering text template
1330
1357
  Rendered text template (0.0ms)
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
1358
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1359
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1333
1360
  Processing by ExampleController#restricted as HTML
1334
1361
  Authenticating with gds_sso strategy
1335
1362
  Completed in 1ms (ActiveRecord: 0.0ms)
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
1363
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1364
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1365
+ Processing by ExampleController#restricted as HTML
1366
+ Authenticating with gds_sso strategy
1367
+ Completed in 0ms (ActiveRecord: 0.0ms)
1368
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1369
+ Started GET "/auth/gds/callback?code=cc8e3d9ba9293b955555a89768762ce042047954203cc212ff0c40084773b2a3&state=ea6a2412469dde362d03b75a0c8564f429102b049922442c" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1338
1370
  Processing by AuthenticationsController#callback as HTML
1339
- Parameters: {"code"=>"ba733aaa5e6f5cfd68f43b6d4dcac0b56dc9a824902757b03989f0333dd4929c", "state"=>"ab9b252c55e0213badba6ab4d9edd9ea658515cd496c6793"}
1371
+ Parameters: {"code"=>"cc8e3d9ba9293b955555a89768762ce042047954203cc212ff0c40084773b2a3", "state"=>"ea6a2412469dde362d03b75a0c8564f429102b049922442c"}
1340
1372
  Authenticating with gds_sso strategy
1341
1373
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
1374
   (0.1ms) begin transaction
1343
1375
   (0.1ms) commit transaction
1344
1376
  Redirected to http://www.example-client.com/restricted
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
1377
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1378
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1347
1379
  Processing by ExampleController#restricted as HTML
1348
1380
  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
1381
  Rendering text template
1350
1382
  Rendered text template (0.0ms)
1351
1383
  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
1384
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1353
1385
  Processing by ExampleController#restricted as HTML
1354
1386
  Authenticating with gds_sso strategy
1355
- Completed in 0ms (ActiveRecord: 0.0ms)
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
1387
+ Completed in 1ms (ActiveRecord: 0.0ms)
1388
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1389
+ Started GET "/auth/gds/callback?code=265d8668574607c86d4d00412135ca852843df7d4f2d7763a0ab34cb035e7ec1&state=2cb9733c5a52d5b5baca3dc7d994508d94e68134fce016e0" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1358
1390
  Processing by AuthenticationsController#callback as HTML
1359
- Parameters: {"code"=>"cadac2fc142b359cec8bce949fe53f95466e5f47dc876f961f2588ae806888a0", "state"=>"43710693a55e9165b8307f7c12d7a9fdd4cc03b5a63281ed"}
1391
+ Parameters: {"code"=>"265d8668574607c86d4d00412135ca852843df7d4f2d7763a0ab34cb035e7ec1", "state"=>"2cb9733c5a52d5b5baca3dc7d994508d94e68134fce016e0"}
1360
1392
  Authenticating with gds_sso strategy
1361
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1393
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1362
1394
   (0.1ms) begin transaction
1363
1395
   (0.1ms) commit transaction
1364
1396
  Redirected to http://www.example-client.com/restricted
1365
1397
  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
1398
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1367
1399
  Processing by ExampleController#restricted as HTML
1368
1400
  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]]
1369
1401
  Rendering text template
1370
1402
  Rendered text template (0.0ms)
1371
1403
  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
1404
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1378
1405
  Processing by ExampleController#restricted as HTML
1379
1406
  Authenticating with gds_sso strategy
1380
1407
  Completed in 0ms (ActiveRecord: 0.0ms)
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
1408
+ Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1409
+ Started GET "/auth/gds/callback?code=31e8519894ba3863039ba3f1e53d8fc6af605386299e4dd3df858f748027c413&state=0d3dfd7f5d02df402964f955d6e1556024c3c1a61076779d" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1383
1410
  Processing by AuthenticationsController#callback as HTML
1384
- Parameters: {"code"=>"e97c1923e96ebde4a13a7f6c5bac17afdacae87a877be9cf19b2dacb2bbf008b", "state"=>"bbf26cdc855f5873a40f06c8f4806ce2de391f64600ef839"}
1411
+ Parameters: {"code"=>"31e8519894ba3863039ba3f1e53d8fc6af605386299e4dd3df858f748027c413", "state"=>"0d3dfd7f5d02df402964f955d6e1556024c3c1a61076779d"}
1385
1412
  Authenticating with gds_sso strategy
1386
1413
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1387
1414
   (0.1ms) begin transaction
1388
1415
   (0.1ms) commit transaction
1389
1416
  Redirected to http://www.example-client.com/restricted
1390
1417
  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
1418
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1392
1419
  Processing by ExampleController#restricted as HTML
1393
1420
  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]]
1394
1421
  Rendering text template
1395
1422
  Rendered text template (0.0ms)
1396
1423
  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
1424
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:09:11 +0000
1398
1425
  Processing by ExampleController#restricted as HTML
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]]
1426
+ 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]]
1400
1427
  Rendering text template
1401
1428
  Rendered text template (0.0ms)
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
1429
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1430
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1431
+ Processing by ExampleController#restricted as JSON
1432
+ Completed in 20ms (ActiveRecord: 0.0ms)
1433
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1434
+ Processing by ExampleController#this_requires_signin_permission as JSON
1435
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1431
1436
   (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
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
1438
+  (14.7ms) commit transaction
1439
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1437
1440
   (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]]
1441
+  (0.1ms) commit transaction
1442
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1442
1443
   (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
1444
+  (0.1ms) commit transaction
1445
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1445
1446
   (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)
1447
+  (0.1ms) commit transaction
1448
+ Rendering text template
1449
+ Rendered text template (0.0ms)
1450
+ Completed 200 OK in 95ms (Views: 0.4ms | ActiveRecord: 16.0ms)
1451
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1452
+ Processing by ExampleController#restricted as JSON
1453
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1452
1454
   (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) commit transaction
1456
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1455
1457
   (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]]
1458
+  (0.1ms) commit transaction
1459
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1465
1460
   (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]]
1461
+  (0.1ms) commit transaction
1462
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1469
1463
   (0.1ms) begin transaction
1470
-  (0.3ms) commit transaction
1464
+  (0.1ms) commit transaction
1465
+ Rendering text template
1466
+ Rendered text template (0.0ms)
1467
+ Completed 200 OK in 91ms (Views: 0.5ms | ActiveRecord: 1.0ms)
1468
+ Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1469
+ Processing by ExampleController#restricted as JSON
1470
+ Completed in 21ms (ActiveRecord: 0.0ms)