gds-sso 10.0.1 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b59b24d8100c951ab54687d34e02143d0b0aa955
4
- data.tar.gz: 58773dd9a1adc0096e9e30ae2bb661a69a5e3180
3
+ metadata.gz: c4b7c6d100280311fb753f7b10345955ace68e26
4
+ data.tar.gz: 670d14f02b1e5dbb7d2a971c6c7f86cff3f7dafa
5
5
  SHA512:
6
- metadata.gz: 0449983028cc0664a54558962080904cecfb954823ad56a034b6449ddc8ee722e124f77bc19d6e394fc9244977fdc9887937e9ce13c81518b41e24c0272388b3
7
- data.tar.gz: 38cb91f5160bacb022d665e275fd944085cbce028bc0659221ecfb14a5e7bbffa4636a16eff9546de290adca70181cf2db0a0e5a38ad50794ba7662c34682a05
6
+ metadata.gz: 738879b1c3ce3e3398a19a888b7712d918006468bfb68752b8d93e78555f6ae34637d001172c827e9129f00cf899924c490210dece3e222dd566e127f5291bb2
7
+ data.tar.gz: 17651760192d5f72d7222abcdeef16241e83f9103f473aabd59358dd2b2d7e9f77c67decb0ad273f51cd79676b37f36f846dcff5dd65b83e38e57c52cf58cac8
data/README.md CHANGED
@@ -40,6 +40,7 @@ It should have the following fields:
40
40
  string "email"
41
41
  string "uid"
42
42
  string "organisation_slug"
43
+ string "organisation_content_id"
43
44
  array "permissions"
44
45
  boolean "remotely_signed_out", :default => false
45
46
  boolean "disabled", :default => false
@@ -36,6 +36,7 @@ class Api::UserController < ActionController::Base
36
36
  user: {
37
37
  permissions: user_json['permissions'],
38
38
  organisation_slug: user_json['organisation_slug'],
39
+ organisation_content_id: user_json['organisation_content_id'],
39
40
  disabled: user_json['disabled'],
40
41
  }
41
42
  })
@@ -38,6 +38,7 @@ module GDS
38
38
  'user' => {
39
39
  'permissions' => input['permissions'],
40
40
  'organisation_slug' => input['organisation_slug'],
41
+ 'organisation_content_id' => input['organisation_content_id'],
41
42
  }
42
43
  }
43
44
  }
@@ -39,6 +39,7 @@ RSpec.shared_examples "a gds-sso user class" do
39
39
  'user' => {
40
40
  'permissions' => ['signin'],
41
41
  'organisation_slug' => 'cabinet-office',
42
+ 'organisation_content_id' => '91e57ad9-29a3-4f94-9ab4-5e9ae6d13588'
42
43
  }
43
44
  }
44
45
  }
@@ -50,5 +51,6 @@ RSpec.shared_examples "a gds-sso user class" do
50
51
  expect(user.email).to eq('joe.smith@example.com')
51
52
  expect(user.permissions).to eq(['signin'])
52
53
  expect(user.organisation_slug).to eq('cabinet-office')
54
+ expect(user.organisation_content_id).to eq('91e57ad9-29a3-4f94-9ab4-5e9ae6d13588')
53
55
  end
54
56
  end
data/lib/gds-sso/user.rb CHANGED
@@ -11,7 +11,7 @@ module GDS
11
11
 
12
12
  included do
13
13
  if GDS::SSO::User.below_rails_4? && respond_to?(:attr_accessible)
14
- attr_accessible :uid, :email, :name, :permissions, :organisation_slug, :disabled, as: :oauth
14
+ attr_accessible :uid, :email, :name, :permissions, :organisation_slug, :organisation_content_id, :disabled, as: :oauth
15
15
  end
16
16
  end
17
17
 
@@ -28,6 +28,7 @@ module GDS
28
28
  'name' => auth_hash['info']['name'],
29
29
  'permissions' => auth_hash['extra']['user']['permissions'],
30
30
  'organisation_slug' => auth_hash['extra']['user']['organisation_slug'],
31
+ 'organisation_content_id' => auth_hash['extra']['user']['organisation_content_id'],
31
32
  'disabled' => auth_hash['extra']['user']['disabled'],
32
33
  }
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "10.0.1"
3
+ VERSION = "10.1.0"
4
4
  end
5
5
  end
@@ -8,6 +8,7 @@ def user_update_json
8
8
  "email" => "user@domain.com",
9
9
  "permissions" => ["signin", "new permission"],
10
10
  "organisation_slug" => "justice-league",
11
+ "organisation_content_id" => "aae1319e-5788-4677-998c-f1a53af528d0",
11
12
  "disabled" => false,
12
13
  }
13
14
  }.to_json
@@ -67,6 +68,7 @@ describe Api::UserController, type: :controller do
67
68
  expect(@user_to_update.email).to eq("user@domain.com")
68
69
  expect(@user_to_update.permissions).to eq(["signin", "new permission"])
69
70
  expect(@user_to_update.organisation_slug).to eq("justice-league")
71
+ expect(@user_to_update.organisation_content_id).to eq("aae1319e-5788-4677-998c-f1a53af528d0")
70
72
  expect(response.content_type).to eq('text/plain')
71
73
  end
72
74
  end
@@ -6,6 +6,7 @@ ActiveRecord::Schema.define do
6
6
  t.boolean "remotely_signed_out"
7
7
  t.text "permissions"
8
8
  t.string "organisation_slug"
9
+ t.string "organisation_content_id"
9
10
  t.boolean "disabled", :default => false
10
11
  end
11
12
  end
@@ -1,2176 +1,2176 @@
1
1
  Connecting to database specified by database.yml
2
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:11:25 +0000
3
- Processing by ExampleController#index as HTML
4
- Rendered text template (0.0ms)
5
- Completed 200 OK in 130.3ms (Views: 129.2ms | ActiveRecord: 0.0ms)
6
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:26 +0000
7
- Processing by ExampleController#restricted as HTML
2
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:02:30 +0000
3
+ Processing by ExampleController#this_requires_signin_permission as HTML
8
4
  Authenticating with gds_sso strategy
9
- Completed in 113.8ms
10
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:27 +0000
11
- Started GET "/auth/gds/callback?code=f86ff11f57968276dbb15ae678ddb0cd857c13701987b6310ff1c4d70de56c7b&state=8cc6c345559d0e564954540c10b931dfaecca55673f14a88" for 127.0.0.1 at 2015-04-20 13:11:29 +0000
5
+ Completed in 41.2ms
6
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:30 +0000
7
+ Started GET "/auth/gds/callback?code=eacc0dc9f81a635f0e6e6004398fbe0c4bf536a8e40eda2d72ea50d7c30a22e7&state=1aca23d4f509e2c3ef1c0582858427964285acfab09f2bf7" for 127.0.0.1 at 2015-04-23 11:02:31 +0000
12
8
  Processing by AuthenticationsController#callback as HTML
13
- Parameters: {"code"=>"f86ff11f57968276dbb15ae678ddb0cd857c13701987b6310ff1c4d70de56c7b", "state"=>"8cc6c345559d0e564954540c10b931dfaecca55673f14a88"}
9
+ Parameters: {"code"=>"eacc0dc9f81a635f0e6e6004398fbe0c4bf536a8e40eda2d72ea50d7c30a22e7", "state"=>"1aca23d4f509e2c3ef1c0582858427964285acfab09f2bf7"}
14
10
  Authenticating with gds_sso strategy
15
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
16
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
17
-  (0.2ms) begin transaction
18
- SQL (1.0ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
19
-  (19.0ms) commit transaction
11
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
13
+  (0.1ms) begin transaction
14
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
15
+  (9.4ms) commit transaction
20
16
   (0.1ms) begin transaction
21
-  (0.4ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
17
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
22
18
  - signin
23
19
  ' WHERE "users"."id" = 1
24
-  (38.3ms) commit transaction
25
- Redirected to http://www.example-client.com/restricted
26
- Completed 302 Found in 159.4ms (ActiveRecord: 60.9ms)
27
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:33 +0000
28
- Processing by ExampleController#restricted as HTML
29
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
30
- Completed 200 OK in 4.4ms (Views: 1.2ms | ActiveRecord: 0.3ms)
31
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:33 +0000
32
- Processing by ExampleController#restricted as HTML
20
+  (9.9ms) commit transaction
21
+ Redirected to http://www.example-client.com/this_requires_signin_permission
22
+ Completed 302 Found in 46.3ms (ActiveRecord: 20.7ms)
23
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
24
+ Processing by ExampleController#this_requires_signin_permission as HTML
25
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
26
+ Rendered text template (0.0ms)
27
+ Completed 200 OK in 43.6ms (Views: 40.6ms | ActiveRecord: 0.2ms)
28
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
29
+ Processing by ExampleController#this_requires_signin_permission as HTML
33
30
  Authenticating with gds_sso strategy
34
- Completed in 0.4ms
35
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:33 +0000
36
- Started GET "/auth/gds/callback?code=76370fd98cec1d2352dd648546b407f7113eb04eb661d5c8b1fa0794d637c4f7&state=c74fd87870f6e1a8766a2cf87ebae90d8e410fb80c6ad47f" for 127.0.0.1 at 2015-04-20 13:11:33 +0000
31
+ Completed in 0.2ms
32
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
33
+ Started GET "/auth/gds/callback?code=8ca57814b5ae85faeaaa2e19b3ea71840d2938667c43b10167a82561eeea89af&state=591467615f15f2bba9f6c5c8b99acdcb759828f5d4928ea8" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
37
34
  Processing by AuthenticationsController#callback as HTML
38
- Parameters: {"code"=>"76370fd98cec1d2352dd648546b407f7113eb04eb661d5c8b1fa0794d637c4f7", "state"=>"c74fd87870f6e1a8766a2cf87ebae90d8e410fb80c6ad47f"}
35
+ Parameters: {"code"=>"8ca57814b5ae85faeaaa2e19b3ea71840d2938667c43b10167a82561eeea89af", "state"=>"591467615f15f2bba9f6c5c8b99acdcb759828f5d4928ea8"}
39
36
  Authenticating with gds_sso strategy
40
37
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
41
38
   (0.1ms) begin transaction
42
39
   (0.3ms) UPDATE "users" SET "permissions" = '---
43
40
  - signin
44
41
  ' WHERE "users"."id" = 1
45
-  (27.9ms) commit transaction
46
-  (0.1ms) begin transaction
42
+  (7.5ms) commit transaction
43
+  (0.2ms) begin transaction
47
44
   (0.2ms) UPDATE "users" SET "permissions" = '---
48
45
  - signin
49
46
  ' WHERE "users"."id" = 1
50
-  (32.1ms) commit transaction
51
- Redirected to http://www.example-client.com/restricted
52
- Completed 302 Found in 66.9ms (ActiveRecord: 60.9ms)
53
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:34 +0000
54
- Processing by ExampleController#restricted as HTML
47
+  (10.3ms) commit transaction
48
+ Redirected to http://www.example-client.com/this_requires_signin_permission
49
+ Completed 302 Found in 25.5ms (ActiveRecord: 18.9ms)
50
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
51
+ Processing by ExampleController#this_requires_signin_permission as HTML
55
52
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
56
- Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
57
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:34 +0000
53
+ Rendered text template (0.0ms)
54
+ Completed 200 OK in 2.0ms (Views: 0.4ms | ActiveRecord: 0.2ms)
55
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
58
56
  Processing by ExampleController#restricted as HTML
59
57
  Authenticating with gds_sso strategy
60
- Completed in 0.5ms
61
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:34 +0000
62
- Started GET "/auth/gds/callback?code=07f47a911aba115de54e8f2bffd7a53ecf9cc3799683744bde2768e8d1595095&state=ba484170e6f127456334bd175cbc85a01ddc780ae4bfd90e" for 127.0.0.1 at 2015-04-20 13:11:34 +0000
58
+ Completed in 0.6ms
59
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
60
+ Started GET "/auth/gds/callback?code=1a0a7b321db59c10b21507538b4c2b6f084ef85978011c385ba0ad5f3908c908&state=6a01c880f94bb034ec11d7cc7f024285eb4e61eb876afe67" for 127.0.0.1 at 2015-04-23 11:02:32 +0000
63
61
  Processing by AuthenticationsController#callback as HTML
64
- Parameters: {"code"=>"07f47a911aba115de54e8f2bffd7a53ecf9cc3799683744bde2768e8d1595095", "state"=>"ba484170e6f127456334bd175cbc85a01ddc780ae4bfd90e"}
62
+ Parameters: {"code"=>"1a0a7b321db59c10b21507538b4c2b6f084ef85978011c385ba0ad5f3908c908", "state"=>"6a01c880f94bb034ec11d7cc7f024285eb4e61eb876afe67"}
65
63
  Authenticating with gds_sso strategy
66
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
64
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
67
65
   (0.1ms) begin transaction
68
-  (0.4ms) UPDATE "users" SET "permissions" = '---
66
+  (0.2ms) UPDATE "users" SET "permissions" = '---
69
67
  - signin
70
68
  ' WHERE "users"."id" = 1
71
-  (28.3ms) commit transaction
69
+  (40.3ms) commit transaction
72
70
   (0.1ms) begin transaction
73
-  (0.4ms) UPDATE "users" SET "permissions" = '---
71
+  (0.2ms) UPDATE "users" SET "permissions" = '---
74
72
  - signin
75
73
  ' WHERE "users"."id" = 1
76
-  (10.1ms) commit transaction
74
+  (26.4ms) commit transaction
77
75
  Redirected to http://www.example-client.com/restricted
78
- Completed 302 Found in 49.8ms (ActiveRecord: 39.8ms)
79
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:34 +0000
76
+ Completed 302 Found in 73.8ms (ActiveRecord: 67.4ms)
77
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
78
+ Processing by ExampleController#restricted as HTML
79
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
80
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
81
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
80
82
  Processing by ExampleController#restricted as HTML
81
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
82
- Completed 200 OK in 2.8ms (Views: 0.8ms | ActiveRecord: 0.3ms)
83
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
84
- Processing by ExampleController#this_requires_signin_permission as HTML
85
83
  Authenticating with gds_sso strategy
86
- Completed in 1.1ms
87
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
88
- Started GET "/auth/gds/callback?code=a376a992bdbc43628c19cdaab0b3019c4b3394b7dc6cdd38b58a95f953249084&state=38e73451272f55d131f8b9d4c3fb6bf49c9128ef04575e56" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
84
+ Completed in 0.3ms
85
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
86
+ Started GET "/auth/gds/callback?code=5fea5437645d4a6f08571fc4321258771ef0415f91dab9bfec348406e9a8f878&state=7e82b2d3a4499e863e1d4390e3fecb8e07b33b639af787fd" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
89
87
  Processing by AuthenticationsController#callback as HTML
90
- Parameters: {"code"=>"a376a992bdbc43628c19cdaab0b3019c4b3394b7dc6cdd38b58a95f953249084", "state"=>"38e73451272f55d131f8b9d4c3fb6bf49c9128ef04575e56"}
88
+ Parameters: {"code"=>"5fea5437645d4a6f08571fc4321258771ef0415f91dab9bfec348406e9a8f878", "state"=>"7e82b2d3a4499e863e1d4390e3fecb8e07b33b639af787fd"}
91
89
  Authenticating with gds_sso strategy
92
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
90
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
93
91
   (0.1ms) begin transaction
94
-  (0.4ms) UPDATE "users" SET "permissions" = '---
92
+  (0.2ms) UPDATE "users" SET "permissions" = '---
95
93
  - signin
96
94
  ' WHERE "users"."id" = 1
97
-  (25.1ms) commit transaction
95
+  (9.0ms) commit transaction
98
96
   (0.1ms) begin transaction
99
-  (0.3ms) UPDATE "users" SET "permissions" = '---
97
+  (0.2ms) UPDATE "users" SET "permissions" = '---
100
98
  - signin
101
99
  ' WHERE "users"."id" = 1
102
-  (15.6ms) commit transaction
103
- Redirected to http://www.example-client.com/this_requires_signin_permission
104
- Completed 302 Found in 50.7ms (ActiveRecord: 41.9ms)
105
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
106
- Processing by ExampleController#this_requires_signin_permission as HTML
107
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
108
- Completed 200 OK in 2.9ms (Views: 0.8ms | ActiveRecord: 0.3ms)
109
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
110
- Processing by ExampleController#this_requires_signin_permission as HTML
100
+  (6.4ms) commit transaction
101
+ Redirected to http://www.example-client.com/restricted
102
+ Completed 302 Found in 21.9ms (ActiveRecord: 16.2ms)
103
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
104
+ Processing by ExampleController#restricted as HTML
105
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
106
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
107
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
108
+ Processing by ExampleController#restricted as HTML
111
109
  Authenticating with gds_sso strategy
112
- Completed in 0.3ms
113
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:35 +0000
114
- Started GET "/auth/gds/callback?code=ecc0baaa32dd3863c4bc0ebe034626edafebfe155157cf666f0fa1e6fe32e4ed&state=d8f2f5e7dd4e87a27df14b457f6b7b901dc27a99b8215f2a" for 127.0.0.1 at 2015-04-20 13:11:36 +0000
110
+ Completed in 0.2ms
111
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:33 +0000
112
+ Started GET "/auth/gds/callback?code=9622e1bfbf380c49d80680b35c3b9f55be191efea5c9e0c5e55bc3a80eb12eaf&state=56f42494f6870adb253050b6a4e0b45630b05bcf068e74d0" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
115
113
  Processing by AuthenticationsController#callback as HTML
116
- Parameters: {"code"=>"ecc0baaa32dd3863c4bc0ebe034626edafebfe155157cf666f0fa1e6fe32e4ed", "state"=>"d8f2f5e7dd4e87a27df14b457f6b7b901dc27a99b8215f2a"}
114
+ Parameters: {"code"=>"9622e1bfbf380c49d80680b35c3b9f55be191efea5c9e0c5e55bc3a80eb12eaf", "state"=>"56f42494f6870adb253050b6a4e0b45630b05bcf068e74d0"}
117
115
  Authenticating with gds_sso strategy
118
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
116
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
119
117
   (0.1ms) begin transaction
120
-  (0.4ms) UPDATE "users" SET "permissions" = '---
118
+  (0.3ms) UPDATE "users" SET "permissions" = '---
121
119
  - signin
122
120
  ' WHERE "users"."id" = 1
123
-  (24.3ms) commit transaction
121
+  (14.6ms) commit transaction
124
122
   (0.1ms) begin transaction
125
-  (0.4ms) UPDATE "users" SET "permissions" = '---
123
+  (0.2ms) UPDATE "users" SET "permissions" = '---
126
124
  - signin
127
125
  ' WHERE "users"."id" = 1
128
-  (23.1ms) commit transaction
129
- Redirected to http://www.example-client.com/this_requires_signin_permission
130
- Completed 302 Found in 62.2ms (ActiveRecord: 48.6ms)
131
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:11:36 +0000
132
- Processing by ExampleController#this_requires_signin_permission as HTML
133
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
134
- Completed 200 OK in 2.8ms (Views: 0.5ms | ActiveRecord: 0.3ms)
135
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:36 +0000
126
+  (8.7ms) commit transaction
127
+ Redirected to http://www.example-client.com/restricted
128
+ Completed 302 Found in 30.8ms (ActiveRecord: 24.2ms)
129
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
130
+ Processing by ExampleController#restricted as HTML
131
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
132
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
133
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
134
+ Processing by ExampleController#index as HTML
135
+ Completed 200 OK in 0.8ms (Views: 0.5ms | ActiveRecord: 0.0ms)
136
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
136
137
  Processing by ExampleController#restricted as HTML
137
138
  Authenticating with gds_sso strategy
138
- Completed in 0.6ms
139
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:36 +0000
140
- Started GET "/auth/gds/callback?code=238b57fe176e7a699db37ca4b5808c5b1875a6affbc56dd2b89dab84e8329636&state=e8169ca1a82781dbabe2d3aa04722a3cda70110178b6850f" for 127.0.0.1 at 2015-04-20 13:11:37 +0000
139
+ Completed in 0.3ms
140
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
141
+ Started GET "/auth/gds/callback?code=cce3f9916fe958766ff905878a2bfc379313e37e550b9f647888859f2fe66d9b&state=4495e968dca968bb2bf03b84edc0170ed88adfdca46392b1" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
141
142
  Processing by AuthenticationsController#callback as HTML
142
- Parameters: {"code"=>"238b57fe176e7a699db37ca4b5808c5b1875a6affbc56dd2b89dab84e8329636", "state"=>"e8169ca1a82781dbabe2d3aa04722a3cda70110178b6850f"}
143
+ Parameters: {"code"=>"cce3f9916fe958766ff905878a2bfc379313e37e550b9f647888859f2fe66d9b", "state"=>"4495e968dca968bb2bf03b84edc0170ed88adfdca46392b1"}
143
144
  Authenticating with gds_sso strategy
144
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
145
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
145
146
   (0.1ms) begin transaction
146
-  (0.3ms) UPDATE "users" SET "permissions" = '---
147
+  (0.2ms) UPDATE "users" SET "permissions" = '---
147
148
  - signin
148
149
  ' WHERE "users"."id" = 1
149
-  (22.1ms) commit transaction
150
+  (81.6ms) commit transaction
150
151
   (0.1ms) begin transaction
151
-  (0.4ms) UPDATE "users" SET "permissions" = '---
152
+  (0.2ms) UPDATE "users" SET "permissions" = '---
152
153
  - signin
153
154
  ' WHERE "users"."id" = 1
154
-  (11.1ms) commit transaction
155
+  (14.5ms) commit transaction
155
156
  Redirected to http://www.example-client.com/restricted
156
- Completed 302 Found in 43.5ms (ActiveRecord: 34.4ms)
157
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:37 +0000
157
+ Completed 302 Found in 102.7ms (ActiveRecord: 96.9ms)
158
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:34 +0000
158
159
  Processing by ExampleController#restricted as HTML
159
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
160
- Completed 200 OK in 2.8ms (Views: 0.8ms | ActiveRecord: 0.3ms)
161
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
160
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
161
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
162
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
162
163
   (0.1ms) begin transaction
163
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
164
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
164
165
  - signin
165
166
  ' WHERE "users"."id" = 1
166
-  (15.2ms) commit transaction
167
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:37 +0000
167
+  (18.4ms) commit transaction
168
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
168
169
  Processing by ExampleController#restricted as HTML
169
170
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
170
171
  Authenticating with gds_sso strategy
171
- Completed in 2.6ms
172
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:37 +0000
173
- Started GET "/auth/gds/callback?code=06ec3945c73cebb7e2ac4aefc42577b1eb9d384563177760b150625da71688b3&state=96a50a77307b5c2b63085621a0c8143fa3fc169266b4ac28" for 127.0.0.1 at 2015-04-20 13:11:38 +0000
172
+ Completed in 1.5ms
173
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
174
+ Started GET "/auth/gds/callback?code=51542ee34d2fd73b2a05755837139a2a16f5c158ac5a15f4a33748739d4b1f9e&state=5bf7fd6ddcb4d93db02c0f5b9fa719b0b4a8aff1e7e6e26e" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
174
175
  Processing by AuthenticationsController#callback as HTML
175
- Parameters: {"code"=>"06ec3945c73cebb7e2ac4aefc42577b1eb9d384563177760b150625da71688b3", "state"=>"96a50a77307b5c2b63085621a0c8143fa3fc169266b4ac28"}
176
+ Parameters: {"code"=>"51542ee34d2fd73b2a05755837139a2a16f5c158ac5a15f4a33748739d4b1f9e", "state"=>"5bf7fd6ddcb4d93db02c0f5b9fa719b0b4a8aff1e7e6e26e"}
176
177
  Authenticating with gds_sso strategy
177
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
178
-  (0.1ms) begin transaction
179
-  (0.4ms) UPDATE "users" SET "permissions" = '---
178
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
179
+  (0.0ms) begin transaction
180
+  (0.2ms) UPDATE "users" SET "permissions" = '---
180
181
  - signin
181
182
  ' WHERE "users"."id" = 1
182
-  (12.7ms) commit transaction
183
+  (18.3ms) commit transaction
183
184
   (0.1ms) begin transaction
184
-  (0.6ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
185
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
185
186
  - signin
186
187
  ' WHERE "users"."id" = 1
187
-  (32.8ms) commit transaction
188
+  (14.7ms) commit transaction
188
189
  Redirected to http://www.example-client.com/restricted
189
- Completed 302 Found in 55.1ms (ActiveRecord: 46.9ms)
190
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:38 +0000
190
+ Completed 302 Found in 39.3ms (ActiveRecord: 33.7ms)
191
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
191
192
  Processing by ExampleController#restricted as HTML
192
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
193
- Completed 200 OK in 2.5ms (Views: 0.5ms | ActiveRecord: 0.3ms)
194
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:38 +0000
193
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
194
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
195
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
195
196
  Processing by ExampleController#restricted as HTML
196
197
  Authenticating with gds_sso strategy
197
- Completed in 0.5ms
198
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:38 +0000
199
- Started GET "/auth/gds/callback?code=daa5e2fc0ad0328af9878ea9598b8589f4cea2b29d38a6aa196e7a8994a5ab45&state=35f142a543812a04aeb5629d0e2bf6ac5a941ea67abd888b" for 127.0.0.1 at 2015-04-20 13:11:38 +0000
198
+ Completed in 0.3ms
199
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:35 +0000
200
+ Started GET "/auth/gds/callback?code=32308db68644cb78086855960ae2b2e0f1c92b2820be64d0dbc2a7894692c1f0&state=5b3591a84a62818a42b8c9ded59dc1de15d93cc447546831" for 127.0.0.1 at 2015-04-23 11:02:36 +0000
200
201
  Processing by AuthenticationsController#callback as HTML
201
- Parameters: {"code"=>"daa5e2fc0ad0328af9878ea9598b8589f4cea2b29d38a6aa196e7a8994a5ab45", "state"=>"35f142a543812a04aeb5629d0e2bf6ac5a941ea67abd888b"}
202
+ Parameters: {"code"=>"32308db68644cb78086855960ae2b2e0f1c92b2820be64d0dbc2a7894692c1f0", "state"=>"5b3591a84a62818a42b8c9ded59dc1de15d93cc447546831"}
202
203
  Authenticating with gds_sso strategy
203
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
204
-  (0.1ms) begin transaction
205
-  (0.4ms) UPDATE "users" SET "permissions" = '---
204
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
205
+  (0.0ms) begin transaction
206
+  (0.2ms) UPDATE "users" SET "permissions" = '---
206
207
  - signin
207
208
  ' WHERE "users"."id" = 1
208
-  (19.0ms) commit transaction
209
+  (14.3ms) commit transaction
209
210
   (0.1ms) begin transaction
210
-  (0.3ms) UPDATE "users" SET "permissions" = '---
211
+  (0.2ms) UPDATE "users" SET "permissions" = '---
211
212
  - signin
212
213
  ' WHERE "users"."id" = 1
213
-  (8.8ms) commit transaction
214
+  (12.7ms) commit transaction
214
215
  Redirected to http://www.example-client.com/restricted
215
- Completed 302 Found in 39.2ms (ActiveRecord: 29.1ms)
216
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:39 +0000
216
+ Completed 302 Found in 33.2ms (ActiveRecord: 27.7ms)
217
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:36 +0000
217
218
  Processing by ExampleController#restricted as HTML
218
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
219
- Completed 200 OK in 2.6ms (Views: 0.7ms | ActiveRecord: 0.3ms)
220
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:16:39 +0000
219
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
220
+ Completed 200 OK in 1.8ms (Views: 0.5ms | ActiveRecord: 0.2ms)
221
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:07:36 +0000
221
222
  Processing by ExampleController#restricted as HTML
222
223
  Authenticating with gds_sso strategy
223
- Completed in 0.7ms
224
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:16:39 +0000
225
- Started GET "/auth/gds/callback?code=6d449a11a4e3f73cc5bdecd3540af55be1e44b2c117fa9df539448548ed7776c&state=7cebff92e180f1f2c8243f98a2000efc06d5cbf6b3bd11d3" for 127.0.0.1 at 2015-04-21 09:16:39 +0000
224
+ Completed in 0.4ms
225
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:07:36 +0000
226
+ Started GET "/auth/gds/callback?code=713862b5e22ad016e5a9da05566ecceaf08fc5c9e8e214e2e8d31852fdf2012d&state=e10586ec34d05d93e4a6e8e9cd14721c8cb109738abc7f1d" for 127.0.0.1 at 2015-04-24 07:07:36 +0000
226
227
  Processing by AuthenticationsController#callback as HTML
227
- Parameters: {"code"=>"6d449a11a4e3f73cc5bdecd3540af55be1e44b2c117fa9df539448548ed7776c", "state"=>"7cebff92e180f1f2c8243f98a2000efc06d5cbf6b3bd11d3"}
228
+ Parameters: {"code"=>"713862b5e22ad016e5a9da05566ecceaf08fc5c9e8e214e2e8d31852fdf2012d", "state"=>"e10586ec34d05d93e4a6e8e9cd14721c8cb109738abc7f1d"}
228
229
  Authenticating with gds_sso strategy
229
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
230
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
230
231
   (0.1ms) begin transaction
231
232
   (0.3ms) UPDATE "users" SET "permissions" = '---
232
233
  - signin
233
234
  ' WHERE "users"."id" = 1
234
-  (15.4ms) commit transaction
235
+  (11.6ms) commit transaction
235
236
   (0.1ms) begin transaction
236
237
   (0.2ms) UPDATE "users" SET "permissions" = '---
237
238
  - signin
238
239
  ' WHERE "users"."id" = 1
239
-  (17.9ms) commit transaction
240
+  (12.8ms) commit transaction
240
241
  Redirected to http://www.example-client.com/restricted
241
- Completed 302 Found in 39.9ms (ActiveRecord: 34.3ms)
242
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:16:39 +0000
242
+ Completed 302 Found in 31.2ms (ActiveRecord: 25.5ms)
243
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:07:36 +0000
243
244
  Processing by ExampleController#restricted as HTML
244
245
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
245
- Completed 200 OK in 1.7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
246
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:39 +0000
246
+ Completed 200 OK in 2.2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
247
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:36 +0000
247
248
  Processing by ExampleController#restricted as HTML
248
249
  Authenticating with gds_sso strategy
249
- Completed in 0.4ms
250
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:11:39 +0000
251
- Started GET "/auth/gds/callback?code=e4d9ffbd0f19975cfac64dcbb1f1e0055c8402aa73ec98f2f397f90b7d08a898&state=c6f06456d8e46b25759206fe6a2203625a295e7e70fab927" for 127.0.0.1 at 2015-04-20 13:11:39 +0000
250
+ Completed in 0.3ms
251
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:02:36 +0000
252
+ Started GET "/auth/gds/callback?code=6a4a64c4bdbe8c9481d9b2f00aa6e9df15536e20d6539c79796dd4ea117fb1cc&state=096877e59a232525f2f3048eab8d44dfe0a04887ba252c28" for 127.0.0.1 at 2015-04-23 11:02:36 +0000
252
253
  Processing by AuthenticationsController#callback as HTML
253
- Parameters: {"code"=>"e4d9ffbd0f19975cfac64dcbb1f1e0055c8402aa73ec98f2f397f90b7d08a898", "state"=>"c6f06456d8e46b25759206fe6a2203625a295e7e70fab927"}
254
+ Parameters: {"code"=>"6a4a64c4bdbe8c9481d9b2f00aa6e9df15536e20d6539c79796dd4ea117fb1cc", "state"=>"096877e59a232525f2f3048eab8d44dfe0a04887ba252c28"}
254
255
  Authenticating with gds_sso strategy
255
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
256
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
256
257
   (0.1ms) begin transaction
257
-  (0.3ms) UPDATE "users" SET "permissions" = '---
258
+  (0.2ms) UPDATE "users" SET "permissions" = '---
258
259
  - signin
259
260
  ' WHERE "users"."id" = 1
260
-  (23.4ms) commit transaction
261
+  (12.1ms) commit transaction
261
262
   (0.1ms) begin transaction
262
-  (0.3ms) UPDATE "users" SET "permissions" = '---
263
+  (0.2ms) UPDATE "users" SET "permissions" = '---
263
264
  - signin
264
265
  ' WHERE "users"."id" = 1
265
-  (20.0ms) commit transaction
266
+  (19.8ms) commit transaction
266
267
  Redirected to http://www.example-client.com/restricted
267
- Completed 302 Found in 53.6ms (ActiveRecord: 44.6ms)
268
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:40 +0000
268
+ Completed 302 Found in 38.1ms (ActiveRecord: 32.6ms)
269
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:37 +0000
269
270
  Processing by ExampleController#restricted as HTML
270
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
271
- Completed 200 OK in 2.8ms (Views: 0.8ms | ActiveRecord: 0.3ms)
272
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:06:40 +0000
271
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
272
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
273
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 06:57:37 +0000
273
274
  Processing by ExampleController#restricted as HTML
274
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
275
- Completed 200 OK in 11.2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
276
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:40 +0000
275
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
276
+ Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
277
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:37 +0000
278
+ Processing by ExampleController#restricted as JSON
279
+ Completed in 28.6ms
280
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:38 +0000
277
281
  Processing by ExampleController#restricted as JSON
278
- Completed in 135.2ms
279
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:11:41 +0000
280
- Processing by ExampleController#this_requires_signin_permission as JSON
281
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
282
-  (0.1ms) begin transaction
283
-  (0.4ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '---
284
- - signin
285
- ' WHERE "users"."id" = 1
286
-  (35.1ms) commit transaction
287
282
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
288
283
   (0.1ms) begin transaction
289
-  (0.3ms) UPDATE "users" SET "permissions" = '---
284
+  (0.2ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '---
290
285
  - signin
291
286
  ' WHERE "users"."id" = 1
292
-  (15.2ms) commit transaction
287
+  (20.8ms) commit transaction
293
288
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
294
-  (0.1ms) begin transaction
295
-  (0.3ms) UPDATE "users" SET "permissions" = '---
289
+  (0.0ms) begin transaction
290
+  (0.2ms) UPDATE "users" SET "permissions" = '---
296
291
  - signin
297
292
  ' WHERE "users"."id" = 1
298
-  (28.3ms) commit transaction
293
+  (29.2ms) commit transaction
299
294
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
300
295
   (0.0ms) begin transaction
301
296
   (0.2ms) UPDATE "users" SET "permissions" = '---
302
297
  - signin
303
298
  ' WHERE "users"."id" = 1
304
-  (15.4ms) commit transaction
299
+  (37.5ms) commit transaction
300
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
301
+  (0.0ms) begin transaction
302
+  (0.2ms) UPDATE "users" SET "permissions" = '---
303
+ - signin
304
+ ' WHERE "users"."id" = 1
305
+  (12.8ms) commit transaction
305
306
   (0.1ms) begin transaction
306
307
   (0.3ms) UPDATE "users" SET "permissions" = '---
307
308
  - signin
308
309
  ' WHERE "users"."id" = 1
309
-  (14.9ms) commit transaction
310
- Completed 200 OK in 312.2ms (Views: 0.5ms | ActiveRecord: 111.8ms)
311
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:42 +0000
312
- Processing by ExampleController#restricted as JSON
313
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
310
+  (21.4ms) commit transaction
311
+ Completed 200 OK in 301.2ms (Views: 0.6ms | ActiveRecord: 123.9ms)
312
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:02:38 +0000
313
+ Processing by ExampleController#this_requires_signin_permission as JSON
314
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
314
315
   (0.1ms) begin transaction
315
-  (0.3ms) UPDATE "users" SET "permissions" = '---
316
+  (0.2ms) UPDATE "users" SET "permissions" = '---
316
317
  - signin
317
318
  ' WHERE "users"."id" = 1
318
-  (21.3ms) commit transaction
319
+  (29.6ms) commit transaction
319
320
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
320
321
   (0.1ms) begin transaction
321
-  (0.3ms) UPDATE "users" SET "permissions" = '---
322
+  (0.2ms) UPDATE "users" SET "permissions" = '---
322
323
  - signin
323
324
  ' WHERE "users"."id" = 1
324
-  (16.0ms) commit transaction
325
+  (25.2ms) commit transaction
325
326
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
326
-  (0.1ms) begin transaction
327
-  (0.4ms) UPDATE "users" SET "permissions" = '---
327
+  (0.0ms) begin transaction
328
+  (0.2ms) UPDATE "users" SET "permissions" = '---
328
329
  - signin
329
330
  ' WHERE "users"."id" = 1
330
-  (11.1ms) commit transaction
331
+  (19.0ms) commit transaction
331
332
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
332
333
   (0.1ms) begin transaction
333
-  (0.3ms) UPDATE "users" SET "permissions" = '---
334
+  (0.2ms) UPDATE "users" SET "permissions" = '---
334
335
  - signin
335
336
  ' WHERE "users"."id" = 1
336
-  (27.1ms) commit transaction
337
+  (17.7ms) commit transaction
337
338
   (0.1ms) begin transaction
338
-  (0.3ms) UPDATE "users" SET "permissions" = '---
339
+  (0.2ms) UPDATE "users" SET "permissions" = '---
339
340
  - signin
340
341
  ' WHERE "users"."id" = 1
341
-  (17.6ms) commit transaction
342
- Completed 200 OK in 287.4ms (Views: 0.6ms | ActiveRecord: 96.2ms)
343
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:11:43 +0000
342
+  (19.5ms) commit transaction
343
+ Completed 200 OK in 330.3ms (Views: 0.5ms | ActiveRecord: 113.3ms)
344
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:02:39 +0000
344
345
  Processing by ExampleController#restricted as JSON
345
- Completed in 33.1ms
346
-  (0.2ms) begin transaction
347
- SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36859"]]
348
-  (37.7ms) commit transaction
346
+ Completed in 17.5ms
347
+  (0.1ms) begin transaction
348
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31007"]]
349
+  (16.0ms) commit transaction
349
350
   (0.1ms) begin transaction
350
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34290"]]
351
-  (10.5ms) commit transaction
351
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36254"]]
352
+  (12.7ms) commit transaction
352
353
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
353
354
  Processing by Api::UserController#update as HTML
354
- Parameters: {"uid"=>"a1s2d36859"}
355
- Completed 403 Forbidden in 18.1ms (Views: 16.7ms | ActiveRecord: 0.0ms)
355
+ Parameters: {"uid"=>"a1s2d31007"}
356
+ Completed 403 Forbidden in 4.0ms (Views: 3.2ms | ActiveRecord: 0.0ms)
356
357
   (0.1ms) begin transaction
357
- SQL (0.5ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39333"]]
358
-  (65.2ms) commit transaction
358
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37266"]]
359
+  (28.5ms) commit transaction
359
360
   (0.1ms) begin transaction
360
- SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33849"]]
361
-  (45.9ms) commit transaction
361
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33860"]]
362
+  (23.5ms) commit transaction
362
363
  Processing by Api::UserController#update as HTML
363
- Parameters: {"uid"=>"a1s2d39333"}
364
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39333' LIMIT 1
365
-  (0.1ms) begin transaction
366
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
364
+ Parameters: {"uid"=>"a1s2d37266"}
365
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37266' LIMIT 1
366
+  (0.0ms) begin transaction
367
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
367
368
  - signin
368
369
  - new permission
369
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 4
370
-  (24.4ms) commit transaction
371
- Completed 200 OK in 30.9ms (ActiveRecord: 25.2ms)
372
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
373
-  (0.1ms) begin transaction
374
- SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33478"]]
375
-  (27.6ms) commit transaction
376
-  (0.1ms) begin transaction
377
- SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38389"]]
378
-  (9.9ms) commit transaction
379
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
380
- Processing by Api::UserController#reauth as HTML
381
- Parameters: {"uid"=>"a1s2d33478"}
382
- Completed 403 Forbidden in 2.7ms (Views: 1.5ms | ActiveRecord: 0.0ms)
370
+ ', "organisation_slug" = 'justice-league', "organisation_content_id" = 'aae1319e-5788-4677-998c-f1a53af528d0' WHERE "users"."id" = 4
371
+  (10.4ms) commit transaction
372
+ Completed 200 OK in 15.3ms (ActiveRecord: 10.8ms)
373
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
383
374
   (0.1ms) begin transaction
384
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37625"]]
385
-  (16.5ms) commit transaction
375
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31316"]]
376
+  (11.5ms) commit transaction
386
377
   (0.1ms) begin transaction
387
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38024"]]
388
-  (18.7ms) commit transaction
378
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33587"]]
379
+  (13.1ms) commit transaction
389
380
  Processing by Api::UserController#reauth as HTML
390
381
  Parameters: {"uid"=>"nonexistent-user"}
391
382
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
392
- Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
383
+ Completed 200 OK in 1.7ms (ActiveRecord: 0.2ms)
393
384
   (0.1ms) begin transaction
394
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38785"]]
395
-  (25.4ms) commit transaction
385
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31719"]]
386
+  (16.6ms) commit transaction
396
387
   (0.1ms) begin transaction
397
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39294"]]
398
-  (9.2ms) commit transaction
388
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34357"]]
389
+  (19.8ms) commit transaction
390
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
399
391
  Processing by Api::UserController#reauth as HTML
400
- Parameters: {"uid"=>"a1s2d38785"}
401
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38785' LIMIT 1
402
-  (0.1ms) begin transaction
403
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
404
- - signin
405
- ' WHERE "users"."id" = 10
406
-  (6.5ms) commit transaction
407
- Completed 200 OK in 10.4ms (ActiveRecord: 7.1ms)
408
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
409
-  (0.2ms) begin transaction
410
- SQL (4.7ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3542"]]
411
-  (13.4ms) commit transaction
392
+ Parameters: {"uid"=>"a1s2d31719"}
393
+ Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
412
394
   (0.1ms) begin transaction
413
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33294"]]
414
-  (10.3ms) commit transaction
415
- Processing by Api::UserController#update as HTML
416
- Parameters: {"uid"=>"a1s2d3542"}
417
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
418
- Completed 403 Forbidden in 160ms (Views: 158.9ms | ActiveRecord: 0.0ms)
419
-  (0.2ms) begin transaction
420
- SQL (14.7ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3390"]]
421
-  (18.5ms) commit transaction
422
-  (0.3ms) begin transaction
423
- SQL (0.6ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32796"]]
424
-  (18.2ms) commit transaction
425
- Processing by Api::UserController#update as HTML
426
- Parameters: {"uid"=>"a1s2d3390"}
427
- User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3390' ORDER BY "users"."id" ASC LIMIT 1
428
-  (0.2ms) begin transaction
429
- SQL (0.8ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
430
-  (27.8ms) commit transaction
431
- Completed 200 OK in 85ms (ActiveRecord: 30.6ms)
432
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
433
-  (0.2ms) begin transaction
434
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39292"]]
435
-  (51.7ms) commit transaction
395
+ SQL (0.9ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35311"]]
396
+  (14.1ms) commit transaction
436
397
   (0.1ms) begin transaction
437
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34858"]]
438
-  (68.6ms) commit transaction
439
- Processing by Api::UserController#reauth as HTML
440
- Parameters: {"uid"=>"a1s2d39292"}
441
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39292' ORDER BY "users"."id" ASC LIMIT 1
442
-  (0.2ms) begin transaction
443
- SQL (0.6ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 5 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
444
-  (32.3ms) commit transaction
445
- Completed 200 OK in 40ms (ActiveRecord: 33.4ms)
446
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
447
-  (0.2ms) begin transaction
448
- SQL (0.5ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38465"]]
449
-  (30.1ms) commit transaction
450
-  (0.1ms) begin transaction
451
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31128"]]
452
-  (24.6ms) commit transaction
398
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35771"]]
399
+  (11.1ms) commit transaction
453
400
  Processing by Api::UserController#reauth as HTML
454
- Parameters: {"uid"=>"nonexistent-user"}
455
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
456
- Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
457
-  (0.2ms) begin transaction
458
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35674"]]
459
-  (26.5ms) commit transaction
401
+ Parameters: {"uid"=>"a1s2d35311"}
402
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35311' LIMIT 1
460
403
   (0.1ms) begin transaction
461
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3831"]]
462
-  (12.1ms) commit transaction
463
- Processing by Api::UserController#reauth as HTML
464
- Parameters: {"uid"=>"a1s2d35674"}
465
- Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
466
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:13:02 +0000
404
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
405
+ - signin
406
+ ' WHERE "users"."id" = 10
407
+  (10.5ms) commit transaction
408
+ Completed 200 OK in 13.8ms (ActiveRecord: 10.9ms)
409
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
410
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:03:54 +0000
411
+ Processing by ExampleController#index as HTML
412
+ Rendered text template (0.0ms)
413
+ Completed 200 OK in 81ms (Views: 80.7ms | ActiveRecord: 0.0ms)
414
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:03:54 +0000
467
415
  Processing by ExampleController#this_requires_signin_permission as HTML
468
416
  Authenticating with gds_sso strategy
469
- Completed in 74ms
470
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:03 +0000
471
- Started GET "/auth/gds/callback?code=13bd05510dd29919d0893826652110cb4d8906738229ea4054fdf0318c788532&state=4ba15512ade890ee5832c87ad7f125c97fd6b1b59e788f5e" for 127.0.0.1 at 2015-04-20 13:13:05 +0000
417
+ Completed in 62ms
418
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:55 +0000
419
+ Started GET "/auth/gds/callback?code=b6c42b01bc54033735e8a81964faa30f2f8b7543498243c75de58ac22f3a0bfa&state=63af1011385db0f7842608ec6d3686d4971981c34ce4eb5f" for 127.0.0.1 at 2015-04-23 11:03:56 +0000
472
420
  Processing by AuthenticationsController#callback as HTML
473
- Parameters: {"code"=>"13bd05510dd29919d0893826652110cb4d8906738229ea4054fdf0318c788532", "state"=>"4ba15512ade890ee5832c87ad7f125c97fd6b1b59e788f5e"}
421
+ Parameters: {"code"=>"b6c42b01bc54033735e8a81964faa30f2f8b7543498243c75de58ac22f3a0bfa", "state"=>"63af1011385db0f7842608ec6d3686d4971981c34ce4eb5f"}
474
422
  Authenticating with gds_sso strategy
475
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
476
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
477
-  (0.1ms) begin transaction
478
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
479
-  (13.6ms) commit transaction
423
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
424
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
480
425
   (0.1ms) begin transaction
481
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
482
-  (11.8ms) commit transaction
426
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
427
+  (28.1ms) commit transaction
428
+  (0.1ms) begin transaction
429
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
430
+  (17.6ms) commit transaction
483
431
  Redirected to http://www.example-client.com/this_requires_signin_permission
484
- Completed 302 Found in 45ms (ActiveRecord: 26.7ms)
485
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:13:05 +0000
432
+ Completed 302 Found in 115ms (ActiveRecord: 47.9ms)
433
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:03:56 +0000
486
434
  Processing by ExampleController#this_requires_signin_permission as HTML
487
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
488
- Completed 200 OK in 123ms (Views: 119.3ms | ActiveRecord: 0.3ms)
489
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:13:05 +0000
435
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
436
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
437
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:03:56 +0000
490
438
  Processing by ExampleController#this_requires_signin_permission as HTML
491
439
  Authenticating with gds_sso strategy
492
- Completed in 1ms
493
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:05 +0000
494
- Started GET "/auth/gds/callback?code=b873fe327c4f2a40795189f9daba11180ca894403276092064b3fcb44f815ec3&state=859c821a1cff0c832e1ab80c41fca5e35517f9d5be02b4d8" for 127.0.0.1 at 2015-04-20 13:13:06 +0000
440
+ Completed in 0ms
441
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:56 +0000
442
+ Started GET "/auth/gds/callback?code=660e78a35e3906dfa4d7082db89d1504e82a1055644cf26c72600d74fdd37f1b&state=f1fb19b9f8d504af8dbdc0f179dc472fd79822ced26b4d28" for 127.0.0.1 at 2015-04-23 11:03:57 +0000
495
443
  Processing by AuthenticationsController#callback as HTML
496
- Parameters: {"code"=>"b873fe327c4f2a40795189f9daba11180ca894403276092064b3fcb44f815ec3", "state"=>"859c821a1cff0c832e1ab80c41fca5e35517f9d5be02b4d8"}
444
+ Parameters: {"code"=>"660e78a35e3906dfa4d7082db89d1504e82a1055644cf26c72600d74fdd37f1b", "state"=>"f1fb19b9f8d504af8dbdc0f179dc472fd79822ced26b4d28"}
497
445
  Authenticating with gds_sso strategy
498
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
499
-  (0.1ms) begin transaction
500
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
501
-  (13.7ms) commit transaction
446
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
502
447
   (0.1ms) begin transaction
503
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
504
-  (29.3ms) commit transaction
448
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
449
+  (17.6ms) commit transaction
450
+  (0.1ms) begin transaction
451
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
452
+  (24.3ms) commit transaction
505
453
  Redirected to http://www.example-client.com/this_requires_signin_permission
506
- Completed 302 Found in 50ms (ActiveRecord: 44.0ms)
507
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:13:06 +0000
454
+ Completed 302 Found in 49ms (ActiveRecord: 42.8ms)
455
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:03:57 +0000
508
456
  Processing by ExampleController#this_requires_signin_permission as HTML
509
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
510
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
511
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:06 +0000
457
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
458
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
459
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:57 +0000
512
460
  Processing by ExampleController#restricted as HTML
513
461
  Authenticating with gds_sso strategy
514
462
  Completed in 1ms
515
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:06 +0000
516
- Started GET "/auth/gds/callback?code=1fa99cf66f371d175d0fa88eb6801a78820cca0ab2fff8ff49ee8a612ae94f44&state=e011cd8bcbc6f002ff839b7054fef36b766e7b6ce2634654" for 127.0.0.1 at 2015-04-20 13:13:06 +0000
463
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:57 +0000
464
+ Started GET "/auth/gds/callback?code=68135862a736dba05ca4814bf5fcfb9da2018ea77723bae2fde201292b702aa8&state=bc04588380fac40c01a8b4801e40302a5cdf21537adb8cbc" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
517
465
  Processing by AuthenticationsController#callback as HTML
518
- Parameters: {"code"=>"1fa99cf66f371d175d0fa88eb6801a78820cca0ab2fff8ff49ee8a612ae94f44", "state"=>"e011cd8bcbc6f002ff839b7054fef36b766e7b6ce2634654"}
466
+ Parameters: {"code"=>"68135862a736dba05ca4814bf5fcfb9da2018ea77723bae2fde201292b702aa8", "state"=>"bc04588380fac40c01a8b4801e40302a5cdf21537adb8cbc"}
519
467
  Authenticating with gds_sso strategy
520
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
521
-  (0.1ms) begin transaction
522
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
523
-  (15.0ms) commit transaction
468
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
524
469
   (0.1ms) begin transaction
525
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
526
-  (12.1ms) commit transaction
470
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
471
+  (94.9ms) commit transaction
472
+  (0.1ms) begin transaction
473
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
474
+  (30.5ms) commit transaction
527
475
  Redirected to http://www.example-client.com/restricted
528
- Completed 302 Found in 36ms (ActiveRecord: 28.2ms)
529
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:07 +0000
476
+ Completed 302 Found in 135ms (ActiveRecord: 126.5ms)
477
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
530
478
  Processing by ExampleController#restricted as HTML
531
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
532
- Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
533
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:13:07 +0000
534
- Processing by ExampleController#index as HTML
535
- Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
536
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:07 +0000
479
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
480
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
481
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
537
482
  Processing by ExampleController#restricted as HTML
538
483
  Authenticating with gds_sso strategy
539
484
  Completed in 1ms
540
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:07 +0000
541
- Started GET "/auth/gds/callback?code=a9c2866fc433c8069257b20b6a86752b6742d4857bf5081bf8333995cc7d253b&state=4ab7050d64e8b07dbc5c4a65f4ecf54d79868070e62c31d8" for 127.0.0.1 at 2015-04-20 13:13:08 +0000
485
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
486
+ Started GET "/auth/gds/callback?code=fab6ec3cdd26f32bb81131846418e52e35d4357f0c7a4c20524ca64f8c16eb28&state=bf55106215b8223b3d5fd56a15b44510bd5c376bed76f61b" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
542
487
  Processing by AuthenticationsController#callback as HTML
543
- Parameters: {"code"=>"a9c2866fc433c8069257b20b6a86752b6742d4857bf5081bf8333995cc7d253b", "state"=>"4ab7050d64e8b07dbc5c4a65f4ecf54d79868070e62c31d8"}
488
+ Parameters: {"code"=>"fab6ec3cdd26f32bb81131846418e52e35d4357f0c7a4c20524ca64f8c16eb28", "state"=>"bf55106215b8223b3d5fd56a15b44510bd5c376bed76f61b"}
544
489
  Authenticating with gds_sso strategy
545
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
546
-  (0.1ms) begin transaction
547
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
548
-  (10.2ms) commit transaction
490
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
549
491
   (0.1ms) begin transaction
550
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
551
-  (36.0ms) commit transaction
492
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
493
+  (16.1ms) commit transaction
494
+  (0.1ms) begin transaction
495
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
496
+  (16.1ms) commit transaction
552
497
  Redirected to http://www.example-client.com/restricted
553
- Completed 302 Found in 56ms (ActiveRecord: 47.5ms)
554
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:08 +0000
498
+ Completed 302 Found in 39ms (ActiveRecord: 33.1ms)
499
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:58 +0000
555
500
  Processing by ExampleController#restricted as HTML
556
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
557
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
558
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:08 +0000
501
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
502
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
503
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
559
504
  Processing by ExampleController#restricted as HTML
560
505
  Authenticating with gds_sso strategy
561
506
  Completed in 0ms
562
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:08 +0000
563
- Started GET "/auth/gds/callback?code=30480405c10d68f5c7e99e60465021444d6d7cc7ed328a7a5a5270184e079fc9&state=cff49ac4e2ae235ce5d2573337d17090835dc7b06d8f159b" for 127.0.0.1 at 2015-04-20 13:13:08 +0000
507
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
508
+ Started GET "/auth/gds/callback?code=c0b757cfbb0b833473494b01e396285d058a942aded93ea240eca099f4609da9&state=19631c205ce6e93798eb67586a4d4a9fd0de0ff7d468266e" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
564
509
  Processing by AuthenticationsController#callback as HTML
565
- Parameters: {"code"=>"30480405c10d68f5c7e99e60465021444d6d7cc7ed328a7a5a5270184e079fc9", "state"=>"cff49ac4e2ae235ce5d2573337d17090835dc7b06d8f159b"}
510
+ Parameters: {"code"=>"c0b757cfbb0b833473494b01e396285d058a942aded93ea240eca099f4609da9", "state"=>"19631c205ce6e93798eb67586a4d4a9fd0de0ff7d468266e"}
566
511
  Authenticating with gds_sso strategy
567
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
568
-  (0.1ms) begin transaction
569
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
570
-  (43.8ms) commit transaction
512
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
571
513
   (0.1ms) begin transaction
572
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
573
-  (23.7ms) commit transaction
514
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
515
+  (18.4ms) commit transaction
516
+  (0.1ms) begin transaction
517
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
518
+  (22.5ms) commit transaction
574
519
  Redirected to http://www.example-client.com/restricted
575
- Completed 302 Found in 76ms (ActiveRecord: 68.5ms)
576
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:09 +0000
520
+ Completed 302 Found in 49ms (ActiveRecord: 41.8ms)
521
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
577
522
  Processing by ExampleController#restricted as HTML
578
- User Load (2.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
579
- Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 2.1ms)
580
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:09 +0000
523
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
524
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
525
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
581
526
  Processing by ExampleController#restricted as HTML
582
527
  Authenticating with gds_sso strategy
583
528
  Completed in 1ms
584
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:09 +0000
585
- Started GET "/auth/gds/callback?code=b81b46a91ef0f907d84a49bc845e38b668ad931f572ca1db8eb6c6311ec1b55a&state=55ec19f091d61da64d048b5297522d7026f8da944bc37bac" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
529
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:03:59 +0000
530
+ Started GET "/auth/gds/callback?code=25115e415e27fdc41fef33db685f8861db7a69fa204eef4c1069287cfc4b87f3&state=a810ab1b2e4fcaf7308c93e3ab187063c4f64982927e405a" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
586
531
  Processing by AuthenticationsController#callback as HTML
587
- Parameters: {"code"=>"b81b46a91ef0f907d84a49bc845e38b668ad931f572ca1db8eb6c6311ec1b55a", "state"=>"55ec19f091d61da64d048b5297522d7026f8da944bc37bac"}
532
+ Parameters: {"code"=>"25115e415e27fdc41fef33db685f8861db7a69fa204eef4c1069287cfc4b87f3", "state"=>"a810ab1b2e4fcaf7308c93e3ab187063c4f64982927e405a"}
588
533
  Authenticating with gds_sso strategy
589
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
590
-  (0.1ms) begin transaction
591
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
592
-  (13.5ms) commit transaction
534
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
593
535
   (0.1ms) begin transaction
594
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
595
-  (13.1ms) commit transaction
536
+ SQL (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
537
+  (24.1ms) commit transaction
538
+  (0.1ms) begin transaction
539
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
540
+  (17.7ms) commit transaction
596
541
  Redirected to http://www.example-client.com/restricted
597
- Completed 302 Found in 35ms (ActiveRecord: 27.6ms)
598
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
542
+ Completed 302 Found in 52ms (ActiveRecord: 43.3ms)
543
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
599
544
  Processing by ExampleController#restricted as HTML
600
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
601
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
602
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
603
-  (0.1ms) begin transaction
604
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
605
-  (26.3ms) commit transaction
606
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
545
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
546
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
547
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
548
+  (0.1ms) begin transaction
549
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
550
+  (14.3ms) commit transaction
551
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
607
552
  Processing by ExampleController#restricted as HTML
608
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
553
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
609
554
  Authenticating with gds_sso strategy
610
555
  Completed in 2ms
611
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
612
- Started GET "/auth/gds/callback?code=407e9ef07c25f8622c5642b6d172ae690a9d0c64b01504ee5565aa143a549da8&state=1e995e2169f03eceb72d4040de2e8bd41c18311c3b3c62ca" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
556
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
557
+ Started GET "/auth/gds/callback?code=9b5697115a220966c3bd79ebdb69c4d690c5d4e98447d7e7738e6a194e5521c8&state=b1b220427f87e86174ab593e22268f5e34e9bed52d9e3cc5" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
613
558
  Processing by AuthenticationsController#callback as HTML
614
- Parameters: {"code"=>"407e9ef07c25f8622c5642b6d172ae690a9d0c64b01504ee5565aa143a549da8", "state"=>"1e995e2169f03eceb72d4040de2e8bd41c18311c3b3c62ca"}
559
+ Parameters: {"code"=>"9b5697115a220966c3bd79ebdb69c4d690c5d4e98447d7e7738e6a194e5521c8", "state"=>"b1b220427f87e86174ab593e22268f5e34e9bed52d9e3cc5"}
615
560
  Authenticating with gds_sso strategy
616
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
617
-  (0.1ms) begin transaction
618
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
619
-  (22.1ms) commit transaction
561
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
620
562
   (0.1ms) begin transaction
621
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
622
-  (16.2ms) commit transaction
563
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
564
+  (15.3ms) commit transaction
565
+  (0.1ms) begin transaction
566
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
567
+  (15.0ms) commit transaction
623
568
  Redirected to http://www.example-client.com/restricted
624
- Completed 302 Found in 46ms (ActiveRecord: 39.3ms)
625
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:10 +0000
569
+ Completed 302 Found in 37ms (ActiveRecord: 31.2ms)
570
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
626
571
  Processing by ExampleController#restricted as HTML
627
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
628
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
629
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:11 +0000
572
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
573
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
574
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
630
575
  Processing by ExampleController#restricted as HTML
631
576
  Authenticating with gds_sso strategy
632
577
  Completed in 1ms
633
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:11 +0000
634
- Started GET "/auth/gds/callback?code=0e06469e5cb0a6f45e17bc10df18e626c23ea61d467504098f491adbf9e16fa1&state=bb886fa649be596fcfee7e6a0a81c15a39a4474b554339ad" for 127.0.0.1 at 2015-04-20 13:13:11 +0000
578
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:04:00 +0000
579
+ Started GET "/auth/gds/callback?code=85b17f53db107ce0f3e0bda7f3d367a470c6890c5f1d7a5b4261e15f136c0996&state=a4ba737b91dde604aec5b6745367370f0445bcd4b71f6d98" for 127.0.0.1 at 2015-04-23 11:04:01 +0000
635
580
  Processing by AuthenticationsController#callback as HTML
636
- Parameters: {"code"=>"0e06469e5cb0a6f45e17bc10df18e626c23ea61d467504098f491adbf9e16fa1", "state"=>"bb886fa649be596fcfee7e6a0a81c15a39a4474b554339ad"}
581
+ Parameters: {"code"=>"85b17f53db107ce0f3e0bda7f3d367a470c6890c5f1d7a5b4261e15f136c0996", "state"=>"a4ba737b91dde604aec5b6745367370f0445bcd4b71f6d98"}
637
582
  Authenticating with gds_sso strategy
638
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
639
-  (0.1ms) begin transaction
640
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
641
-  (16.5ms) commit transaction
583
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
642
584
   (0.1ms) begin transaction
643
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
644
-  (15.4ms) commit transaction
585
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
586
+  (18.6ms) commit transaction
587
+  (0.1ms) begin transaction
588
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
589
+  (23.6ms) commit transaction
645
590
  Redirected to http://www.example-client.com/restricted
646
- Completed 302 Found in 40ms (ActiveRecord: 32.9ms)
647
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:11 +0000
591
+ Completed 302 Found in 50ms (ActiveRecord: 43.0ms)
592
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:01 +0000
648
593
  Processing by ExampleController#restricted as HTML
649
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
650
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
651
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:18:12 +0000
594
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
595
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
596
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:09:01 +0000
652
597
  Processing by ExampleController#restricted as HTML
653
598
  Authenticating with gds_sso strategy
654
599
  Completed in 1ms
655
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:18:12 +0000
656
- Started GET "/auth/gds/callback?code=8782df3fac20fbf7bf53a50f92eafeb12dffc8dc38edc2f5a2152b1711b1b08e&state=1d3b14ab53584eae423309f7e0392a5f8b4d42dc6330dff2" for 127.0.0.1 at 2015-04-21 09:18:12 +0000
600
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:09:01 +0000
601
+ Started GET "/auth/gds/callback?code=f1182b311e9a2ca1799f19f99b90eeeb9d4c65cdc9372a6893a9712605c47c31&state=cc5ea50099962cb1b1906ea8ef39f9b32bcecca783b0faaa" for 127.0.0.1 at 2015-04-24 07:09:01 +0000
657
602
  Processing by AuthenticationsController#callback as HTML
658
- Parameters: {"code"=>"8782df3fac20fbf7bf53a50f92eafeb12dffc8dc38edc2f5a2152b1711b1b08e", "state"=>"1d3b14ab53584eae423309f7e0392a5f8b4d42dc6330dff2"}
603
+ Parameters: {"code"=>"f1182b311e9a2ca1799f19f99b90eeeb9d4c65cdc9372a6893a9712605c47c31", "state"=>"cc5ea50099962cb1b1906ea8ef39f9b32bcecca783b0faaa"}
659
604
  Authenticating with gds_sso strategy
660
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
661
-  (0.1ms) begin transaction
662
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
663
-  (11.5ms) commit transaction
605
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
664
606
   (0.1ms) begin transaction
665
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
666
-  (21.7ms) commit transaction
607
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
608
+  (13.8ms) commit transaction
609
+  (0.1ms) begin transaction
610
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
611
+  (12.7ms) commit transaction
667
612
  Redirected to http://www.example-client.com/restricted
668
- Completed 302 Found in 40ms (ActiveRecord: 34.1ms)
669
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:18:12 +0000
613
+ Completed 302 Found in 33ms (ActiveRecord: 27.4ms)
614
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:09:01 +0000
670
615
  Processing by ExampleController#restricted as HTML
671
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
672
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
673
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:12 +0000
616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
617
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
618
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:01 +0000
674
619
  Processing by ExampleController#restricted as HTML
675
620
  Authenticating with gds_sso strategy
676
621
  Completed in 1ms
677
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:13:12 +0000
678
- Started GET "/auth/gds/callback?code=4ad7ff30d9a3f461eeee6e8d6b8e6844047006217b788688f8262ad63f00c65f&state=7a3328eae61b6c2e60abe7b904e1ee66507dca38774a0873" for 127.0.0.1 at 2015-04-20 13:13:12 +0000
622
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:04:01 +0000
623
+ Started GET "/auth/gds/callback?code=f790dbe1c4b433bba23ffa51bee987c13097d6b5bdc834eef8d184610a15aaa0&state=b34731c331e1a26935972552a274f3f4af4f624cefa798aa" for 127.0.0.1 at 2015-04-23 11:04:02 +0000
679
624
  Processing by AuthenticationsController#callback as HTML
680
- Parameters: {"code"=>"4ad7ff30d9a3f461eeee6e8d6b8e6844047006217b788688f8262ad63f00c65f", "state"=>"7a3328eae61b6c2e60abe7b904e1ee66507dca38774a0873"}
625
+ Parameters: {"code"=>"f790dbe1c4b433bba23ffa51bee987c13097d6b5bdc834eef8d184610a15aaa0", "state"=>"b34731c331e1a26935972552a274f3f4af4f624cefa798aa"}
681
626
  Authenticating with gds_sso strategy
682
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
683
-  (0.1ms) begin transaction
684
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
685
-  (14.7ms) commit transaction
627
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
686
628
   (0.1ms) begin transaction
687
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
688
-  (12.5ms) commit transaction
629
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
630
+  (11.7ms) commit transaction
631
+  (0.2ms) begin transaction
632
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
633
+  (10.3ms) commit transaction
689
634
  Redirected to http://www.example-client.com/restricted
690
- Completed 302 Found in 37ms (ActiveRecord: 28.3ms)
691
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:13 +0000
692
- Processing by ExampleController#restricted as HTML
693
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
694
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
695
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:08:13 +0000
635
+ Completed 302 Found in 30ms (ActiveRecord: 23.0ms)
636
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:02 +0000
696
637
  Processing by ExampleController#restricted as HTML
697
638
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
698
- Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)
699
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:13 +0000
639
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
640
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 06:59:02 +0000
641
+ Processing by ExampleController#restricted as HTML
642
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
643
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
644
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:02 +0000
700
645
  Processing by ExampleController#restricted as JSON
701
- Completed in 27ms
702
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:13 +0000
646
+ Completed in 23ms
647
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:02 +0000
648
+ Processing by ExampleController#restricted as JSON
649
+ Completed in 21ms
650
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:04:03 +0000
651
+ Processing by ExampleController#this_requires_signin_permission as JSON
652
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
653
+  (0.1ms) begin transaction
654
+ SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 1 [["disabled", nil], ["permissions", "---\n- signin\n"]]
655
+  (10.0ms) commit transaction
656
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
657
+  (0.1ms) begin transaction
658
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
659
+  (14.2ms) commit transaction
660
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
661
+  (0.1ms) begin transaction
662
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
663
+  (14.4ms) commit transaction
664
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
665
+  (0.1ms) begin transaction
666
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
667
+  (12.8ms) commit transaction
668
+  (0.1ms) begin transaction
669
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
670
+  (17.4ms) commit transaction
671
+ Completed 200 OK in 228ms (Views: 0.6ms | ActiveRecord: 71.5ms)
672
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:04:03 +0000
703
673
  Processing by ExampleController#restricted as JSON
704
674
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
705
675
   (0.1ms) begin transaction
706
- SQL (0.4ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]
707
-  (10.3ms) commit transaction
676
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
677
+  (14.7ms) commit transaction
708
678
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
709
679
   (0.1ms) begin transaction
710
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
711
-  (12.3ms) commit transaction
712
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
713
-  (0.1ms) begin transaction
714
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
715
-  (10.7ms) commit transaction
680
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
681
+  (10.8ms) commit transaction
716
682
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
717
683
   (0.1ms) begin transaction
718
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
719
-  (7.1ms) commit transaction
684
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
685
+  (12.6ms) commit transaction
686
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
687
+  (0.1ms) begin transaction
688
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
689
+  (15.1ms) commit transaction
720
690
   (0.1ms) begin transaction
721
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
722
-  (57.0ms) commit transaction
723
- Completed 200 OK in 332ms (Views: 0.5ms | ActiveRecord: 100.4ms)
724
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:13:14 +0000
725
- Processing by ExampleController#restricted as JSON
726
- Completed in 109ms
727
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:13:15 +0000
728
- Processing by ExampleController#this_requires_signin_permission as JSON
729
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
691
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
692
+  (12.5ms) commit transaction
693
+ Completed 200 OK in 260ms (Views: 0.6ms | ActiveRecord: 69.3ms)
694
+  (0.2ms) begin transaction
695
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35476"]]
696
+  (24.1ms) commit transaction
730
697
   (0.1ms) begin transaction
731
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
732
-  (10.8ms) commit transaction
733
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
698
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3846"]]
699
+  (25.3ms) commit transaction
700
+ Processing by Api::UserController#update as HTML
701
+ Parameters: {"uid"=>"a1s2d35476"}
702
+ Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)
703
+  (0.1ms) begin transaction
704
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32072"]]
705
+  (11.2ms) commit transaction
734
706
   (0.1ms) begin transaction
735
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
736
-  (12.6ms) commit transaction
737
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
707
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33228"]]
708
+  (12.1ms) commit transaction
709
+ Processing by Api::UserController#update as HTML
710
+ Parameters: {"uid"=>"a1s2d32072"}
711
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32072' ORDER BY "users"."id" ASC LIMIT 1
738
712
   (0.1ms) begin transaction
739
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
740
-  (14.3ms) commit transaction
741
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
713
+ SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = 4 [["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"]]
714
+  (14.4ms) commit transaction
715
+ Completed 200 OK in 19ms (ActiveRecord: 15.0ms)
716
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
742
717
   (0.1ms) begin transaction
743
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
744
-  (11.2ms) commit transaction
718
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32954"]]
719
+  (22.8ms) commit transaction
745
720
   (0.1ms) begin transaction
746
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
747
-  (8.8ms) commit transaction
748
- Completed 200 OK in 324ms (Views: 0.5ms | ActiveRecord: 60.7ms)
721
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34686"]]
722
+  (9.5ms) commit transaction
723
+ Processing by Api::UserController#reauth as HTML
724
+ Parameters: {"uid"=>"a1s2d32954"}
725
+ Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
749
726
   (0.1ms) begin transaction
750
- SQL (0.6ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33813"]]
751
-  (23.0ms) commit transaction
727
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34294"]]
728
+  (12.0ms) commit transaction
752
729
   (0.1ms) begin transaction
753
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35294"]]
754
-  (29.7ms) commit transaction
755
- Processing by Api::UserController#update as HTML
756
- Parameters: {"uid"=>"a1s2d33813"}
757
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
758
- Completed 403 Forbidden in 109ms (Views: 108.0ms | ActiveRecord: 0.0ms)
730
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35312"]]
731
+  (9.7ms) commit transaction
732
+ Processing by Api::UserController#reauth as HTML
733
+ Parameters: {"uid"=>"nonexistent-user"}
734
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
735
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
736
+  (0.1ms) begin transaction
737
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33443"]]
738
+  (11.7ms) commit transaction
739
+  (0.1ms) begin transaction
740
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33230"]]
741
+  (22.4ms) commit transaction
742
+ Processing by Api::UserController#reauth as HTML
743
+ Parameters: {"uid"=>"a1s2d33443"}
744
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33443' ORDER BY "users"."id" ASC LIMIT 1
745
+  (0.1ms) begin transaction
746
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 10 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
747
+  (13.4ms) commit transaction
748
+ Completed 200 OK in 18ms (ActiveRecord: 14.1ms)
749
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
759
750
   (0.1ms) begin transaction
760
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38565"]]
761
-  (11.8ms) commit transaction
751
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36287"]]
752
+  (22.4ms) commit transaction
762
753
   (0.1ms) begin transaction
763
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35623"]]
764
-  (10.8ms) commit transaction
754
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35730"]]
755
+  (25.5ms) commit transaction
765
756
  Processing by Api::UserController#update as HTML
766
- Parameters: {"uid"=>"a1s2d38565"}
767
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38565' ORDER BY "users"."id" ASC LIMIT 1
768
-  (0.1ms) begin transaction
769
- SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
770
-  (17.1ms) commit transaction
771
- Completed 200 OK in 125ms (ActiveRecord: 17.9ms)
757
+ Parameters: {"uid"=>"a1s2d36287"}
758
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
759
+ Completed 403 Forbidden in 56ms (Views: 55.4ms | ActiveRecord: 0.0ms)
760
+  (0.1ms) begin transaction
761
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34543"]]
762
+  (36.5ms) commit transaction
763
+  (0.2ms) begin transaction
764
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33811"]]
765
+  (30.2ms) commit transaction
766
+ Processing by Api::UserController#update as HTML
767
+ Parameters: {"uid"=>"a1s2d34543"}
768
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34543' ORDER BY "users"."id" ASC LIMIT 1
769
+  (0.2ms) begin transaction
770
+ SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_content_id" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
771
+  (28.6ms) commit transaction
772
+ Completed 200 OK in 54ms (ActiveRecord: 29.7ms)
772
773
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
773
774
   (0.1ms) begin transaction
774
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38562"]]
775
-  (23.6ms) commit transaction
776
-  (0.1ms) begin transaction
777
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32441"]]
778
-  (9.8ms) commit transaction
775
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36354"]]
776
+  (35.9ms) commit transaction
777
+  (0.3ms) begin transaction
778
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32060"]]
779
+  (20.8ms) commit transaction
779
780
  Processing by Api::UserController#reauth as HTML
780
- Parameters: {"uid"=>"a1s2d38562"}
781
- Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms)
782
-  (0.1ms) begin transaction
783
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3795"]]
784
-  (12.6ms) commit transaction
781
+ Parameters: {"uid"=>"a1s2d36354"}
782
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36354' ORDER BY "users"."id" ASC LIMIT 1
785
783
   (0.1ms) begin transaction
786
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37875"]]
787
-  (9.2ms) commit transaction
784
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 5 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
785
+  (23.2ms) commit transaction
786
+ Completed 200 OK in 30ms (ActiveRecord: 24.2ms)
787
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
788
+  (0.2ms) begin transaction
789
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31260"]]
790
+  (20.0ms) commit transaction
791
+  (0.1ms) begin transaction
792
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38044"]]
793
+  (18.8ms) commit transaction
788
794
  Processing by Api::UserController#reauth as HTML
789
795
  Parameters: {"uid"=>"nonexistent-user"}
790
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
796
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
791
797
  Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
798
+  (0.2ms) begin transaction
799
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33069"]]
800
+  (13.0ms) commit transaction
792
801
   (0.1ms) begin transaction
793
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3553"]]
794
-  (26.1ms) commit transaction
795
-  (0.1ms) begin transaction
796
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31503"]]
797
-  (22.6ms) commit transaction
802
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37917"]]
803
+  (21.9ms) commit transaction
798
804
  Processing by Api::UserController#reauth as HTML
799
- Parameters: {"uid"=>"a1s2d3553"}
800
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3553' ORDER BY "users"."id" ASC LIMIT 1
801
-  (0.1ms) begin transaction
802
- SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 9 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
803
-  (12.3ms) commit transaction
804
- Completed 200 OK in 17ms (ActiveRecord: 12.9ms)
805
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
806
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:14:56 +0000
805
+ Parameters: {"uid"=>"a1s2d33069"}
806
+ Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
807
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:05:28 +0000
807
808
  Processing by ExampleController#index as HTML
808
- Completed 200 OK in 52ms (Views: 50.4ms | ActiveRecord: 0.0ms)
809
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:14:58 +0000
809
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
810
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:29 +0000
810
811
  Processing by ExampleController#restricted as HTML
811
812
  Authenticating with gds_sso strategy
812
- Completed in 320ms
813
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:14:58 +0000
814
- Started GET "/auth/gds/callback?code=9177f850e5cff19a11d72a0ddf2fbadfff9f498a03b823d7e9a0bbce73565325&state=b00951d7af21ca4e7a91db52b468e95f540d76fa7926d4e3" for 127.0.0.1 at 2015-04-20 13:15:03 +0000
813
+ Completed in 65ms
814
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:29 +0000
815
+ Started GET "/auth/gds/callback?code=91b74c0a3ce01710aef5c56875d50534476e99986be9e9b01d245a3bab211a12&state=a702c1c9326febc120fffc1af27ea13dca7a938ebf279cd4" for 127.0.0.1 at 2015-04-23 11:05:30 +0000
815
816
  Processing by AuthenticationsController#callback as HTML
816
- Parameters: {"code"=>"9177f850e5cff19a11d72a0ddf2fbadfff9f498a03b823d7e9a0bbce73565325", "state"=>"b00951d7af21ca4e7a91db52b468e95f540d76fa7926d4e3"}
817
+ Parameters: {"code"=>"91b74c0a3ce01710aef5c56875d50534476e99986be9e9b01d245a3bab211a12", "state"=>"a702c1c9326febc120fffc1af27ea13dca7a938ebf279cd4"}
817
818
  Authenticating with gds_sso strategy
818
- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
819
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
820
-  (0.2ms) begin transaction
821
- SQL (0.5ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
822
-  (29.5ms) commit transaction
823
-  (0.2ms) begin transaction
824
- SQL (0.8ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
825
-  (60.9ms) commit transaction
819
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
821
+  (0.1ms) begin transaction
822
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
823
+  (40.4ms) commit transaction
824
+  (0.1ms) begin transaction
825
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
826
+  (62.9ms) commit transaction
826
827
  Redirected to http://www.example-client.com/restricted
827
- Completed 302 Found in 135ms (ActiveRecord: 93.4ms)
828
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:05 +0000
828
+ Completed 302 Found in 111ms (ActiveRecord: 104.4ms)
829
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:31 +0000
829
830
  Processing by ExampleController#restricted as HTML
830
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
831
- Completed 200 OK in 16ms (Views: 1.3ms | ActiveRecord: 0.7ms)
832
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:05 +0000
831
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
832
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
833
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:31 +0000
833
834
  Processing by ExampleController#restricted as HTML
834
835
  Authenticating with gds_sso strategy
835
- Completed in 1ms
836
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:05 +0000
837
- Started GET "/auth/gds/callback?code=d4e3e44d4dd8901018d51978d4cfd32591e36747b891da9e3b49311f54dc8f48&state=6664acf2c4bc4a29116c9254010e95ac7408096cc077d5b9" for 127.0.0.1 at 2015-04-20 13:15:06 +0000
836
+ Completed in 0ms
837
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:31 +0000
838
+ Started GET "/auth/gds/callback?code=f285a7d894d1e3fb4a3f7c655056e75f02c1ba8931582d332513227ed853f0c3&state=c3fe710f1872a9a7545672934c8e561cbbd89f410989da3f" for 127.0.0.1 at 2015-04-23 11:05:31 +0000
838
839
  Processing by AuthenticationsController#callback as HTML
839
- Parameters: {"code"=>"d4e3e44d4dd8901018d51978d4cfd32591e36747b891da9e3b49311f54dc8f48", "state"=>"6664acf2c4bc4a29116c9254010e95ac7408096cc077d5b9"}
840
+ Parameters: {"code"=>"f285a7d894d1e3fb4a3f7c655056e75f02c1ba8931582d332513227ed853f0c3", "state"=>"c3fe710f1872a9a7545672934c8e561cbbd89f410989da3f"}
840
841
  Authenticating with gds_sso strategy
841
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
842
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
842
843
   (0.1ms) begin transaction
843
- SQL (0.6ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
844
-  (101.9ms) commit transaction
845
-  (0.2ms) begin transaction
846
- SQL (0.8ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
847
-  (29.5ms) commit transaction
844
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
845
+  (39.0ms) commit transaction
846
+  (0.1ms) begin transaction
847
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
848
+  (28.4ms) commit transaction
848
849
  Redirected to http://www.example-client.com/restricted
849
- Completed 302 Found in 171ms (ActiveRecord: 133.7ms)
850
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:06 +0000
850
+ Completed 302 Found in 75ms (ActiveRecord: 68.4ms)
851
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:31 +0000
851
852
  Processing by ExampleController#restricted as HTML
852
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
853
- Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
854
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:06 +0000
853
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
854
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
855
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:32 +0000
855
856
  Processing by ExampleController#restricted as HTML
856
857
  Authenticating with gds_sso strategy
857
858
  Completed in 1ms
858
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:06 +0000
859
- Started GET "/auth/gds/callback?code=b25255a34182b673ac488fde41537b100c0ce31a991b63cad60c267c8fcc6682&state=6cbe44a62b9451f64435cbc6156b63872a761e67088aac31" for 127.0.0.1 at 2015-04-20 13:15:07 +0000
859
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:32 +0000
860
+ Started GET "/auth/gds/callback?code=616412f7418f8e137dd286da8ce9231976d73bec79aa35b960baae3fd0a13eb8&state=943914624c999deaff0d13fa4a886aa9147c88f32bd60fee" for 127.0.0.1 at 2015-04-23 11:05:32 +0000
860
861
  Processing by AuthenticationsController#callback as HTML
861
- Parameters: {"code"=>"b25255a34182b673ac488fde41537b100c0ce31a991b63cad60c267c8fcc6682", "state"=>"6cbe44a62b9451f64435cbc6156b63872a761e67088aac31"}
862
+ Parameters: {"code"=>"616412f7418f8e137dd286da8ce9231976d73bec79aa35b960baae3fd0a13eb8", "state"=>"943914624c999deaff0d13fa4a886aa9147c88f32bd60fee"}
862
863
  Authenticating with gds_sso strategy
863
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
864
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
864
865
   (0.1ms) begin transaction
865
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
866
-  (24.1ms) commit transaction
866
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
867
+  (22.9ms) commit transaction
867
868
   (0.1ms) begin transaction
868
869
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
869
-  (23.6ms) commit transaction
870
+  (35.9ms) commit transaction
870
871
  Redirected to http://www.example-client.com/restricted
871
- Completed 302 Found in 56ms (ActiveRecord: 48.9ms)
872
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:07 +0000
872
+ Completed 302 Found in 66ms (ActiveRecord: 59.7ms)
873
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:32 +0000
873
874
  Processing by ExampleController#restricted as HTML
874
875
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
875
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
876
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:15:07 +0000
876
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
877
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
877
878
  Processing by ExampleController#this_requires_signin_permission as HTML
878
879
  Authenticating with gds_sso strategy
879
880
  Completed in 1ms
880
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:07 +0000
881
- Started GET "/auth/gds/callback?code=e6c52854f10869e2bdbfe0fe16a712eea9de97573903a905d79a0964fb32bb1d&state=002b5fa5b0434be43217bd78703d7d8ce1f1b9e1ab9ebdb9" for 127.0.0.1 at 2015-04-20 13:15:08 +0000
881
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
882
+ Started GET "/auth/gds/callback?code=ad9585b1d68a44c48ca7621bed9dfe05ebc333168a585fe7bc01399328c9d5a0&state=8593eda1ebb779838042d9f8a5f4aceaae155be3dae7e3db" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
882
883
  Processing by AuthenticationsController#callback as HTML
883
- Parameters: {"code"=>"e6c52854f10869e2bdbfe0fe16a712eea9de97573903a905d79a0964fb32bb1d", "state"=>"002b5fa5b0434be43217bd78703d7d8ce1f1b9e1ab9ebdb9"}
884
+ Parameters: {"code"=>"ad9585b1d68a44c48ca7621bed9dfe05ebc333168a585fe7bc01399328c9d5a0", "state"=>"8593eda1ebb779838042d9f8a5f4aceaae155be3dae7e3db"}
884
885
  Authenticating with gds_sso strategy
885
886
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
886
887
   (0.1ms) begin transaction
887
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
888
-  (55.5ms) commit transaction
888
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
889
+  (170.7ms) commit transaction
889
890
   (0.1ms) begin transaction
890
891
  SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
891
-  (53.0ms) commit transaction
892
+  (40.9ms) commit transaction
892
893
  Redirected to http://www.example-client.com/this_requires_signin_permission
893
- Completed 302 Found in 117ms (ActiveRecord: 109.6ms)
894
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:15:08 +0000
894
+ Completed 302 Found in 219ms (ActiveRecord: 212.6ms)
895
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
895
896
  Processing by ExampleController#this_requires_signin_permission as HTML
896
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
897
- Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
898
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:15:08 +0000
897
+ User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
898
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 1.0ms)
899
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
899
900
  Processing by ExampleController#this_requires_signin_permission as HTML
900
901
  Authenticating with gds_sso strategy
901
- Completed in 1ms
902
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:08 +0000
903
- Started GET "/auth/gds/callback?code=607b95542f045f294722e623d451d68494bfd370e2967e126e47d2ca202b9090&state=6e4b0c45620ce2dc63cc4d189fdef501ef80b58f9e882e0b" for 127.0.0.1 at 2015-04-20 13:15:08 +0000
902
+ Completed in 0ms
903
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:33 +0000
904
+ Started GET "/auth/gds/callback?code=f6bdb4e1a93c53efda65c3c3ff5af6beab2bd3d0fa1546396100d5b877d932c3&state=54026c7bae6067a5436403a0138c743092d58ac563b1bb01" for 127.0.0.1 at 2015-04-23 11:05:34 +0000
904
905
  Processing by AuthenticationsController#callback as HTML
905
- Parameters: {"code"=>"607b95542f045f294722e623d451d68494bfd370e2967e126e47d2ca202b9090", "state"=>"6e4b0c45620ce2dc63cc4d189fdef501ef80b58f9e882e0b"}
906
+ Parameters: {"code"=>"f6bdb4e1a93c53efda65c3c3ff5af6beab2bd3d0fa1546396100d5b877d932c3", "state"=>"54026c7bae6067a5436403a0138c743092d58ac563b1bb01"}
906
907
  Authenticating with gds_sso strategy
907
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
908
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
908
909
   (0.1ms) begin transaction
909
910
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
910
-  (21.6ms) commit transaction
911
-  (0.3ms) begin transaction
911
+  (37.9ms) commit transaction
912
+  (0.1ms) begin transaction
912
913
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
913
-  (15.3ms) commit transaction
914
+  (36.6ms) commit transaction
914
915
  Redirected to http://www.example-client.com/this_requires_signin_permission
915
- Completed 302 Found in 44ms (ActiveRecord: 37.9ms)
916
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:15:09 +0000
916
+ Completed 302 Found in 81ms (ActiveRecord: 75.2ms)
917
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:05:34 +0000
917
918
  Processing by ExampleController#this_requires_signin_permission as HTML
918
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
919
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
920
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:09 +0000
919
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
920
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
921
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:34 +0000
921
922
  Processing by ExampleController#restricted as HTML
922
923
  Authenticating with gds_sso strategy
923
924
  Completed in 1ms
924
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:09 +0000
925
- Started GET "/auth/gds/callback?code=1c6d433ed747d3330d2632faaf6933556ae489d7675205804dc49f5de3141231&state=8a1211963f673faa102757d36f47cffa60073da4ea38135f" for 127.0.0.1 at 2015-04-20 13:15:10 +0000
925
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:34 +0000
926
+ Started GET "/auth/gds/callback?code=39d6157776328561c54726b945ca9b6feb0169101c0e40576e8a02e8cbfe01ba&state=45073b2509bdeaa1c0044b4f71b7ce30d456b47dd16b0a36" for 127.0.0.1 at 2015-04-23 11:05:35 +0000
926
927
  Processing by AuthenticationsController#callback as HTML
927
- Parameters: {"code"=>"1c6d433ed747d3330d2632faaf6933556ae489d7675205804dc49f5de3141231", "state"=>"8a1211963f673faa102757d36f47cffa60073da4ea38135f"}
928
+ Parameters: {"code"=>"39d6157776328561c54726b945ca9b6feb0169101c0e40576e8a02e8cbfe01ba", "state"=>"45073b2509bdeaa1c0044b4f71b7ce30d456b47dd16b0a36"}
928
929
  Authenticating with gds_sso strategy
929
930
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
930
931
   (0.1ms) begin transaction
931
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
932
-  (91.7ms) commit transaction
932
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
933
+  (24.8ms) commit transaction
933
934
   (0.1ms) begin transaction
934
935
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
935
-  (75.7ms) commit transaction
936
+  (15.9ms) commit transaction
936
937
  Redirected to http://www.example-client.com/restricted
937
- Completed 302 Found in 175ms (ActiveRecord: 168.4ms)
938
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:10 +0000
938
+ Completed 302 Found in 48ms (ActiveRecord: 41.6ms)
939
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:35 +0000
939
940
  Processing by ExampleController#restricted as HTML
940
941
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
941
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
942
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
942
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.3ms)
943
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
943
944
   (0.1ms) begin transaction
944
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
945
-  (27.8ms) commit transaction
946
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:11 +0000
945
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
946
+  (254.6ms) commit transaction
947
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:35 +0000
947
948
  Processing by ExampleController#restricted as HTML
948
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
949
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
949
950
  Authenticating with gds_sso strategy
950
951
  Completed in 2ms
951
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:11 +0000
952
- Started GET "/auth/gds/callback?code=24a1d73247c6d2382503c7c2628ebf8284ce5fc339fb5a772d6a77682c199743&state=4a0f75e61cbb3682a942f3f128608dd8b01ee0bd1197ab3d" for 127.0.0.1 at 2015-04-20 13:15:11 +0000
952
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:35 +0000
953
+ Started GET "/auth/gds/callback?code=be48e81be068c238a45208fcc4e4d4d9d70f1710ae8770a6feac27d7bd2212da&state=2eadac36cdeb3149e2636d184e6c73d977c237b83b65ae72" for 127.0.0.1 at 2015-04-23 11:05:36 +0000
953
954
  Processing by AuthenticationsController#callback as HTML
954
- Parameters: {"code"=>"24a1d73247c6d2382503c7c2628ebf8284ce5fc339fb5a772d6a77682c199743", "state"=>"4a0f75e61cbb3682a942f3f128608dd8b01ee0bd1197ab3d"}
955
+ Parameters: {"code"=>"be48e81be068c238a45208fcc4e4d4d9d70f1710ae8770a6feac27d7bd2212da", "state"=>"2eadac36cdeb3149e2636d184e6c73d977c237b83b65ae72"}
955
956
  Authenticating with gds_sso strategy
956
957
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
957
958
   (0.1ms) begin transaction
958
- SQL (2.8ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
959
-  (32.3ms) commit transaction
959
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
960
+  (37.8ms) commit transaction
960
961
   (0.1ms) begin transaction
961
962
  SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
962
-  (20.5ms) commit transaction
963
+  (57.6ms) commit transaction
963
964
  Redirected to http://www.example-client.com/restricted
964
- Completed 302 Found in 64ms (ActiveRecord: 56.2ms)
965
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:11 +0000
965
+ Completed 302 Found in 102ms (ActiveRecord: 96.2ms)
966
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:36 +0000
966
967
  Processing by ExampleController#restricted as HTML
967
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
968
- Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
969
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:12 +0000
968
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
969
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
970
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:37 +0000
970
971
  Processing by ExampleController#restricted as HTML
971
972
  Authenticating with gds_sso strategy
972
973
  Completed in 1ms
973
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:12 +0000
974
- Started GET "/auth/gds/callback?code=ff0942b9a2e26c2c8920e06951ec0cc036a9812ad03c2957a189ac4013035652&state=103429823d532b1dffa12c10279af2e1c2f780541d3e2995" for 127.0.0.1 at 2015-04-20 13:15:12 +0000
974
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:37 +0000
975
+ Started GET "/auth/gds/callback?code=487e590bf02d77f52035fda5125a6c907f5e18a68cb591a46202a06ddd79efb7&state=ed869c63275b096b51c289acab2a5d4a0c9eaf26357cbe81" for 127.0.0.1 at 2015-04-23 11:05:37 +0000
975
976
  Processing by AuthenticationsController#callback as HTML
976
- Parameters: {"code"=>"ff0942b9a2e26c2c8920e06951ec0cc036a9812ad03c2957a189ac4013035652", "state"=>"103429823d532b1dffa12c10279af2e1c2f780541d3e2995"}
977
+ Parameters: {"code"=>"487e590bf02d77f52035fda5125a6c907f5e18a68cb591a46202a06ddd79efb7", "state"=>"ed869c63275b096b51c289acab2a5d4a0c9eaf26357cbe81"}
977
978
  Authenticating with gds_sso strategy
978
979
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
979
980
   (0.1ms) begin transaction
980
981
  SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
981
-  (38.3ms) commit transaction
982
-  (0.3ms) begin transaction
983
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
984
-  (24.1ms) commit transaction
982
+  (25.4ms) commit transaction
983
+  (0.1ms) begin transaction
984
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
985
+  (50.6ms) commit transaction
985
986
  Redirected to http://www.example-client.com/restricted
986
- Completed 302 Found in 73ms (ActiveRecord: 63.8ms)
987
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:13 +0000
987
+ Completed 302 Found in 86ms (ActiveRecord: 77.1ms)
988
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:37 +0000
988
989
  Processing by ExampleController#restricted as HTML
989
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
990
- Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
991
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:20:13 +0000
990
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
991
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
992
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:10:37 +0000
992
993
  Processing by ExampleController#restricted as HTML
993
994
  Authenticating with gds_sso strategy
994
- Completed in 10ms
995
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:20:13 +0000
996
- Started GET "/auth/gds/callback?code=28d219959548bc709b1af9c3a2fa56fb2545ff87aa1148fc768bf4d9966b6ec6&state=f062710ec432feec944619ad0efe0829a39cfe7f0b5e1fb3" for 127.0.0.1 at 2015-04-21 09:20:13 +0000
995
+ Completed in 1ms
996
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:10:37 +0000
997
+ Started GET "/auth/gds/callback?code=7757c075e0e0b3ad4c82186e6dd8073c82cdcc5c46e4e96437f130bd29f8ad4c&state=5b3515fbae863aac23217123cbbfb48d0245a7b60747caf0" for 127.0.0.1 at 2015-04-24 07:10:37 +0000
997
998
  Processing by AuthenticationsController#callback as HTML
998
- Parameters: {"code"=>"28d219959548bc709b1af9c3a2fa56fb2545ff87aa1148fc768bf4d9966b6ec6", "state"=>"f062710ec432feec944619ad0efe0829a39cfe7f0b5e1fb3"}
999
+ Parameters: {"code"=>"7757c075e0e0b3ad4c82186e6dd8073c82cdcc5c46e4e96437f130bd29f8ad4c", "state"=>"5b3515fbae863aac23217123cbbfb48d0245a7b60747caf0"}
999
1000
  Authenticating with gds_sso strategy
1000
1001
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1001
1002
   (0.1ms) begin transaction
1002
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1003
-  (24.0ms) commit transaction
1003
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1004
+  (44.0ms) commit transaction
1004
1005
   (0.1ms) begin transaction
1005
1006
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1006
-  (29.4ms) commit transaction
1007
+  (32.0ms) commit transaction
1007
1008
  Redirected to http://www.example-client.com/restricted
1008
- Completed 302 Found in 60ms (ActiveRecord: 54.4ms)
1009
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:20:13 +0000
1009
+ Completed 302 Found in 82ms (ActiveRecord: 76.9ms)
1010
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:10:38 +0000
1010
1011
  Processing by ExampleController#restricted as HTML
1011
1012
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1012
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1013
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:14 +0000
1013
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1014
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:38 +0000
1014
1015
  Processing by ExampleController#restricted as HTML
1015
1016
  Authenticating with gds_sso strategy
1016
1017
  Completed in 1ms
1017
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:15:14 +0000
1018
- Started GET "/auth/gds/callback?code=d9416a80ba8959c9c1b703290c0945b4613a2eeea14105f8146d99793c684f7a&state=e24b9a0d4203033db790ae325ae3eb7d6f4b60a5b12d2021" for 127.0.0.1 at 2015-04-20 13:15:14 +0000
1018
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:05:38 +0000
1019
+ Started GET "/auth/gds/callback?code=6aa3dda42a1aeb96a4a9e1814c7c848755a12e5c800b7700c191729366b7a422&state=05f0bdb27076c9ab9f800d74e65a16628af8a6ba6534ef87" for 127.0.0.1 at 2015-04-23 11:05:39 +0000
1019
1020
  Processing by AuthenticationsController#callback as HTML
1020
- Parameters: {"code"=>"d9416a80ba8959c9c1b703290c0945b4613a2eeea14105f8146d99793c684f7a", "state"=>"e24b9a0d4203033db790ae325ae3eb7d6f4b60a5b12d2021"}
1021
+ Parameters: {"code"=>"6aa3dda42a1aeb96a4a9e1814c7c848755a12e5c800b7700c191729366b7a422", "state"=>"05f0bdb27076c9ab9f800d74e65a16628af8a6ba6534ef87"}
1021
1022
  Authenticating with gds_sso strategy
1022
1023
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1023
1024
   (0.1ms) begin transaction
1024
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1025
-  (74.8ms) commit transaction
1025
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1026
+  (22.4ms) commit transaction
1026
1027
   (0.1ms) begin transaction
1027
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1028
-  (30.1ms) commit transaction
1028
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1029
+  (26.6ms) commit transaction
1029
1030
  Redirected to http://www.example-client.com/restricted
1030
- Completed 302 Found in 113ms (ActiveRecord: 106.0ms)
1031
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:14 +0000
1031
+ Completed 302 Found in 57ms (ActiveRecord: 49.9ms)
1032
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:39 +0000
1032
1033
  Processing by ExampleController#restricted as HTML
1033
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1034
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1035
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:10:14 +0000
1034
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1035
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1036
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:00:39 +0000
1036
1037
  Processing by ExampleController#restricted as HTML
1037
1038
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1038
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1039
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:15 +0000
1040
- Processing by ExampleController#restricted as JSON
1041
- Completed in 29ms
1042
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:16 +0000
1039
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1040
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:39 +0000
1043
1041
  Processing by ExampleController#restricted as JSON
1042
+ Completed in 61ms
1043
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:05:40 +0000
1044
+ Processing by ExampleController#this_requires_signin_permission as JSON
1044
1045
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1045
1046
   (0.1ms) begin transaction
1046
- SQL (0.4ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]
1047
-  (20.2ms) commit transaction
1047
+ SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]
1048
+  (17.6ms) commit transaction
1048
1049
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1049
1050
   (0.1ms) begin transaction
1050
1051
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1051
-  (33.3ms) commit transaction
1052
+  (25.8ms) commit transaction
1052
1053
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1053
1054
   (0.1ms) begin transaction
1054
1055
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1055
-  (27.8ms) commit transaction
1056
+  (32.5ms) commit transaction
1056
1057
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1057
1058
   (0.1ms) begin transaction
1058
1059
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1059
-  (40.7ms) commit transaction
1060
-  (0.1ms) begin transaction
1061
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1062
-  (31.6ms) commit transaction
1063
- Completed 200 OK in 478ms (Views: 0.8ms | ActiveRecord: 156.7ms)
1064
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:15:17 +0000
1065
- Processing by ExampleController#this_requires_signin_permission as JSON
1066
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1060
+  (23.6ms) commit transaction
1067
1061
   (0.1ms) begin transaction
1068
1062
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1069
-  (49.9ms) commit transaction
1070
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1063
+  (13.5ms) commit transaction
1064
+ Completed 200 OK in 376ms (Views: 0.5ms | ActiveRecord: 115.5ms)
1065
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:41 +0000
1066
+ Processing by ExampleController#restricted as JSON
1067
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1071
1068
   (0.1ms) begin transaction
1072
1069
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1073
-  (73.0ms) commit transaction
1070
+  (16.1ms) commit transaction
1071
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1072
+  (0.1ms) begin transaction
1073
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1074
+  (19.3ms) commit transaction
1075
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1076
+  (0.2ms) begin transaction
1077
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1078
+  (34.4ms) commit transaction
1074
1079
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1075
1080
   (0.1ms) begin transaction
1076
1081
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1077
-  (44.0ms) commit transaction
1078
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1079
-  (0.1ms) begin transaction
1080
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1081
-  (65.7ms) commit transaction
1082
-  (0.2ms) begin transaction
1082
+  (23.8ms) commit transaction
1083
+  (0.1ms) begin transaction
1083
1084
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1084
-  (51.2ms) commit transaction
1085
- Completed 200 OK in 582ms (Views: 0.6ms | ActiveRecord: 287.0ms)
1086
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:15:18 +0000
1085
+  (25.9ms) commit transaction
1086
+ Completed 200 OK in 344ms (Views: 0.9ms | ActiveRecord: 122.8ms)
1087
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:05:42 +0000
1087
1088
  Processing by ExampleController#restricted as JSON
1088
- Completed in 25ms
1089
+ Completed in 26ms
1089
1090
  Connecting to database specified by database.yml
1091
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:15:19 +0000
1092
+ Processing by ExampleController#index as HTML
1093
+ Rendered text template (0.0ms)
1094
+ Completed 200 OK in 6.0ms (Views: 5.7ms | ActiveRecord: 0.0ms)
1095
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:15:20 +0000
1096
+ Processing by ExampleController#this_requires_signin_permission as HTML
1097
+ Authenticating with gds_sso strategy
1098
+ Completed in 2.9ms
1099
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:20 +0000
1100
+ Started GET "/auth/gds/callback?code=6536345a54d649c24f9578d02e68f49299895de7bcc6aa81f36fc68c6243f8df&state=6238513bc335f3c358f11883d7e91d198094b313bfdbba64" for 127.0.0.1 at 2015-04-23 11:15:20 +0000
1101
+ Processing by AuthenticationsController#callback as HTML
1102
+ Parameters: {"code"=>"6536345a54d649c24f9578d02e68f49299895de7bcc6aa81f36fc68c6243f8df", "state"=>"6238513bc335f3c358f11883d7e91d198094b313bfdbba64"}
1103
+ Authenticating with gds_sso strategy
1104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1105
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1090
1106
   (0.1ms) begin transaction
1091
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3900"]]
1092
-  (37.4ms) commit transaction
1093
-  (0.1ms) begin transaction
1094
- SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33980"]]
1095
-  (21.0ms) commit transaction
1096
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
1097
- Processing by Api::UserController#update as HTML
1098
- Parameters: {"uid"=>"a1s2d3900"}
1099
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms)
1100
- Completed 403 Forbidden in 10.3ms (Views: 9.4ms | ActiveRecord: 0.0ms)
1101
-  (0.1ms) begin transaction
1102
- SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35811"]]
1103
-  (43.0ms) commit transaction
1107
+ SQL (0.5ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1108
+  (28.4ms) commit transaction
1104
1109
   (0.1ms) begin transaction
1105
- SQL (0.5ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39289"]]
1106
-  (7.5ms) commit transaction
1107
- Processing by Api::UserController#update as HTML
1108
- Parameters: {"uid"=>"a1s2d35811"}
1109
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35811' LIMIT 1
1110
-  (0.1ms) begin transaction
1111
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1110
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1112
1111
  - signin
1113
- - new permission
1114
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
1115
-  (13.1ms) commit transaction
1116
- Completed 200 OK in 25.4ms (ActiveRecord: 13.8ms)
1117
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1118
-  (0.1ms) begin transaction
1119
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39003"]]
1120
-  (18.2ms) commit transaction
1121
-  (0.1ms) begin transaction
1122
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33454"]]
1123
-  (11.1ms) commit transaction
1124
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
1125
- Processing by Api::UserController#reauth as HTML
1126
- Parameters: {"uid"=>"a1s2d39003"}
1127
- Completed 403 Forbidden in 2.5ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1128
-  (0.1ms) begin transaction
1129
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37930"]]
1130
-  (14.9ms) commit transaction
1131
-  (0.1ms) begin transaction
1132
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34699"]]
1133
-  (13.6ms) commit transaction
1134
- Processing by Api::UserController#reauth as HTML
1135
- Parameters: {"uid"=>"nonexistent-user"}
1136
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1137
- Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
1138
-  (0.1ms) begin transaction
1139
- SQL (10.7ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39854"]]
1140
-  (22.7ms) commit transaction
1112
+ ' WHERE "users"."id" = 1
1113
+  (28.4ms) commit transaction
1114
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1115
+ Completed 302 Found in 80.3ms (ActiveRecord: 58.5ms)
1116
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:15:21 +0000
1117
+ Processing by ExampleController#this_requires_signin_permission as HTML
1118
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1119
+ Completed 200 OK in 4.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1120
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:15:21 +0000
1121
+ Processing by ExampleController#this_requires_signin_permission as HTML
1122
+ Authenticating with gds_sso strategy
1123
+ Completed in 0.2ms
1124
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:21 +0000
1125
+ Started GET "/auth/gds/callback?code=ef2914ab4dcf9f57a9c3f5252f1a63d820ce258d9b30dddbfd75f72846474c48&state=52a12aafd463d7945aa8af8399a958694be84ff48de8514c" for 127.0.0.1 at 2015-04-23 11:15:21 +0000
1126
+ Processing by AuthenticationsController#callback as HTML
1127
+ Parameters: {"code"=>"ef2914ab4dcf9f57a9c3f5252f1a63d820ce258d9b30dddbfd75f72846474c48", "state"=>"52a12aafd463d7945aa8af8399a958694be84ff48de8514c"}
1128
+ Authenticating with gds_sso strategy
1129
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1130
+  (0.0ms) begin transaction
1131
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1132
+ - signin
1133
+ ' WHERE "users"."id" = 1
1134
+  (31.7ms) commit transaction
1141
1135
   (0.1ms) begin transaction
1142
- SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37655"]]
1143
-  (53.7ms) commit transaction
1144
- Processing by Api::UserController#reauth as HTML
1145
- Parameters: {"uid"=>"a1s2d39854"}
1146
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39854' LIMIT 1
1147
-  (0.0ms) begin transaction
1148
-  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1136
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1149
1137
  - signin
1150
- ' WHERE "users"."id" = 9
1151
-  (18.2ms) commit transaction
1152
- Completed 200 OK in 21.4ms (ActiveRecord: 18.7ms)
1153
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1154
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:16:19 +0000
1155
- Processing by ExampleController#index as HTML
1156
- Completed 200 OK in 2.6ms (Views: 2.1ms | ActiveRecord: 0.0ms)
1157
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:19 +0000
1138
+ ' WHERE "users"."id" = 1
1139
+  (16.7ms) commit transaction
1140
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1141
+ Completed 302 Found in 54.9ms (ActiveRecord: 49.3ms)
1142
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:15:21 +0000
1143
+ Processing by ExampleController#this_requires_signin_permission as HTML
1144
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1145
+ Completed 200 OK in 1.7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1146
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:22 +0000
1158
1147
  Processing by ExampleController#restricted as HTML
1159
1148
  Authenticating with gds_sso strategy
1160
- Completed in 0.8ms
1161
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:19 +0000
1162
- Started GET "/auth/gds/callback?code=f8e70594b1d51e81d7fbda4bcc4a4b5214a3272d8f95b9ba5fbcccc625f57589&state=71a17142e7e41ea18b3665061d1d3dc3028cb1a3267d69d1" for 127.0.0.1 at 2015-04-20 13:16:20 +0000
1149
+ Completed in 1.0ms
1150
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:22 +0000
1151
+ Started GET "/auth/gds/callback?code=9015594908748d9f8b9fc45260adffc39f8e30cdb5d9963aa8c47647466a0be5&state=dc75b7e1e8a42717dfeedf5d75e3cfbca6cc666e24e04062" for 127.0.0.1 at 2015-04-23 11:15:22 +0000
1163
1152
  Processing by AuthenticationsController#callback as HTML
1164
- Parameters: {"code"=>"f8e70594b1d51e81d7fbda4bcc4a4b5214a3272d8f95b9ba5fbcccc625f57589", "state"=>"71a17142e7e41ea18b3665061d1d3dc3028cb1a3267d69d1"}
1153
+ Parameters: {"code"=>"9015594908748d9f8b9fc45260adffc39f8e30cdb5d9963aa8c47647466a0be5", "state"=>"dc75b7e1e8a42717dfeedf5d75e3cfbca6cc666e24e04062"}
1165
1154
  Authenticating with gds_sso strategy
1166
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1167
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1168
-  (0.1ms) begin transaction
1169
- SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1170
-  (41.8ms) commit transaction
1155
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1171
1156
   (0.1ms) begin transaction
1172
-  (0.8ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1157
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1158
+ - signin
1159
+ ' WHERE "users"."id" = 1
1160
+  (49.6ms) commit transaction
1161
+  (0.1ms) begin transaction
1162
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1173
1163
  - signin
1174
- ' WHERE "users"."id" = 11
1175
-  (25.8ms) commit transaction
1164
+ ' WHERE "users"."id" = 1
1165
+  (29.4ms) commit transaction
1176
1166
  Redirected to http://www.example-client.com/restricted
1177
- Completed 302 Found in 78.1ms (ActiveRecord: 69.4ms)
1178
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:21 +0000
1167
+ Completed 302 Found in 85.6ms (ActiveRecord: 79.7ms)
1168
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:22 +0000
1179
1169
  Processing by ExampleController#restricted as HTML
1180
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1181
- Completed 200 OK in 2.8ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1182
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:21 +0000
1170
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1171
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1172
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1183
1173
  Processing by ExampleController#restricted as HTML
1184
1174
  Authenticating with gds_sso strategy
1185
1175
  Completed in 0.3ms
1186
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:21 +0000
1187
- Started GET "/auth/gds/callback?code=f814e010cecb664208c2ae232011ca56a9be3e627a5fd30c32283bb9e5b066f5&state=7fec08fdba52d815045726bb783b49ce05817de4b457f21e" for 127.0.0.1 at 2015-04-20 13:16:21 +0000
1176
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1177
+ Started GET "/auth/gds/callback?code=da4b538a83d10a5c03bcd566636eb0ba6266c3f7ec77628f8a78253ebe838c7d&state=0406616e356f453c3f3b6ab31a42bb13d87ec7e716cb3663" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1188
1178
  Processing by AuthenticationsController#callback as HTML
1189
- Parameters: {"code"=>"f814e010cecb664208c2ae232011ca56a9be3e627a5fd30c32283bb9e5b066f5", "state"=>"7fec08fdba52d815045726bb783b49ce05817de4b457f21e"}
1179
+ Parameters: {"code"=>"da4b538a83d10a5c03bcd566636eb0ba6266c3f7ec77628f8a78253ebe838c7d", "state"=>"0406616e356f453c3f3b6ab31a42bb13d87ec7e716cb3663"}
1190
1180
  Authenticating with gds_sso strategy
1191
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1192
-  (0.0ms) begin transaction
1193
-  (0.4ms) UPDATE "users" SET "permissions" = '---
1194
- - signin
1195
- ' WHERE "users"."id" = 11
1196
-  (26.5ms) commit transaction
1181
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1197
1182
   (0.1ms) begin transaction
1198
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1183
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1199
1184
  - signin
1200
- ' WHERE "users"."id" = 11
1201
-  (25.2ms) commit transaction
1185
+ ' WHERE "users"."id" = 1
1186
+  (31.6ms) commit transaction
1187
+  (0.1ms) begin transaction
1188
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1189
+ - signin
1190
+ ' WHERE "users"."id" = 1
1191
+  (46.4ms) commit transaction
1202
1192
  Redirected to http://www.example-client.com/restricted
1203
- Completed 302 Found in 59.5ms (ActiveRecord: 52.8ms)
1204
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:21 +0000
1193
+ Completed 302 Found in 85.1ms (ActiveRecord: 78.8ms)
1194
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1205
1195
  Processing by ExampleController#restricted as HTML
1206
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1207
- Completed 200 OK in 2.2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1208
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1196
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1197
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1198
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1209
1199
  Processing by ExampleController#restricted as HTML
1210
1200
  Authenticating with gds_sso strategy
1211
- Completed in 0.4ms
1212
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1213
- Started GET "/auth/gds/callback?code=da3c5df5188625286f4bb77be7a97024e888f46ec43192c49df50538e3b89fcf&state=2fe8b920fb9d7caf3fdb5584ccf43a43bec4e82100c47cb0" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1201
+ Completed in 0.1ms
1202
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:23 +0000
1203
+ Started GET "/auth/gds/callback?code=a0ecf7012295b30abe1f317f6d01f60313213c336f6fbc95f9c896e9fa22e33c&state=dce3f42c705b8cc4ea391871ec7132ad760253fcff91b4ac" for 127.0.0.1 at 2015-04-23 11:15:24 +0000
1214
1204
  Processing by AuthenticationsController#callback as HTML
1215
- Parameters: {"code"=>"da3c5df5188625286f4bb77be7a97024e888f46ec43192c49df50538e3b89fcf", "state"=>"2fe8b920fb9d7caf3fdb5584ccf43a43bec4e82100c47cb0"}
1205
+ Parameters: {"code"=>"a0ecf7012295b30abe1f317f6d01f60313213c336f6fbc95f9c896e9fa22e33c", "state"=>"dce3f42c705b8cc4ea391871ec7132ad760253fcff91b4ac"}
1216
1206
  Authenticating with gds_sso strategy
1217
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1218
-  (0.1ms) begin transaction
1219
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1207
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1208
+  (0.0ms) begin transaction
1209
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1220
1210
  - signin
1221
- ' WHERE "users"."id" = 11
1222
-  (10.7ms) commit transaction
1223
-  (0.1ms) begin transaction
1224
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1211
+ ' WHERE "users"."id" = 1
1212
+  (57.2ms) commit transaction
1213
+  (0.1ms) begin transaction
1214
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1225
1215
  - signin
1226
- ' WHERE "users"."id" = 11
1227
-  (9.1ms) commit transaction
1216
+ ' WHERE "users"."id" = 1
1217
+  (41.1ms) commit transaction
1228
1218
  Redirected to http://www.example-client.com/restricted
1229
- Completed 302 Found in 28.1ms (ActiveRecord: 20.8ms)
1230
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1219
+ Completed 302 Found in 104.1ms (ActiveRecord: 99.1ms)
1220
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:24 +0000
1221
+ Processing by ExampleController#restricted as HTML
1222
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1223
+ Completed 200 OK in 1.5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1224
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:24 +0000
1231
1225
  Processing by ExampleController#restricted as HTML
1232
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1233
- Completed 200 OK in 2.6ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1234
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1235
- Processing by ExampleController#this_requires_signin_permission as HTML
1236
1226
  Authenticating with gds_sso strategy
1237
- Completed in 0.9ms
1238
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:22 +0000
1239
- Started GET "/auth/gds/callback?code=cf0f476ead7bfde3944ab987eabdcde9892466b4c1416b723a91d90183bededd&state=26df1f09cf519d727e78e380f126d60418d0b5b0ef424731" for 127.0.0.1 at 2015-04-20 13:16:23 +0000
1227
+ Completed in 0.3ms
1228
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:24 +0000
1229
+ Started GET "/auth/gds/callback?code=b4eff7d49e8ed885480ac7df5bca62ef603961878fcdb63517a9fef6ba770846&state=56a5a81322dd03ae6e5cad49531666160c84d2b238f59b95" for 127.0.0.1 at 2015-04-23 11:15:25 +0000
1240
1230
  Processing by AuthenticationsController#callback as HTML
1241
- Parameters: {"code"=>"cf0f476ead7bfde3944ab987eabdcde9892466b4c1416b723a91d90183bededd", "state"=>"26df1f09cf519d727e78e380f126d60418d0b5b0ef424731"}
1231
+ Parameters: {"code"=>"b4eff7d49e8ed885480ac7df5bca62ef603961878fcdb63517a9fef6ba770846", "state"=>"56a5a81322dd03ae6e5cad49531666160c84d2b238f59b95"}
1242
1232
  Authenticating with gds_sso strategy
1243
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1233
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1234
+  (0.1ms) begin transaction
1235
+  (0.4ms) UPDATE "users" SET "permissions" = '---
1236
+ - signin
1237
+ ' WHERE "users"."id" = 1
1238
+  (36.7ms) commit transaction
1244
1239
   (0.1ms) begin transaction
1245
1240
   (0.3ms) UPDATE "users" SET "permissions" = '---
1246
1241
  - signin
1247
- ' WHERE "users"."id" = 11
1248
-  (28.0ms) commit transaction
1242
+ ' WHERE "users"."id" = 1
1243
+  (33.5ms) commit transaction
1244
+ Redirected to http://www.example-client.com/restricted
1245
+ Completed 302 Found in 77.6ms (ActiveRecord: 71.2ms)
1246
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:25 +0000
1247
+ Processing by ExampleController#restricted as HTML
1248
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1249
+ Completed 200 OK in 1.9ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1250
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1249
1251
   (0.1ms) begin transaction
1250
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1252
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1251
1253
  - signin
1252
- ' WHERE "users"."id" = 11
1253
-  (40.7ms) commit transaction
1254
- Redirected to http://www.example-client.com/this_requires_signin_permission
1255
- Completed 302 Found in 76.6ms (ActiveRecord: 69.8ms)
1256
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:16:23 +0000
1257
- Processing by ExampleController#this_requires_signin_permission as HTML
1254
+ ' WHERE "users"."id" = 1
1255
+  (22.5ms) commit transaction
1256
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:25 +0000
1257
+ Processing by ExampleController#restricted as HTML
1258
1258
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1259
- Completed 200 OK in 2.6ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1260
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:16:23 +0000
1261
- Processing by ExampleController#this_requires_signin_permission as HTML
1262
1259
  Authenticating with gds_sso strategy
1263
- Completed in 0.2ms
1264
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:23 +0000
1265
- Started GET "/auth/gds/callback?code=a6e1c5de1da3677362b069b03ed1bafafb5d01faf4298905a91109551c57fd25&state=aa02ce40907f4dfab02b848d9ddad803f6893345edfa08f3" for 127.0.0.1 at 2015-04-20 13:16:23 +0000
1260
+ Completed in 1.6ms
1261
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:25 +0000
1262
+ Started GET "/auth/gds/callback?code=7984400d7838e0a99ded7785ec8e883b955f6b160b2b7b8a136022a55bbcdd3b&state=00274111d24b197f93b61d7720b596262e6337e6b2f13c6f" for 127.0.0.1 at 2015-04-23 11:15:25 +0000
1266
1263
  Processing by AuthenticationsController#callback as HTML
1267
- Parameters: {"code"=>"a6e1c5de1da3677362b069b03ed1bafafb5d01faf4298905a91109551c57fd25", "state"=>"aa02ce40907f4dfab02b848d9ddad803f6893345edfa08f3"}
1264
+ Parameters: {"code"=>"7984400d7838e0a99ded7785ec8e883b955f6b160b2b7b8a136022a55bbcdd3b", "state"=>"00274111d24b197f93b61d7720b596262e6337e6b2f13c6f"}
1268
1265
  Authenticating with gds_sso strategy
1269
1266
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1270
1267
   (0.1ms) begin transaction
1271
1268
   (0.2ms) UPDATE "users" SET "permissions" = '---
1272
1269
  - signin
1273
- ' WHERE "users"."id" = 11
1274
-  (56.5ms) commit transaction
1270
+ ' WHERE "users"."id" = 1
1271
+  (40.6ms) commit transaction
1275
1272
   (0.1ms) begin transaction
1276
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1273
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1277
1274
  - signin
1278
- ' WHERE "users"."id" = 11
1279
-  (15.6ms) commit transaction
1280
- Redirected to http://www.example-client.com/this_requires_signin_permission
1281
- Completed 302 Found in 78.8ms (ActiveRecord: 73.0ms)
1282
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:16:24 +0000
1283
- Processing by ExampleController#this_requires_signin_permission as HTML
1284
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1285
- Completed 200 OK in 2.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1286
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:24 +0000
1275
+ ' WHERE "users"."id" = 1
1276
+  (35.9ms) commit transaction
1277
+ Redirected to http://www.example-client.com/restricted
1278
+ Completed 302 Found in 82.9ms (ActiveRecord: 77.4ms)
1279
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:26 +0000
1280
+ Processing by ExampleController#restricted as HTML
1281
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1282
+ Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1283
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:26 +0000
1287
1284
  Processing by ExampleController#restricted as HTML
1288
1285
  Authenticating with gds_sso strategy
1289
- Completed in 0.4ms
1290
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:24 +0000
1291
- Started GET "/auth/gds/callback?code=62301137e640f9b6a927dd4567a4357657ae5c37806974ed99b77b2bd0558c9b&state=08c3c5eac77553c430bd1385578392d310152bb3a3c6ad92" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1286
+ Completed in 0.2ms
1287
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:26 +0000
1288
+ Started GET "/auth/gds/callback?code=e6fd2d880e980300deaf850daf93db50f514023e610612c5c322b71fe59b7b68&state=f9b8699c3d9a4f22edacfa2c5f4a617b43330559992a787b" for 127.0.0.1 at 2015-04-23 11:15:27 +0000
1292
1289
  Processing by AuthenticationsController#callback as HTML
1293
- Parameters: {"code"=>"62301137e640f9b6a927dd4567a4357657ae5c37806974ed99b77b2bd0558c9b", "state"=>"08c3c5eac77553c430bd1385578392d310152bb3a3c6ad92"}
1290
+ Parameters: {"code"=>"e6fd2d880e980300deaf850daf93db50f514023e610612c5c322b71fe59b7b68", "state"=>"f9b8699c3d9a4f22edacfa2c5f4a617b43330559992a787b"}
1294
1291
  Authenticating with gds_sso strategy
1295
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1292
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1296
1293
   (0.1ms) begin transaction
1297
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1294
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1298
1295
  - signin
1299
- ' WHERE "users"."id" = 11
1300
-  (33.4ms) commit transaction
1296
+ ' WHERE "users"."id" = 1
1297
+  (51.2ms) commit transaction
1301
1298
   (0.1ms) begin transaction
1302
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1299
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1303
1300
  - signin
1304
- ' WHERE "users"."id" = 11
1305
-  (37.2ms) commit transaction
1301
+ ' WHERE "users"."id" = 1
1302
+  (38.1ms) commit transaction
1306
1303
  Redirected to http://www.example-client.com/restricted
1307
- Completed 302 Found in 78.9ms (ActiveRecord: 71.7ms)
1308
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1304
+ Completed 302 Found in 96.2ms (ActiveRecord: 90.0ms)
1305
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:27 +0000
1309
1306
  Processing by ExampleController#restricted as HTML
1310
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1311
- Completed 200 OK in 2.1ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1312
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1313
-  (0.1ms) begin transaction
1314
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1315
- - signin
1316
- ' WHERE "users"."id" = 11
1317
-  (15.5ms) commit transaction
1318
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1307
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1308
+ Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1309
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:20:27 +0000
1319
1310
  Processing by ExampleController#restricted as HTML
1320
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1321
1311
  Authenticating with gds_sso strategy
1322
- Completed in 1.5ms
1323
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1324
- Started GET "/auth/gds/callback?code=31a8e0b49abe2620f93bb64cdf99ad5f509a8b7fd8549e3e8c9bafe7572f08f1&state=730cedb124c2e8235bd87cc0a65165c055aa28c58af20a9b" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1312
+ Completed in 0.3ms
1313
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:20:27 +0000
1314
+ Started GET "/auth/gds/callback?code=53a69c4a8ab8cedeb8b7ed1245f58efb4b3a66fcf7c532e39bbccdbc920104f9&state=5d60a3d80a3d34f6fe1079612718b8982e74dd6ef0a346ed" for 127.0.0.1 at 2015-04-24 07:20:27 +0000
1325
1315
  Processing by AuthenticationsController#callback as HTML
1326
- Parameters: {"code"=>"31a8e0b49abe2620f93bb64cdf99ad5f509a8b7fd8549e3e8c9bafe7572f08f1", "state"=>"730cedb124c2e8235bd87cc0a65165c055aa28c58af20a9b"}
1316
+ Parameters: {"code"=>"53a69c4a8ab8cedeb8b7ed1245f58efb4b3a66fcf7c532e39bbccdbc920104f9", "state"=>"5d60a3d80a3d34f6fe1079612718b8982e74dd6ef0a346ed"}
1327
1317
  Authenticating with gds_sso strategy
1328
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1329
-  (0.1ms) begin transaction
1330
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1331
- - signin
1332
- ' WHERE "users"."id" = 11
1333
-  (13.0ms) commit transaction
1318
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1334
1319
   (0.1ms) begin transaction
1335
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1320
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1336
1321
  - signin
1337
- ' WHERE "users"."id" = 11
1338
-  (13.7ms) commit transaction
1322
+ ' WHERE "users"."id" = 1
1323
+  (21.1ms) commit transaction
1324
+  (0.1ms) begin transaction
1325
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1326
+ - signin
1327
+ ' WHERE "users"."id" = 1
1328
+  (23.0ms) commit transaction
1339
1329
  Redirected to http://www.example-client.com/restricted
1340
- Completed 302 Found in 33.9ms (ActiveRecord: 27.7ms)
1341
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:25 +0000
1330
+ Completed 302 Found in 50.1ms (ActiveRecord: 44.9ms)
1331
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:20:27 +0000
1342
1332
  Processing by ExampleController#restricted as HTML
1343
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1344
- Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1345
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:28 +0000
1333
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1334
+ Completed 200 OK in 1.9ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1335
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:27 +0000
1346
1336
  Processing by ExampleController#restricted as HTML
1347
1337
  Authenticating with gds_sso strategy
1348
- Completed in 0.4ms
1349
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:28 +0000
1350
- Started GET "/auth/gds/callback?code=18d46886803ddbcd87550625c5da2823071183dba1af40c996274e8640b68ff0&state=dd03d59044e610c24d8ffc65c48c01881d367ce2c08a94c6" for 127.0.0.1 at 2015-04-20 13:16:28 +0000
1338
+ Completed in 0.3ms
1339
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:15:27 +0000
1340
+ Started GET "/auth/gds/callback?code=bdecf00081ddfda5185ee1eabd8409d14594834e148cdace629e3c682e56388a&state=ab1cedcc0f572b6f8291b96825b0ac4c9546b5d4ef1f6a90" for 127.0.0.1 at 2015-04-23 11:15:28 +0000
1351
1341
  Processing by AuthenticationsController#callback as HTML
1352
- Parameters: {"code"=>"18d46886803ddbcd87550625c5da2823071183dba1af40c996274e8640b68ff0", "state"=>"dd03d59044e610c24d8ffc65c48c01881d367ce2c08a94c6"}
1342
+ Parameters: {"code"=>"bdecf00081ddfda5185ee1eabd8409d14594834e148cdace629e3c682e56388a", "state"=>"ab1cedcc0f572b6f8291b96825b0ac4c9546b5d4ef1f6a90"}
1353
1343
  Authenticating with gds_sso strategy
1354
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1344
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1345
+  (0.1ms) begin transaction
1346
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1347
+ - signin
1348
+ ' WHERE "users"."id" = 1
1349
+  (77.6ms) commit transaction
1355
1350
   (0.1ms) begin transaction
1356
1351
   (0.4ms) UPDATE "users" SET "permissions" = '---
1357
1352
  - signin
1358
- ' WHERE "users"."id" = 11
1359
-  (18.5ms) commit transaction
1360
-  (0.1ms) begin transaction
1361
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1362
- - signin
1363
- ' WHERE "users"."id" = 11
1364
-  (11.2ms) commit transaction
1353
+ ' WHERE "users"."id" = 1
1354
+  (151.2ms) commit transaction
1365
1355
  Redirected to http://www.example-client.com/restricted
1366
- Completed 302 Found in 39.8ms (ActiveRecord: 31.0ms)
1367
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:28 +0000
1356
+ Completed 302 Found in 245.2ms (ActiveRecord: 229.8ms)
1357
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:29 +0000
1368
1358
  Processing by ExampleController#restricted as HTML
1369
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1370
- Completed 200 OK in 2.2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1371
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:21:28 +0000
1359
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1360
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1361
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:10:29 +0000
1372
1362
  Processing by ExampleController#restricted as HTML
1373
- Authenticating with gds_sso strategy
1374
- Completed in 0.4ms
1375
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:21:28 +0000
1376
- Started GET "/auth/gds/callback?code=32eeabd4e689344825cca3df17b1f4575a9dadf9dee60b1b90ac25d455db25a3&state=ad746e5f10cf55cd7ae2f6ec10870bee1336c0b570e9c198" for 127.0.0.1 at 2015-04-21 09:21:28 +0000
1377
- Processing by AuthenticationsController#callback as HTML
1378
- Parameters: {"code"=>"32eeabd4e689344825cca3df17b1f4575a9dadf9dee60b1b90ac25d455db25a3", "state"=>"ad746e5f10cf55cd7ae2f6ec10870bee1336c0b570e9c198"}
1379
- Authenticating with gds_sso strategy
1380
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1363
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1364
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1365
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:30 +0000
1366
+ Processing by ExampleController#restricted as JSON
1367
+ Completed in 17.3ms
1368
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:31 +0000
1369
+ Processing by ExampleController#restricted as JSON
1370
+ Completed in 16.6ms
1371
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:15:31 +0000
1372
+ Processing by ExampleController#restricted as JSON
1373
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1381
1374
   (0.1ms) begin transaction
1382
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1375
+  (0.2ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '---
1383
1376
  - signin
1384
- ' WHERE "users"."id" = 11
1385
-  (15.1ms) commit transaction
1386
-  (0.1ms) begin transaction
1387
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1377
+ ' WHERE "users"."id" = 1
1378
+  (37.9ms) commit transaction
1379
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1380
+  (0.0ms) begin transaction
1381
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1388
1382
  - signin
1389
- ' WHERE "users"."id" = 11
1390
-  (19.2ms) commit transaction
1391
- Redirected to http://www.example-client.com/restricted
1392
- Completed 302 Found in 40.6ms (ActiveRecord: 35.2ms)
1393
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:21:28 +0000
1394
- Processing by ExampleController#restricted as HTML
1395
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1396
- Completed 200 OK in 2.0ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1397
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:29 +0000
1398
- Processing by ExampleController#restricted as HTML
1399
- Authenticating with gds_sso strategy
1400
- Completed in 0.4ms
1401
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:16:29 +0000
1402
- Started GET "/auth/gds/callback?code=a586aa7fc440c7fe39d8a7f6a476862ab6af650df8c248adfb397b5575faab4c&state=4dcd8483b7ddec70d460374a967bf3920cdfcf86095cffb6" for 127.0.0.1 at 2015-04-20 13:16:29 +0000
1403
- Processing by AuthenticationsController#callback as HTML
1404
- Parameters: {"code"=>"a586aa7fc440c7fe39d8a7f6a476862ab6af650df8c248adfb397b5575faab4c", "state"=>"4dcd8483b7ddec70d460374a967bf3920cdfcf86095cffb6"}
1405
- Authenticating with gds_sso strategy
1406
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1383
+ ' WHERE "users"."id" = 1
1384
+  (14.9ms) commit transaction
1385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1386
+  (0.0ms) begin transaction
1387
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1388
+ - signin
1389
+ ' WHERE "users"."id" = 1
1390
+  (24.9ms) commit transaction
1391
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1407
1392
   (0.1ms) begin transaction
1408
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1393
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1409
1394
  - signin
1410
- ' WHERE "users"."id" = 11
1411
-  (13.5ms) commit transaction
1395
+ ' WHERE "users"."id" = 1
1396
+  (35.1ms) commit transaction
1412
1397
   (0.1ms) begin transaction
1413
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1398
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1414
1399
  - signin
1415
- ' WHERE "users"."id" = 11
1416
-  (61.5ms) commit transaction
1417
- Redirected to http://www.example-client.com/restricted
1418
- Completed 302 Found in 85.2ms (ActiveRecord: 76.2ms)
1419
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:29 +0000
1420
- Processing by ExampleController#restricted as HTML
1421
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1422
- Completed 200 OK in 3.3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1423
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:11:29 +0000
1424
- Processing by ExampleController#restricted as HTML
1425
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1426
- Completed 200 OK in 3.0ms (Views: 0.6ms | ActiveRecord: 0.4ms)
1427
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:30 +0000
1428
- Processing by ExampleController#restricted as JSON
1429
- Completed in 29.5ms
1430
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:16:31 +0000
1400
+ ' WHERE "users"."id" = 1
1401
+  (23.1ms) commit transaction
1402
+ Completed 200 OK in 396.3ms (Views: 0.5ms | ActiveRecord: 138.3ms)
1403
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:15:32 +0000
1431
1404
  Processing by ExampleController#this_requires_signin_permission as JSON
1432
1405
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1433
1406
   (0.1ms) begin transaction
1434
-  (0.4ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '---
1435
- - signin
1436
- ' WHERE "users"."id" = 11
1437
-  (18.4ms) commit transaction
1438
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1439
-  (0.0ms) begin transaction
1440
1407
   (0.3ms) UPDATE "users" SET "permissions" = '---
1441
1408
  - signin
1442
- ' WHERE "users"."id" = 11
1443
-  (16.1ms) commit transaction
1444
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1409
+ ' WHERE "users"."id" = 1
1410
+  (30.5ms) commit transaction
1411
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1445
1412
   (0.1ms) begin transaction
1446
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1413
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1447
1414
  - signin
1448
- ' WHERE "users"."id" = 11
1449
-  (23.1ms) commit transaction
1415
+ ' WHERE "users"."id" = 1
1416
+  (49.8ms) commit transaction
1417
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1418
+  (0.0ms) begin transaction
1419
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1420
+ - signin
1421
+ ' WHERE "users"."id" = 1
1422
+  (18.4ms) commit transaction
1450
1423
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1451
-  (0.1ms) begin transaction
1452
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1424
+  (0.0ms) begin transaction
1425
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1453
1426
  - signin
1454
- ' WHERE "users"."id" = 11
1455
-  (11.9ms) commit transaction
1427
+ ' WHERE "users"."id" = 1
1428
+  (38.9ms) commit transaction
1456
1429
   (0.1ms) begin transaction
1457
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1430
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1458
1431
  - signin
1459
- ' WHERE "users"."id" = 11
1460
-  (26.6ms) commit transaction
1461
- Completed 200 OK in 263.9ms (Views: 0.6ms | ActiveRecord: 99.5ms)
1462
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:31 +0000
1463
- Processing by ExampleController#restricted as JSON
1464
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1432
+ ' WHERE "users"."id" = 1
1433
+  (30.1ms) commit transaction
1434
+ Completed 200 OK in 408.7ms (Views: 0.4ms | ActiveRecord: 170.3ms)
1435
+  (0.1ms) begin transaction
1436
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37002"]]
1437
+  (130.0ms) commit transaction
1465
1438
   (0.1ms) begin transaction
1466
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1467
- - signin
1468
- ' WHERE "users"."id" = 11
1469
-  (19.4ms) commit transaction
1470
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1439
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39896"]]
1440
+  (157.3ms) commit transaction
1441
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1442
+ Processing by Api::UserController#update as HTML
1443
+ Parameters: {"uid"=>"a1s2d37002"}
1444
+ Completed 403 Forbidden in 3.5ms (Views: 2.9ms | ActiveRecord: 0.0ms)
1445
+  (0.1ms) begin transaction
1446
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36576"]]
1447
+  (149.8ms) commit transaction
1471
1448
   (0.1ms) begin transaction
1472
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1449
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32064"]]
1450
+  (144.7ms) commit transaction
1451
+ Processing by Api::UserController#update as HTML
1452
+ Parameters: {"uid"=>"a1s2d36576"}
1453
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36576' LIMIT 1
1454
+  (0.0ms) begin transaction
1455
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1473
1456
  - signin
1474
- ' WHERE "users"."id" = 11
1475
-  (10.2ms) commit transaction
1476
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1457
+ - new permission
1458
+ ', "organisation_slug" = 'justice-league', "organisation_content_id" = 'aae1319e-5788-4677-998c-f1a53af528d0' WHERE "users"."id" = 4
1459
+  (86.7ms) commit transaction
1460
+ Completed 200 OK in 90.8ms (ActiveRecord: 87.2ms)
1461
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1477
1462
   (0.1ms) begin transaction
1478
-  (0.4ms) UPDATE "users" SET "permissions" = '---
1479
- - signin
1480
- ' WHERE "users"."id" = 11
1481
-  (16.3ms) commit transaction
1482
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1463
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38301"]]
1464
+  (80.2ms) commit transaction
1465
+  (0.1ms) begin transaction
1466
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34390"]]
1467
+  (50.8ms) commit transaction
1468
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1469
+ Processing by Api::UserController#reauth as HTML
1470
+ Parameters: {"uid"=>"a1s2d38301"}
1471
+ Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1483
1472
   (0.1ms) begin transaction
1484
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1485
- - signin
1486
- ' WHERE "users"."id" = 11
1487
-  (20.2ms) commit transaction
1473
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33743"]]
1474
+  (31.5ms) commit transaction
1488
1475
   (0.1ms) begin transaction
1489
-  (0.3ms) UPDATE "users" SET "permissions" = '---
1476
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35636"]]
1477
+  (48.9ms) commit transaction
1478
+ Processing by Api::UserController#reauth as HTML
1479
+ Parameters: {"uid"=>"a1s2d33743"}
1480
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33743' LIMIT 1
1481
+  (0.0ms) begin transaction
1482
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1490
1483
  - signin
1491
- ' WHERE "users"."id" = 11
1492
-  (8.7ms) commit transaction
1493
- Completed 200 OK in 261.0ms (Views: 0.7ms | ActiveRecord: 78.3ms)
1494
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:16:32 +0000
1495
- Processing by ExampleController#restricted as JSON
1496
- Completed in 26.5ms
1484
+ ' WHERE "users"."id" = 8
1485
+  (40.6ms) commit transaction
1486
+ Completed 200 OK in 43.6ms (ActiveRecord: 41.1ms)
1487
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1488
+  (0.1ms) begin transaction
1489
+ SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35462"]]
1490
+  (43.2ms) commit transaction
1497
1491
   (0.1ms) begin transaction
1498
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36255"]]
1499
-  (12.7ms) commit transaction
1492
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36423"]]
1493
+  (72.0ms) commit transaction
1494
+ Processing by Api::UserController#reauth as HTML
1495
+ Parameters: {"uid"=>"nonexistent-user"}
1496
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1497
+ Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
1498
+  (0.1ms) begin transaction
1499
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33200"]]
1500
+  (16.6ms) commit transaction
1500
1501
   (0.1ms) begin transaction
1501
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31168"]]
1502
-  (32.5ms) commit transaction
1503
- Processing by Api::UserController#update as HTML
1504
- Parameters: {"uid"=>"a1s2d36255"}
1505
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1506
- Completed 403 Forbidden in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
1502
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33048"]]
1503
+  (20.1ms) commit transaction
1504
+ Processing by Api::UserController#reauth as HTML
1505
+ Parameters: {"uid"=>"nonexistent-user"}
1506
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1507
+ Completed 200 OK in 5ms (ActiveRecord: 0.2ms)
1508
+  (0.1ms) begin transaction
1509
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39659"]]
1510
+  (40.6ms) commit transaction
1507
1511
   (0.1ms) begin transaction
1508
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35848"]]
1509
-  (19.0ms) commit transaction
1512
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37560"]]
1513
+  (17.3ms) commit transaction
1514
+ Processing by Api::UserController#reauth as HTML
1515
+ Parameters: {"uid"=>"a1s2d39659"}
1516
+ Completed 403 Forbidden in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
1510
1517
   (0.1ms) begin transaction
1511
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33568"]]
1512
-  (11.1ms) commit transaction
1518
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39737"]]
1519
+  (22.7ms) commit transaction
1520
+  (0.1ms) begin transaction
1521
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36940"]]
1522
+  (9.4ms) commit transaction
1523
+ Processing by Api::UserController#reauth as HTML
1524
+ Parameters: {"uid"=>"a1s2d39737"}
1525
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39737' ORDER BY "users"."id" ASC LIMIT 1
1526
+  (0.1ms) begin transaction
1527
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 5 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1528
+  (10.7ms) commit transaction
1529
+ Completed 200 OK in 16ms (ActiveRecord: 11.4ms)
1530
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1531
+  (0.1ms) begin transaction
1532
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37155"]]
1533
+  (14.5ms) commit transaction
1534
+  (0.1ms) begin transaction
1535
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d39300"]]
1536
+  (11.7ms) commit transaction
1513
1537
  Processing by Api::UserController#update as HTML
1514
- Parameters: {"uid"=>"a1s2d35848"}
1515
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35848' ORDER BY "users"."id" ASC LIMIT 1
1538
+ Parameters: {"uid"=>"a1s2d37155"}
1539
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37155' ORDER BY "users"."id" ASC LIMIT 1
1516
1540
   (0.1ms) begin transaction
1517
- SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
1518
-  (29.4ms) commit transaction
1519
- Completed 200 OK in 39ms (ActiveRecord: 30.2ms)
1520
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1541
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = 7 [["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"]]
1542
+  (13.9ms) commit transaction
1543
+ Completed 200 OK in 17ms (ActiveRecord: 14.4ms)
1544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
1521
1545
   (0.1ms) begin transaction
1522
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38991"]]
1523
-  (9.7ms) commit transaction
1546
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3418"]]
1547
+  (10.3ms) commit transaction
1524
1548
   (0.1ms) begin transaction
1525
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31157"]]
1526
-  (12.5ms) commit transaction
1527
- Processing by Api::UserController#reauth as HTML
1528
- Parameters: {"uid"=>"a1s2d38991"}
1529
- Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1549
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38483"]]
1550
+  (10.9ms) commit transaction
1551
+ Processing by Api::UserController#update as HTML
1552
+ Parameters: {"uid"=>"a1s2d3418"}
1553
+ Completed 403 Forbidden in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
1554
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:28 +0000
1555
+ Processing by ExampleController#restricted as JSON
1556
+ Completed in 105ms
1557
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:28 +0000
1558
+ Processing by ExampleController#restricted as JSON
1559
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1561
+  (0.1ms) begin transaction
1562
+ SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "permissions", "uid") VALUES (?, ?, ?, ?, ?) [["disabled", nil], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1563
+  (12.8ms) commit transaction
1564
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1530
1565
   (0.1ms) begin transaction
1531
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35413"]]
1532
-  (23.9ms) commit transaction
1566
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1567
+  (11.6ms) commit transaction
1568
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1569
+  (0.2ms) begin transaction
1570
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1571
+  (11.0ms) commit transaction
1572
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1573
+  (0.1ms) begin transaction
1574
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1575
+  (10.6ms) commit transaction
1533
1576
   (0.1ms) begin transaction
1534
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31249"]]
1535
-  (17.0ms) commit transaction
1536
- Processing by Api::UserController#reauth as HTML
1537
- Parameters: {"uid"=>"nonexistent-user"}
1538
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1539
- Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
1577
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1578
+  (14.5ms) commit transaction
1579
+ Completed 200 OK in 266ms (Views: 1.8ms | ActiveRecord: 63.3ms)
1580
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:16:29 +0000
1581
+ Processing by ExampleController#this_requires_signin_permission as JSON
1582
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1583
+  (0.1ms) begin transaction
1584
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1585
+  (66.3ms) commit transaction
1586
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1540
1587
   (0.1ms) begin transaction
1541
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36065"]]
1542
-  (12.4ms) commit transaction
1588
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1589
+  (34.9ms) commit transaction
1590
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1591
+  (0.1ms) begin transaction
1592
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1593
+  (10.0ms) commit transaction
1594
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1595
+  (0.1ms) begin transaction
1596
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1597
+  (11.5ms) commit transaction
1543
1598
   (0.1ms) begin transaction
1544
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36571"]]
1545
-  (11.8ms) commit transaction
1546
- Processing by Api::UserController#reauth as HTML
1547
- Parameters: {"uid"=>"a1s2d36065"}
1548
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36065' ORDER BY "users"."id" ASC LIMIT 1
1549
-  (0.1ms) begin transaction
1550
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 9 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1551
-  (13.3ms) commit transaction
1552
- Completed 200 OK in 17ms (ActiveRecord: 13.9ms)
1553
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1554
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:17:05 +0000
1555
- Processing by ExampleController#index as HTML
1556
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
1557
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:05 +0000
1558
- Processing by ExampleController#restricted as HTML
1599
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1600
+  (6.7ms) commit transaction
1601
+ Completed 200 OK in 379ms (Views: 0.4ms | ActiveRecord: 131.7ms)
1602
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1603
+ Processing by ExampleController#restricted as JSON
1604
+ Completed in 31ms
1605
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1606
+ Processing by ExampleController#this_requires_signin_permission as HTML
1559
1607
  Authenticating with gds_sso strategy
1560
- Completed in 41ms
1561
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:05 +0000
1562
- Started GET "/auth/gds/callback?code=2c2be20cb2b7651ef4e3cc2b66c02b8330846bb65831dff4fca288ccc290f13f&state=44b83be35fec3ae91b43762ab7ab0cba558f4988259f1f88" for 127.0.0.1 at 2015-04-20 13:17:06 +0000
1608
+ Completed in 0ms
1609
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1610
+ Started GET "/auth/gds/callback?code=64816016a6f0c0a369dc3ce8d865b906d57d1300bed66d47229dc0132f6ddf7e&state=b430087670ec087b9adbe78050dc77310486d950693058b4" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1563
1611
  Processing by AuthenticationsController#callback as HTML
1564
- Parameters: {"code"=>"2c2be20cb2b7651ef4e3cc2b66c02b8330846bb65831dff4fca288ccc290f13f", "state"=>"44b83be35fec3ae91b43762ab7ab0cba558f4988259f1f88"}
1612
+ Parameters: {"code"=>"64816016a6f0c0a369dc3ce8d865b906d57d1300bed66d47229dc0132f6ddf7e", "state"=>"b430087670ec087b9adbe78050dc77310486d950693058b4"}
1565
1613
  Authenticating with gds_sso strategy
1566
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1567
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1614
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1568
1615
   (0.1ms) begin transaction
1569
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1570
-  (15.6ms) commit transaction
1616
+ SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", false], ["permissions", "---\n- signin\n"]]
1617
+  (9.2ms) commit transaction
1571
1618
   (0.1ms) begin transaction
1572
- SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1573
-  (7.3ms) commit transaction
1574
- Redirected to http://www.example-client.com/restricted
1575
- Completed 302 Found in 32ms (ActiveRecord: 24.2ms)
1576
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:06 +0000
1577
- Processing by ExampleController#restricted as HTML
1619
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1620
+  (6.6ms) commit transaction
1621
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1622
+ Completed 302 Found in 23ms (ActiveRecord: 16.6ms)
1623
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1624
+ Processing by ExampleController#this_requires_signin_permission as HTML
1625
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1626
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1627
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1628
+ Processing by ExampleController#this_requires_signin_permission as HTML
1629
+ Authenticating with gds_sso strategy
1630
+ Completed in 0ms
1631
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:30 +0000
1632
+ Started GET "/auth/gds/callback?code=6f6901c1465c8aa9dec76be618fdd8fcd1c065001f8d8437049f6c6dac5f2d51&state=4e7fb354e678de49d8671ebb130d745b3b211347b48c67f6" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1633
+ Processing by AuthenticationsController#callback as HTML
1634
+ Parameters: {"code"=>"6f6901c1465c8aa9dec76be618fdd8fcd1c065001f8d8437049f6c6dac5f2d51", "state"=>"4e7fb354e678de49d8671ebb130d745b3b211347b48c67f6"}
1635
+ Authenticating with gds_sso strategy
1636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1637
+  (0.1ms) begin transaction
1638
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1639
+  (11.1ms) commit transaction
1640
+  (0.1ms) begin transaction
1641
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1642
+  (11.0ms) commit transaction
1643
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1644
+ Completed 302 Found in 27ms (ActiveRecord: 22.9ms)
1645
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1646
+ Processing by ExampleController#this_requires_signin_permission as HTML
1578
1647
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1579
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1580
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:06 +0000
1648
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1649
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1581
1650
  Processing by ExampleController#restricted as HTML
1582
1651
  Authenticating with gds_sso strategy
1583
- Completed in 0ms
1584
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:06 +0000
1585
- Started GET "/auth/gds/callback?code=4833a4a8bb37ac25db38e0337d6bfbb90fa8e071ebba27eea030b35bb876d362&state=95d1f4bdaefbca8de57a89016a50a502a71cdbb900123667" for 127.0.0.1 at 2015-04-20 13:17:06 +0000
1652
+ Completed in 1ms
1653
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1654
+ Started GET "/auth/gds/callback?code=213f59dca7506d7389adfad17b60915e2ca35e54826c2093d5f871296feb40c5&state=d783ed15cbb8c6791a3ce8a75518919643bffc8513bd297f" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1586
1655
  Processing by AuthenticationsController#callback as HTML
1587
- Parameters: {"code"=>"4833a4a8bb37ac25db38e0337d6bfbb90fa8e071ebba27eea030b35bb876d362", "state"=>"95d1f4bdaefbca8de57a89016a50a502a71cdbb900123667"}
1656
+ Parameters: {"code"=>"213f59dca7506d7389adfad17b60915e2ca35e54826c2093d5f871296feb40c5", "state"=>"d783ed15cbb8c6791a3ce8a75518919643bffc8513bd297f"}
1588
1657
  Authenticating with gds_sso strategy
1589
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1658
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1590
1659
   (0.1ms) begin transaction
1591
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1592
-  (14.7ms) commit transaction
1593
-  (52.4ms) begin transaction
1660
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1661
+  (7.2ms) commit transaction
1662
+  (0.1ms) begin transaction
1594
1663
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1595
-  (13.8ms) commit transaction
1664
+  (10.9ms) commit transaction
1596
1665
  Redirected to http://www.example-client.com/restricted
1597
- Completed 302 Found in 88ms (ActiveRecord: 81.9ms)
1598
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:07 +0000
1666
+ Completed 302 Found in 25ms (ActiveRecord: 19.1ms)
1667
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:31 +0000
1599
1668
  Processing by ExampleController#restricted as HTML
1600
1669
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1601
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1602
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:07 +0000
1603
- Processing by ExampleController#this_requires_signin_permission as HTML
1670
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1671
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1672
+ Processing by ExampleController#restricted as HTML
1604
1673
  Authenticating with gds_sso strategy
1605
1674
  Completed in 1ms
1606
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:07 +0000
1607
- Started GET "/auth/gds/callback?code=56ff9e599004007f9082ab429ba986eea7f848cf91016abf2a7c8fc594cf152c&state=8f1cfbcb635f15c4cfbcacc31dd1738c10c4b791d7ceb252" for 127.0.0.1 at 2015-04-20 13:17:07 +0000
1675
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1676
+ Started GET "/auth/gds/callback?code=dc9acb438bc7e9bfe252bb5342f1fdd61ef6d9daaf33a312f3b6b0df2267acef&state=ad6affcccd646a32a965e6b70ea7226b394e9fbd6e62aabb" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1608
1677
  Processing by AuthenticationsController#callback as HTML
1609
- Parameters: {"code"=>"56ff9e599004007f9082ab429ba986eea7f848cf91016abf2a7c8fc594cf152c", "state"=>"8f1cfbcb635f15c4cfbcacc31dd1738c10c4b791d7ceb252"}
1678
+ Parameters: {"code"=>"dc9acb438bc7e9bfe252bb5342f1fdd61ef6d9daaf33a312f3b6b0df2267acef", "state"=>"ad6affcccd646a32a965e6b70ea7226b394e9fbd6e62aabb"}
1610
1679
  Authenticating with gds_sso strategy
1611
1680
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1612
1681
   (0.1ms) begin transaction
1613
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1614
-  (37.7ms) commit transaction
1682
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1683
+  (19.5ms) commit transaction
1615
1684
   (0.1ms) begin transaction
1616
1685
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1617
-  (9.7ms) commit transaction
1618
- Redirected to http://www.example-client.com/this_requires_signin_permission
1619
- Completed 302 Found in 56ms (ActiveRecord: 48.5ms)
1620
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:08 +0000
1621
- Processing by ExampleController#this_requires_signin_permission as HTML
1622
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1623
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1624
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:08 +0000
1625
- Processing by ExampleController#this_requires_signin_permission as HTML
1686
+  (13.5ms) commit transaction
1687
+ Redirected to http://www.example-client.com/restricted
1688
+ Completed 302 Found in 39ms (ActiveRecord: 33.9ms)
1689
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1690
+ Processing by ExampleController#restricted as HTML
1691
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1692
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1693
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1694
+ Processing by ExampleController#restricted as HTML
1626
1695
  Authenticating with gds_sso strategy
1627
1696
  Completed in 0ms
1628
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:08 +0000
1629
- Started GET "/auth/gds/callback?code=4ae60cf36e25405f1af2c66ea50b89e39d867ed1cc31017443a776858b4e85f3&state=1377388451f001055493514b5368a936723e953642379d75" for 127.0.0.1 at 2015-04-20 13:17:08 +0000
1697
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1698
+ Started GET "/auth/gds/callback?code=e457f296eab77b5a0c43793f6bdef50835a46f504de8c8bf40b808f513883612&state=f10d6a1c4bee6cd90ca2fff2682e7da43afe114781a5b136" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1630
1699
  Processing by AuthenticationsController#callback as HTML
1631
- Parameters: {"code"=>"4ae60cf36e25405f1af2c66ea50b89e39d867ed1cc31017443a776858b4e85f3", "state"=>"1377388451f001055493514b5368a936723e953642379d75"}
1700
+ Parameters: {"code"=>"e457f296eab77b5a0c43793f6bdef50835a46f504de8c8bf40b808f513883612", "state"=>"f10d6a1c4bee6cd90ca2fff2682e7da43afe114781a5b136"}
1632
1701
  Authenticating with gds_sso strategy
1633
1702
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1634
1703
   (0.1ms) begin transaction
1635
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1636
-  (7.3ms) commit transaction
1637
-  (0.2ms) begin transaction
1704
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1705
+  (18.7ms) commit transaction
1706
+  (0.1ms) begin transaction
1638
1707
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1639
-  (9.6ms) commit transaction
1640
- Redirected to http://www.example-client.com/this_requires_signin_permission
1641
- Completed 302 Found in 23ms (ActiveRecord: 17.9ms)
1642
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:08 +0000
1643
- Processing by ExampleController#this_requires_signin_permission as HTML
1644
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1645
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1646
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1708
+  (12.9ms) commit transaction
1709
+ Redirected to http://www.example-client.com/restricted
1710
+ Completed 302 Found in 38ms (ActiveRecord: 32.5ms)
1711
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:32 +0000
1712
+ Processing by ExampleController#restricted as HTML
1713
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1714
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1715
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1716
+ Processing by ExampleController#index as HTML
1717
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1718
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1647
1719
  Processing by ExampleController#restricted as HTML
1648
1720
  Authenticating with gds_sso strategy
1649
- Completed in 4ms
1650
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1651
- Started GET "/auth/gds/callback?code=c5f48d0d483aaaeafa543ba5d16fd05b73258b603b779ac51bb4aa0c0bb32a06&state=c5aba9bf56ae0701cdfce8776b30037ad97a0d95a5f03368" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1721
+ Completed in 1ms
1722
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1723
+ Started GET "/auth/gds/callback?code=8b8b1c1d48a907e223b29c2f214c6afc8fd28bd87adffde03d94f340c152fb80&state=acb2c18127d6c915387d309d539c34004a0105a0d57f2e85" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1652
1724
  Processing by AuthenticationsController#callback as HTML
1653
- Parameters: {"code"=>"c5f48d0d483aaaeafa543ba5d16fd05b73258b603b779ac51bb4aa0c0bb32a06", "state"=>"c5aba9bf56ae0701cdfce8776b30037ad97a0d95a5f03368"}
1725
+ Parameters: {"code"=>"8b8b1c1d48a907e223b29c2f214c6afc8fd28bd87adffde03d94f340c152fb80", "state"=>"acb2c18127d6c915387d309d539c34004a0105a0d57f2e85"}
1654
1726
  Authenticating with gds_sso strategy
1655
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1727
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1656
1728
   (0.1ms) begin transaction
1657
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1658
-  (16.4ms) commit transaction
1659
-  (0.2ms) begin transaction
1729
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1730
+  (16.2ms) commit transaction
1731
+  (0.1ms) begin transaction
1660
1732
  SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1661
-  (71.2ms) commit transaction
1733
+  (15.6ms) commit transaction
1662
1734
  Redirected to http://www.example-client.com/restricted
1663
- Completed 302 Found in 98ms (ActiveRecord: 89.3ms)
1664
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1735
+ Completed 302 Found in 41ms (ActiveRecord: 33.1ms)
1736
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1665
1737
  Processing by ExampleController#restricted as HTML
1666
1738
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1667
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1668
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1739
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
1740
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:11:33 +0000
1741
+ Processing by ExampleController#restricted as HTML
1742
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1743
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1744
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1669
1745
  Processing by ExampleController#restricted as HTML
1670
1746
  Authenticating with gds_sso strategy
1671
1747
  Completed in 1ms
1672
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:09 +0000
1673
- Started GET "/auth/gds/callback?code=01ba429d840ae0ba3764b05420231aeb2d35aa3e5493f99ef227105fbdd92e00&state=14ff43c46dfa72b689e99b1999eca7c459f06345e7640598" for 127.0.0.1 at 2015-04-20 13:17:10 +0000
1748
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:33 +0000
1749
+ Started GET "/auth/gds/callback?code=62c3697f8f4163a9138da5df3adbf47be5b0acf9cffcfc0b5ad30886f9f38cef&state=96219a61a3013d0108f6184f0d6f459bb9e8036406a50f71" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1674
1750
  Processing by AuthenticationsController#callback as HTML
1675
- Parameters: {"code"=>"01ba429d840ae0ba3764b05420231aeb2d35aa3e5493f99ef227105fbdd92e00", "state"=>"14ff43c46dfa72b689e99b1999eca7c459f06345e7640598"}
1751
+ Parameters: {"code"=>"62c3697f8f4163a9138da5df3adbf47be5b0acf9cffcfc0b5ad30886f9f38cef", "state"=>"96219a61a3013d0108f6184f0d6f459bb9e8036406a50f71"}
1676
1752
  Authenticating with gds_sso strategy
1677
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1678
-  (0.1ms) begin transaction
1679
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1680
-  (12.0ms) commit transaction
1753
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1681
1754
   (0.1ms) begin transaction
1682
1755
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1683
-  (9.2ms) commit transaction
1756
+  (11.1ms) commit transaction
1757
+  (0.1ms) begin transaction
1758
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1759
+  (14.5ms) commit transaction
1684
1760
  Redirected to http://www.example-client.com/restricted
1685
- Completed 302 Found in 29ms (ActiveRecord: 22.2ms)
1686
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:10 +0000
1761
+ Completed 302 Found in 32ms (ActiveRecord: 26.4ms)
1762
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1687
1763
  Processing by ExampleController#restricted as HTML
1688
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1689
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1690
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1691
-  (0.1ms) begin transaction
1692
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1693
-  (14.1ms) commit transaction
1694
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:10 +0000
1764
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1765
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1766
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:21:34 +0000
1695
1767
  Processing by ExampleController#restricted as HTML
1696
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1697
1768
  Authenticating with gds_sso strategy
1698
- Completed in 2ms
1699
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:10 +0000
1700
- Started GET "/auth/gds/callback?code=fefcf40d2884359e650bbb1327471d0e8bb2bca62dc22d55fb70d5e382e8f5ef&state=9c7fdfcab2ccf690cf7a0d116adb988e93d7d1086d1d443f" for 127.0.0.1 at 2015-04-20 13:17:11 +0000
1769
+ Completed in 1ms
1770
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:21:34 +0000
1771
+ Started GET "/auth/gds/callback?code=2f8210bf827fb52770bc3c5810a133fdb862b571e6e666af5a0dbdfb7a7dffe2&state=2a3480a3741ac6894bb11d38822793f663cdbe993371b9a9" for 127.0.0.1 at 2015-04-24 07:21:34 +0000
1701
1772
  Processing by AuthenticationsController#callback as HTML
1702
- Parameters: {"code"=>"fefcf40d2884359e650bbb1327471d0e8bb2bca62dc22d55fb70d5e382e8f5ef", "state"=>"9c7fdfcab2ccf690cf7a0d116adb988e93d7d1086d1d443f"}
1773
+ Parameters: {"code"=>"2f8210bf827fb52770bc3c5810a133fdb862b571e6e666af5a0dbdfb7a7dffe2", "state"=>"2a3480a3741ac6894bb11d38822793f663cdbe993371b9a9"}
1703
1774
  Authenticating with gds_sso strategy
1704
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1775
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1705
1776
   (0.1ms) begin transaction
1706
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1707
-  (13.2ms) commit transaction
1777
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1778
+  (9.5ms) commit transaction
1708
1779
   (0.1ms) begin transaction
1709
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1710
-  (27.3ms) commit transaction
1780
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1781
+  (10.6ms) commit transaction
1711
1782
  Redirected to http://www.example-client.com/restricted
1712
- Completed 302 Found in 48ms (ActiveRecord: 41.6ms)
1713
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:11 +0000
1783
+ Completed 302 Found in 25ms (ActiveRecord: 20.8ms)
1784
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:21:34 +0000
1714
1785
  Processing by ExampleController#restricted as HTML
1715
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1716
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1717
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:11 +0000
1786
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1787
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1788
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1718
1789
  Processing by ExampleController#restricted as HTML
1719
1790
  Authenticating with gds_sso strategy
1720
- Completed in 1ms
1721
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:11 +0000
1722
- Started GET "/auth/gds/callback?code=df750af6947eb387ac78f652ecd2af7ca886f8c5d5c746b6cd854afcfb3a4471&state=50f1931100aee30dae0ac72b35542bb54332dfdf3abcebb4" for 127.0.0.1 at 2015-04-20 13:17:12 +0000
1791
+ Completed in 0ms
1792
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1793
+ Started GET "/auth/gds/callback?code=e8432cfbeb4bd3cc2ccb29e57dfbe907dced13fa140368634d2cff10b1645a6c&state=56a68a1bf3636ccb86b106ed727605138d7a065a4ef86e11" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1723
1794
  Processing by AuthenticationsController#callback as HTML
1724
- Parameters: {"code"=>"df750af6947eb387ac78f652ecd2af7ca886f8c5d5c746b6cd854afcfb3a4471", "state"=>"50f1931100aee30dae0ac72b35542bb54332dfdf3abcebb4"}
1795
+ Parameters: {"code"=>"e8432cfbeb4bd3cc2ccb29e57dfbe907dced13fa140368634d2cff10b1645a6c", "state"=>"56a68a1bf3636ccb86b106ed727605138d7a065a4ef86e11"}
1725
1796
  Authenticating with gds_sso strategy
1726
1797
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1727
1798
   (0.1ms) begin transaction
1728
1799
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1729
-  (17.6ms) commit transaction
1800
+  (18.3ms) commit transaction
1730
1801
   (0.1ms) begin transaction
1731
1802
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1732
-  (44.3ms) commit transaction
1803
+  (9.0ms) commit transaction
1733
1804
  Redirected to http://www.example-client.com/restricted
1734
- Completed 302 Found in 69ms (ActiveRecord: 62.9ms)
1735
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:12 +0000
1805
+ Completed 302 Found in 34ms (ActiveRecord: 28.0ms)
1806
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1736
1807
  Processing by ExampleController#restricted as HTML
1737
1808
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1738
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1739
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:22:12 +0000
1809
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1810
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1811
+  (0.1ms) begin transaction
1812
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1813
+  (8.5ms) commit transaction
1814
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1740
1815
  Processing by ExampleController#restricted as HTML
1816
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1741
1817
  Authenticating with gds_sso strategy
1742
- Completed in 1ms
1743
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:22:12 +0000
1744
- Started GET "/auth/gds/callback?code=eb5d16cbeded8bc79d71fba397e69f5768f63efec55ee1e86585b15234feb1b0&state=7bf99e2cdb44f1c386168a1e5a378277648689b2a854d637" for 127.0.0.1 at 2015-04-21 09:22:12 +0000
1818
+ Completed in 2ms
1819
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:16:34 +0000
1820
+ Started GET "/auth/gds/callback?code=17941b988c96a4e423cd549f384e7b37908576fc431cc043fed26b12ece5d82d&state=7428351fcdef6742e147f63958a672324009074f63c1d09d" for 127.0.0.1 at 2015-04-23 11:16:35 +0000
1745
1821
  Processing by AuthenticationsController#callback as HTML
1746
- Parameters: {"code"=>"eb5d16cbeded8bc79d71fba397e69f5768f63efec55ee1e86585b15234feb1b0", "state"=>"7bf99e2cdb44f1c386168a1e5a378277648689b2a854d637"}
1822
+ Parameters: {"code"=>"17941b988c96a4e423cd549f384e7b37908576fc431cc043fed26b12ece5d82d", "state"=>"7428351fcdef6742e147f63958a672324009074f63c1d09d"}
1747
1823
  Authenticating with gds_sso strategy
1748
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1749
-  (0.1ms) begin transaction
1750
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1751
-  (14.8ms) commit transaction
1824
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1752
1825
   (0.1ms) begin transaction
1753
1826
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1754
-  (9.3ms) commit transaction
1827
+  (34.3ms) commit transaction
1828
+  (0.1ms) begin transaction
1829
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1830
+  (33.5ms) commit transaction
1755
1831
  Redirected to http://www.example-client.com/restricted
1756
- Completed 302 Found in 30ms (ActiveRecord: 25.0ms)
1757
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:22:12 +0000
1832
+ Completed 302 Found in 74ms (ActiveRecord: 68.6ms)
1833
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:16:35 +0000
1758
1834
  Processing by ExampleController#restricted as HTML
1759
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1760
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1761
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:12 +0000
1835
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1836
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1837
+ Started GET "/" for 127.0.0.1 at 2015-04-23 11:17:19 +0000
1838
+ Processing by ExampleController#index as HTML
1839
+ Rendered text template (0.1ms)
1840
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1841
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:19 +0000
1762
1842
  Processing by ExampleController#restricted as HTML
1763
1843
  Authenticating with gds_sso strategy
1764
- Completed in 1ms
1765
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:12 +0000
1766
- Started GET "/auth/gds/callback?code=78f0cc5f38efac2edf828a628a840801478de5229bdaca7dc8f4cf4190791a62&state=e2ed9f17f8d18dfb53424eddd0d779bf452745ac1c8d7573" for 127.0.0.1 at 2015-04-20 13:17:13 +0000
1844
+ Completed in 16ms
1845
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:19 +0000
1846
+ Started GET "/auth/gds/callback?code=0668616863417a631f99d2ae9cf2603be91c05759112d40181cba652b047864d&state=275297cde4095ea4be0851bfe62c5d9b66fbf36106732248" for 127.0.0.1 at 2015-04-23 11:17:19 +0000
1767
1847
  Processing by AuthenticationsController#callback as HTML
1768
- Parameters: {"code"=>"78f0cc5f38efac2edf828a628a840801478de5229bdaca7dc8f4cf4190791a62", "state"=>"e2ed9f17f8d18dfb53424eddd0d779bf452745ac1c8d7573"}
1848
+ Parameters: {"code"=>"0668616863417a631f99d2ae9cf2603be91c05759112d40181cba652b047864d", "state"=>"275297cde4095ea4be0851bfe62c5d9b66fbf36106732248"}
1769
1849
  Authenticating with gds_sso strategy
1770
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1851
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1771
1852
   (0.1ms) begin transaction
1772
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1773
-  (19.2ms) commit transaction
1853
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1854
+  (9.9ms) commit transaction
1774
1855
   (0.1ms) begin transaction
1775
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1776
-  (80.8ms) commit transaction
1856
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1857
+  (8.4ms) commit transaction
1777
1858
  Redirected to http://www.example-client.com/restricted
1778
- Completed 302 Found in 107ms (ActiveRecord: 101.1ms)
1779
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:13 +0000
1859
+ Completed 302 Found in 44ms (ActiveRecord: 20.0ms)
1860
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1780
1861
  Processing by ExampleController#restricted as HTML
1781
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1782
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1783
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:12:13 +0000
1862
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1863
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1864
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1784
1865
  Processing by ExampleController#restricted as HTML
1785
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1786
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1787
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:13 +0000
1788
- Processing by ExampleController#restricted as JSON
1789
- Completed in 46ms
1790
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:14 +0000
1791
- Processing by ExampleController#this_requires_signin_permission as JSON
1792
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1793
-  (0.1ms) begin transaction
1794
- SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]
1795
-  (64.3ms) commit transaction
1796
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1797
-  (0.1ms) begin transaction
1798
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1799
-  (21.3ms) commit transaction
1800
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1801
-  (0.1ms) begin transaction
1802
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1803
-  (63.3ms) commit transaction
1804
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1805
-  (0.1ms) begin transaction
1806
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1807
-  (11.5ms) commit transaction
1866
+ Authenticating with gds_sso strategy
1867
+ Completed in 1ms
1868
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1869
+ Started GET "/auth/gds/callback?code=0ef2ab74887920628972fc49a0e043fe0e3a4e97a963134d54fef98ff4c87891&state=16a8b8e0c52be217c0606491345309d944110e70f77324fc" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1870
+ Processing by AuthenticationsController#callback as HTML
1871
+ Parameters: {"code"=>"0ef2ab74887920628972fc49a0e043fe0e3a4e97a963134d54fef98ff4c87891", "state"=>"16a8b8e0c52be217c0606491345309d944110e70f77324fc"}
1872
+ Authenticating with gds_sso strategy
1873
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1808
1874
   (0.1ms) begin transaction
1809
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1875
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1810
1876
   (11.5ms) commit transaction
1811
- Completed 200 OK in 367ms (Views: 0.4ms | ActiveRecord: 174.9ms)
1812
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:15 +0000
1813
- Processing by ExampleController#restricted as JSON
1814
- Completed in 38ms
1815
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:15 +0000
1816
- Processing by ExampleController#restricted as JSON
1817
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1818
-  (0.1ms) begin transaction
1819
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1820
-  (17.5ms) commit transaction
1821
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1822
-  (0.1ms) begin transaction
1823
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1824
-  (10.3ms) commit transaction
1825
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1826
-  (0.1ms) begin transaction
1827
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1828
-  (12.0ms) commit transaction
1829
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1830
-  (0.1ms) begin transaction
1831
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1832
-  (47.1ms) commit transaction
1833
-  (0.1ms) begin transaction
1834
- SQL (0.5ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1835
-  (65.6ms) commit transaction
1836
- Completed 200 OK in 366ms (Views: 0.5ms | ActiveRecord: 156.3ms)
1837
-  (0.1ms) begin transaction
1838
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35315"]]
1839
-  (20.7ms) commit transaction
1840
-  (0.1ms) begin transaction
1841
- SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3120"]]
1842
-  (16.8ms) commit transaction
1843
- Processing by Api::UserController#update as HTML
1844
- Parameters: {"uid"=>"a1s2d35315"}
1845
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
1846
- Completed 403 Forbidden in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
1847
-  (0.1ms) begin transaction
1848
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37143"]]
1849
-  (15.7ms) commit transaction
1850
-  (0.1ms) begin transaction
1851
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38754"]]
1852
-  (18.4ms) commit transaction
1853
- Processing by Api::UserController#update as HTML
1854
- Parameters: {"uid"=>"a1s2d37143"}
1855
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37143' ORDER BY "users"."id" ASC LIMIT 1
1856
1877
   (0.1ms) begin transaction
1857
- SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
1858
-  (17.3ms) commit transaction
1859
- Completed 200 OK in 33ms (ActiveRecord: 18.1ms)
1860
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1861
-  (0.1ms) begin transaction
1862
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3357"]]
1863
-  (13.8ms) commit transaction
1864
-  (0.1ms) begin transaction
1865
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3290"]]
1866
-  (24.7ms) commit transaction
1867
- Processing by Api::UserController#reauth as HTML
1868
- Parameters: {"uid"=>"a1s2d3357"}
1869
- Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1870
-  (0.1ms) begin transaction
1871
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37787"]]
1872
-  (14.5ms) commit transaction
1878
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1879
+  (11.0ms) commit transaction
1880
+ Redirected to http://www.example-client.com/restricted
1881
+ Completed 302 Found in 29ms (ActiveRecord: 23.4ms)
1882
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1883
+ Processing by ExampleController#restricted as HTML
1884
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1885
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1886
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1887
+ Processing by ExampleController#restricted as HTML
1888
+ Authenticating with gds_sso strategy
1889
+ Completed in 0ms
1890
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1891
+ Started GET "/auth/gds/callback?code=2fcf0f5be93be0e74b433767e359725d56b6e3e1031cf3f7696cef54975e36a3&state=e60b7fb085f0c898d197d7316eb8ead1cd641ea782e035cc" for 127.0.0.1 at 2015-04-23 11:17:20 +0000
1892
+ Processing by AuthenticationsController#callback as HTML
1893
+ Parameters: {"code"=>"2fcf0f5be93be0e74b433767e359725d56b6e3e1031cf3f7696cef54975e36a3", "state"=>"e60b7fb085f0c898d197d7316eb8ead1cd641ea782e035cc"}
1894
+ Authenticating with gds_sso strategy
1895
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1873
1896
   (0.1ms) begin transaction
1874
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32170"]]
1875
-  (18.5ms) commit transaction
1876
- Processing by Api::UserController#reauth as HTML
1877
- Parameters: {"uid"=>"nonexistent-user"}
1878
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1879
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1880
-  (0.2ms) begin transaction
1881
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32493"]]
1882
-  (14.7ms) commit transaction
1897
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1898
+  (19.7ms) commit transaction
1883
1899
   (0.1ms) begin transaction
1884
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31677"]]
1885
-  (11.7ms) commit transaction
1886
- Processing by Api::UserController#reauth as HTML
1887
- Parameters: {"uid"=>"a1s2d32493"}
1888
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32493' ORDER BY "users"."id" ASC LIMIT 1
1889
-  (0.1ms) begin transaction
1890
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 9 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1891
-  (17.1ms) commit transaction
1892
- Completed 200 OK in 20ms (ActiveRecord: 17.6ms)
1893
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1894
- Started GET "/" for 127.0.0.1 at 2015-04-20 13:17:34 +0000
1895
- Processing by ExampleController#index as HTML
1896
- Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1897
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:34 +0000
1900
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1901
+  (16.7ms) commit transaction
1902
+ Redirected to http://www.example-client.com/restricted
1903
+ Completed 302 Found in 42ms (ActiveRecord: 37.1ms)
1904
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1905
+ Processing by ExampleController#restricted as HTML
1906
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1907
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1908
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1898
1909
  Processing by ExampleController#this_requires_signin_permission as HTML
1899
1910
  Authenticating with gds_sso strategy
1900
- Completed in 16ms
1901
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:34 +0000
1902
- Started GET "/auth/gds/callback?code=c78b791c2e2cc0bb80e7a310deb2ad16c321d69259997716b9d74aec45777b84&state=585956d400aba3e9b19b26821026115f23b429ab02859605" for 127.0.0.1 at 2015-04-20 13:17:34 +0000
1911
+ Completed in 1ms
1912
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1913
+ Started GET "/auth/gds/callback?code=6484293edcd053d49cd0a9e72c9e26f67e9db9a7451560fe76577c69d7e178dc&state=10a39ddac302e7d47d2fecee5317dd1c653499abe8677245" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1903
1914
  Processing by AuthenticationsController#callback as HTML
1904
- Parameters: {"code"=>"c78b791c2e2cc0bb80e7a310deb2ad16c321d69259997716b9d74aec45777b84", "state"=>"585956d400aba3e9b19b26821026115f23b429ab02859605"}
1915
+ Parameters: {"code"=>"6484293edcd053d49cd0a9e72c9e26f67e9db9a7451560fe76577c69d7e178dc", "state"=>"10a39ddac302e7d47d2fecee5317dd1c653499abe8677245"}
1905
1916
  Authenticating with gds_sso strategy
1906
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1907
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1908
-  (0.1ms) begin transaction
1909
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1910
-  (11.9ms) commit transaction
1917
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1911
1918
   (0.1ms) begin transaction
1912
- SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1913
-  (9.7ms) commit transaction
1919
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1920
+  (35.8ms) commit transaction
1921
+  (0.2ms) begin transaction
1922
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1923
+  (39.1ms) commit transaction
1914
1924
  Redirected to http://www.example-client.com/this_requires_signin_permission
1915
- Completed 302 Found in 29ms (ActiveRecord: 22.6ms)
1916
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1925
+ Completed 302 Found in 82ms (ActiveRecord: 75.9ms)
1926
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1917
1927
  Processing by ExampleController#this_requires_signin_permission as HTML
1918
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1919
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1920
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1928
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1929
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1930
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1921
1931
  Processing by ExampleController#this_requires_signin_permission as HTML
1922
1932
  Authenticating with gds_sso strategy
1923
1933
  Completed in 0ms
1924
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1925
- Started GET "/auth/gds/callback?code=22684b2ff9f453c1656e4e0c4a2c49432ce5e71bc4ddccb2b8b68d87e615451f&state=6f8f659a925033f390a789830cc441de69756f2333b36f1b" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1934
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:21 +0000
1935
+ Started GET "/auth/gds/callback?code=7785a137b1a1a36efe03906e639aec82ceea9ccef241b83db171dd8e25023319&state=5b2664b6c06013d4486cde76fc2142e534340e0a922d0ac9" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1926
1936
  Processing by AuthenticationsController#callback as HTML
1927
- Parameters: {"code"=>"22684b2ff9f453c1656e4e0c4a2c49432ce5e71bc4ddccb2b8b68d87e615451f", "state"=>"6f8f659a925033f390a789830cc441de69756f2333b36f1b"}
1937
+ Parameters: {"code"=>"7785a137b1a1a36efe03906e639aec82ceea9ccef241b83db171dd8e25023319", "state"=>"5b2664b6c06013d4486cde76fc2142e534340e0a922d0ac9"}
1928
1938
  Authenticating with gds_sso strategy
1929
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1930
-  (0.1ms) begin transaction
1931
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1932
-  (11.5ms) commit transaction
1939
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1933
1940
   (0.1ms) begin transaction
1934
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1935
-  (11.2ms) commit transaction
1941
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1942
+  (15.2ms) commit transaction
1943
+  (0.1ms) begin transaction
1944
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1945
+  (14.4ms) commit transaction
1936
1946
  Redirected to http://www.example-client.com/this_requires_signin_permission
1937
- Completed 302 Found in 29ms (ActiveRecord: 23.6ms)
1938
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1947
+ Completed 302 Found in 35ms (ActiveRecord: 30.4ms)
1948
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1939
1949
  Processing by ExampleController#this_requires_signin_permission as HTML
1940
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1941
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1942
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1950
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1951
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1952
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1943
1953
  Processing by ExampleController#restricted as HTML
1944
1954
  Authenticating with gds_sso strategy
1945
1955
  Completed in 1ms
1946
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:35 +0000
1947
- Started GET "/auth/gds/callback?code=3d49049ed50c41f9e5fc4750381d62be46b6ea7828db7f1344a00d70f3ada9df&state=f3555385fc9cf219d081ecd1da3a3b8c7e37c435243388ab" for 127.0.0.1 at 2015-04-20 13:17:36 +0000
1956
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1957
+ Started GET "/auth/gds/callback?code=8dabfc3a08b21b3fa285f6cfae73fe7c094347a31a3c26d5e7a7e1f9b4ee3827&state=657f2dcdf876ab73ba7afe999d0ff87c1716a149f3fdd835" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1948
1958
  Processing by AuthenticationsController#callback as HTML
1949
- Parameters: {"code"=>"3d49049ed50c41f9e5fc4750381d62be46b6ea7828db7f1344a00d70f3ada9df", "state"=>"f3555385fc9cf219d081ecd1da3a3b8c7e37c435243388ab"}
1959
+ Parameters: {"code"=>"8dabfc3a08b21b3fa285f6cfae73fe7c094347a31a3c26d5e7a7e1f9b4ee3827", "state"=>"657f2dcdf876ab73ba7afe999d0ff87c1716a149f3fdd835"}
1950
1960
  Authenticating with gds_sso strategy
1951
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1952
-  (0.2ms) begin transaction
1953
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1954
-  (25.3ms) commit transaction
1961
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1955
1962
   (0.1ms) begin transaction
1956
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1957
-  (18.4ms) commit transaction
1963
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1964
+  (13.3ms) commit transaction
1965
+  (0.1ms) begin transaction
1966
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1967
+  (8.1ms) commit transaction
1958
1968
  Redirected to http://www.example-client.com/restricted
1959
- Completed 302 Found in 54ms (ActiveRecord: 45.0ms)
1960
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:36 +0000
1961
- Processing by ExampleController#restricted as HTML
1962
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1963
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)
1964
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:36 +0000
1969
+ Completed 302 Found in 28ms (ActiveRecord: 22.2ms)
1970
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1965
1971
  Processing by ExampleController#restricted as HTML
1966
- Authenticating with gds_sso strategy
1967
- Completed in 1ms
1968
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:36 +0000
1969
- Started GET "/auth/gds/callback?code=c57743fcb6c233a520f13b00f2b0e5e0d342e9d805939710f3c56adad0c56119&state=57dc5403eb0d6103107061e9afd80e9711fb3814e1fcaf2d" for 127.0.0.1 at 2015-04-20 13:17:36 +0000
1970
- Processing by AuthenticationsController#callback as HTML
1971
- Parameters: {"code"=>"c57743fcb6c233a520f13b00f2b0e5e0d342e9d805939710f3c56adad0c56119", "state"=>"57dc5403eb0d6103107061e9afd80e9711fb3814e1fcaf2d"}
1972
- Authenticating with gds_sso strategy
1973
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1974
-  (0.1ms) begin transaction
1975
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1976
-  (113.3ms) commit transaction
1972
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1973
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1974
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1977
1975
   (0.1ms) begin transaction
1978
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1979
-  (52.6ms) commit transaction
1980
- Redirected to http://www.example-client.com/restricted
1981
- Completed 302 Found in 175ms (ActiveRecord: 167.0ms)
1982
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:37 +0000
1976
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1977
+  (11.7ms) commit transaction
1978
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1983
1979
  Processing by ExampleController#restricted as HTML
1984
1980
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1985
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
1986
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:37 +0000
1987
- Processing by ExampleController#restricted as HTML
1988
1981
  Authenticating with gds_sso strategy
1989
- Completed in 0ms
1990
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:37 +0000
1991
- Started GET "/auth/gds/callback?code=c209b6f387f957fbdae1d557bc5d0cf4c8681f8f7c25da5a9e367d894a791c5c&state=aa96d13ac3a016f37fb3adf27c681c12effd4da22e659e87" for 127.0.0.1 at 2015-04-20 13:17:37 +0000
1982
+ Completed in 2ms
1983
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:22 +0000
1984
+ Started GET "/auth/gds/callback?code=f1ff2df2323588db018931b5e3107ac2b2c95c4e7be9e924661ae147c4f0d98f&state=beb79b646060eca8a8958ea87838392458470478d42e2192" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
1992
1985
  Processing by AuthenticationsController#callback as HTML
1993
- Parameters: {"code"=>"c209b6f387f957fbdae1d557bc5d0cf4c8681f8f7c25da5a9e367d894a791c5c", "state"=>"aa96d13ac3a016f37fb3adf27c681c12effd4da22e659e87"}
1986
+ Parameters: {"code"=>"f1ff2df2323588db018931b5e3107ac2b2c95c4e7be9e924661ae147c4f0d98f", "state"=>"beb79b646060eca8a8958ea87838392458470478d42e2192"}
1994
1987
  Authenticating with gds_sso strategy
1995
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1996
-  (0.2ms) begin transaction
1997
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1998
-  (18.0ms) commit transaction
1988
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1989
+  (0.1ms) begin transaction
1990
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1991
+  (6.2ms) commit transaction
1999
1992
   (0.1ms) begin transaction
2000
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2001
-  (15.4ms) commit transaction
1993
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1994
+  (12.3ms) commit transaction
2002
1995
  Redirected to http://www.example-client.com/restricted
2003
- Completed 302 Found in 42ms (ActiveRecord: 34.7ms)
2004
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:37 +0000
1996
+ Completed 302 Found in 24ms (ActiveRecord: 19.2ms)
1997
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
2005
1998
  Processing by ExampleController#restricted as HTML
2006
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2007
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
2008
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
1999
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2000
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2001
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
2009
2002
  Processing by ExampleController#restricted as HTML
2010
2003
  Authenticating with gds_sso strategy
2011
2004
  Completed in 1ms
2012
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
2013
- Started GET "/auth/gds/callback?code=fd8487fbe981c38278419d9e70f0b4d44d5f56d1dfd8be19f5c2b6438cb1406b&state=c6e27149372e50460d2410077d2337b039f89e0f2bef05fb" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
2005
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
2006
+ Started GET "/auth/gds/callback?code=d09c67f6a2d301431b49a8eeb1967467e0709939074c96dec3bff747c478e9c4&state=71f5adcb63e0b798e564d6d1c1a97b0aef13eb541c1240d2" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
2014
2007
  Processing by AuthenticationsController#callback as HTML
2015
- Parameters: {"code"=>"fd8487fbe981c38278419d9e70f0b4d44d5f56d1dfd8be19f5c2b6438cb1406b", "state"=>"c6e27149372e50460d2410077d2337b039f89e0f2bef05fb"}
2008
+ Parameters: {"code"=>"d09c67f6a2d301431b49a8eeb1967467e0709939074c96dec3bff747c478e9c4", "state"=>"71f5adcb63e0b798e564d6d1c1a97b0aef13eb541c1240d2"}
2016
2009
  Authenticating with gds_sso strategy
2017
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2010
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2018
2011
   (0.1ms) begin transaction
2019
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2020
-  (17.0ms) commit transaction
2012
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2013
+  (16.1ms) commit transaction
2021
2014
   (0.1ms) begin transaction
2022
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2023
-  (15.5ms) commit transaction
2015
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2016
+  (23.7ms) commit transaction
2024
2017
  Redirected to http://www.example-client.com/restricted
2025
- Completed 302 Found in 43ms (ActiveRecord: 34.0ms)
2026
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
2018
+ Completed 302 Found in 46ms (ActiveRecord: 40.6ms)
2019
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:23 +0000
2027
2020
  Processing by ExampleController#restricted as HTML
2028
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2029
- Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
2030
- User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
2031
-  (0.1ms) begin transaction
2032
- SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
2033
-  (24.2ms) commit transaction
2034
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
2021
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2022
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
2023
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:22:23 +0000
2035
2024
  Processing by ExampleController#restricted as HTML
2036
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2037
2025
  Authenticating with gds_sso strategy
2038
- Completed in 3ms
2039
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:38 +0000
2040
- Started GET "/auth/gds/callback?code=0c01ce89432a86065f7cc539396e55009f5c080e8cece43d6ec5e91a4e467169&state=9396b6a4299d6da6711adb710115c7089422e28a093a338b" for 127.0.0.1 at 2015-04-20 13:17:39 +0000
2026
+ Completed in 1ms
2027
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-24 07:22:23 +0000
2028
+ Started GET "/auth/gds/callback?code=a78b3fdfd7f9c5fc60fc080b26063062dbae4fd277a7c5a0360bc7e3e3bc6f34&state=8f45e6c9b1e1197471fd57596d01d10bc6f613d0ad23a44c" for 127.0.0.1 at 2015-04-24 07:22:23 +0000
2041
2029
  Processing by AuthenticationsController#callback as HTML
2042
- Parameters: {"code"=>"0c01ce89432a86065f7cc539396e55009f5c080e8cece43d6ec5e91a4e467169", "state"=>"9396b6a4299d6da6711adb710115c7089422e28a093a338b"}
2030
+ Parameters: {"code"=>"a78b3fdfd7f9c5fc60fc080b26063062dbae4fd277a7c5a0360bc7e3e3bc6f34", "state"=>"8f45e6c9b1e1197471fd57596d01d10bc6f613d0ad23a44c"}
2043
2031
  Authenticating with gds_sso strategy
2044
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2045
-  (0.1ms) begin transaction
2046
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2047
-  (22.3ms) commit transaction
2032
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2048
2033
   (0.1ms) begin transaction
2049
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
2050
-  (19.9ms) commit transaction
2034
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2035
+  (23.4ms) commit transaction
2036
+  (0.1ms) begin transaction
2037
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2038
+  (29.7ms) commit transaction
2051
2039
  Redirected to http://www.example-client.com/restricted
2052
- Completed 302 Found in 49ms (ActiveRecord: 43.3ms)
2053
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:39 +0000
2040
+ Completed 302 Found in 59ms (ActiveRecord: 54.0ms)
2041
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:22:23 +0000
2054
2042
  Processing by ExampleController#restricted as HTML
2055
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2056
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2057
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:39 +0000
2043
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2044
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2045
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:24 +0000
2058
2046
  Processing by ExampleController#restricted as HTML
2059
2047
  Authenticating with gds_sso strategy
2060
2048
  Completed in 1ms
2061
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:39 +0000
2062
- Started GET "/auth/gds/callback?code=4c05dc816330a8040c8d021649487f7441d91c21dfba6768f579ff5b60ba9c64&state=d92ef30c7dae97239a0534e6a0842ce294a642c8f93a32fe" for 127.0.0.1 at 2015-04-20 13:17:39 +0000
2049
+ Started GET "/auth/gds" for 127.0.0.1 at 2015-04-23 11:17:24 +0000
2050
+ Started GET "/auth/gds/callback?code=1b2b31067274cea97000e1d011cbdcab07d13821aaa5f5fcc41494bcf59403e1&state=d3b2b9bc3aadbdb21b9a2f27ffa5f51959980b6ed256e260" for 127.0.0.1 at 2015-04-23 11:17:24 +0000
2063
2051
  Processing by AuthenticationsController#callback as HTML
2064
- Parameters: {"code"=>"4c05dc816330a8040c8d021649487f7441d91c21dfba6768f579ff5b60ba9c64", "state"=>"d92ef30c7dae97239a0534e6a0842ce294a642c8f93a32fe"}
2052
+ Parameters: {"code"=>"1b2b31067274cea97000e1d011cbdcab07d13821aaa5f5fcc41494bcf59403e1", "state"=>"d3b2b9bc3aadbdb21b9a2f27ffa5f51959980b6ed256e260"}
2065
2053
  Authenticating with gds_sso strategy
2066
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2067
-  (0.1ms) begin transaction
2068
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2069
-  (21.4ms) commit transaction
2054
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2070
2055
   (0.1ms) begin transaction
2071
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2072
-  (13.3ms) commit transaction
2056
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2057
+  (9.1ms) commit transaction
2058
+  (0.1ms) begin transaction
2059
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2060
+  (9.8ms) commit transaction
2073
2061
  Redirected to http://www.example-client.com/restricted
2074
- Completed 302 Found in 43ms (ActiveRecord: 35.9ms)
2075
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:40 +0000
2062
+ Completed 302 Found in 26ms (ActiveRecord: 19.7ms)
2063
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:24 +0000
2076
2064
  Processing by ExampleController#restricted as HTML
2077
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2065
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2078
2066
  Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
2079
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:22:40 +0000
2080
- Processing by ExampleController#restricted as HTML
2081
- Authenticating with gds_sso strategy
2082
- Completed in 1ms
2083
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-21 09:22:40 +0000
2084
- Started GET "/auth/gds/callback?code=dc1dccf8a43b71f955bae71f6199c5b54556f5203485540b43bc983ed4d937a7&state=5c78b48b731237ddd0719e3dea2c7a2a4d3aaf168aea5e14" for 127.0.0.1 at 2015-04-21 09:22:40 +0000
2085
- Processing by AuthenticationsController#callback as HTML
2086
- Parameters: {"code"=>"dc1dccf8a43b71f955bae71f6199c5b54556f5203485540b43bc983ed4d937a7", "state"=>"5c78b48b731237ddd0719e3dea2c7a2a4d3aaf168aea5e14"}
2087
- Authenticating with gds_sso strategy
2088
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2089
-  (0.1ms) begin transaction
2090
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2091
-  (10.5ms) commit transaction
2092
-  (0.1ms) begin transaction
2093
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2094
-  (9.9ms) commit transaction
2095
- Redirected to http://www.example-client.com/restricted
2096
- Completed 302 Found in 27ms (ActiveRecord: 21.3ms)
2097
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:22:40 +0000
2067
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-24 07:12:24 +0000
2098
2068
  Processing by ExampleController#restricted as HTML
2099
2069
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2100
2070
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2101
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:40 +0000
2102
- Processing by ExampleController#restricted as HTML
2103
- Authenticating with gds_sso strategy
2104
- Completed in 1ms
2105
- Started GET "/auth/gds" for 127.0.0.1 at 2015-04-20 13:17:40 +0000
2106
- Started GET "/auth/gds/callback?code=275fc6bd8adfa79fff04e657565bbd7082534a499713a27a6cf92de9e3a573ea&state=5d7721e70f7f6f7bd7f003347583330114edf84d3f9324f6" for 127.0.0.1 at 2015-04-20 13:17:40 +0000
2107
- Processing by AuthenticationsController#callback as HTML
2108
- Parameters: {"code"=>"275fc6bd8adfa79fff04e657565bbd7082534a499713a27a6cf92de9e3a573ea", "state"=>"5d7721e70f7f6f7bd7f003347583330114edf84d3f9324f6"}
2109
- Authenticating with gds_sso strategy
2071
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:24 +0000
2072
+ Processing by ExampleController#restricted as JSON
2073
+ Completed in 20ms
2074
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:25 +0000
2075
+ Processing by ExampleController#restricted as JSON
2076
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2077
+  (0.1ms) begin transaction
2078
+ SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 1 [["disabled", nil], ["permissions", "---\n- signin\n"]]
2079
+  (8.5ms) commit transaction
2110
2080
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2111
2081
   (0.1ms) begin transaction
2112
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2113
-  (7.7ms) commit transaction
2082
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2083
+  (18.6ms) commit transaction
2084
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2085
+  (0.1ms) begin transaction
2086
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2087
+  (12.9ms) commit transaction
2088
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2089
+  (0.1ms) begin transaction
2090
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2091
+  (9.4ms) commit transaction
2114
2092
   (0.1ms) begin transaction
2115
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2116
-  (10.0ms) commit transaction
2117
- Redirected to http://www.example-client.com/restricted
2118
- Completed 302 Found in 25ms (ActiveRecord: 18.8ms)
2119
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:40 +0000
2120
- Processing by ExampleController#restricted as HTML
2121
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2122
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
2123
- Started GET "/restricted" for 127.0.0.1 at 2015-04-21 09:12:40 +0000
2124
- Processing by ExampleController#restricted as HTML
2125
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2126
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2127
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:41 +0000
2128
- Processing by ExampleController#restricted as JSON
2129
- Completed in 18ms
2130
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:41 +0000
2131
- Processing by ExampleController#restricted as JSON
2132
- Completed in 17ms
2133
- Started GET "/restricted" for 127.0.0.1 at 2015-04-20 13:17:41 +0000
2134
- Processing by ExampleController#restricted as JSON
2093
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2094
+  (6.2ms) commit transaction
2095
+ Completed 200 OK in 224ms (Views: 0.5ms | ActiveRecord: 58.5ms)
2096
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-23 11:17:25 +0000
2097
+ Processing by ExampleController#this_requires_signin_permission as JSON
2135
2098
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2136
2099
   (0.1ms) begin transaction
2137
- SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]
2138
-  (14.6ms) commit transaction
2100
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2101
+  (22.9ms) commit transaction
2139
2102
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2140
2103
   (0.1ms) begin transaction
2141
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2142
-  (7.0ms) commit transaction
2143
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2104
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2105
+  (25.0ms) commit transaction
2106
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2144
2107
   (0.1ms) begin transaction
2145
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2146
-  (14.1ms) commit transaction
2147
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2108
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2109
+  (15.9ms) commit transaction
2110
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2148
2111
   (0.1ms) begin transaction
2149
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2150
-  (10.3ms) commit transaction
2112
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2113
+  (18.7ms) commit transaction
2151
2114
   (0.1ms) begin transaction
2152
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2153
-  (17.6ms) commit transaction
2154
- Completed 200 OK in 191ms (Views: 0.5ms | ActiveRecord: 66.2ms)
2155
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-04-20 13:17:41 +0000
2156
- Processing by ExampleController#this_requires_signin_permission as JSON
2157
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2115
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
2116
+  (16.2ms) commit transaction
2117
+ Completed 200 OK in 272ms (Views: 0.5ms | ActiveRecord: 101.8ms)
2118
+ Started GET "/restricted" for 127.0.0.1 at 2015-04-23 11:17:26 +0000
2119
+ Processing by ExampleController#restricted as JSON
2120
+ Completed in 18ms
2121
+  (0.1ms) begin transaction
2122
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33739"]]
2123
+  (29.8ms) commit transaction
2158
2124
   (0.1ms) begin transaction
2159
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2160
-  (10.4ms) commit transaction
2161
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2125
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33885"]]
2126
+  (31.0ms) commit transaction
2127
+ Processing by Api::UserController#update as HTML
2128
+ Parameters: {"uid"=>"a1s2d33739"}
2129
+ Completed 403 Forbidden in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
2130
+  (0.1ms) begin transaction
2131
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39360"]]
2132
+  (20.8ms) commit transaction
2162
2133
   (0.1ms) begin transaction
2163
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2164
-  (11.2ms) commit transaction
2165
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2134
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36014"]]
2135
+  (29.8ms) commit transaction
2136
+ Processing by Api::UserController#update as HTML
2137
+ Parameters: {"uid"=>"a1s2d39360"}
2138
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39360' ORDER BY "users"."id" ASC LIMIT 1
2166
2139
   (0.1ms) begin transaction
2167
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2168
-  (9.5ms) commit transaction
2169
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2140
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_content_id" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
2141
+  (16.5ms) commit transaction
2142
+ Completed 200 OK in 21ms (ActiveRecord: 17.1ms)
2143
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
2170
2144
   (0.1ms) begin transaction
2171
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2172
-  (6.9ms) commit transaction
2145
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34766"]]
2146
+  (9.3ms) commit transaction
2173
2147
   (0.1ms) begin transaction
2174
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2175
-  (13.0ms) commit transaction
2176
- Completed 200 OK in 172ms (Views: 0.5ms | ActiveRecord: 53.7ms)
2148
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38379"]]
2149
+  (25.0ms) commit transaction
2150
+ Processing by Api::UserController#reauth as HTML
2151
+ Parameters: {"uid"=>"a1s2d34766"}
2152
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
2153
+  (0.1ms) begin transaction
2154
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34380"]]
2155
+  (14.0ms) commit transaction
2156
+  (0.1ms) begin transaction
2157
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38046"]]
2158
+  (10.1ms) commit transaction
2159
+ Processing by Api::UserController#reauth as HTML
2160
+ Parameters: {"uid"=>"nonexistent-user"}
2161
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
2162
+ Completed 200 OK in 1ms (ActiveRecord: 0.3ms)
2163
+  (0.1ms) begin transaction
2164
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38075"]]
2165
+  (15.7ms) commit transaction
2166
+  (0.1ms) begin transaction
2167
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34888"]]
2168
+  (12.8ms) commit transaction
2169
+ Processing by Api::UserController#reauth as HTML
2170
+ Parameters: {"uid"=>"a1s2d38075"}
2171
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38075' ORDER BY "users"."id" ASC LIMIT 1
2172
+  (0.1ms) begin transaction
2173
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 10 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
2174
+  (11.6ms) commit transaction
2175
+ Completed 200 OK in 15ms (ActiveRecord: 12.2ms)
2176
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]