gds-sso 9.4.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2c2a82df598dc943462bc7fbcca8e7b593a2adeb
4
+ data.tar.gz: 80930f0d3f00dee61a9581ad1900033af5b0c9ee
5
+ SHA512:
6
+ metadata.gz: fee80045f2b3e5267492e6e9c5a083e4008b03768ad3f9e548476184287d470b9988f2b222eeeceeb8ecaf254a4f75de6db3e1d7e39c996e703ff68f7bc27050
7
+ data.tar.gz: d90b8227cad43d48f0d85c2315f584a8dc9f560fa9adeb4483f445a6c92b04a62e34ebed1dde8ac498d936469b883f6742ed72414883f233d4dc2c58ac6dd8c6
data/README.md CHANGED
@@ -42,6 +42,7 @@ It should have the following fields:
42
42
  string "organisation_slug"
43
43
  array "permissions"
44
44
  boolean "remotely_signed_out", :default => false
45
+ boolean "disabled", :default => false
45
46
 
46
47
  You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController.
47
48
 
@@ -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
+ disabled: user_json['disabled'],
39
40
  }
40
41
  })
41
42
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  <p>Please contact your Delivery Manager or main GDS contact if you need access.</p>
4
4
 
5
- <p>If you think something is wrong, try <%= link_to "signing out", gds_sign_out_path %> and then back in</p>
5
+ <p>If you think something is wrong, try <%= link_to "signing out", gds_sign_out_path %> and then back in.</p>
6
6
 
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, as: :oauth
14
+ attr_accessible :uid, :email, :name, :permissions, :organisation_slug, :disabled, as: :oauth
15
15
  end
16
16
  end
17
17
 
@@ -23,11 +23,12 @@ module GDS
23
23
 
24
24
  def self.user_params_from_auth_hash(auth_hash)
25
25
  {
26
- 'uid' => auth_hash['uid'],
27
- 'email' => auth_hash['info']['email'],
28
- 'name' => auth_hash['info']['name'],
29
- 'permissions' => auth_hash['extra']['user']['permissions'],
30
- 'organisation_slug' => auth_hash['extra']['user']['organisation_slug'],
26
+ 'uid' => auth_hash['uid'],
27
+ 'email' => auth_hash['info']['email'],
28
+ 'name' => auth_hash['info']['name'],
29
+ 'permissions' => auth_hash['extra']['user']['permissions'],
30
+ 'organisation_slug' => auth_hash['extra']['user']['organisation_slug'],
31
+ 'disabled' => auth_hash['extra']['user']['disabled'],
31
32
  }
32
33
  end
33
34
 
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.4.0"
3
+ VERSION = "10.0.0"
4
4
  end
5
5
  end
@@ -7,7 +7,8 @@ def user_update_json
7
7
  "name" => "Joshua Marshall",
8
8
  "email" => "user@domain.com",
9
9
  "permissions" => ["signin", "new permission"],
10
- "organisation_slug" => "justice-league"
10
+ "organisation_slug" => "justice-league",
11
+ "disabled" => false,
11
12
  }
12
13
  }.to_json
13
14
  end
@@ -6,5 +6,6 @@ ActiveRecord::Schema.define do
6
6
  t.boolean "remotely_signed_out"
7
7
  t.text "permissions"
8
8
  t.string "organisation_slug"
9
+ t.boolean "disabled", :default => false
9
10
  end
10
- end
11
+ end
@@ -1,2178 +1,2175 @@
1
1
  Connecting to database specified by database.yml
2
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:03:59 +0000
3
+ Processing by ExampleController#index as HTML
4
+ Rendered text template (0.0ms)
5
+ Completed 200 OK in 109.4ms (Views: 108.9ms | ActiveRecord: 0.0ms)
6
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:00 +0000
7
+ Processing by ExampleController#restricted as HTML
8
+ Authenticating with gds_sso strategy
9
+ Completed in 0.7ms
10
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:00 +0000
11
+ Started GET "/auth/gds/callback?code=925d62414f9dc2d8c9798a7c2fb53aeecae98d2069d2ae5c1b0583cbc318f53b&state=3442e77c5bea79917999cae2f6e561253b1be3f787b3d4c8" for 127.0.0.1 at 2014-11-20 14:04:02 +0000
12
+ Processing by AuthenticationsController#callback as HTML
13
+ Parameters: {"code"=>"925d62414f9dc2d8c9798a7c2fb53aeecae98d2069d2ae5c1b0583cbc318f53b", "state"=>"3442e77c5bea79917999cae2f6e561253b1be3f787b3d4c8"}
14
+ Authenticating with gds_sso strategy
15
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
16
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
2
17
   (0.1ms) begin transaction
3
- SQL (34.0ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31543"]]
4
-  (22.1ms) commit transaction
5
-  (0.1ms) begin transaction
6
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39543"]]
7
-  (19.5ms) commit transaction
8
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
9
- Processing by Api::UserController#reauth as HTML
10
- Parameters: {"uid"=>"a1s2d31543"}
11
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
12
- Completed 403 Forbidden in 70.4ms (Views: 69.6ms | ActiveRecord: 0.0ms)
13
-  (0.1ms) begin transaction
14
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38258"]]
15
-  (16.3ms) commit transaction
16
-  (0.1ms) begin transaction
17
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38740"]]
18
-  (18.1ms) commit transaction
19
- Processing by Api::UserController#reauth as HTML
20
- Parameters: {"uid"=>"nonexistent-user"}
21
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
22
- Completed 200 OK in 16.3ms (ActiveRecord: 0.2ms)
23
-  (0.1ms) begin transaction
24
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38987"]]
25
-  (13.5ms) commit transaction
26
-  (0.1ms) begin transaction
27
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35286"]]
28
-  (10.7ms) commit transaction
29
- Processing by Api::UserController#reauth as HTML
30
- Parameters: {"uid"=>"a1s2d38987"}
31
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38987' LIMIT 1
32
-  (0.0ms) begin transaction
33
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
34
- - signin
35
- ' WHERE "users"."id" = 5
36
-  (10.0ms) commit transaction
37
- Completed 200 OK in 14.1ms (ActiveRecord: 10.4ms)
38
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
39
-  (0.1ms) begin transaction
40
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39782"]]
41
-  (10.5ms) commit transaction
18
+ SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", nil], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
19
+  (12.3ms) commit transaction
42
20
   (0.1ms) begin transaction
43
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37664"]]
44
-  (15.4ms) commit transaction
45
- Processing by Api::UserController#update as HTML
46
- Parameters: {"uid"=>"a1s2d39782"}
47
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39782' LIMIT 1
48
-  (0.0ms) begin transaction
49
-  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
21
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
50
22
  - signin
51
- - new permission
52
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 7
53
-  (20.2ms) commit transaction
54
- Completed 200 OK in 23.8ms (ActiveRecord: 20.6ms)
55
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
56
-  (0.1ms) begin transaction
57
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36570"]]
58
-  (14.0ms) commit transaction
59
-  (0.1ms) begin transaction
60
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31038"]]
61
-  (13.7ms) commit transaction
62
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
63
- Processing by Api::UserController#update as HTML
64
- Parameters: {"uid"=>"a1s2d36570"}
65
- Completed 403 Forbidden in 1.4ms (Views: 0.9ms | ActiveRecord: 0.0ms)
66
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:58 +0000
67
- Processing by ExampleController#restricted as JSON
68
- Completed in 320.2ms
69
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:58 +0000
70
- Processing by ExampleController#restricted as JSON
71
- Completed in 270.3ms
72
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:59 +0000
73
- Processing by ExampleController#restricted as JSON
74
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
75
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
76
-  (0.0ms) begin transaction
77
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
78
-  (12.3ms) commit transaction
79
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
80
-  (0.0ms) begin transaction
81
-  (0.1ms) UPDATE "users" SET "permissions" = '---
82
- - signin
83
- ' WHERE "users"."id" = 11
84
-  (41.7ms) commit transaction
85
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
86
-  (0.0ms) begin transaction
87
-  (0.2ms) UPDATE "users" SET "permissions" = '---
88
- - signin
89
- ' WHERE "users"."id" = 11
90
-  (28.5ms) commit transaction
91
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
92
-  (0.0ms) begin transaction
93
-  (0.2ms) UPDATE "users" SET "permissions" = '---
94
- - signin
95
- ' WHERE "users"."id" = 11
96
-  (28.4ms) commit transaction
97
-  (0.1ms) begin transaction
98
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
99
- - signin
100
- ' WHERE "users"."id" = 11
101
-  (15.6ms) commit transaction
102
- Completed 200 OK in 660.6ms (Views: 35.4ms | ActiveRecord: 128.5ms)
103
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:00 +0000
104
- Processing by ExampleController#this_requires_signin_permission as JSON
105
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23
+ ' WHERE "users"."id" = 1
24
+  (11.1ms) commit transaction
25
+ Redirected to http://www.example-client.com/restricted
26
+ Completed 302 Found in 65.2ms (ActiveRecord: 25.0ms)
27
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:02 +0000
28
+ Processing by ExampleController#restricted as HTML
29
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
30
+ Completed 200 OK in 59.8ms (Views: 0.6ms | ActiveRecord: 0.4ms)
31
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
32
+ Processing by ExampleController#restricted as HTML
33
+ Authenticating with gds_sso strategy
34
+ Completed in 0.3ms
35
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
36
+ Started GET "/auth/gds/callback?code=44b0213f6adf88c8a9d74b556e20309dde27602ad220c849696a6b4dc514e6d7&state=295682cdf9941819efb196b0406920e625ab3352ace704fc" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
37
+ Processing by AuthenticationsController#callback as HTML
38
+ Parameters: {"code"=>"44b0213f6adf88c8a9d74b556e20309dde27602ad220c849696a6b4dc514e6d7", "state"=>"295682cdf9941819efb196b0406920e625ab3352ace704fc"}
39
+ Authenticating with gds_sso strategy
40
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
106
41
   (0.1ms) begin transaction
107
42
   (0.3ms) UPDATE "users" SET "permissions" = '---
108
43
  - signin
109
- ' WHERE "users"."id" = 11
110
-  (33.9ms) commit transaction
111
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
112
-  (0.0ms) begin transaction
113
-  (0.2ms) UPDATE "users" SET "permissions" = '---
44
+ ' WHERE "users"."id" = 1
45
+  (11.6ms) commit transaction
46
+  (0.1ms) begin transaction
47
+  (0.3ms) UPDATE "users" SET "permissions" = '---
114
48
  - signin
115
- ' WHERE "users"."id" = 11
116
-  (13.5ms) commit transaction
49
+ ' WHERE "users"."id" = 1
50
+  (16.2ms) commit transaction
51
+ Redirected to http://www.example-client.com/restricted
52
+ Completed 302 Found in 36.3ms (ActiveRecord: 28.9ms)
53
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
54
+ Processing by ExampleController#restricted as HTML
55
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
56
+ Completed 200 OK in 2.4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
57
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
58
+ Processing by ExampleController#restricted as HTML
59
+ Authenticating with gds_sso strategy
60
+ Completed in 0.2ms
61
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:03 +0000
62
+ Started GET "/auth/gds/callback?code=1d9f2ced9dddec3f1917599394a41417e3cb6c147b396d83980c94adbaf653f9&state=1ec8490f1ecf655b21dad8c85762f1cff29663e5dc4c9711" for 127.0.0.1 at 2014-11-20 14:04:04 +0000
63
+ Processing by AuthenticationsController#callback as HTML
64
+ Parameters: {"code"=>"1d9f2ced9dddec3f1917599394a41417e3cb6c147b396d83980c94adbaf653f9", "state"=>"1ec8490f1ecf655b21dad8c85762f1cff29663e5dc4c9711"}
65
+ Authenticating with gds_sso strategy
117
66
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
118
67
   (0.1ms) begin transaction
119
68
   (0.3ms) UPDATE "users" SET "permissions" = '---
120
69
  - signin
121
- ' WHERE "users"."id" = 11
122
-  (10.9ms) commit transaction
123
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
124
-  (0.1ms) begin transaction
125
-  (0.3ms) UPDATE "users" SET "permissions" = '---
126
- - signin
127
- ' WHERE "users"."id" = 11
128
-  (12.4ms) commit transaction
70
+ ' WHERE "users"."id" = 1
71
+  (10.5ms) commit transaction
129
72
   (0.1ms) begin transaction
130
-  (0.2ms) UPDATE "users" SET "permissions" = '---
73
+  (0.3ms) UPDATE "users" SET "permissions" = '---
131
74
  - signin
132
- ' WHERE "users"."id" = 11
133
-  (55.3ms) commit transaction
134
- Completed 200 OK in 374.8ms (Views: 0.4ms | ActiveRecord: 128.4ms)
135
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:22:00 +0000
136
- Processing by ExampleController#index as HTML
137
- Completed 200 OK in 1.1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
138
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:01 +0000
75
+ ' WHERE "users"."id" = 1
76
+  (15.3ms) commit transaction
77
+ Redirected to http://www.example-client.com/restricted
78
+ Completed 302 Found in 34.4ms (ActiveRecord: 26.9ms)
79
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:04 +0000
80
+ Processing by ExampleController#restricted as HTML
81
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
82
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
83
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:04:05 +0000
139
84
  Processing by ExampleController#this_requires_signin_permission as HTML
140
85
  Authenticating with gds_sso strategy
141
- Completed in 0.3ms
142
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:01 +0000
143
- Started GET "/auth/gds/callback?code=b0db4fc24baf5226116caae3196975ce0e47d9db790566a12e42422d1d417c89&state=fc688b4039e81458150996716a801007175a99fdecc60237" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
86
+ Completed in 0.6ms
87
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:05 +0000
88
+ Started GET "/auth/gds/callback?code=dbbbfb6efa979d7568c89531e6671c3cda0402107669c173a340dc5ac65bc5a4&state=2cd83671dc83fc054a1f8555c98ebf8b36c10deda8645955" for 127.0.0.1 at 2014-11-20 14:04:05 +0000
144
89
  Processing by AuthenticationsController#callback as HTML
145
- Parameters: {"code"=>"b0db4fc24baf5226116caae3196975ce0e47d9db790566a12e42422d1d417c89", "state"=>"fc688b4039e81458150996716a801007175a99fdecc60237"}
90
+ Parameters: {"code"=>"dbbbfb6efa979d7568c89531e6671c3cda0402107669c173a340dc5ac65bc5a4", "state"=>"2cd83671dc83fc054a1f8555c98ebf8b36c10deda8645955"}
146
91
  Authenticating with gds_sso strategy
147
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
148
-  (0.1ms) begin transaction
149
-  (0.3ms) UPDATE "users" SET "permissions" = '---
150
- - signin
151
- ' WHERE "users"."id" = 11
152
-  (10.7ms) commit transaction
92
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
153
93
   (0.1ms) begin transaction
154
94
   (0.3ms) UPDATE "users" SET "permissions" = '---
155
95
  - signin
156
- ' WHERE "users"."id" = 11
157
-  (10.4ms) commit transaction
96
+ ' WHERE "users"."id" = 1
97
+  (151.6ms) commit transaction
98
+  (0.1ms) begin transaction
99
+  (0.2ms) UPDATE "users" SET "permissions" = '---
100
+ - signin
101
+ ' WHERE "users"."id" = 1
102
+  (123.5ms) commit transaction
158
103
  Redirected to http://www.example-client.com/this_requires_signin_permission
159
- Completed 302 Found in 29.9ms (ActiveRecord: 22.2ms)
160
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
104
+ Completed 302 Found in 282.6ms (ActiveRecord: 276.1ms)
105
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:04:06 +0000
161
106
  Processing by ExampleController#this_requires_signin_permission as HTML
162
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
163
- Completed 200 OK in 3.5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
164
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
107
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
108
+ Completed 200 OK in 2.3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
109
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:04:06 +0000
165
110
  Processing by ExampleController#this_requires_signin_permission as HTML
166
111
  Authenticating with gds_sso strategy
167
- Completed in 0.3ms
168
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
169
- Started GET "/auth/gds/callback?code=374bb5edbf5397a12e5b4ef673f6e0289d73f9bd112a6541344824a599b995bb&state=3d57a780b3e31373e1a01d42a86b214dae4fd871904ec895" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
112
+ Completed in 0.2ms
113
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:06 +0000
114
+ Started GET "/auth/gds/callback?code=7b7552e52d61d81ab888008acb2469fc0ab0f7dbf89ba416fa0643e98b106bfb&state=4e8f79e593f422a5eada85181a4bed7854022500a6719b2a" for 127.0.0.1 at 2014-11-20 14:04:06 +0000
170
115
  Processing by AuthenticationsController#callback as HTML
171
- Parameters: {"code"=>"374bb5edbf5397a12e5b4ef673f6e0289d73f9bd112a6541344824a599b995bb", "state"=>"3d57a780b3e31373e1a01d42a86b214dae4fd871904ec895"}
116
+ Parameters: {"code"=>"7b7552e52d61d81ab888008acb2469fc0ab0f7dbf89ba416fa0643e98b106bfb", "state"=>"4e8f79e593f422a5eada85181a4bed7854022500a6719b2a"}
172
117
  Authenticating with gds_sso strategy
173
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
118
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
119
+  (0.0ms) begin transaction
120
+  (0.3ms) UPDATE "users" SET "permissions" = '---
121
+ - signin
122
+ ' WHERE "users"."id" = 1
123
+  (30.2ms) commit transaction
174
124
   (0.1ms) begin transaction
175
125
   (0.2ms) UPDATE "users" SET "permissions" = '---
176
126
  - signin
177
- ' WHERE "users"."id" = 11
178
-  (14.5ms) commit transaction
179
-  (0.1ms) begin transaction
180
-  (0.2ms) UPDATE "users" SET "permissions" = '---
181
- - signin
182
- ' WHERE "users"."id" = 11
183
-  (17.1ms) commit transaction
127
+ ' WHERE "users"."id" = 1
128
+  (22.6ms) commit transaction
184
129
  Redirected to http://www.example-client.com/this_requires_signin_permission
185
- Completed 302 Found in 38.3ms (ActiveRecord: 32.4ms)
186
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
130
+ Completed 302 Found in 59.5ms (ActiveRecord: 53.7ms)
131
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:04:06 +0000
187
132
  Processing by ExampleController#this_requires_signin_permission as HTML
188
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
189
- Completed 200 OK in 2.1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
190
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
133
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
134
+ Completed 200 OK in 2.0ms (Views: 0.4ms | ActiveRecord: 0.2ms)
135
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:07 +0000
191
136
  Processing by ExampleController#restricted as HTML
192
137
  Authenticating with gds_sso strategy
193
- Completed in 0.2ms
194
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
195
- Started GET "/auth/gds/callback?code=c2621eb639eaeb7cbab1d0ebc74f48119882a2091fb96ede9ec0bb9f9a6d68cd&state=9f1af49c3c17aec998d8669cafac807adeef4b3f85bd9ab0" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
138
+ Completed in 0.4ms
139
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:07 +0000
140
+ Started GET "/auth/gds/callback?code=478c2319408b009f9af53ddf3f0d1febb78203431a7e9c45420c00ddf49d8dd0&state=a2c129df17adc9800e28aa124a7da391add9bc364d50b8d7" for 127.0.0.1 at 2014-11-20 14:04:07 +0000
196
141
  Processing by AuthenticationsController#callback as HTML
197
- Parameters: {"code"=>"c2621eb639eaeb7cbab1d0ebc74f48119882a2091fb96ede9ec0bb9f9a6d68cd", "state"=>"9f1af49c3c17aec998d8669cafac807adeef4b3f85bd9ab0"}
142
+ Parameters: {"code"=>"478c2319408b009f9af53ddf3f0d1febb78203431a7e9c45420c00ddf49d8dd0", "state"=>"a2c129df17adc9800e28aa124a7da391add9bc364d50b8d7"}
198
143
  Authenticating with gds_sso strategy
199
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
200
-  (0.0ms) begin transaction
201
-  (0.2ms) UPDATE "users" SET "permissions" = '---
202
- - signin
203
- ' WHERE "users"."id" = 11
204
-  (10.8ms) commit transaction
144
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
205
145
   (0.1ms) begin transaction
206
-  (0.2ms) UPDATE "users" SET "permissions" = '---
146
+  (0.3ms) UPDATE "users" SET "permissions" = '---
207
147
  - signin
208
- ' WHERE "users"."id" = 11
209
-  (15.6ms) commit transaction
148
+ ' WHERE "users"."id" = 1
149
+  (23.9ms) commit transaction
150
+  (0.1ms) begin transaction
151
+  (0.3ms) UPDATE "users" SET "permissions" = '---
152
+ - signin
153
+ ' WHERE "users"."id" = 1
154
+  (28.9ms) commit transaction
210
155
  Redirected to http://www.example-client.com/restricted
211
- Completed 302 Found in 32.0ms (ActiveRecord: 27.1ms)
212
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
156
+ Completed 302 Found in 62.3ms (ActiveRecord: 53.9ms)
157
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:07 +0000
213
158
  Processing by ExampleController#restricted as HTML
214
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
215
- Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
216
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
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.5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
161
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
162
+  (0.0ms) begin transaction
163
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
164
+ - signin
165
+ ' WHERE "users"."id" = 1
166
+  (88.2ms) commit transaction
167
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:08 +0000
217
168
  Processing by ExampleController#restricted as HTML
169
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
218
170
  Authenticating with gds_sso strategy
219
- Completed in 0.3ms
220
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
221
- Started GET "/auth/gds/callback?code=f17f3111d54a052f34cf5b0711bceadb7b6a39fcf0e413c76b99c34258547407&state=11ee63d75c45a9bc1ba52931db07542e010a00c5cbfe6d44" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
171
+ Completed in 1.5ms
172
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:08 +0000
173
+ Started GET "/auth/gds/callback?code=e18541e8cf7ef865d398fb7a52e0d57aba9e38c1b8ac185767c00291eca7b3bf&state=60fd92b65d3099c013e930a995d8f99beef6eecf549531d2" for 127.0.0.1 at 2014-11-20 14:04:08 +0000
222
174
  Processing by AuthenticationsController#callback as HTML
223
- Parameters: {"code"=>"f17f3111d54a052f34cf5b0711bceadb7b6a39fcf0e413c76b99c34258547407", "state"=>"11ee63d75c45a9bc1ba52931db07542e010a00c5cbfe6d44"}
175
+ Parameters: {"code"=>"e18541e8cf7ef865d398fb7a52e0d57aba9e38c1b8ac185767c00291eca7b3bf", "state"=>"60fd92b65d3099c013e930a995d8f99beef6eecf549531d2"}
224
176
  Authenticating with gds_sso strategy
225
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
226
-  (0.0ms) begin transaction
227
-  (0.2ms) UPDATE "users" SET "permissions" = '---
177
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
178
+  (0.1ms) begin transaction
179
+  (0.3ms) UPDATE "users" SET "permissions" = '---
228
180
  - signin
229
- ' WHERE "users"."id" = 11
230
-  (13.0ms) commit transaction
181
+ ' WHERE "users"."id" = 1
182
+  (40.8ms) commit transaction
231
183
   (0.1ms) begin transaction
232
-  (0.2ms) UPDATE "users" SET "permissions" = '---
184
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
233
185
  - signin
234
- ' WHERE "users"."id" = 11
235
-  (9.5ms) commit transaction
186
+ ' WHERE "users"."id" = 1
187
+  (21.8ms) commit transaction
236
188
  Redirected to http://www.example-client.com/restricted
237
- Completed 302 Found in 28.1ms (ActiveRecord: 23.1ms)
238
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
189
+ Completed 302 Found in 71.9ms (ActiveRecord: 63.8ms)
190
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:08 +0000
239
191
  Processing by ExampleController#restricted as HTML
240
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
241
- Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
242
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
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.7ms (Views: 0.7ms | ActiveRecord: 0.3ms)
194
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:09 +0000
243
195
  Processing by ExampleController#restricted as HTML
244
196
  Authenticating with gds_sso strategy
245
- Completed in 0.2ms
246
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
247
- Started GET "/auth/gds/callback?code=e92d1a233a614e89462a688733ad731db8ceb7ebe8fd623a80eb52b180af98b4&state=fa3cd5aecca58db71fea10bc8234d74a6480e49197721797" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
197
+ Completed in 0.3ms
198
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:09 +0000
199
+ Started GET "/auth/gds/callback?code=b984d6abc8b4a8ba09cf98c251c9ba60bf340a088ebdf618a4c930c120ad1016&state=ee28f4134ff42d54e13eadcfb2c119e90650f8e6136d4865" for 127.0.0.1 at 2014-11-20 14:04:09 +0000
248
200
  Processing by AuthenticationsController#callback as HTML
249
- Parameters: {"code"=>"e92d1a233a614e89462a688733ad731db8ceb7ebe8fd623a80eb52b180af98b4", "state"=>"fa3cd5aecca58db71fea10bc8234d74a6480e49197721797"}
201
+ Parameters: {"code"=>"b984d6abc8b4a8ba09cf98c251c9ba60bf340a088ebdf618a4c930c120ad1016", "state"=>"ee28f4134ff42d54e13eadcfb2c119e90650f8e6136d4865"}
250
202
  Authenticating with gds_sso strategy
251
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
252
-  (0.0ms) begin transaction
203
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
204
+  (0.1ms) begin transaction
253
205
   (0.2ms) UPDATE "users" SET "permissions" = '---
254
206
  - signin
255
- ' WHERE "users"."id" = 11
256
-  (6.8ms) commit transaction
207
+ ' WHERE "users"."id" = 1
208
+  (20.5ms) commit transaction
257
209
   (0.1ms) begin transaction
258
-  (0.2ms) UPDATE "users" SET "permissions" = '---
210
+  (0.3ms) UPDATE "users" SET "permissions" = '---
259
211
  - signin
260
- ' WHERE "users"."id" = 11
261
-  (18.3ms) commit transaction
212
+ ' WHERE "users"."id" = 1
213
+  (26.1ms) commit transaction
262
214
  Redirected to http://www.example-client.com/restricted
263
- Completed 302 Found in 30.5ms (ActiveRecord: 25.8ms)
264
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
215
+ Completed 302 Found in 53.8ms (ActiveRecord: 47.5ms)
216
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:10 +0000
265
217
  Processing by ExampleController#restricted as HTML
266
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
267
- Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
268
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
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.0ms (Views: 0.5ms | ActiveRecord: 0.3ms)
220
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:09:10 +0000
269
221
  Processing by ExampleController#restricted as HTML
270
222
  Authenticating with gds_sso strategy
271
- Completed in 0.3ms
272
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
273
- Started GET "/auth/gds/callback?code=15ff34bebc0526a601e45e08670326a0b2d58de736b4ee3f4d2f12eb70b2bcd1&state=83fe6996809d59921db4424c95c41494130fe657a111c58a" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
223
+ Completed in 0.5ms
224
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:09:10 +0000
225
+ Started GET "/auth/gds/callback?code=c7f9e2f51f53be5bf0271ac6fb5f7f9e5a43f5056e6143bec1d53d48d3738c6f&state=d39d8423804c0bb861eb6b436d5f410d1c01d3ea5a1d0e85" for 127.0.0.1 at 2014-11-21 10:09:10 +0000
274
226
  Processing by AuthenticationsController#callback as HTML
275
- Parameters: {"code"=>"15ff34bebc0526a601e45e08670326a0b2d58de736b4ee3f4d2f12eb70b2bcd1", "state"=>"83fe6996809d59921db4424c95c41494130fe657a111c58a"}
227
+ Parameters: {"code"=>"c7f9e2f51f53be5bf0271ac6fb5f7f9e5a43f5056e6143bec1d53d48d3738c6f", "state"=>"d39d8423804c0bb861eb6b436d5f410d1c01d3ea5a1d0e85"}
276
228
  Authenticating with gds_sso strategy
277
229
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
278
230
   (0.1ms) begin transaction
279
231
   (0.2ms) UPDATE "users" SET "permissions" = '---
280
232
  - signin
281
- ' WHERE "users"."id" = 11
282
-  (75.2ms) commit transaction
233
+ ' WHERE "users"."id" = 1
234
+  (29.1ms) commit transaction
283
235
   (0.1ms) begin transaction
284
-  (0.2ms) UPDATE "users" SET "permissions" = '---
236
+  (0.3ms) UPDATE "users" SET "permissions" = '---
285
237
  - signin
286
- ' WHERE "users"."id" = 11
287
-  (85.1ms) commit transaction
238
+ ' WHERE "users"."id" = 1
239
+  (43.4ms) commit transaction
288
240
  Redirected to http://www.example-client.com/restricted
289
- Completed 302 Found in 168.0ms (ActiveRecord: 161.1ms)
290
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
241
+ Completed 302 Found in 79.0ms (ActiveRecord: 73.4ms)
242
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:09:10 +0000
291
243
  Processing by ExampleController#restricted as HTML
292
244
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
293
- Completed 200 OK in 2.2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
294
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:17:05 +0000
295
- Processing by ExampleController#restricted as HTML
296
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
297
- Completed 200 OK in 1.9ms (Views: 0.3ms | ActiveRecord: 0.2ms)
298
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
245
+ Completed 200 OK in 2.0ms (Views: 0.3ms | ActiveRecord: 0.3ms)
246
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:10 +0000
299
247
  Processing by ExampleController#restricted as HTML
300
248
  Authenticating with gds_sso strategy
301
- Completed in 0.5ms
302
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
303
- Started GET "/auth/gds/callback?code=403265f81f1add5efcbb242ed9fc16c6781bd1e17e90c2f2c4a19f7600ad1e7d&state=2f8283d7acdcacfdd42008812d93dfdc9381e9f32a751aaf" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
249
+ Completed in 0.4ms
250
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:04:10 +0000
251
+ Started GET "/auth/gds/callback?code=bbc315a531beaab2187814367d48192134cd4a393ec4f7b4867f84f0ef28a637&state=3ff4c16b2b12eafc7795ed4bfc8856ae01cd809b30e6f226" for 127.0.0.1 at 2014-11-20 14:04:11 +0000
304
252
  Processing by AuthenticationsController#callback as HTML
305
- Parameters: {"code"=>"403265f81f1add5efcbb242ed9fc16c6781bd1e17e90c2f2c4a19f7600ad1e7d", "state"=>"2f8283d7acdcacfdd42008812d93dfdc9381e9f32a751aaf"}
253
+ Parameters: {"code"=>"bbc315a531beaab2187814367d48192134cd4a393ec4f7b4867f84f0ef28a637", "state"=>"3ff4c16b2b12eafc7795ed4bfc8856ae01cd809b30e6f226"}
306
254
  Authenticating with gds_sso strategy
307
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
308
-  (0.0ms) begin transaction
309
-  (0.2ms) UPDATE "users" SET "permissions" = '---
255
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
256
+  (0.0ms) begin transaction
257
+  (0.2ms) UPDATE "users" SET "permissions" = '---
310
258
  - signin
311
- ' WHERE "users"."id" = 11
312
-  (23.2ms) commit transaction
313
-  (0.1ms) begin transaction
314
-  (0.7ms) UPDATE "users" SET "permissions" = '---
259
+ ' WHERE "users"."id" = 1
260
+  (80.4ms) commit transaction
261
+  (0.1ms) begin transaction
262
+  (0.2ms) UPDATE "users" SET "permissions" = '---
315
263
  - signin
316
- ' WHERE "users"."id" = 11
317
-  (23.6ms) commit transaction
264
+ ' WHERE "users"."id" = 1
265
+  (23.8ms) commit transaction
318
266
  Redirected to http://www.example-client.com/restricted
319
- Completed 302 Found in 52.9ms (ActiveRecord: 48.0ms)
320
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
267
+ Completed 302 Found in 111.0ms (ActiveRecord: 105.0ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:11 +0000
321
269
  Processing by ExampleController#restricted as HTML
322
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
323
- Completed 200 OK in 2.3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
324
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
271
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
272
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 09:59:11 +0000
325
273
  Processing by ExampleController#restricted as HTML
326
- Authenticating with gds_sso strategy
327
- Completed in 0.3ms
328
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
329
- Started GET "/auth/gds/callback?code=47e7703f8e9d7999c7e59d89f72feccb066ac88b6a9bbd43a201e78243842429&state=df672180d63b0c9fb90de1088b6c28ad57c29079b743654e" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
330
- Processing by AuthenticationsController#callback as HTML
331
- Parameters: {"code"=>"47e7703f8e9d7999c7e59d89f72feccb066ac88b6a9bbd43a201e78243842429", "state"=>"df672180d63b0c9fb90de1088b6c28ad57c29079b743654e"}
332
- Authenticating with gds_sso strategy
333
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
274
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
275
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
276
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:11 +0000
277
+ Processing by ExampleController#restricted as JSON
278
+ Completed in 105.7ms
279
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:12 +0000
280
+ Processing by ExampleController#restricted as JSON
281
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
334
282
   (0.1ms) begin transaction
335
-  (0.3ms) UPDATE "users" SET "permissions" = '---
336
- - signin
337
- ' WHERE "users"."id" = 11
338
-  (12.7ms) commit transaction
339
-  (0.1ms) begin transaction
340
-  (0.2ms) UPDATE "users" SET "permissions" = '---
283
+  (0.2ms) UPDATE "users" SET "permissions" = '---
341
284
  - signin
342
- ' WHERE "users"."id" = 11
343
-  (15.3ms) commit transaction
344
- Redirected to http://www.example-client.com/restricted
345
- Completed 302 Found in 33.8ms (ActiveRecord: 28.9ms)
346
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
347
- Processing by ExampleController#restricted as HTML
348
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
349
- Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
350
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
351
- Processing by ExampleController#restricted as HTML
352
- Authenticating with gds_sso strategy
353
- Completed in 0.3ms
354
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
355
- Started GET "/auth/gds/callback?code=9a7a37de502c8981bee5f85c3aa99cfbf0cf33a071dfa728c67a65c595a86013&state=9a6f99acdee3a0315f5b56581de3f1db369f5ada44564b37" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
356
- Processing by AuthenticationsController#callback as HTML
357
- Parameters: {"code"=>"9a7a37de502c8981bee5f85c3aa99cfbf0cf33a071dfa728c67a65c595a86013", "state"=>"9a6f99acdee3a0315f5b56581de3f1db369f5ada44564b37"}
358
- Authenticating with gds_sso strategy
285
+ ' WHERE "users"."id" = 1
286
+  (19.0ms) commit transaction
359
287
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
360
288
   (0.1ms) begin transaction
361
289
   (0.3ms) UPDATE "users" SET "permissions" = '---
362
290
  - signin
363
- ' WHERE "users"."id" = 11
364
-  (32.2ms) commit transaction
291
+ ' WHERE "users"."id" = 1
292
+  (122.3ms) commit transaction
293
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
294
+  (0.0ms) begin transaction
295
+  (0.2ms) UPDATE "users" SET "permissions" = '---
296
+ - signin
297
+ ' WHERE "users"."id" = 1
298
+  (26.6ms) commit transaction
299
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
300
+  (0.0ms) begin transaction
301
+  (0.2ms) UPDATE "users" SET "permissions" = '---
302
+ - signin
303
+ ' WHERE "users"."id" = 1
304
+  (22.8ms) commit transaction
305
+  (0.1ms) begin transaction
306
+  (0.3ms) UPDATE "users" SET "permissions" = '---
307
+ - signin
308
+ ' WHERE "users"."id" = 1
309
+  (23.3ms) commit transaction
310
+ Completed 200 OK in 469.6ms (Views: 0.8ms | ActiveRecord: 216.7ms)
311
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:04:13 +0000
312
+ Processing by ExampleController#this_requires_signin_permission as JSON
313
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
365
314
   (0.1ms) begin transaction
366
315
   (0.2ms) UPDATE "users" SET "permissions" = '---
367
316
  - signin
368
- ' WHERE "users"."id" = 11
369
-  (18.2ms) commit transaction
370
- Redirected to http://www.example-client.com/restricted
371
- Completed 302 Found in 57.5ms (ActiveRecord: 51.3ms)
372
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
373
- Processing by ExampleController#restricted as HTML
374
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
375
- Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
376
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
377
-  (0.0ms) begin transaction
378
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
317
+ ' WHERE "users"."id" = 1
318
+  (19.3ms) commit transaction
319
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
320
+  (0.1ms) begin transaction
321
+  (0.3ms) UPDATE "users" SET "permissions" = '---
379
322
  - signin
380
- ' WHERE "users"."id" = 11
381
-  (17.5ms) commit transaction
382
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
383
- Processing by ExampleController#restricted as HTML
384
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
385
- Authenticating with gds_sso strategy
386
- Completed in 1.0ms
387
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
388
- Started GET "/auth/gds/callback?code=da9935976552d636886ad41941e7dd838444531bd6a1937caf4bf52a061d2fc3&state=23915f644980914cd141ce3647354c914b684b22e7608854" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
389
- Processing by AuthenticationsController#callback as HTML
390
- Parameters: {"code"=>"da9935976552d636886ad41941e7dd838444531bd6a1937caf4bf52a061d2fc3", "state"=>"23915f644980914cd141ce3647354c914b684b22e7608854"}
391
- Authenticating with gds_sso strategy
392
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
323
+ ' WHERE "users"."id" = 1
324
+  (49.6ms) commit transaction
325
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
326
+  (0.1ms) begin transaction
327
+  (0.2ms) UPDATE "users" SET "permissions" = '---
328
+ - signin
329
+ ' WHERE "users"."id" = 1
330
+  (86.7ms) commit transaction
331
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
393
332
   (0.0ms) begin transaction
394
333
   (0.2ms) UPDATE "users" SET "permissions" = '---
395
334
  - signin
396
- ' WHERE "users"."id" = 11
397
-  (6.6ms) commit transaction
335
+ ' WHERE "users"."id" = 1
336
+  (47.8ms) commit transaction
398
337
   (0.1ms) begin transaction
399
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
338
+  (0.2ms) UPDATE "users" SET "permissions" = '---
400
339
  - signin
401
- ' WHERE "users"."id" = 11
402
-  (8.7ms) commit transaction
403
- Redirected to http://www.example-client.com/restricted
404
- Completed 302 Found in 20.3ms (ActiveRecord: 16.0ms)
405
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
406
- Processing by ExampleController#restricted as HTML
407
- User Load (29.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
408
- Completed 200 OK in 31.1ms (Views: 0.4ms | ActiveRecord: 29.6ms)
409
-  (0.1ms) begin transaction
410
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36363"]]
411
-  (67.6ms) commit transaction
340
+ ' WHERE "users"."id" = 1
341
+  (14.3ms) commit transaction
342
+ Completed 200 OK in 510.2ms (Views: 0.5ms | ActiveRecord: 220.4ms)
343
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:04:13 +0000
344
+ Processing by ExampleController#restricted as JSON
345
+ Completed in 23.6ms
412
346
   (0.1ms) begin transaction
413
- 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", "a1s2d35959"]]
414
-  (21.8ms) commit transaction
415
- Processing by Api::UserController#update as HTML
416
- Parameters: {"uid"=>"a1s2d36363"}
417
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
418
- Completed 403 Forbidden in 41ms (Views: 40.0ms | ActiveRecord: 0.0ms)
347
+ 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", "a1s2d33199"]]
348
+  (44.5ms) commit transaction
419
349
   (0.1ms) begin transaction
420
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37581"]]
421
-  (36.1ms) commit transaction
422
-  (0.1ms) begin transaction
423
- 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", "a1s2d38289"]]
424
-  (41.3ms) commit transaction
350
+ 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", "a1s2d32487"]]
351
+  (37.0ms) commit transaction
352
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
425
353
  Processing by Api::UserController#update as HTML
426
- Parameters: {"uid"=>"a1s2d37581"}
427
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37581' ORDER BY "users"."id" ASC LIMIT 1
428
-  (0.1ms) begin transaction
429
- 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"]]
430
-  (38.5ms) commit transaction
431
- Completed 200 OK in 48ms (ActiveRecord: 39.2ms)
432
- User Load (31.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
354
+ Parameters: {"uid"=>"a1s2d33199"}
355
+ Completed 403 Forbidden in 4.3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
433
356
   (0.1ms) begin transaction
434
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32874"]]
435
-  (13.5ms) commit transaction
357
+ 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", "a1s2d31272"]]
358
+  (73.2ms) commit transaction
436
359
   (0.1ms) begin transaction
437
- 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", "a1s2d36635"]]
438
-  (38.8ms) commit transaction
439
- Processing by Api::UserController#reauth as HTML
440
- Parameters: {"uid"=>"a1s2d32874"}
441
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32874' ORDER BY "users"."id" ASC LIMIT 1
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", "a1s2d34981"]]
361
+  (30.0ms) commit transaction
362
+ Processing by Api::UserController#update as HTML
363
+ Parameters: {"uid"=>"a1s2d31272"}
364
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31272' LIMIT 1
442
365
   (0.1ms) begin transaction
443
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 5 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
444
-  (9.0ms) commit transaction
445
- Completed 200 OK in 12ms (ActiveRecord: 9.6ms)
446
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
366
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
367
+ - signin
368
+ - new permission
369
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 4
370
+  (21.8ms) commit transaction
371
+ Completed 200 OK in 29.6ms (ActiveRecord: 22.7ms)
372
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
447
373
   (0.1ms) begin transaction
448
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38045"]]
449
-  (11.5ms) commit 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", "a1s2d34991"]]
375
+  (25.1ms) commit transaction
450
376
   (0.1ms) begin transaction
451
- 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", "a1s2d38126"]]
452
-  (12.4ms) commit transaction
377
+ 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", "a1s2d39370"]]
378
+  (30.0ms) commit transaction
379
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
453
380
  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 2ms (ActiveRecord: 0.3ms)
457
-  (0.1ms) begin transaction
458
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36759"]]
459
-  (9.7ms) commit transaction
381
+ Parameters: {"uid"=>"a1s2d34991"}
382
+ Completed 403 Forbidden in 2.2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
460
383
   (0.1ms) begin transaction
461
- SQL (0.1ms) 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", "a1s2d33128"]]
462
-  (10.5ms) commit 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", "a1s2d38547"]]
385
+  (17.6ms) commit transaction
386
+  (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", "a1s2d37227"]]
388
+  (22.2ms) commit transaction
463
389
  Processing by Api::UserController#reauth as HTML
464
- Parameters: {"uid"=>"a1s2d36759"}
465
- Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
466
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:02 +0000
467
- Processing by ExampleController#this_requires_signin_permission as HTML
468
- Authenticating with gds_sso strategy
469
- Completed in 64ms
470
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:02 +0000
471
- Started GET "/auth/gds/callback?code=e52d6da125ffea5e18c4fa5a50df28fbc2b55c5665ce77066d631bafda5b1716&state=8ea86598e865e20d7835f4c899f6c258ed04eee3bc2c2ff6" for 127.0.0.1 at 2014-09-03 16:23:03 +0000
472
- Processing by AuthenticationsController#callback as HTML
473
- Parameters: {"code"=>"e52d6da125ffea5e18c4fa5a50df28fbc2b55c5665ce77066d631bafda5b1716", "state"=>"8ea86598e865e20d7835f4c899f6c258ed04eee3bc2c2ff6"}
474
- Authenticating with gds_sso strategy
475
- User Load (0.2ms) 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
390
+ Parameters: {"uid"=>"nonexistent-user"}
391
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
392
+ Completed 200 OK in 1.4ms (ActiveRecord: 0.3ms)
477
393
   (0.1ms) begin transaction
478
- 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"]]
479
-  (41.0ms) commit 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", "a1s2d31985"]]
395
+  (26.1ms) commit transaction
480
396
   (0.1ms) begin transaction
481
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
482
-  (32.6ms) commit transaction
483
- Redirected to http://www.example-client.com/this_requires_signin_permission
484
- Completed 302 Found in 80ms (ActiveRecord: 74.5ms)
485
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
486
- Processing by ExampleController#this_requires_signin_permission as HTML
487
- 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
488
- Completed 200 OK in 50ms (Views: 47.7ms | ActiveRecord: 0.2ms)
489
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
490
- Processing by ExampleController#this_requires_signin_permission as HTML
491
- Authenticating with gds_sso strategy
492
- Completed in 1ms
493
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
494
- Started GET "/auth/gds/callback?code=2424f3f5116483bbf0674ddb5ab8be0e68b56b0b0f23f578801f47cfb1a715eb&state=f644a4aed57b8183064682c8dc506df6b505ee80c207f944" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
495
- Processing by AuthenticationsController#callback as HTML
496
- Parameters: {"code"=>"2424f3f5116483bbf0674ddb5ab8be0e68b56b0b0f23f578801f47cfb1a715eb", "state"=>"f644a4aed57b8183064682c8dc506df6b505ee80c207f944"}
497
- 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
-  (14.7ms) commit transaction
397
+ 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", "a1s2d31767"]]
398
+  (87.7ms) commit transaction
399
+ Processing by Api::UserController#reauth as HTML
400
+ Parameters: {"uid"=>"a1s2d31985"}
401
+ User Load (56.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31985' LIMIT 1
502
402
   (0.1ms) begin transaction
503
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
504
-  (14.7ms) commit transaction
505
- Redirected to http://www.example-client.com/this_requires_signin_permission
506
- Completed 302 Found in 34ms (ActiveRecord: 30.1ms)
507
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
508
- Processing by ExampleController#this_requires_signin_permission as HTML
509
- 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
510
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
511
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
403
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
404
+ - signin
405
+ ' WHERE "users"."id" = 10
406
+  (28.8ms) commit transaction
407
+ Completed 200 OK in 89.5ms (ActiveRecord: 85.3ms)
408
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
409
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:05:23 +0000
410
+ Processing by ExampleController#index as HTML
411
+ Rendered text template (0.1ms)
412
+ Completed 200 OK in 49ms (Views: 48.8ms | ActiveRecord: 0.0ms)
413
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:23 +0000
512
414
  Processing by ExampleController#restricted as HTML
513
415
  Authenticating with gds_sso strategy
514
- Completed in 0ms
515
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
516
- Started GET "/auth/gds/callback?code=aa62951593fd05612ee9b55ebccf6a6cd6e2da95766fe27abb421ef32a806a51&state=15bce04924443e5fe012b6fbbf961d389bf47b46adda52bb" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
416
+ Completed in 17ms
417
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:23 +0000
418
+ Started GET "/auth/gds/callback?code=0bd5e3f792a1341ef1f82e6b3462c024b152355e1a4bf2d9ba806edc71c83639&state=66687e44947ccf05b97d91517f4f101c1504047d562313c9" for 127.0.0.1 at 2014-11-20 14:05:25 +0000
517
419
  Processing by AuthenticationsController#callback as HTML
518
- Parameters: {"code"=>"aa62951593fd05612ee9b55ebccf6a6cd6e2da95766fe27abb421ef32a806a51", "state"=>"15bce04924443e5fe012b6fbbf961d389bf47b46adda52bb"}
420
+ Parameters: {"code"=>"0bd5e3f792a1341ef1f82e6b3462c024b152355e1a4bf2d9ba806edc71c83639", "state"=>"66687e44947ccf05b97d91517f4f101c1504047d562313c9"}
519
421
  Authenticating with gds_sso strategy
520
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
521
-  (0.1ms) begin transaction
522
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
523
-  (20.9ms) commit transaction
422
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
423
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
524
424
   (0.1ms) begin transaction
525
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
526
-  (19.1ms) commit transaction
425
+ SQL (0.4ms) 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"]]
426
+  (21.0ms) commit transaction
427
+  (0.1ms) begin transaction
428
+ SQL (0.5ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
429
+  (25.9ms) commit transaction
527
430
  Redirected to http://www.example-client.com/restricted
528
- Completed 302 Found in 46ms (ActiveRecord: 40.7ms)
529
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
431
+ Completed 302 Found in 127ms (ActiveRecord: 49.3ms)
432
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:25 +0000
530
433
  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 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
533
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
434
+ 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
435
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
436
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:25 +0000
534
437
  Processing by ExampleController#restricted as HTML
535
438
  Authenticating with gds_sso strategy
536
439
  Completed in 0ms
537
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
538
- Started GET "/auth/gds/callback?code=07379fc928a770c4a866ab87f0eb3107ceac0452c1ad49a89639074510aa506c&state=be754c7aa402045343402b3345ddd68acba9919d3e103daf" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
440
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:25 +0000
441
+ Started GET "/auth/gds/callback?code=980e1f12922c4884a3351daf7622cf9afdc610c251d4b237b6676ec69861f544&state=3de530b4ab634b241862bb4fdfcf340816c750aeaa4a53de" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
539
442
  Processing by AuthenticationsController#callback as HTML
540
- Parameters: {"code"=>"07379fc928a770c4a866ab87f0eb3107ceac0452c1ad49a89639074510aa506c", "state"=>"be754c7aa402045343402b3345ddd68acba9919d3e103daf"}
443
+ Parameters: {"code"=>"980e1f12922c4884a3351daf7622cf9afdc610c251d4b237b6676ec69861f544", "state"=>"3de530b4ab634b241862bb4fdfcf340816c750aeaa4a53de"}
541
444
  Authenticating with gds_sso strategy
542
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
543
-  (0.1ms) begin transaction
544
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
545
-  (16.8ms) commit transaction
445
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
546
446
   (0.1ms) begin transaction
547
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
548
-  (11.6ms) commit transaction
447
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
448
+  (17.7ms) commit transaction
449
+  (0.1ms) begin transaction
450
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
451
+  (11.2ms) commit transaction
549
452
  Redirected to http://www.example-client.com/restricted
550
- Completed 302 Found in 34ms (ActiveRecord: 29.1ms)
551
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
453
+ Completed 302 Found in 36ms (ActiveRecord: 29.9ms)
454
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
552
455
  Processing by ExampleController#restricted as HTML
553
- 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
554
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
555
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
456
+ 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
457
+ Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)
458
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
556
459
  Processing by ExampleController#restricted as HTML
557
460
  Authenticating with gds_sso strategy
558
461
  Completed in 1ms
559
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
560
- Started GET "/auth/gds/callback?code=a551abf2b5206cb1c709a0673da492c9d4d2bfa131e9519058b908bd8a45b2de&state=bb1140fd8c731a753f49d93a3df73d94f051ef65ba3e0831" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
462
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
463
+ Started GET "/auth/gds/callback?code=0370a647a006f3241043faacfa519f9dc8e94614d42bce54d63fee50db02afb1&state=3bb38aa341cf416411f70d3e4ed49e3b2d22a717677e6ecf" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
561
464
  Processing by AuthenticationsController#callback as HTML
562
- Parameters: {"code"=>"a551abf2b5206cb1c709a0673da492c9d4d2bfa131e9519058b908bd8a45b2de", "state"=>"bb1140fd8c731a753f49d93a3df73d94f051ef65ba3e0831"}
465
+ Parameters: {"code"=>"0370a647a006f3241043faacfa519f9dc8e94614d42bce54d63fee50db02afb1", "state"=>"3bb38aa341cf416411f70d3e4ed49e3b2d22a717677e6ecf"}
563
466
  Authenticating with gds_sso strategy
564
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
565
-  (0.1ms) begin transaction
566
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
567
-  (9.5ms) commit transaction
467
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
568
468
   (0.1ms) begin transaction
569
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
570
-  (12.2ms) commit transaction
469
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
470
+  (28.2ms) commit transaction
471
+  (0.3ms) begin transaction
472
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
473
+  (40.8ms) commit transaction
571
474
  Redirected to http://www.example-client.com/restricted
572
- Completed 302 Found in 27ms (ActiveRecord: 22.3ms)
573
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
475
+ Completed 302 Found in 77ms (ActiveRecord: 70.2ms)
476
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:26 +0000
574
477
  Processing by ExampleController#restricted as HTML
575
- 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
478
+ 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
576
479
  Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
577
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
578
- Processing by ExampleController#index as HTML
579
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
580
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
581
- Processing by ExampleController#restricted as HTML
480
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
481
+ Processing by ExampleController#this_requires_signin_permission as HTML
582
482
  Authenticating with gds_sso strategy
583
- Completed in 0ms
584
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
585
- Started GET "/auth/gds/callback?code=cc66d91920a8ade9a61d7029627cc455a354c466dd132ac2995dfc1778ad2c27&state=d9b5367470e1199a5b65e647b8cff08ba84a9e302dfcf516" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
483
+ Completed in 1ms
484
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
485
+ Started GET "/auth/gds/callback?code=1de58b7b09d6698d37356b311c15a9d360141449ca4b12f3ab1c4fcaf7696589&state=67012050ea9b98cc1c97f10fb60fd0391bfa1bef93379101" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
586
486
  Processing by AuthenticationsController#callback as HTML
587
- Parameters: {"code"=>"cc66d91920a8ade9a61d7029627cc455a354c466dd132ac2995dfc1778ad2c27", "state"=>"d9b5367470e1199a5b65e647b8cff08ba84a9e302dfcf516"}
487
+ Parameters: {"code"=>"1de58b7b09d6698d37356b311c15a9d360141449ca4b12f3ab1c4fcaf7696589", "state"=>"67012050ea9b98cc1c97f10fb60fd0391bfa1bef93379101"}
588
488
  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
489
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
490
+  (0.1ms) begin transaction
491
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
492
+  (15.0ms) commit transaction
590
493
   (0.1ms) begin transaction
591
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
592
-  (10.6ms) commit transaction
494
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
495
+  (11.8ms) commit transaction
496
+ Redirected to http://www.example-client.com/this_requires_signin_permission
497
+ Completed 302 Found in 35ms (ActiveRecord: 27.8ms)
498
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
499
+ Processing by ExampleController#this_requires_signin_permission as HTML
500
+ 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
501
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
502
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
503
+ Processing by ExampleController#this_requires_signin_permission as HTML
504
+ Authenticating with gds_sso strategy
505
+ Completed in 0ms
506
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
507
+ Started GET "/auth/gds/callback?code=1ef3da1b9175c054014ba0696fd88da21c2975382595086942baae5b2304b130&state=8ef43dc2f2a45464c631f17c90103cb6c354b6b0ff6dab38" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
508
+ Processing by AuthenticationsController#callback as HTML
509
+ Parameters: {"code"=>"1ef3da1b9175c054014ba0696fd88da21c2975382595086942baae5b2304b130", "state"=>"8ef43dc2f2a45464c631f17c90103cb6c354b6b0ff6dab38"}
510
+ Authenticating with gds_sso strategy
511
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
593
512
   (0.1ms) begin transaction
594
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
595
-  (10.7ms) commit transaction
596
- Redirected to http://www.example-client.com/restricted
597
- Completed 302 Found in 30ms (ActiveRecord: 22.3ms)
598
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
599
- 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.6ms | ActiveRecord: 0.3ms)
602
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
513
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
514
+  (8.8ms) commit transaction
603
515
   (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
-  (12.7ms) commit transaction
606
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
516
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
517
+  (21.2ms) commit transaction
518
+ Redirected to http://www.example-client.com/this_requires_signin_permission
519
+ Completed 302 Found in 37ms (ActiveRecord: 31.0ms)
520
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
521
+ Processing by ExampleController#this_requires_signin_permission as HTML
522
+ 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
523
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
524
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
607
525
  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
609
526
  Authenticating with gds_sso strategy
610
527
  Completed in 1ms
611
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
612
- Started GET "/auth/gds/callback?code=c61e586a42221b13fbd08d5ce5176769c45cd9cafa60a1ef0d1d7e8c1799ee77&state=1206d827ad7c8a3067b7d1a42dadd0987355ad5f5ce87052" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
528
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:27 +0000
529
+ Started GET "/auth/gds/callback?code=4bd476d405cb6bf97530cb69625279f56f9532d322442b35abbe25c896977705&state=76a746eebccced3247c1e271854527239a609ccdc4f63d7d" for 127.0.0.1 at 2014-11-20 14:05:28 +0000
613
530
  Processing by AuthenticationsController#callback as HTML
614
- Parameters: {"code"=>"c61e586a42221b13fbd08d5ce5176769c45cd9cafa60a1ef0d1d7e8c1799ee77", "state"=>"1206d827ad7c8a3067b7d1a42dadd0987355ad5f5ce87052"}
531
+ Parameters: {"code"=>"4bd476d405cb6bf97530cb69625279f56f9532d322442b35abbe25c896977705", "state"=>"76a746eebccced3247c1e271854527239a609ccdc4f63d7d"}
615
532
  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
533
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
617
534
   (0.1ms) begin transaction
618
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
619
-  (13.8ms) commit transaction
535
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
536
+  (10.2ms) commit transaction
620
537
   (0.1ms) begin transaction
621
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
622
-  (12.9ms) commit transaction
538
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
539
+  (10.2ms) commit transaction
623
540
  Redirected to http://www.example-client.com/restricted
624
- Completed 302 Found in 34ms (ActiveRecord: 27.6ms)
625
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
541
+ Completed 302 Found in 29ms (ActiveRecord: 21.8ms)
542
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:28 +0000
626
543
  Processing by ExampleController#restricted as HTML
627
544
  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
545
  Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
629
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
546
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
547
+  (0.1ms) begin transaction
548
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
549
+  (15.7ms) commit transaction
550
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:28 +0000
630
551
  Processing by ExampleController#restricted as HTML
552
+ 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
631
553
  Authenticating with gds_sso strategy
632
- Completed in 0ms
633
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
634
- Started GET "/auth/gds/callback?code=8fdaa243920ba110504287e9ffe4fc9887bdb1bfb407fffb5306bd13e12f3327&state=c3f48d8c4c891987f2aadd549065f54ee11e52caaa5d1704" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
554
+ Completed in 2ms
555
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:28 +0000
556
+ Started GET "/auth/gds/callback?code=e803a7c3da398f0d62bbfed0c36d5a9fb0a3d12c0da983663162c780f7e83833&state=9bdfae9f6d29e0b51581f7c1d3467acbbccdcfbffddc8ef3" for 127.0.0.1 at 2014-11-20 14:05:28 +0000
635
557
  Processing by AuthenticationsController#callback as HTML
636
- Parameters: {"code"=>"8fdaa243920ba110504287e9ffe4fc9887bdb1bfb407fffb5306bd13e12f3327", "state"=>"c3f48d8c4c891987f2aadd549065f54ee11e52caaa5d1704"}
558
+ Parameters: {"code"=>"e803a7c3da398f0d62bbfed0c36d5a9fb0a3d12c0da983663162c780f7e83833", "state"=>"9bdfae9f6d29e0b51581f7c1d3467acbbccdcfbffddc8ef3"}
637
559
  Authenticating with gds_sso strategy
638
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
560
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
561
+  (0.1ms) begin transaction
562
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
563
+  (70.4ms) commit transaction
639
564
   (0.1ms) begin transaction
640
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
641
-  (16.5ms) commit transaction
565
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
566
+  (12.3ms) commit transaction
567
+ Redirected to http://www.example-client.com/restricted
568
+ Completed 302 Found in 91ms (ActiveRecord: 83.7ms)
569
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:29 +0000
570
+ Processing by ExampleController#restricted as HTML
571
+ 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
572
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
573
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:29 +0000
574
+ Processing by ExampleController#restricted as HTML
575
+ Authenticating with gds_sso strategy
576
+ Completed in 1ms
577
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:29 +0000
578
+ Started GET "/auth/gds/callback?code=4444db4381e3c332391de2ebe4c21fd66a37d10eedba6ab6771c16abd9946eb3&state=2510348991b806e3a08ba3cd8ae3e084991f17e40238ec31" for 127.0.0.1 at 2014-11-20 14:05:29 +0000
579
+ Processing by AuthenticationsController#callback as HTML
580
+ Parameters: {"code"=>"4444db4381e3c332391de2ebe4c21fd66a37d10eedba6ab6771c16abd9946eb3", "state"=>"2510348991b806e3a08ba3cd8ae3e084991f17e40238ec31"}
581
+ Authenticating with gds_sso strategy
582
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
642
583
   (0.1ms) begin transaction
643
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
644
-  (14.7ms) commit transaction
584
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
585
+  (24.9ms) commit transaction
586
+  (0.1ms) begin transaction
587
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
588
+  (11.0ms) commit transaction
645
589
  Redirected to http://www.example-client.com/restricted
646
- Completed 302 Found in 38ms (ActiveRecord: 32.0ms)
647
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
590
+ Completed 302 Found in 43ms (ActiveRecord: 36.7ms)
591
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:29 +0000
648
592
  Processing by ExampleController#restricted as HTML
649
- 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
650
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
651
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
593
+ 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
594
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
595
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:10:29 +0000
652
596
  Processing by ExampleController#restricted as HTML
653
597
  Authenticating with gds_sso strategy
654
598
  Completed in 1ms
655
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
656
- Started GET "/auth/gds/callback?code=450829d1570105aa7e8022061d5aad57e08ce6014a144669a4d7b7b667190602&state=d59097cc21031d1b195c8292236ad9f04d495934106e7aab" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
599
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:10:29 +0000
600
+ Started GET "/auth/gds/callback?code=046f489ea9cb87e8f32e12115b2a92f46d6b6a4332d30c9711c89beaf9f4e753&state=19b9b5ef185a03f9643776eb1d54c573800d9a69be076457" for 127.0.0.1 at 2014-11-21 10:10:29 +0000
657
601
  Processing by AuthenticationsController#callback as HTML
658
- Parameters: {"code"=>"450829d1570105aa7e8022061d5aad57e08ce6014a144669a4d7b7b667190602", "state"=>"d59097cc21031d1b195c8292236ad9f04d495934106e7aab"}
602
+ Parameters: {"code"=>"046f489ea9cb87e8f32e12115b2a92f46d6b6a4332d30c9711c89beaf9f4e753", "state"=>"19b9b5ef185a03f9643776eb1d54c573800d9a69be076457"}
659
603
  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
-  (12.7ms) commit transaction
664
-  (0.1ms) begin transaction
665
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
666
-  (12.4ms) commit transaction
604
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
605
+  (0.3ms) begin transaction
606
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
607
+  (29.2ms) commit transaction
608
+  (0.2ms) begin transaction
609
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
610
+  (17.0ms) commit transaction
667
611
  Redirected to http://www.example-client.com/restricted
668
- Completed 302 Found in 31ms (ActiveRecord: 25.9ms)
669
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
612
+ Completed 302 Found in 53ms (ActiveRecord: 47.4ms)
613
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:10:30 +0000
670
614
  Processing by ExampleController#restricted as HTML
671
- 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
672
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
673
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
615
+ 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
616
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
617
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:30 +0000
674
618
  Processing by ExampleController#restricted as HTML
675
619
  Authenticating with gds_sso strategy
676
- Completed in 0ms
677
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
678
- Started GET "/auth/gds/callback?code=0fdeeaad558331ed910cd66657c66c555d5af06bc26f40291aab33717d75d3d3&state=ce380fcbb19e3b25ac71beb4f0a3e29a1dc5ac10072e9d65" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
620
+ Completed in 1ms
621
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:05:30 +0000
622
+ Started GET "/auth/gds/callback?code=980ef024595d20009d5a10f76dbd97bf3bbeec0fc28ddcbd4a9e5f03a8d5e4c3&state=dcc2ccb1747bed29a5fe2740e72c5797ee3d763f65a00e23" for 127.0.0.1 at 2014-11-20 14:05:30 +0000
679
623
  Processing by AuthenticationsController#callback as HTML
680
- Parameters: {"code"=>"0fdeeaad558331ed910cd66657c66c555d5af06bc26f40291aab33717d75d3d3", "state"=>"ce380fcbb19e3b25ac71beb4f0a3e29a1dc5ac10072e9d65"}
624
+ Parameters: {"code"=>"980ef024595d20009d5a10f76dbd97bf3bbeec0fc28ddcbd4a9e5f03a8d5e4c3", "state"=>"dcc2ccb1747bed29a5fe2740e72c5797ee3d763f65a00e23"}
681
625
  Authenticating with gds_sso strategy
682
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
683
-  (0.1ms) begin transaction
684
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
685
-  (7.8ms) commit transaction
626
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
686
627
   (0.1ms) begin transaction
687
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
688
-  (9.9ms) commit transaction
628
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
629
+  (16.1ms) commit transaction
630
+  (0.1ms) begin transaction
631
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
632
+  (17.1ms) commit transaction
689
633
  Redirected to http://www.example-client.com/restricted
690
- Completed 302 Found in 23ms (ActiveRecord: 18.3ms)
691
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
634
+ Completed 302 Found in 41ms (ActiveRecord: 34.2ms)
635
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:30 +0000
692
636
  Processing by ExampleController#restricted as HTML
693
- 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
694
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
695
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:18:08 +0000
637
+ 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
638
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
639
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:00:30 +0000
696
640
  Processing by ExampleController#restricted as HTML
697
- 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
698
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
699
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
641
+ 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
642
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
643
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:31 +0000
700
644
  Processing by ExampleController#restricted as JSON
701
- Completed in 55ms
702
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
645
+ Completed in 20ms
646
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:05:31 +0000
703
647
  Processing by ExampleController#this_requires_signin_permission as JSON
704
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
648
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
649
+  (0.1ms) begin transaction
650
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
651
+  (23.3ms) commit transaction
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.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
655
+  (13.4ms) commit transaction
656
+ User Load (0.2ms) 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
+  (15.1ms) commit transaction
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" = 1 [["permissions", "---\n- signin\n"]]
663
+  (14.1ms) commit transaction
705
664
   (0.1ms) begin transaction
706
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
707
-  (6.6ms) commit transaction
708
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
665
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
666
+  (8.4ms) commit transaction
667
+ Completed 200 OK in 313ms (Views: 0.5ms | ActiveRecord: 76.8ms)
668
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:31 +0000
669
+ Processing by ExampleController#restricted as JSON
670
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
709
671
   (0.1ms) begin transaction
710
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
711
-  (8.8ms) commit transaction
712
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
672
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
673
+  (27.4ms) commit transaction
674
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
713
675
   (0.1ms) begin transaction
714
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
715
-  (7.8ms) commit transaction
716
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
676
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
677
+  (21.8ms) commit transaction
678
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
679
+  (0.1ms) begin transaction
680
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
681
+  (14.9ms) commit transaction
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.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
719
-  (17.9ms) commit transaction
684
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
685
+  (12.0ms) commit transaction
720
686
   (0.1ms) begin transaction
721
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
722
-  (15.9ms) commit transaction
723
- Completed 200 OK in 218ms (Views: 0.4ms | ActiveRecord: 58.8ms)
724
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
687
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
688
+  (14.6ms) commit transaction
689
+ Completed 200 OK in 307ms (Views: 0.5ms | ActiveRecord: 93.4ms)
690
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:05:32 +0000
725
691
  Processing by ExampleController#restricted as JSON
726
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
692
+ Completed in 69ms
693
+  (0.2ms) begin transaction
694
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31054"]]
695
+  (14.3ms) commit transaction
727
696
   (0.1ms) begin transaction
728
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
729
-  (10.6ms) commit transaction
730
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
697
+ 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", "a1s2d38516"]]
698
+  (18.3ms) commit transaction
699
+ Processing by Api::UserController#update as HTML
700
+ Parameters: {"uid"=>"a1s2d31054"}
701
+ Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
702
+  (0.1ms) begin transaction
703
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31287"]]
704
+  (13.7ms) commit transaction
705
+  (0.2ms) begin transaction
706
+ 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", "a1s2d31177"]]
707
+  (16.0ms) commit transaction
708
+ Processing by Api::UserController#update as HTML
709
+ Parameters: {"uid"=>"a1s2d31287"}
710
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31287' ORDER BY "users"."id" ASC LIMIT 1
731
711
   (0.1ms) begin transaction
732
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
733
-  (13.7ms) commit transaction
734
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
712
+ SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
713
+  (14.1ms) commit transaction
714
+ Completed 200 OK in 19ms (ActiveRecord: 14.7ms)
715
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
735
716
   (0.1ms) begin transaction
736
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
737
-  (10.8ms) commit transaction
738
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
717
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38045"]]
718
+  (25.8ms) commit transaction
719
+  (0.1ms) begin transaction
720
+ 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", "a1s2d31590"]]
721
+  (30.1ms) commit transaction
722
+ Processing by Api::UserController#reauth as HTML
723
+ Parameters: {"uid"=>"a1s2d38045"}
724
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
739
725
   (0.1ms) begin transaction
740
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
741
-  (11.9ms) commit transaction
726
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31317"]]
727
+  (19.4ms) commit transaction
742
728
   (0.1ms) begin transaction
743
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
744
-  (12.4ms) commit transaction
745
- Completed 200 OK in 228ms (Views: 0.4ms | ActiveRecord: 61.5ms)
746
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
729
+ 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", "a1s2d39828"]]
730
+  (30.0ms) commit transaction
731
+ Processing by Api::UserController#reauth as HTML
732
+ Parameters: {"uid"=>"a1s2d31317"}
733
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31317' ORDER BY "users"."id" ASC LIMIT 1
734
+  (0.1ms) begin transaction
735
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 8 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
736
+  (33.4ms) commit transaction
737
+ Completed 200 OK in 37ms (ActiveRecord: 34.1ms)
738
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
739
+  (0.1ms) begin transaction
740
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37865"]]
741
+  (32.5ms) commit transaction
742
+  (0.1ms) begin transaction
743
+ 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", "a1s2d37746"]]
744
+  (22.9ms) commit transaction
745
+ Processing by Api::UserController#reauth as HTML
746
+ Parameters: {"uid"=>"nonexistent-user"}
747
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
748
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
749
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:31 +0000
747
750
  Processing by ExampleController#restricted as JSON
748
- Completed in 18ms
749
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:55 +0000
751
+ Completed in 486ms
752
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:32 +0000
753
+ Processing by ExampleController#restricted as JSON
754
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
755
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
756
+  (0.1ms) begin transaction
757
+ SQL (0.4ms) 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"]]
758
+  (183.1ms) commit transaction
759
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
760
+  (0.2ms) begin transaction
761
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
762
+  (13.4ms) commit transaction
763
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
764
+  (0.1ms) begin transaction
765
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
766
+  (47.9ms) commit transaction
767
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
768
+  (0.1ms) begin transaction
769
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
770
+  (33.1ms) commit transaction
771
+  (0.1ms) begin transaction
772
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
773
+  (42.0ms) commit transaction
774
+ Completed 200 OK in 897ms (Views: 56.5ms | ActiveRecord: 323.2ms)
775
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:33 +0000
776
+ Processing by ExampleController#restricted as JSON
777
+ Completed in 17ms
778
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:06:34 +0000
779
+ Processing by ExampleController#this_requires_signin_permission as JSON
780
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
781
+  (0.1ms) begin transaction
782
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
783
+  (18.0ms) commit transaction
784
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
785
+  (0.1ms) begin transaction
786
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
787
+  (12.3ms) commit transaction
788
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
789
+  (0.1ms) begin transaction
790
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
791
+  (13.2ms) commit transaction
792
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
793
+  (0.1ms) begin transaction
794
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
795
+  (14.6ms) commit transaction
796
+  (0.2ms) begin transaction
797
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
798
+  (18.7ms) commit transaction
799
+ Completed 200 OK in 278ms (Views: 0.6ms | ActiveRecord: 79.4ms)
800
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:06:34 +0000
750
801
  Processing by ExampleController#this_requires_signin_permission as HTML
751
802
  Authenticating with gds_sso strategy
752
- Completed in 21ms
753
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:55 +0000
754
- Started GET "/auth/gds/callback?code=07562d4b7e4a06328300a9f0475f9a5fc576834c966914e47dc3b19f01aa7778&state=9aee5b0f276fd09785fed17f28d09b82d2e6d998d6ef2fb0" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
803
+ Completed in 1ms
804
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:34 +0000
805
+ Started GET "/auth/gds/callback?code=4f6433522203b6076c5db35a5f098857c749cbd843a22c11bb1d984819d3489b&state=13c846449c5c5ca21b9a9db311dfb2bdee7c96ac9e3252a2" for 127.0.0.1 at 2014-11-20 14:06:35 +0000
755
806
  Processing by AuthenticationsController#callback as HTML
756
- Parameters: {"code"=>"07562d4b7e4a06328300a9f0475f9a5fc576834c966914e47dc3b19f01aa7778", "state"=>"9aee5b0f276fd09785fed17f28d09b82d2e6d998d6ef2fb0"}
807
+ Parameters: {"code"=>"4f6433522203b6076c5db35a5f098857c749cbd843a22c11bb1d984819d3489b", "state"=>"13c846449c5c5ca21b9a9db311dfb2bdee7c96ac9e3252a2"}
757
808
  Authenticating with gds_sso strategy
758
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
759
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
809
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
760
810
   (0.1ms) begin transaction
761
- 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"]]
762
-  (12.8ms) commit transaction
811
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
812
+  (23.0ms) commit transaction
763
813
   (0.1ms) begin transaction
764
- SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
765
-  (10.5ms) commit transaction
814
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
815
+  (17.5ms) commit transaction
766
816
  Redirected to http://www.example-client.com/this_requires_signin_permission
767
- Completed 302 Found in 120ms (ActiveRecord: 24.9ms)
768
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
817
+ Completed 302 Found in 48ms (ActiveRecord: 41.4ms)
818
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:06:35 +0000
769
819
  Processing by ExampleController#this_requires_signin_permission as HTML
770
- 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
771
- Rendered text template (0.0ms)
772
- Completed 200 OK in 75ms (Views: 72.3ms | ActiveRecord: 0.2ms)
773
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
820
+ 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
821
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
822
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:06:35 +0000
774
823
  Processing by ExampleController#this_requires_signin_permission as HTML
775
824
  Authenticating with gds_sso strategy
776
825
  Completed in 0ms
777
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
778
- Started GET "/auth/gds/callback?code=35d4fbd47d6f41090cfcc3d3527cbfc4b5d9412251a228d73c05c84e7f170ad7&state=81a37c241261cf3e898349ce3a8f70916c82231136c1d674" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
826
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:35 +0000
827
+ Started GET "/auth/gds/callback?code=fad7497263b1e28a96974182bd605c8c8c673aa1bb1fe9d822e17671a538766a&state=1a39f40281be54d52ffc0b6b234cc3c509beb2e5e2c68d19" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
779
828
  Processing by AuthenticationsController#callback as HTML
780
- Parameters: {"code"=>"35d4fbd47d6f41090cfcc3d3527cbfc4b5d9412251a228d73c05c84e7f170ad7", "state"=>"81a37c241261cf3e898349ce3a8f70916c82231136c1d674"}
829
+ Parameters: {"code"=>"fad7497263b1e28a96974182bd605c8c8c673aa1bb1fe9d822e17671a538766a", "state"=>"1a39f40281be54d52ffc0b6b234cc3c509beb2e5e2c68d19"}
781
830
  Authenticating with gds_sso strategy
782
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
831
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
783
832
   (0.1ms) begin transaction
784
833
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
785
-  (30.5ms) commit transaction
834
+  (16.6ms) commit transaction
786
835
   (0.1ms) begin transaction
787
836
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
788
-  (28.8ms) commit transaction
837
+  (16.8ms) commit transaction
789
838
  Redirected to http://www.example-client.com/this_requires_signin_permission
790
- Completed 302 Found in 65ms (ActiveRecord: 60.1ms)
791
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
839
+ Completed 302 Found in 40ms (ActiveRecord: 34.3ms)
840
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
792
841
  Processing by ExampleController#this_requires_signin_permission as HTML
793
- 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
794
- Rendered text template (0.0ms)
795
- Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
796
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
842
+ 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
843
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
844
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
797
845
  Processing by ExampleController#restricted as HTML
798
846
  Authenticating with gds_sso strategy
799
- Completed in 0ms
800
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
801
- Started GET "/auth/gds/callback?code=ce99065b80f884173b18921a5591a6d8d9819c138f586dcee4b2cf72da23b955&state=697054b1fcdd79e8af58fe28be9cb5378e0221ada736d719" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
847
+ Completed in 1ms
848
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
849
+ Started GET "/auth/gds/callback?code=c4e2db3031ea38db877c78d8692da02d5208733dff0f49eb66c6e06960f7f2ec&state=633348c2c62e34429824e25ccbbc2083d4687f195fb81309" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
802
850
  Processing by AuthenticationsController#callback as HTML
803
- Parameters: {"code"=>"ce99065b80f884173b18921a5591a6d8d9819c138f586dcee4b2cf72da23b955", "state"=>"697054b1fcdd79e8af58fe28be9cb5378e0221ada736d719"}
851
+ Parameters: {"code"=>"c4e2db3031ea38db877c78d8692da02d5208733dff0f49eb66c6e06960f7f2ec", "state"=>"633348c2c62e34429824e25ccbbc2083d4687f195fb81309"}
804
852
  Authenticating with gds_sso strategy
805
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
853
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
806
854
   (0.1ms) begin transaction
807
855
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
808
-  (21.5ms) commit transaction
856
+  (11.5ms) commit transaction
809
857
   (0.1ms) begin transaction
810
858
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
811
-  (18.2ms) commit transaction
859
+  (15.8ms) commit transaction
812
860
  Redirected to http://www.example-client.com/restricted
813
- Completed 302 Found in 46ms (ActiveRecord: 40.3ms)
814
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
861
+ Completed 302 Found in 34ms (ActiveRecord: 28.2ms)
862
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:36 +0000
815
863
  Processing by ExampleController#restricted as HTML
816
- 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
817
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
818
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
864
+ 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
865
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
866
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
819
867
  Processing by ExampleController#index as HTML
820
868
  Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
821
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
869
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
822
870
  Processing by ExampleController#restricted as HTML
823
871
  Authenticating with gds_sso strategy
824
- Completed in 0ms
825
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
826
- Started GET "/auth/gds/callback?code=89cb9745e1715c75d821f15649f64c721b3fbc2f875a4cefe33dfd154a2f29e7&state=beac0e7f871da2b402145025fee6c7f7e01f4681f5a6d8f9" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
872
+ Completed in 1ms
873
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
874
+ Started GET "/auth/gds/callback?code=a555075b07739bc821541adbf8fbcba863d387c2195a27c57887ea1c8f105681&state=6eeeddc26bb3872582065c2ea2555d224a7d531bf4eab7ce" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
827
875
  Processing by AuthenticationsController#callback as HTML
828
- Parameters: {"code"=>"89cb9745e1715c75d821f15649f64c721b3fbc2f875a4cefe33dfd154a2f29e7", "state"=>"beac0e7f871da2b402145025fee6c7f7e01f4681f5a6d8f9"}
876
+ Parameters: {"code"=>"a555075b07739bc821541adbf8fbcba863d387c2195a27c57887ea1c8f105681", "state"=>"6eeeddc26bb3872582065c2ea2555d224a7d531bf4eab7ce"}
829
877
  Authenticating with gds_sso strategy
830
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
878
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
831
879
   (0.1ms) begin transaction
832
880
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
833
-  (12.8ms) commit transaction
881
+  (12.7ms) commit transaction
834
882
   (0.1ms) begin transaction
835
883
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
836
-  (16.7ms) commit transaction
884
+  (12.9ms) commit transaction
837
885
  Redirected to http://www.example-client.com/restricted
838
- Completed 302 Found in 36ms (ActiveRecord: 30.2ms)
839
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
886
+ Completed 302 Found in 32ms (ActiveRecord: 26.5ms)
887
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
840
888
  Processing by ExampleController#restricted as HTML
841
- 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
842
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
843
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
889
+ 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
890
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
891
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
844
892
  Processing by ExampleController#restricted as HTML
845
893
  Authenticating with gds_sso strategy
846
894
  Completed in 0ms
847
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
848
- Started GET "/auth/gds/callback?code=07d42dd0332d8f406f9f3afc1418a98bebbce4f511e131aef1a61f1540b29b10&state=3a5137abfdb7f8be9dd8939cdb7f7d13212580912d1b1c37" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
895
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
896
+ Started GET "/auth/gds/callback?code=7c3fe4535b6c489535c13401387abd5e10a8a74a7d31d1ac6ac5fda8ab310b99&state=b5972127220f84ad86095f245c10e52668d3861e69214b7b" for 127.0.0.1 at 2014-11-20 14:06:37 +0000
849
897
  Processing by AuthenticationsController#callback as HTML
850
- Parameters: {"code"=>"07d42dd0332d8f406f9f3afc1418a98bebbce4f511e131aef1a61f1540b29b10", "state"=>"3a5137abfdb7f8be9dd8939cdb7f7d13212580912d1b1c37"}
898
+ Parameters: {"code"=>"7c3fe4535b6c489535c13401387abd5e10a8a74a7d31d1ac6ac5fda8ab310b99", "state"=>"b5972127220f84ad86095f245c10e52668d3861e69214b7b"}
851
899
  Authenticating with gds_sso strategy
852
900
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
853
901
   (0.1ms) begin transaction
854
902
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
855
-  (15.4ms) commit transaction
903
+  (10.6ms) commit transaction
856
904
   (0.1ms) begin transaction
857
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
858
-  (12.9ms) commit transaction
905
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
906
+  (8.0ms) commit transaction
859
907
  Redirected to http://www.example-client.com/restricted
860
- Completed 302 Found in 34ms (ActiveRecord: 29.0ms)
861
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
908
+ Completed 302 Found in 29ms (ActiveRecord: 19.5ms)
909
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
862
910
  Processing by ExampleController#restricted as HTML
863
- 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
864
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
865
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
911
+ 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
912
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
913
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
866
914
  Processing by ExampleController#restricted as HTML
867
915
  Authenticating with gds_sso strategy
868
916
  Completed in 1ms
869
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
870
- Started GET "/auth/gds/callback?code=f17796f9cdd2cf92e908dba6a9c313d216cf93fc33915bec0a10c34ad5c8c6e3&state=3d6a7ee364e9bbeb8dac03e829dc3e9334184f1ace204918" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
917
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
918
+ Started GET "/auth/gds/callback?code=37c7f810ebfac6fd654a875f930973f2d822e9bf583726d7771c673f413418ea&state=708f35c9f38c566de0b645c8a2da9a85cdd1a9519b097dca" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
871
919
  Processing by AuthenticationsController#callback as HTML
872
- Parameters: {"code"=>"f17796f9cdd2cf92e908dba6a9c313d216cf93fc33915bec0a10c34ad5c8c6e3", "state"=>"3d6a7ee364e9bbeb8dac03e829dc3e9334184f1ace204918"}
920
+ Parameters: {"code"=>"37c7f810ebfac6fd654a875f930973f2d822e9bf583726d7771c673f413418ea", "state"=>"708f35c9f38c566de0b645c8a2da9a85cdd1a9519b097dca"}
873
921
  Authenticating with gds_sso strategy
874
922
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
875
923
   (0.1ms) begin transaction
876
924
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
877
-  (9.0ms) commit transaction
925
+  (9.5ms) commit transaction
878
926
   (0.1ms) begin transaction
879
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
880
-  (9.0ms) commit transaction
927
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
928
+  (13.0ms) commit transaction
881
929
  Redirected to http://www.example-client.com/restricted
882
- Completed 302 Found in 25ms (ActiveRecord: 18.9ms)
883
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
930
+ Completed 302 Found in 30ms (ActiveRecord: 23.5ms)
931
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
884
932
  Processing by ExampleController#restricted as HTML
885
- 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
886
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
887
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
888
-  (0.1ms) begin transaction
889
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
890
-  (14.3ms) commit transaction
891
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
892
- Processing by ExampleController#restricted as HTML
893
- 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
894
- Authenticating with gds_sso strategy
895
- Completed in 1ms
896
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
897
- Started GET "/auth/gds/callback?code=e9ee36b0dc2a65d0bbbad4523b6d865ea38ab29ba046a9d87bdb58762f455c40&state=b11ca64c09612dfd2e5caa033f9baf3fcc0d11bb96648567" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
898
- Processing by AuthenticationsController#callback as HTML
899
- Parameters: {"code"=>"e9ee36b0dc2a65d0bbbad4523b6d865ea38ab29ba046a9d87bdb58762f455c40", "state"=>"b11ca64c09612dfd2e5caa033f9baf3fcc0d11bb96648567"}
900
- Authenticating with gds_sso strategy
901
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
902
-  (0.1ms) begin transaction
903
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
904
-  (11.1ms) commit transaction
905
-  (0.1ms) begin transaction
906
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
907
-  (14.9ms) commit transaction
908
- Redirected to http://www.example-client.com/restricted
909
- Completed 302 Found in 31ms (ActiveRecord: 26.6ms)
910
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
933
+ 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
934
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
935
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:01:38 +0000
911
936
  Processing by ExampleController#restricted as HTML
912
- 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
913
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
914
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
937
+ 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
938
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
939
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
915
940
  Processing by ExampleController#restricted as HTML
916
941
  Authenticating with gds_sso strategy
917
942
  Completed in 1ms
918
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
919
- Started GET "/auth/gds/callback?code=0092b20c5805a214236ccb949ec1a58b5ae6046b154e562e6ca4788edd3b38d0&state=e045838209aec5b06df9ef90727a00a08ffb8b7f1961137f" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
943
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:38 +0000
944
+ Started GET "/auth/gds/callback?code=2b3c22be2679533c77eaa4d5006f884c8a5d3cd68f63ea3bd0a28bd2d50e88d3&state=f061d6855b5a5ad23ddf41b361f2cad61cb94203b4f8c940" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
920
945
  Processing by AuthenticationsController#callback as HTML
921
- Parameters: {"code"=>"0092b20c5805a214236ccb949ec1a58b5ae6046b154e562e6ca4788edd3b38d0", "state"=>"e045838209aec5b06df9ef90727a00a08ffb8b7f1961137f"}
946
+ Parameters: {"code"=>"2b3c22be2679533c77eaa4d5006f884c8a5d3cd68f63ea3bd0a28bd2d50e88d3", "state"=>"f061d6855b5a5ad23ddf41b361f2cad61cb94203b4f8c940"}
922
947
  Authenticating with gds_sso strategy
923
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
948
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
924
949
   (0.1ms) begin transaction
925
950
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
926
-  (12.1ms) commit transaction
951
+  (10.1ms) commit transaction
927
952
   (0.1ms) begin transaction
928
953
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
929
-  (10.3ms) commit transaction
954
+  (16.8ms) commit transaction
930
955
  Redirected to http://www.example-client.com/restricted
931
- Completed 302 Found in 28ms (ActiveRecord: 23.2ms)
932
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
956
+ Completed 302 Found in 34ms (ActiveRecord: 27.8ms)
957
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
933
958
  Processing by ExampleController#restricted as HTML
934
- 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
935
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
936
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
959
+ 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
960
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
961
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:11:39 +0000
937
962
  Processing by ExampleController#restricted as HTML
938
963
  Authenticating with gds_sso strategy
939
964
  Completed in 1ms
940
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
941
- Started GET "/auth/gds/callback?code=a8cc0d1f2cf2cfd01bd8e77eb35670d157cb55638d1e31abb902e34a9107428a&state=f52ffd98fe66f4c43713d3b19e8ae6fb1a7a49c9fa06b4e2" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
965
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:11:39 +0000
966
+ Started GET "/auth/gds/callback?code=995671bf24b43e672a9d848557b81ee1a7ed81013af0f5103ba48c03ce9c71c2&state=0100c48622d0cda6bf74cc80340973432b17c6469572e7ed" for 127.0.0.1 at 2014-11-21 10:11:39 +0000
942
967
  Processing by AuthenticationsController#callback as HTML
943
- Parameters: {"code"=>"a8cc0d1f2cf2cfd01bd8e77eb35670d157cb55638d1e31abb902e34a9107428a", "state"=>"f52ffd98fe66f4c43713d3b19e8ae6fb1a7a49c9fa06b4e2"}
968
+ Parameters: {"code"=>"995671bf24b43e672a9d848557b81ee1a7ed81013af0f5103ba48c03ce9c71c2", "state"=>"0100c48622d0cda6bf74cc80340973432b17c6469572e7ed"}
944
969
  Authenticating with gds_sso strategy
945
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
970
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
946
971
   (0.1ms) begin transaction
947
972
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
948
-  (20.8ms) commit transaction
949
-  (0.1ms) begin transaction
950
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
951
-  (13.4ms) commit transaction
973
+  (32.1ms) commit transaction
974
+  (0.2ms) begin transaction
975
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
976
+  (19.5ms) commit transaction
952
977
  Redirected to http://www.example-client.com/restricted
953
- Completed 302 Found in 40ms (ActiveRecord: 35.0ms)
954
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
978
+ Completed 302 Found in 58ms (ActiveRecord: 52.6ms)
979
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:11:39 +0000
955
980
  Processing by ExampleController#restricted as HTML
956
- 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
957
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
958
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
981
+ 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
982
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
983
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
959
984
  Processing by ExampleController#restricted as HTML
960
985
  Authenticating with gds_sso strategy
961
- Completed in 0ms
962
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
963
- Started GET "/auth/gds/callback?code=d7e5fe6339f08ac8ba7d58368dfb1015f49ecf7ac605eadc416673aa290eff94&state=725dc6d1a6646e3e467baf1eb377d45cf45abbae40efeb56" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
986
+ Completed in 1ms
987
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
988
+ Started GET "/auth/gds/callback?code=f3eea0b2a0c3e53513ea35e30885aee15b4034a45a2c928196757b6901057b7a&state=c2f4b8c9af6e9547d10c3cee2c6d7db2ea8f1736ab7da8d6" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
964
989
  Processing by AuthenticationsController#callback as HTML
965
- Parameters: {"code"=>"d7e5fe6339f08ac8ba7d58368dfb1015f49ecf7ac605eadc416673aa290eff94", "state"=>"725dc6d1a6646e3e467baf1eb377d45cf45abbae40efeb56"}
990
+ Parameters: {"code"=>"f3eea0b2a0c3e53513ea35e30885aee15b4034a45a2c928196757b6901057b7a", "state"=>"c2f4b8c9af6e9547d10c3cee2c6d7db2ea8f1736ab7da8d6"}
966
991
  Authenticating with gds_sso strategy
967
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
968
-  (0.1ms) begin transaction
969
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
970
-  (12.9ms) commit transaction
971
-  (0.1ms) begin transaction
972
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
973
-  (13.7ms) commit transaction
974
- Redirected to http://www.example-client.com/restricted
975
- Completed 302 Found in 33ms (ActiveRecord: 27.3ms)
976
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
977
- Processing by ExampleController#restricted as HTML
978
- 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
979
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
980
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:02 +0000
981
- Processing by ExampleController#restricted as HTML
982
- 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
983
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
984
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
985
- Processing by ExampleController#restricted as JSON
986
- Completed in 22ms
987
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
988
- Processing by ExampleController#restricted as JSON
989
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
990
-  (0.1ms) begin transaction
991
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
992
-  (12.3ms) commit transaction
993
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
994
-  (0.1ms) begin transaction
995
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
996
-  (9.5ms) commit transaction
997
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
998
-  (0.1ms) begin transaction
999
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1000
-  (9.7ms) commit transaction
1001
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1002
-  (0.1ms) begin transaction
1003
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1004
-  (9.5ms) commit transaction
1005
-  (0.1ms) begin transaction
1006
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1007
-  (8.4ms) commit transaction
1008
- Completed 200 OK in 204ms (Views: 0.5ms | ActiveRecord: 51.4ms)
1009
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:03 +0000
1010
- Processing by ExampleController#restricted as JSON
1011
- Completed in 13ms
1012
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:03 +0000
1013
- Processing by ExampleController#this_requires_signin_permission as JSON
1014
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1015
-  (0.1ms) begin transaction
1016
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1017
-  (15.7ms) commit transaction
1018
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1019
-  (0.1ms) begin transaction
1020
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1021
-  (8.9ms) commit transaction
1022
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1023
-  (0.1ms) begin transaction
1024
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1025
-  (12.9ms) commit transaction
1026
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1027
-  (0.1ms) begin transaction
1028
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1029
-  (10.3ms) commit transaction
992
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
993
+  (0.1ms) begin transaction
994
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
995
+  (11.3ms) commit transaction
1030
996
   (0.1ms) begin transaction
1031
997
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1032
-  (12.5ms) commit transaction
1033
- Completed 200 OK in 279ms (Views: 0.5ms | ActiveRecord: 62.3ms)
998
+  (10.1ms) commit transaction
999
+ Redirected to http://www.example-client.com/restricted
1000
+ Completed 302 Found in 31ms (ActiveRecord: 22.7ms)
1001
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:39 +0000
1002
+ Processing by ExampleController#restricted as HTML
1003
+ 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
1004
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1005
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1034
1006
   (0.1ms) begin transaction
1035
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33067"]]
1036
-  (18.4ms) commit transaction
1007
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1008
+  (11.5ms) commit transaction
1009
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:40 +0000
1010
+ Processing by ExampleController#restricted as HTML
1011
+ 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
1012
+ Authenticating with gds_sso strategy
1013
+ Completed in 2ms
1014
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:06:40 +0000
1015
+ Started GET "/auth/gds/callback?code=f611f521076329a3eca0e62de304c4603c57874cdb29ae10a5d66ac5b0ff7356&state=dd3c17b954643f004b3eb2433695a634b04a972ceb013556" for 127.0.0.1 at 2014-11-20 14:06:40 +0000
1016
+ Processing by AuthenticationsController#callback as HTML
1017
+ Parameters: {"code"=>"f611f521076329a3eca0e62de304c4603c57874cdb29ae10a5d66ac5b0ff7356", "state"=>"dd3c17b954643f004b3eb2433695a634b04a972ceb013556"}
1018
+ Authenticating with gds_sso strategy
1019
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1037
1020
   (0.1ms) begin transaction
1038
- 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", "a1s2d3744"]]
1039
-  (10.6ms) commit transaction
1040
- Processing by Api::UserController#update as HTML
1041
- Parameters: {"uid"=>"a1s2d33067"}
1042
- Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
1021
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1022
+  (9.6ms) commit transaction
1043
1023
   (0.1ms) begin transaction
1044
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36884"]]
1045
-  (10.2ms) commit transaction
1046
-  (0.1ms) begin transaction
1047
- 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", "a1s2d381"]]
1048
-  (15.3ms) commit transaction
1049
- Processing by Api::UserController#update as HTML
1050
- Parameters: {"uid"=>"a1s2d36884"}
1051
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36884' ORDER BY "users"."id" ASC LIMIT 1
1024
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1025
+  (10.0ms) commit transaction
1026
+ Redirected to http://www.example-client.com/restricted
1027
+ Completed 302 Found in 26ms (ActiveRecord: 20.5ms)
1028
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:06:40 +0000
1029
+ Processing by ExampleController#restricted as HTML
1030
+ 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
1031
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1032
+  (0.1ms) begin transaction
1033
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32393"]]
1034
+  (15.4ms) commit transaction
1052
1035
   (0.1ms) begin transaction
1053
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
1054
-  (13.9ms) commit transaction
1055
- Completed 200 OK in 18ms (ActiveRecord: 14.4ms)
1056
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1036
+ 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", "a1s2d38157"]]
1037
+  (38.2ms) commit transaction
1038
+ Processing by Api::UserController#reauth as HTML
1039
+ Parameters: {"uid"=>"nonexistent-user"}
1040
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1041
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
1057
1042
   (0.1ms) begin transaction
1058
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35753"]]
1043
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31990"]]
1059
1044
   (12.9ms) commit transaction
1060
1045
   (0.1ms) begin transaction
1061
- 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", "a1s2d33729"]]
1062
-  (27.9ms) commit transaction
1046
+ 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", "a1s2d33045"]]
1047
+  (14.5ms) commit transaction
1048
+ Processing by Api::UserController#reauth as HTML
1049
+ Parameters: {"uid"=>"a1s2d31990"}
1050
+ Completed 403 Forbidden in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
1051
+  (0.1ms) begin transaction
1052
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33679"]]
1053
+  (16.9ms) commit transaction
1054
+  (0.1ms) begin transaction
1055
+ 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", "a1s2d37545"]]
1056
+  (22.1ms) commit transaction
1063
1057
  Processing by Api::UserController#reauth as HTML
1064
- Parameters: {"uid"=>"a1s2d35753"}
1065
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35753' ORDER BY "users"."id" ASC LIMIT 1
1058
+ Parameters: {"uid"=>"a1s2d33679"}
1059
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33679' ORDER BY "users"."id" ASC LIMIT 1
1066
1060
   (0.1ms) begin transaction
1067
1061
  SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 6 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1068
-  (10.8ms) commit transaction
1069
- Completed 200 OK in 14ms (ActiveRecord: 11.2ms)
1070
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1062
+  (12.0ms) commit transaction
1063
+ Completed 200 OK in 16ms (ActiveRecord: 12.6ms)
1064
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1071
1065
   (0.1ms) begin transaction
1072
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3263"]]
1073
-  (27.7ms) commit transaction
1066
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32901"]]
1067
+  (17.0ms) commit transaction
1074
1068
   (0.1ms) begin transaction
1075
- 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", "a1s2d33844"]]
1076
-  (22.7ms) commit transaction
1077
- Processing by Api::UserController#reauth as HTML
1078
- Parameters: {"uid"=>"nonexistent-user"}
1079
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1080
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1069
+ 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", "a1s2d35191"]]
1070
+  (16.5ms) commit transaction
1071
+ Processing by Api::UserController#update as HTML
1072
+ Parameters: {"uid"=>"a1s2d32901"}
1073
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32901' ORDER BY "users"."id" ASC LIMIT 1
1081
1074
   (0.1ms) begin transaction
1082
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33361"]]
1083
-  (12.2ms) commit transaction
1075
+ SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 8 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
1076
+  (14.6ms) commit transaction
1077
+ Completed 200 OK in 20ms (ActiveRecord: 15.2ms)
1078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1079
+  (0.1ms) begin transaction
1080
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38267"]]
1081
+  (16.3ms) commit transaction
1084
1082
   (0.1ms) begin transaction
1085
- 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", "a1s2d34004"]]
1086
-  (11.2ms) commit transaction
1087
- Processing by Api::UserController#reauth as HTML
1088
- Parameters: {"uid"=>"a1s2d33361"}
1089
- Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1083
+ 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", "a1s2d39370"]]
1084
+  (14.9ms) commit transaction
1085
+ Processing by Api::UserController#update as HTML
1086
+ Parameters: {"uid"=>"a1s2d38267"}
1087
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1090
1088
  Connecting to database specified by database.yml
1091
1089
   (0.1ms) begin transaction
1092
- SQL (12.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36591"]]
1093
-  (22.2ms) commit transaction
1090
+ 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", "a1s2d39640"]]
1091
+  (38.7ms) commit transaction
1094
1092
   (0.1ms) begin transaction
1095
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33443"]]
1096
-  (22.4ms) commit transaction
1093
+ 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", "a1s2d32172"]]
1094
+  (11.6ms) commit transaction
1097
1095
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
1098
1096
  Processing by Api::UserController#update as HTML
1099
- Parameters: {"uid"=>"a1s2d36591"}
1097
+ Parameters: {"uid"=>"a1s2d39640"}
1100
1098
  Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1101
- Completed 403 Forbidden in 6.7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1099
+ Completed 403 Forbidden in 7.1ms (Views: 6.4ms | ActiveRecord: 0.0ms)
1102
1100
   (0.1ms) begin transaction
1103
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34245"]]
1104
-  (17.5ms) commit transaction
1101
+ 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", "a1s2d34620"]]
1102
+  (19.4ms) commit transaction
1105
1103
   (0.1ms) begin transaction
1106
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32564"]]
1107
-  (11.8ms) commit transaction
1104
+ 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", "a1s2d38526"]]
1105
+  (36.0ms) commit transaction
1108
1106
  Processing by Api::UserController#update as HTML
1109
- Parameters: {"uid"=>"a1s2d34245"}
1110
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34245' LIMIT 1
1107
+ Parameters: {"uid"=>"a1s2d34620"}
1108
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34620' LIMIT 1
1111
1109
   (0.0ms) begin transaction
1112
1110
   (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1113
1111
  - signin
1114
1112
  - new permission
1115
1113
  ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
1116
-  (16.4ms) commit transaction
1117
- Completed 200 OK in 22.6ms (ActiveRecord: 16.8ms)
1118
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1114
+  (18.2ms) commit transaction
1115
+ Completed 200 OK in 27.1ms (ActiveRecord: 18.8ms)
1116
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1119
1117
   (0.1ms) begin transaction
1120
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38521"]]
1121
-  (12.0ms) commit transaction
1118
+ 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", "a1s2d38855"]]
1119
+  (16.4ms) commit transaction
1122
1120
   (0.1ms) begin transaction
1123
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34402"]]
1124
-  (11.4ms) commit transaction
1125
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
1121
+ 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", "a1s2d37785"]]
1122
+  (22.2ms) commit transaction
1126
1123
  Processing by Api::UserController#reauth as HTML
1127
- Parameters: {"uid"=>"a1s2d38521"}
1128
- Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1129
-  (0.1ms) begin transaction
1130
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39168"]]
1131
-  (10.9ms) commit transaction
1124
+ Parameters: {"uid"=>"a1s2d38855"}
1125
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38855' LIMIT 1
1126
+  (0.0ms) begin transaction
1127
+  (0.4ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1128
+ - signin
1129
+ ' WHERE "users"."id" = 5
1130
+  (12.8ms) commit transaction
1131
+ Completed 200 OK in 16.4ms (ActiveRecord: 13.5ms)
1132
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1132
1133
   (0.1ms) begin transaction
1133
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31545"]]
1134
-  (10.0ms) commit transaction
1134
+ 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", "a1s2d32001"]]
1135
+  (19.9ms) commit transaction
1136
+  (0.1ms) begin transaction
1137
+ 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", "a1s2d35273"]]
1138
+  (11.9ms) commit transaction
1139
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1135
1140
  Processing by Api::UserController#reauth as HTML
1136
- Parameters: {"uid"=>"nonexistent-user"}
1137
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1138
- Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
1139
-  (0.0ms) begin transaction
1140
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36285"]]
1141
-  (12.0ms) commit transaction
1141
+ Parameters: {"uid"=>"a1s2d32001"}
1142
+ Completed 403 Forbidden in 2.1ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1143
+  (0.1ms) begin transaction
1144
+ 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", "a1s2d36854"]]
1145
+  (20.1ms) commit transaction
1142
1146
   (0.1ms) begin transaction
1143
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34931"]]
1144
-  (14.6ms) commit transaction
1147
+ 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", "a1s2d35579"]]
1148
+  (15.2ms) commit transaction
1145
1149
  Processing by Api::UserController#reauth as HTML
1146
- Parameters: {"uid"=>"a1s2d36285"}
1147
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36285' LIMIT 1
1148
-  (0.0ms) begin transaction
1149
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1150
- - signin
1151
- ' WHERE "users"."id" = 9
1152
-  (12.5ms) commit transaction
1153
- Completed 200 OK in 15.0ms (ActiveRecord: 12.8ms)
1154
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1155
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:24:22 +0000
1150
+ Parameters: {"uid"=>"nonexistent-user"}
1151
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1152
+ Completed 200 OK in 1.6ms (ActiveRecord: 0.6ms)
1153
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:07:00 +0000
1156
1154
  Processing by ExampleController#index as HTML
1157
- Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1158
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1159
- Processing by ExampleController#restricted as HTML
1155
+ Completed 200 OK in 2.4ms (Views: 2.0ms | ActiveRecord: 0.0ms)
1156
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1157
+ Processing by ExampleController#this_requires_signin_permission as HTML
1160
1158
  Authenticating with gds_sso strategy
1161
- Completed in 2.6ms
1162
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1163
- Started GET "/auth/gds/callback?code=049128b9505521dc3198c97b1280a6ec791faac433cf860bb32ec7d82b46ab3a&state=ab21cc7555bd917873fad3fa7a39cc53b17a1fb976ddd398" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1159
+ Completed in 0.8ms
1160
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1161
+ Started GET "/auth/gds/callback?code=300ad62c83ee2f432416a1f25ef3898d21980b35a593757c9e3f2265ecce645d&state=c53b2ed361c03e5e74b86cdc55fd88a7ff2fc9ba357d2574" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1164
1162
  Processing by AuthenticationsController#callback as HTML
1165
- Parameters: {"code"=>"049128b9505521dc3198c97b1280a6ec791faac433cf860bb32ec7d82b46ab3a", "state"=>"ab21cc7555bd917873fad3fa7a39cc53b17a1fb976ddd398"}
1163
+ Parameters: {"code"=>"300ad62c83ee2f432416a1f25ef3898d21980b35a593757c9e3f2265ecce645d", "state"=>"c53b2ed361c03e5e74b86cdc55fd88a7ff2fc9ba357d2574"}
1166
1164
  Authenticating with gds_sso strategy
1167
1165
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1168
1166
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1169
1167
   (0.0ms) begin transaction
1170
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1171
-  (10.1ms) commit transaction
1168
+ SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?) [["disabled", nil], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
1169
+  (18.1ms) commit transaction
1172
1170
   (0.1ms) begin transaction
1173
1171
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1174
1172
  - signin
1175
1173
  ' WHERE "users"."id" = 11
1176
-  (8.2ms) commit transaction
1177
- Redirected to http://www.example-client.com/restricted
1178
- Completed 302 Found in 24.8ms (ActiveRecord: 18.9ms)
1179
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1180
- Processing by ExampleController#restricted as HTML
1174
+  (27.9ms) commit transaction
1175
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1176
+ Completed 302 Found in 53.4ms (ActiveRecord: 46.9ms)
1177
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1178
+ Processing by ExampleController#this_requires_signin_permission as HTML
1181
1179
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1182
- Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1183
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1184
- Processing by ExampleController#restricted as HTML
1180
+ Completed 200 OK in 1.9ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1181
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1182
+ Processing by ExampleController#this_requires_signin_permission as HTML
1185
1183
  Authenticating with gds_sso strategy
1186
- Completed in 0.3ms
1187
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1188
- Started GET "/auth/gds/callback?code=cb6168779f21e1ae0507ce5ec0ce3be7d3ba17dd05954f2c074eb3804337645a&state=6969c090136c3ae432e119aa0655152e820d6ec3bb7fc14f" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1184
+ Completed in 0.2ms
1185
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:01 +0000
1186
+ Started GET "/auth/gds/callback?code=0616d1af63e7da1f68cd0f35d7a8ca667ebf2b97aa4a933a73ab738e074b6573&state=8e87cda45a4243ca34f5cb4ce8c5f6b6a156666b14ab2525" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1189
1187
  Processing by AuthenticationsController#callback as HTML
1190
- Parameters: {"code"=>"cb6168779f21e1ae0507ce5ec0ce3be7d3ba17dd05954f2c074eb3804337645a", "state"=>"6969c090136c3ae432e119aa0655152e820d6ec3bb7fc14f"}
1188
+ Parameters: {"code"=>"0616d1af63e7da1f68cd0f35d7a8ca667ebf2b97aa4a933a73ab738e074b6573", "state"=>"8e87cda45a4243ca34f5cb4ce8c5f6b6a156666b14ab2525"}
1191
1189
  Authenticating with gds_sso strategy
1192
1190
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1193
-  (0.1ms) begin transaction
1191
+  (0.0ms) begin transaction
1194
1192
   (0.2ms) UPDATE "users" SET "permissions" = '---
1195
1193
  - signin
1196
1194
  ' WHERE "users"."id" = 11
1197
-  (22.2ms) commit transaction
1195
+  (18.1ms) commit transaction
1198
1196
   (0.1ms) begin transaction
1199
1197
   (0.2ms) UPDATE "users" SET "permissions" = '---
1200
1198
  - signin
1201
1199
  ' WHERE "users"."id" = 11
1202
-  (22.4ms) commit transaction
1203
- Redirected to http://www.example-client.com/restricted
1204
- Completed 302 Found in 50.7ms (ActiveRecord: 45.4ms)
1205
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1206
- Processing by ExampleController#restricted as HTML
1200
+  (13.9ms) commit transaction
1201
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1202
+ Completed 302 Found in 38.1ms (ActiveRecord: 32.7ms)
1203
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1204
+ Processing by ExampleController#this_requires_signin_permission as HTML
1207
1205
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1208
- Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1209
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1206
+ Completed 200 OK in 1.8ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1207
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1210
1208
  Processing by ExampleController#restricted as HTML
1211
1209
  Authenticating with gds_sso strategy
1212
- Completed in 0.2ms
1213
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1214
- Started GET "/auth/gds/callback?code=7f14e7c7739affebe4ca7b0535caeac4e026c09ccc1a2eb9d3a1002e04d2f177&state=c583c8001e465b1080b08504a0911847ef64edc3b8c971db" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1210
+ Completed in 0.6ms
1211
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1212
+ Started GET "/auth/gds/callback?code=e31c8cfba445744ff3c426fea532af5bb80ae8956726405b6daf519b6a10cc00&state=0230c5bd07a188e7973f1b88bd99fa4b39a56a37f5f0defe" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1215
1213
  Processing by AuthenticationsController#callback as HTML
1216
- Parameters: {"code"=>"7f14e7c7739affebe4ca7b0535caeac4e026c09ccc1a2eb9d3a1002e04d2f177", "state"=>"c583c8001e465b1080b08504a0911847ef64edc3b8c971db"}
1214
+ Parameters: {"code"=>"e31c8cfba445744ff3c426fea532af5bb80ae8956726405b6daf519b6a10cc00", "state"=>"0230c5bd07a188e7973f1b88bd99fa4b39a56a37f5f0defe"}
1217
1215
  Authenticating with gds_sso strategy
1218
1216
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1219
1217
   (0.0ms) begin transaction
1220
1218
   (0.2ms) UPDATE "users" SET "permissions" = '---
1221
1219
  - signin
1222
1220
  ' WHERE "users"."id" = 11
1223
-  (17.9ms) commit transaction
1221
+  (22.9ms) commit transaction
1224
1222
   (0.1ms) begin transaction
1225
1223
   (0.2ms) UPDATE "users" SET "permissions" = '---
1226
1224
  - signin
1227
1225
  ' WHERE "users"."id" = 11
1228
-  (19.5ms) commit transaction
1226
+  (15.5ms) commit transaction
1229
1227
  Redirected to http://www.example-client.com/restricted
1230
- Completed 302 Found in 42.9ms (ActiveRecord: 38.2ms)
1231
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1228
+ Completed 302 Found in 45.2ms (ActiveRecord: 39.3ms)
1229
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:02 +0000
1232
1230
  Processing by ExampleController#restricted as HTML
1233
1231
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1234
- Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1235
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1236
- Processing by ExampleController#this_requires_signin_permission as HTML
1232
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1233
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1234
+ Processing by ExampleController#restricted as HTML
1237
1235
  Authenticating with gds_sso strategy
1238
- Completed in 0.6ms
1239
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1240
- Started GET "/auth/gds/callback?code=907b05f3cd27426b709220eb2f4a7560d300dd752c538e9c7ae82d514533ba9b&state=66b8a4232e98659ae9b17bbd6b6839a76bd692941aeec29f" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1236
+ Completed in 0.3ms
1237
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1238
+ Started GET "/auth/gds/callback?code=42f334f76f0f6e161dbec1bb06ce47fe422e4b2d7f85dbda6f748b314735e723&state=afd3e005d074a4e66b323a7cba2aff56656c547340b1bb25" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1241
1239
  Processing by AuthenticationsController#callback as HTML
1242
- Parameters: {"code"=>"907b05f3cd27426b709220eb2f4a7560d300dd752c538e9c7ae82d514533ba9b", "state"=>"66b8a4232e98659ae9b17bbd6b6839a76bd692941aeec29f"}
1240
+ Parameters: {"code"=>"42f334f76f0f6e161dbec1bb06ce47fe422e4b2d7f85dbda6f748b314735e723", "state"=>"afd3e005d074a4e66b323a7cba2aff56656c547340b1bb25"}
1243
1241
  Authenticating with gds_sso strategy
1244
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1245
-  (0.0ms) begin transaction
1246
-  (0.2ms) UPDATE "users" SET "permissions" = '---
1242
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1243
+  (0.1ms) begin transaction
1244
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1247
1245
  - signin
1248
1246
  ' WHERE "users"."id" = 11
1249
-  (12.5ms) commit transaction
1247
+  (18.5ms) commit transaction
1250
1248
   (0.1ms) begin transaction
1251
1249
   (0.2ms) UPDATE "users" SET "permissions" = '---
1252
1250
  - signin
1253
1251
  ' WHERE "users"."id" = 11
1254
-  (6.6ms) commit transaction
1255
- Redirected to http://www.example-client.com/this_requires_signin_permission
1256
- Completed 302 Found in 24.4ms (ActiveRecord: 19.7ms)
1257
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1258
- Processing by ExampleController#this_requires_signin_permission as HTML
1259
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1260
- Completed 200 OK in 1.9ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1261
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1262
- Processing by ExampleController#this_requires_signin_permission as HTML
1252
+  (24.8ms) commit transaction
1253
+ Redirected to http://www.example-client.com/restricted
1254
+ Completed 302 Found in 50.4ms (ActiveRecord: 44.2ms)
1255
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1256
+ Processing by ExampleController#restricted as HTML
1257
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1258
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1259
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1260
+ Processing by ExampleController#restricted as HTML
1263
1261
  Authenticating with gds_sso strategy
1264
1262
  Completed in 0.2ms
1265
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1266
- Started GET "/auth/gds/callback?code=2dfe11eb90f9f53a53b3896bb324d69f4aa15f1ab78dacefcd0e546aafbc1eac&state=66007160269c5639731712be4bbe53648ce9722f8dae9c37" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1263
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1264
+ Started GET "/auth/gds/callback?code=0df3558ab63701792fa72439bb95dea288354ee8505149adcc3afef762fd9026&state=3333bf52ec5046dc79deeb0121fb0781dbac126ec36f22b9" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1267
1265
  Processing by AuthenticationsController#callback as HTML
1268
- Parameters: {"code"=>"2dfe11eb90f9f53a53b3896bb324d69f4aa15f1ab78dacefcd0e546aafbc1eac", "state"=>"66007160269c5639731712be4bbe53648ce9722f8dae9c37"}
1266
+ Parameters: {"code"=>"0df3558ab63701792fa72439bb95dea288354ee8505149adcc3afef762fd9026", "state"=>"3333bf52ec5046dc79deeb0121fb0781dbac126ec36f22b9"}
1269
1267
  Authenticating with gds_sso strategy
1270
1268
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1271
1269
   (0.0ms) begin transaction
1272
1270
   (0.2ms) UPDATE "users" SET "permissions" = '---
1273
1271
  - signin
1274
1272
  ' WHERE "users"."id" = 11
1275
-  (12.2ms) commit transaction
1273
+  (12.1ms) commit transaction
1276
1274
   (0.1ms) begin transaction
1277
1275
   (0.2ms) UPDATE "users" SET "permissions" = '---
1278
1276
  - signin
1279
1277
  ' WHERE "users"."id" = 11
1280
-  (5.9ms) commit transaction
1281
- Redirected to http://www.example-client.com/this_requires_signin_permission
1282
- Completed 302 Found in 23.4ms (ActiveRecord: 18.7ms)
1283
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1284
- Processing by ExampleController#this_requires_signin_permission as HTML
1285
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1286
- Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1287
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1278
+  (12.8ms) commit transaction
1279
+ Redirected to http://www.example-client.com/restricted
1280
+ Completed 302 Found in 30.7ms (ActiveRecord: 25.6ms)
1281
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:03 +0000
1282
+ Processing by ExampleController#restricted as HTML
1283
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1284
+ Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1285
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1288
1286
  Processing by ExampleController#restricted as HTML
1289
1287
  Authenticating with gds_sso strategy
1290
1288
  Completed in 0.3ms
1291
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1292
- Started GET "/auth/gds/callback?code=c0f574c3db995cc3c521030f1517b7b1ce5eab97ed404551ae84f498c66e57ce&state=a04fd6d7c61d384077a87fe5702d070783331ce0dd576fd1" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1289
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1290
+ Started GET "/auth/gds/callback?code=dc819cd32e3b10fe86a1ab63503d3f091a8f3e25d3c9b49768eb5c9c78c49ff8&state=f7fce5619118895df15bdd8c38994a5b90678a7c0f780de2" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1293
1291
  Processing by AuthenticationsController#callback as HTML
1294
- Parameters: {"code"=>"c0f574c3db995cc3c521030f1517b7b1ce5eab97ed404551ae84f498c66e57ce", "state"=>"a04fd6d7c61d384077a87fe5702d070783331ce0dd576fd1"}
1292
+ Parameters: {"code"=>"dc819cd32e3b10fe86a1ab63503d3f091a8f3e25d3c9b49768eb5c9c78c49ff8", "state"=>"f7fce5619118895df15bdd8c38994a5b90678a7c0f780de2"}
1295
1293
  Authenticating with gds_sso strategy
1296
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1297
-  (0.1ms) begin transaction
1294
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1295
+  (0.0ms) begin transaction
1298
1296
   (0.2ms) UPDATE "users" SET "permissions" = '---
1299
1297
  - signin
1300
1298
  ' WHERE "users"."id" = 11
1301
-  (11.6ms) commit transaction
1299
+  (19.4ms) commit transaction
1302
1300
   (0.1ms) begin transaction
1303
1301
   (0.2ms) UPDATE "users" SET "permissions" = '---
1304
1302
  - signin
1305
1303
  ' WHERE "users"."id" = 11
1306
-  (11.8ms) commit transaction
1304
+  (20.6ms) commit transaction
1307
1305
  Redirected to http://www.example-client.com/restricted
1308
- Completed 302 Found in 29.1ms (ActiveRecord: 24.0ms)
1309
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1306
+ Completed 302 Found in 57.6ms (ActiveRecord: 40.8ms)
1307
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1310
1308
  Processing by ExampleController#restricted as HTML
1311
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1312
- Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1313
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1309
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1310
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1311
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1314
1312
   (0.0ms) begin transaction
1315
1313
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1316
1314
  - signin
1317
1315
  ' WHERE "users"."id" = 11
1318
-  (10.9ms) commit transaction
1319
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1316
+  (55.0ms) commit transaction
1317
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1320
1318
  Processing by ExampleController#restricted as HTML
1321
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1319
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1322
1320
  Authenticating with gds_sso strategy
1323
- Completed in 1.0ms
1324
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1325
- Started GET "/auth/gds/callback?code=c696436a1cd23a3c8ebba0e7a0915ae1bd89080e3ab367bfd3b93e815ffad456&state=d8d9a434871214c3ce9e329194088c23b4d03eecf12eb862" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1321
+ Completed in 1.3ms
1322
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1323
+ Started GET "/auth/gds/callback?code=1f3c719224309aa6421d22f890abb43305311a7b3cabf4c85a738054b5731cb3&state=8eb4bb5177c539b5e79e9450321d79a53a256fc9443341dc" for 127.0.0.1 at 2014-11-20 14:07:04 +0000
1326
1324
  Processing by AuthenticationsController#callback as HTML
1327
- Parameters: {"code"=>"c696436a1cd23a3c8ebba0e7a0915ae1bd89080e3ab367bfd3b93e815ffad456", "state"=>"d8d9a434871214c3ce9e329194088c23b4d03eecf12eb862"}
1325
+ Parameters: {"code"=>"1f3c719224309aa6421d22f890abb43305311a7b3cabf4c85a738054b5731cb3", "state"=>"8eb4bb5177c539b5e79e9450321d79a53a256fc9443341dc"}
1328
1326
  Authenticating with gds_sso strategy
1329
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1327
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1330
1328
   (0.0ms) begin transaction
1331
1329
   (0.2ms) UPDATE "users" SET "permissions" = '---
1332
1330
  - signin
1333
1331
  ' WHERE "users"."id" = 11
1334
-  (11.2ms) commit transaction
1332
+  (21.1ms) commit transaction
1335
1333
   (0.1ms) begin transaction
1336
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1334
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1337
1335
  - signin
1338
1336
  ' WHERE "users"."id" = 11
1339
-  (9.7ms) commit transaction
1337
+  (26.6ms) commit transaction
1340
1338
  Redirected to http://www.example-client.com/restricted
1341
- Completed 302 Found in 25.6ms (ActiveRecord: 21.4ms)
1342
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1339
+ Completed 302 Found in 53.8ms (ActiveRecord: 48.4ms)
1340
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1343
1341
  Processing by ExampleController#restricted as HTML
1344
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1345
- Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1346
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1342
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1343
+ Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1344
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1347
1345
  Processing by ExampleController#restricted as HTML
1348
1346
  Authenticating with gds_sso strategy
1349
- Completed in 0.2ms
1350
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1351
- Started GET "/auth/gds/callback?code=832cd58ace2579f1fc60b3613ff253ff9b866654d2443df6382acc1e3bf50669&state=bfc736d7bc8f869f4fe12b89d0617c6900a13c024c8f49bd" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1347
+ Completed in 0.4ms
1348
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1349
+ Started GET "/auth/gds/callback?code=8e23e709a247ce42c16de9641abde8904937959c96fcc310f5226a640e60ecf8&state=52b5e47166e1bbaaaaf567022ae6e111a5b6d75db2eb40d3" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1352
1350
  Processing by AuthenticationsController#callback as HTML
1353
- Parameters: {"code"=>"832cd58ace2579f1fc60b3613ff253ff9b866654d2443df6382acc1e3bf50669", "state"=>"bfc736d7bc8f869f4fe12b89d0617c6900a13c024c8f49bd"}
1351
+ Parameters: {"code"=>"8e23e709a247ce42c16de9641abde8904937959c96fcc310f5226a640e60ecf8", "state"=>"52b5e47166e1bbaaaaf567022ae6e111a5b6d75db2eb40d3"}
1354
1352
  Authenticating with gds_sso strategy
1355
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1356
-  (0.1ms) begin transaction
1353
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1354
+  (0.0ms) begin transaction
1357
1355
   (0.2ms) UPDATE "users" SET "permissions" = '---
1358
1356
  - signin
1359
1357
  ' WHERE "users"."id" = 11
1360
-  (11.1ms) commit transaction
1361
-  (0.0ms) begin transaction
1362
-  (0.1ms) UPDATE "users" SET "permissions" = '---
1358
+  (18.7ms) commit transaction
1359
+  (0.1ms) begin transaction
1360
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1363
1361
  - signin
1364
1362
  ' WHERE "users"."id" = 11
1365
-  (10.5ms) commit transaction
1363
+  (19.9ms) commit transaction
1366
1364
  Redirected to http://www.example-client.com/restricted
1367
- Completed 302 Found in 26.7ms (ActiveRecord: 22.2ms)
1368
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1365
+ Completed 302 Found in 45.9ms (ActiveRecord: 39.5ms)
1366
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1369
1367
  Processing by ExampleController#restricted as HTML
1370
1368
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1371
- Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1372
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1369
+ Completed 200 OK in 1.8ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1370
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:05 +0000
1373
1371
  Processing by ExampleController#restricted as HTML
1374
1372
  Authenticating with gds_sso strategy
1375
1373
  Completed in 0.4ms
1376
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1377
- Started GET "/auth/gds/callback?code=ec82ea483bc36e92586817b9ea903c904e974e3a3992c84cac7cb6b80cb557f0&state=a82626753c9adacef196a3ce99b42fc2faf27a0746bbe073" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1374
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:12:05 +0000
1375
+ Started GET "/auth/gds/callback?code=b30382e19223218c7fcef4dd0217985f6b05ba33c7f276be421d14f304e47031&state=0b81424d2c8ff6cefb0fb030e2aee6283ea7a18fd0196014" for 127.0.0.1 at 2014-11-21 10:12:05 +0000
1378
1376
  Processing by AuthenticationsController#callback as HTML
1379
- Parameters: {"code"=>"ec82ea483bc36e92586817b9ea903c904e974e3a3992c84cac7cb6b80cb557f0", "state"=>"a82626753c9adacef196a3ce99b42fc2faf27a0746bbe073"}
1377
+ Parameters: {"code"=>"b30382e19223218c7fcef4dd0217985f6b05ba33c7f276be421d14f304e47031", "state"=>"0b81424d2c8ff6cefb0fb030e2aee6283ea7a18fd0196014"}
1380
1378
  Authenticating with gds_sso strategy
1381
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1379
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1382
1380
   (0.1ms) begin transaction
1383
1381
   (0.2ms) UPDATE "users" SET "permissions" = '---
1384
1382
  - signin
1385
1383
  ' WHERE "users"."id" = 11
1386
-  (9.6ms) commit transaction
1384
+  (12.2ms) commit transaction
1387
1385
   (0.1ms) begin transaction
1388
1386
   (0.2ms) UPDATE "users" SET "permissions" = '---
1389
1387
  - signin
1390
1388
  ' WHERE "users"."id" = 11
1391
-  (29.2ms) commit transaction
1389
+  (11.4ms) commit transaction
1392
1390
  Redirected to http://www.example-client.com/restricted
1393
- Completed 302 Found in 44.1ms (ActiveRecord: 39.4ms)
1394
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1391
+ Completed 302 Found in 30.0ms (ActiveRecord: 24.5ms)
1392
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:05 +0000
1395
1393
  Processing by ExampleController#restricted as HTML
1396
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1397
- Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1398
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1394
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1395
+ Completed 200 OK in 1.9ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1396
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1399
1397
  Processing by ExampleController#restricted as HTML
1400
1398
  Authenticating with gds_sso strategy
1401
- Completed in 0.2ms
1402
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1403
- Started GET "/auth/gds/callback?code=371c417edad02f67c5e78149169a71d28218c69bfa6b68ea6bddc7a977590f9a&state=4795bf9e9b82dfd340befc84f4f70fd8c952020d9f1b7540" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1399
+ Completed in 0.3ms
1400
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:05 +0000
1401
+ Started GET "/auth/gds/callback?code=f275d04361fc87bebbd45611e3e8e7c7a5d53990427265d8376e98d7bb468104&state=1603f8c0adc5e16b42fa583c5e6f32f41508e200f4f3eb64" for 127.0.0.1 at 2014-11-20 14:07:06 +0000
1404
1402
  Processing by AuthenticationsController#callback as HTML
1405
- Parameters: {"code"=>"371c417edad02f67c5e78149169a71d28218c69bfa6b68ea6bddc7a977590f9a", "state"=>"4795bf9e9b82dfd340befc84f4f70fd8c952020d9f1b7540"}
1403
+ Parameters: {"code"=>"f275d04361fc87bebbd45611e3e8e7c7a5d53990427265d8376e98d7bb468104", "state"=>"1603f8c0adc5e16b42fa583c5e6f32f41508e200f4f3eb64"}
1406
1404
  Authenticating with gds_sso strategy
1407
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1408
-  (0.0ms) begin transaction
1409
-  (0.1ms) UPDATE "users" SET "permissions" = '---
1405
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1406
+  (0.1ms) begin transaction
1407
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1410
1408
  - signin
1411
1409
  ' WHERE "users"."id" = 11
1412
-  (9.7ms) commit transaction
1410
+  (16.2ms) commit transaction
1413
1411
   (0.1ms) begin transaction
1414
1412
   (0.2ms) UPDATE "users" SET "permissions" = '---
1415
1413
  - signin
1416
1414
  ' WHERE "users"."id" = 11
1417
-  (8.5ms) commit transaction
1415
+  (12.2ms) commit transaction
1418
1416
  Redirected to http://www.example-client.com/restricted
1419
- Completed 302 Found in 23.6ms (ActiveRecord: 18.8ms)
1420
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1417
+ Completed 302 Found in 35.1ms (ActiveRecord: 29.2ms)
1418
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:06 +0000
1421
1419
  Processing by ExampleController#restricted as HTML
1422
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1423
- Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1424
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:27 +0000
1420
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1421
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1422
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:02:06 +0000
1425
1423
  Processing by ExampleController#restricted as HTML
1426
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1427
- Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1428
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1424
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1425
+ Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1426
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:06 +0000
1429
1427
  Processing by ExampleController#restricted as JSON
1430
- Completed in 15.3ms
1431
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1428
+ Completed in 18.5ms
1429
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:06 +0000
1432
1430
  Processing by ExampleController#restricted as JSON
1433
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1431
+ Completed in 32.0ms
1432
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:07 +0000
1433
+ Processing by ExampleController#restricted as JSON
1434
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1434
1435
   (0.1ms) begin transaction
1435
1436
   (0.2ms) UPDATE "users" SET "permissions" = '---
1436
1437
  - signin
1437
1438
  ' WHERE "users"."id" = 11
1438
-  (11.8ms) commit transaction
1439
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1439
+  (12.2ms) commit transaction
1440
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1440
1441
   (0.0ms) begin transaction
1441
1442
   (0.2ms) UPDATE "users" SET "permissions" = '---
1442
1443
  - signin
1443
1444
  ' WHERE "users"."id" = 11
1444
-  (25.5ms) commit transaction
1445
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1446
-  (0.0ms) begin transaction
1445
+  (8.7ms) commit transaction
1446
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1447
+  (0.1ms) begin transaction
1447
1448
   (0.2ms) UPDATE "users" SET "permissions" = '---
1448
1449
  - signin
1449
1450
  ' WHERE "users"."id" = 11
1450
-  (8.8ms) commit transaction
1451
+  (10.7ms) commit transaction
1451
1452
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1452
1453
   (0.0ms) begin transaction
1453
1454
   (0.2ms) UPDATE "users" SET "permissions" = '---
1454
1455
  - signin
1455
1456
  ' WHERE "users"."id" = 11
1456
-  (8.3ms) commit transaction
1457
+  (11.3ms) commit transaction
1457
1458
   (0.1ms) begin transaction
1458
-  (0.2ms) UPDATE "users" SET "permissions" = '---
1459
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1459
1460
  - signin
1460
1461
  ' WHERE "users"."id" = 11
1461
-  (10.2ms) commit transaction
1462
- Completed 200 OK in 208.4ms (Views: 0.4ms | ActiveRecord: 66.5ms)
1463
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:28 +0000
1462
+  (14.2ms) commit transaction
1463
+ Completed 200 OK in 213.0ms (Views: 0.4ms | ActiveRecord: 59.7ms)
1464
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:07 +0000
1464
1465
  Processing by ExampleController#this_requires_signin_permission as JSON
1465
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1466
-  (0.0ms) begin transaction
1467
-  (0.2ms) UPDATE "users" SET "permissions" = '---
1466
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1467
+  (0.1ms) begin transaction
1468
+  (0.3ms) UPDATE "users" SET "permissions" = '---
1468
1469
  - signin
1469
1470
  ' WHERE "users"."id" = 11
1470
-  (8.6ms) commit transaction
1471
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1471
+  (12.7ms) commit transaction
1472
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1472
1473
   (0.0ms) begin transaction
1473
1474
   (0.2ms) UPDATE "users" SET "permissions" = '---
1474
1475
  - signin
1475
1476
  ' WHERE "users"."id" = 11
1476
-  (10.5ms) commit transaction
1477
+  (10.4ms) commit transaction
1477
1478
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1478
-  (0.0ms) begin transaction
1479
+  (0.1ms) begin transaction
1479
1480
   (0.2ms) UPDATE "users" SET "permissions" = '---
1480
1481
  - signin
1481
1482
  ' WHERE "users"."id" = 11
1482
-  (9.1ms) commit transaction
1483
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1483
+  (12.1ms) commit transaction
1484
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1484
1485
   (0.0ms) begin transaction
1485
1486
   (0.2ms) UPDATE "users" SET "permissions" = '---
1486
1487
  - signin
1487
1488
  ' WHERE "users"."id" = 11
1488
-  (11.6ms) commit transaction
1489
+  (16.8ms) commit transaction
1489
1490
   (0.1ms) begin transaction
1490
1491
   (0.2ms) UPDATE "users" SET "permissions" = '---
1491
1492
  - signin
1492
1493
  ' WHERE "users"."id" = 11
1493
-  (8.9ms) commit transaction
1494
- Completed 200 OK in 193.9ms (Views: 0.4ms | ActiveRecord: 50.6ms)
1495
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:28 +0000
1496
- Processing by ExampleController#restricted as JSON
1497
- Completed in 14.6ms
1498
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:46 +0000
1499
- Processing by ExampleController#this_requires_signin_permission as HTML
1494
+  (12.7ms) commit transaction
1495
+ Completed 200 OK in 217.8ms (Views: 0.4ms | ActiveRecord: 67.2ms)
1496
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:07:27 +0000
1497
+ Processing by ExampleController#index as HTML
1498
+ Rendered text template (0.0ms)
1499
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
1500
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:27 +0000
1501
+ Processing by ExampleController#restricted as HTML
1500
1502
  Authenticating with gds_sso strategy
1501
1503
  Completed in 14ms
1502
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:46 +0000
1503
- Started GET "/auth/gds/callback?code=ddd5761525b76f952b2bf9a4e82d1e9a6d8a160c30f470ac71d475101ec29f46&state=6c57dabed9d0f7df34eb96db8c3496e9a4f5a163890d5ec0" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1504
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:27 +0000
1505
+ Started GET "/auth/gds/callback?code=24db9cdd9d847c6003aa39d62a0f6683d3d39fabc9bc25db1bca4096f31e6d42&state=a8473a8c9410d2e347a4080a10912bfdceea8b8b82030c3c" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1504
1506
  Processing by AuthenticationsController#callback as HTML
1505
- Parameters: {"code"=>"ddd5761525b76f952b2bf9a4e82d1e9a6d8a160c30f470ac71d475101ec29f46", "state"=>"6c57dabed9d0f7df34eb96db8c3496e9a4f5a163890d5ec0"}
1507
+ Parameters: {"code"=>"24db9cdd9d847c6003aa39d62a0f6683d3d39fabc9bc25db1bca4096f31e6d42", "state"=>"a8473a8c9410d2e347a4080a10912bfdceea8b8b82030c3c"}
1506
1508
  Authenticating with gds_sso strategy
1507
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1509
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1508
1510
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1509
1511
   (0.1ms) begin transaction
1510
- 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"]]
1511
-  (7.7ms) commit transaction
1512
+ SQL (0.4ms) 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"]]
1513
+  (20.0ms) commit transaction
1512
1514
   (0.1ms) begin transaction
1513
- SQL (2.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1514
-  (14.4ms) commit transaction
1515
- Redirected to http://www.example-client.com/this_requires_signin_permission
1516
- Completed 302 Found in 46ms (ActiveRecord: 25.6ms)
1517
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1518
- Processing by ExampleController#this_requires_signin_permission as HTML
1519
- 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
1520
- Rendered text template (0.1ms)
1521
- Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.2ms)
1522
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1523
- Processing by ExampleController#this_requires_signin_permission as HTML
1515
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1516
+  (10.5ms) commit transaction
1517
+ Redirected to http://www.example-client.com/restricted
1518
+ Completed 302 Found in 56ms (ActiveRecord: 32.3ms)
1519
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1520
+ Processing by ExampleController#restricted as HTML
1521
+ 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
1522
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1523
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1524
+ Processing by ExampleController#restricted as HTML
1524
1525
  Authenticating with gds_sso strategy
1525
1526
  Completed in 0ms
1526
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1527
- Started GET "/auth/gds/callback?code=6cb9db3c52b8b3a0cd353f94d6c098abcbe6199055e14f7f1c66898e83536966&state=88c7780d960e96286d3041f8d3212594b3f776d0651702ba" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1527
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1528
+ Started GET "/auth/gds/callback?code=148d28c341b37c3269a5e9ad52b5b46cac31eb3eaab5dd9b0255af36f8ef9204&state=0f29833ba6fe15e60094b7ad2f87cfbb9bbb1e1307070fe5" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1528
1529
  Processing by AuthenticationsController#callback as HTML
1529
- Parameters: {"code"=>"6cb9db3c52b8b3a0cd353f94d6c098abcbe6199055e14f7f1c66898e83536966", "state"=>"88c7780d960e96286d3041f8d3212594b3f776d0651702ba"}
1530
+ Parameters: {"code"=>"148d28c341b37c3269a5e9ad52b5b46cac31eb3eaab5dd9b0255af36f8ef9204", "state"=>"0f29833ba6fe15e60094b7ad2f87cfbb9bbb1e1307070fe5"}
1530
1531
  Authenticating with gds_sso strategy
1531
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1532
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1532
1533
   (0.1ms) begin transaction
1533
- SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1534
-  (10.5ms) commit transaction
1534
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1535
+  (12.6ms) commit transaction
1535
1536
   (0.1ms) begin transaction
1536
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1537
-  (7.9ms) commit transaction
1538
- Redirected to http://www.example-client.com/this_requires_signin_permission
1539
- Completed 302 Found in 24ms (ActiveRecord: 19.2ms)
1540
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1541
- Processing by ExampleController#this_requires_signin_permission as HTML
1542
- 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
1543
- Rendered text template (0.0ms)
1544
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1545
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1537
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1538
+  (19.5ms) commit transaction
1539
+ Redirected to http://www.example-client.com/restricted
1540
+ Completed 302 Found in 38ms (ActiveRecord: 32.9ms)
1541
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1542
+ Processing by ExampleController#restricted as HTML
1543
+ 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
1544
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1545
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1546
1546
  Processing by ExampleController#restricted as HTML
1547
1547
  Authenticating with gds_sso strategy
1548
- Completed in 0ms
1549
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1550
- Started GET "/auth/gds/callback?code=50126bf7ad712c0b5759a70f0f31a1fcb815b110b7e8180cad459d991711a79e&state=df77d8f6da7b58f64c8ece48935711fbdac1dd105f717e06" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1548
+ Completed in 1ms
1549
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:28 +0000
1550
+ Started GET "/auth/gds/callback?code=4bd1b83f91efb602c89dc0037b3d8274da0b8fc40c0dd3955bc164b4f66486f2&state=c5364a35a4795160e723761752e1777e33ec324a2a14c275" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1551
1551
  Processing by AuthenticationsController#callback as HTML
1552
- Parameters: {"code"=>"50126bf7ad712c0b5759a70f0f31a1fcb815b110b7e8180cad459d991711a79e", "state"=>"df77d8f6da7b58f64c8ece48935711fbdac1dd105f717e06"}
1552
+ Parameters: {"code"=>"4bd1b83f91efb602c89dc0037b3d8274da0b8fc40c0dd3955bc164b4f66486f2", "state"=>"c5364a35a4795160e723761752e1777e33ec324a2a14c275"}
1553
1553
  Authenticating with gds_sso strategy
1554
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1554
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1555
1555
   (0.1ms) begin transaction
1556
1556
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1557
-  (13.5ms) commit transaction
1557
+  (10.8ms) commit transaction
1558
1558
   (0.1ms) begin transaction
1559
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1560
-  (9.9ms) commit transaction
1559
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1560
+  (17.7ms) commit transaction
1561
1561
  Redirected to http://www.example-client.com/restricted
1562
- Completed 302 Found in 29ms (ActiveRecord: 24.1ms)
1563
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1564
- Processing by ExampleController#restricted as HTML
1565
- 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
1566
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1567
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1562
+ Completed 302 Found in 35ms (ActiveRecord: 29.4ms)
1563
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1568
1564
  Processing by ExampleController#restricted as HTML
1565
+ 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
1566
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1567
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1568
+ Processing by ExampleController#this_requires_signin_permission as HTML
1569
1569
  Authenticating with gds_sso strategy
1570
1570
  Completed in 0ms
1571
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1572
- Started GET "/auth/gds/callback?code=382c08e4766dce4b4b0dc6955ed5ca6f14ecd65aaff441dbddb0534e7d95b8ae&state=b4ea8759e56dea634dcb7628ea2a61270937c7952b057281" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1571
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1572
+ Started GET "/auth/gds/callback?code=ed945eeb1e9cafcc3c94e53a0cf1b0c4064d6bcd3ee8538c6ea99a8fb8d49873&state=bc9320f5daadc99f065fd3c2d6a5ca785db3556af4952893" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1573
1573
  Processing by AuthenticationsController#callback as HTML
1574
- Parameters: {"code"=>"382c08e4766dce4b4b0dc6955ed5ca6f14ecd65aaff441dbddb0534e7d95b8ae", "state"=>"b4ea8759e56dea634dcb7628ea2a61270937c7952b057281"}
1574
+ Parameters: {"code"=>"ed945eeb1e9cafcc3c94e53a0cf1b0c4064d6bcd3ee8538c6ea99a8fb8d49873", "state"=>"bc9320f5daadc99f065fd3c2d6a5ca785db3556af4952893"}
1575
1575
  Authenticating with gds_sso strategy
1576
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1577
-  (0.1ms) begin transaction
1576
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1577
+  (0.3ms) begin transaction
1578
1578
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1579
-  (10.7ms) commit transaction
1579
+  (15.1ms) commit transaction
1580
1580
   (0.1ms) begin transaction
1581
1581
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1582
-  (9.6ms) commit transaction
1583
- Redirected to http://www.example-client.com/restricted
1584
- Completed 302 Found in 25ms (ActiveRecord: 20.9ms)
1585
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1586
- Processing by ExampleController#restricted as HTML
1587
- 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
1588
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1589
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1590
- Processing by ExampleController#index as HTML
1591
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1592
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1593
- Processing by ExampleController#restricted as HTML
1582
+  (12.8ms) commit transaction
1583
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1584
+ Completed 302 Found in 35ms (ActiveRecord: 29.1ms)
1585
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1586
+ Processing by ExampleController#this_requires_signin_permission as HTML
1587
+ 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
1588
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1589
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1590
+ Processing by ExampleController#this_requires_signin_permission as HTML
1594
1591
  Authenticating with gds_sso strategy
1595
1592
  Completed in 0ms
1596
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1597
- Started GET "/auth/gds/callback?code=3dac6ac9387873f76ecbc44bcbd0c087cdb798db4d1ccbba60e6510b452b9521&state=9d324f22911cd867e4dde2b9c492d84746d3eda88f042a23" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1593
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:29 +0000
1594
+ Started GET "/auth/gds/callback?code=7648c462f6891bd5f41c1699d88d4205139629968be92a2405e40f9f8e8a08d5&state=dbf35b15b8f47e6f34af8c6a4f4a3efb870f193b18acc4af" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1598
1595
  Processing by AuthenticationsController#callback as HTML
1599
- Parameters: {"code"=>"3dac6ac9387873f76ecbc44bcbd0c087cdb798db4d1ccbba60e6510b452b9521", "state"=>"9d324f22911cd867e4dde2b9c492d84746d3eda88f042a23"}
1596
+ Parameters: {"code"=>"7648c462f6891bd5f41c1699d88d4205139629968be92a2405e40f9f8e8a08d5", "state"=>"dbf35b15b8f47e6f34af8c6a4f4a3efb870f193b18acc4af"}
1600
1597
  Authenticating with gds_sso strategy
1601
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1598
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1602
1599
   (0.1ms) begin transaction
1603
1600
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1604
-  (9.6ms) commit transaction
1601
+  (12.4ms) commit transaction
1605
1602
   (0.1ms) begin transaction
1606
1603
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1607
-  (12.4ms) commit transaction
1608
- Redirected to http://www.example-client.com/restricted
1609
- Completed 302 Found in 28ms (ActiveRecord: 22.8ms)
1610
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1611
- Processing by ExampleController#restricted as HTML
1612
- 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
1613
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1614
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1604
+  (15.1ms) commit transaction
1605
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1606
+ Completed 302 Found in 34ms (ActiveRecord: 28.3ms)
1607
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1608
+ Processing by ExampleController#this_requires_signin_permission as HTML
1609
+ 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
1610
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1611
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1615
1612
  Processing by ExampleController#restricted as HTML
1616
1613
  Authenticating with gds_sso strategy
1617
- Completed in 0ms
1618
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1619
- Started GET "/auth/gds/callback?code=0f281d6794a806828440b67e427ae0dd997f531f63a9601b28d8c49f5d770ff4&state=9c04e464017635d714e53cb2bcc017f74b96d6a93e2c3e52" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1614
+ Completed in 1ms
1615
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1616
+ Started GET "/auth/gds/callback?code=2f6450f564dc88ea603ba991335dad2f9fe60a03239d79173436192c815ff260&state=7951298d074990f196872d8afe1d8cb1be0c7a3dd2a886b2" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1620
1617
  Processing by AuthenticationsController#callback as HTML
1621
- Parameters: {"code"=>"0f281d6794a806828440b67e427ae0dd997f531f63a9601b28d8c49f5d770ff4", "state"=>"9c04e464017635d714e53cb2bcc017f74b96d6a93e2c3e52"}
1618
+ Parameters: {"code"=>"2f6450f564dc88ea603ba991335dad2f9fe60a03239d79173436192c815ff260", "state"=>"7951298d074990f196872d8afe1d8cb1be0c7a3dd2a886b2"}
1622
1619
  Authenticating with gds_sso strategy
1623
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1620
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1624
1621
   (0.1ms) begin transaction
1625
1622
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1626
-  (8.4ms) commit transaction
1623
+  (10.9ms) commit transaction
1627
1624
   (0.1ms) begin transaction
1628
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1629
-  (13.3ms) commit transaction
1625
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1626
+  (17.5ms) commit transaction
1630
1627
  Redirected to http://www.example-client.com/restricted
1631
- Completed 302 Found in 27ms (ActiveRecord: 22.3ms)
1632
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1628
+ Completed 302 Found in 36ms (ActiveRecord: 29.4ms)
1629
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1633
1630
  Processing by ExampleController#restricted as HTML
1634
- 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
1635
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1636
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1631
+ 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
1632
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1633
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1637
1634
   (0.1ms) begin transaction
1638
1635
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1639
-  (83.0ms) commit transaction
1640
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1636
+  (14.2ms) commit transaction
1637
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1641
1638
  Processing by ExampleController#restricted as HTML
1642
1639
  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
1643
1640
  Authenticating with gds_sso strategy
1644
- Completed in 1ms
1645
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1646
- Started GET "/auth/gds/callback?code=5736b56828296a18869c885db51a79a00c1966ab69e04b9762448571a5a30aa3&state=8fa00e8df8cb520d1f631fd94acc19c2e146751f31e9f161" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1641
+ Completed in 2ms
1642
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:30 +0000
1643
+ Started GET "/auth/gds/callback?code=eb88f7545bf3663156781cada159d53ffe3919c03dfd38a1dba5159e94ac975c&state=e8877195c1cfe02c19968df1d1b1c126125b58100f3d7557" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1647
1644
  Processing by AuthenticationsController#callback as HTML
1648
- Parameters: {"code"=>"5736b56828296a18869c885db51a79a00c1966ab69e04b9762448571a5a30aa3", "state"=>"8fa00e8df8cb520d1f631fd94acc19c2e146751f31e9f161"}
1645
+ Parameters: {"code"=>"eb88f7545bf3663156781cada159d53ffe3919c03dfd38a1dba5159e94ac975c", "state"=>"e8877195c1cfe02c19968df1d1b1c126125b58100f3d7557"}
1649
1646
  Authenticating with gds_sso strategy
1650
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1647
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1651
1648
   (0.1ms) begin transaction
1652
1649
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1653
-  (13.1ms) commit transaction
1654
-  (0.1ms) begin transaction
1655
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1656
-  (13.4ms) commit transaction
1650
+  (9.8ms) commit transaction
1651
+  (0.2ms) begin transaction
1652
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1653
+  (10.3ms) commit transaction
1657
1654
  Redirected to http://www.example-client.com/restricted
1658
- Completed 302 Found in 31ms (ActiveRecord: 27.1ms)
1659
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1655
+ Completed 302 Found in 27ms (ActiveRecord: 21.2ms)
1656
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1660
1657
  Processing by ExampleController#restricted as HTML
1661
- 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
1662
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1663
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1658
+ 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
1659
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1660
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1664
1661
  Processing by ExampleController#restricted as HTML
1665
1662
  Authenticating with gds_sso strategy
1666
- Completed in 1ms
1667
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1668
- Started GET "/auth/gds/callback?code=dd673a9dd18c1b96c56da7203aa3692f6d80be4970dcbfc1494677490063d682&state=c7df9c834454ca17b37c8f73e812267ddd7fc03c64c9cc09" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1663
+ Completed in 0ms
1664
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1665
+ Started GET "/auth/gds/callback?code=7a8fdd39f76adc089349fd10a65450fd96df56fe88e33cfecf7ac02064e40911&state=5dff37ef18c15fe56140c63e429878b009a9530be2f19907" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1669
1666
  Processing by AuthenticationsController#callback as HTML
1670
- Parameters: {"code"=>"dd673a9dd18c1b96c56da7203aa3692f6d80be4970dcbfc1494677490063d682", "state"=>"c7df9c834454ca17b37c8f73e812267ddd7fc03c64c9cc09"}
1667
+ Parameters: {"code"=>"7a8fdd39f76adc089349fd10a65450fd96df56fe88e33cfecf7ac02064e40911", "state"=>"5dff37ef18c15fe56140c63e429878b009a9530be2f19907"}
1671
1668
  Authenticating with gds_sso strategy
1672
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1669
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1673
1670
   (0.1ms) begin transaction
1674
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1675
-  (10.6ms) commit transaction
1671
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1672
+  (15.6ms) commit transaction
1676
1673
   (0.1ms) begin transaction
1677
1674
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1678
-  (12.7ms) commit transaction
1675
+  (18.7ms) commit transaction
1679
1676
  Redirected to http://www.example-client.com/restricted
1680
- Completed 302 Found in 29ms (ActiveRecord: 24.1ms)
1681
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1677
+ Completed 302 Found in 42ms (ActiveRecord: 35.3ms)
1678
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1682
1679
  Processing by ExampleController#restricted as HTML
1683
- 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
1684
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1685
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1680
+ 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
1681
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1682
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:31 +0000
1686
1683
  Processing by ExampleController#restricted as HTML
1687
1684
  Authenticating with gds_sso strategy
1688
1685
  Completed in 1ms
1689
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1690
- Started GET "/auth/gds/callback?code=3a6dbf5531e084fd07832634d62c6ec45d505d6f0686f824f05ab539f5933af5&state=e25373d8b0f085616b3b3665de623de1cef7f6ea1c2a7d39" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1686
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:12:31 +0000
1687
+ Started GET "/auth/gds/callback?code=5e2077304c100c807fca800faafdb9fcb916044a8556c257a01d3559d4f9fc1a&state=ce24d0805bde438da5aebcd86e2579a367d66f142e459c3b" for 127.0.0.1 at 2014-11-21 10:12:31 +0000
1691
1688
  Processing by AuthenticationsController#callback as HTML
1692
- Parameters: {"code"=>"3a6dbf5531e084fd07832634d62c6ec45d505d6f0686f824f05ab539f5933af5", "state"=>"e25373d8b0f085616b3b3665de623de1cef7f6ea1c2a7d39"}
1689
+ Parameters: {"code"=>"5e2077304c100c807fca800faafdb9fcb916044a8556c257a01d3559d4f9fc1a", "state"=>"ce24d0805bde438da5aebcd86e2579a367d66f142e459c3b"}
1693
1690
  Authenticating with gds_sso strategy
1694
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1691
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1695
1692
   (0.1ms) begin transaction
1696
1693
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1697
-  (13.1ms) commit transaction
1694
+  (10.3ms) commit transaction
1698
1695
   (0.1ms) begin transaction
1699
1696
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1700
-  (18.1ms) commit transaction
1697
+  (8.4ms) commit transaction
1701
1698
  Redirected to http://www.example-client.com/restricted
1702
- Completed 302 Found in 37ms (ActiveRecord: 32.0ms)
1703
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1699
+ Completed 302 Found in 25ms (ActiveRecord: 19.5ms)
1700
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:31 +0000
1704
1701
  Processing by ExampleController#restricted as HTML
1705
1702
  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
1706
1703
  Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1707
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1704
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1708
1705
  Processing by ExampleController#restricted as HTML
1709
1706
  Authenticating with gds_sso strategy
1710
1707
  Completed in 0ms
1711
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1712
- Started GET "/auth/gds/callback?code=b75851e9964d13277986d75879fa9bda0abbe249fe91aeeec3d6cc81128f8de9&state=285ad78a156a0d7361e8495e7f3f77c23e0436d69ebfd3e3" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1708
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:31 +0000
1709
+ Started GET "/auth/gds/callback?code=37c4183adac220ec9309ebeca57789a1677e934f635461f95ea740d22bf288be&state=04be16181858166ccaae930c95e620e33b7c5a1ef0dd769c" for 127.0.0.1 at 2014-11-20 14:07:32 +0000
1713
1710
  Processing by AuthenticationsController#callback as HTML
1714
- Parameters: {"code"=>"b75851e9964d13277986d75879fa9bda0abbe249fe91aeeec3d6cc81128f8de9", "state"=>"285ad78a156a0d7361e8495e7f3f77c23e0436d69ebfd3e3"}
1711
+ Parameters: {"code"=>"37c4183adac220ec9309ebeca57789a1677e934f635461f95ea740d22bf288be", "state"=>"04be16181858166ccaae930c95e620e33b7c5a1ef0dd769c"}
1715
1712
  Authenticating with gds_sso strategy
1716
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1713
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1717
1714
   (0.1ms) begin transaction
1718
1715
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1719
-  (21.3ms) commit transaction
1720
-  (0.1ms) begin transaction
1721
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1722
-  (13.0ms) commit transaction
1716
+  (12.5ms) commit transaction
1717
+  (0.5ms) begin transaction
1718
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1719
+  (15.6ms) commit transaction
1723
1720
  Redirected to http://www.example-client.com/restricted
1724
- Completed 302 Found in 40ms (ActiveRecord: 35.1ms)
1725
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1721
+ Completed 302 Found in 36ms (ActiveRecord: 29.6ms)
1722
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:32 +0000
1726
1723
  Processing by ExampleController#restricted as HTML
1727
1724
  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
1728
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1729
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:51 +0000
1725
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1726
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:02:32 +0000
1730
1727
  Processing by ExampleController#restricted as HTML
1731
- 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
1732
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1733
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1728
+ 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
1729
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1730
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:32 +0000
1734
1731
  Processing by ExampleController#restricted as JSON
1735
- Completed in 16ms
1736
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1732
+ Completed in 19ms
1733
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:32 +0000
1737
1734
  Processing by ExampleController#this_requires_signin_permission as JSON
1738
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1735
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1739
1736
   (0.1ms) begin transaction
1740
1737
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1741
-  (7.2ms) commit transaction
1742
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1738
+  (16.9ms) commit transaction
1739
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1743
1740
   (0.1ms) begin transaction
1744
1741
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1745
-  (7.9ms) commit transaction
1746
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1742
+  (10.2ms) commit transaction
1743
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1747
1744
   (0.1ms) begin transaction
1748
1745
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1749
-  (9.1ms) commit transaction
1750
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1746
+  (15.0ms) commit transaction
1747
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1751
1748
   (0.1ms) begin transaction
1752
1749
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1753
-  (9.5ms) commit transaction
1750
+  (20.7ms) commit transaction
1754
1751
   (0.1ms) begin transaction
1755
1752
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1756
-  (9.9ms) commit transaction
1757
- Completed 200 OK in 174ms (Views: 0.4ms | ActiveRecord: 45.7ms)
1758
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:52 +0000
1759
- Processing by ExampleController#restricted as JSON
1760
- Completed in 12ms
1761
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:52 +0000
1753
+  (22.4ms) commit transaction
1754
+ Completed 200 OK in 263ms (Views: 0.5ms | ActiveRecord: 87.8ms)
1755
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:33 +0000
1762
1756
  Processing by ExampleController#restricted as JSON
1763
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1757
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1764
1758
   (0.1ms) begin transaction
1765
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1766
-  (8.7ms) commit transaction
1767
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1759
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1760
+  (13.5ms) commit transaction
1761
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1768
1762
   (0.1ms) begin transaction
1769
1763
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1770
-  (6.8ms) commit transaction
1771
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1764
+  (13.0ms) commit transaction
1765
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1772
1766
   (0.1ms) begin transaction
1773
- SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1774
-  (8.7ms) commit transaction
1775
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1767
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1768
+  (17.3ms) commit transaction
1769
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1776
1770
   (0.1ms) begin transaction
1777
1771
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1778
-  (7.5ms) commit transaction
1772
+  (7.7ms) commit transaction
1779
1773
   (0.1ms) begin transaction
1780
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1781
-  (9.8ms) commit transaction
1782
- Completed 200 OK in 176ms (Views: 0.4ms | ActiveRecord: 43.5ms)
1783
-  (0.1ms) begin transaction
1784
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38772"]]
1785
-  (11.4ms) commit transaction
1774
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1775
+  (15.3ms) commit transaction
1776
+ Completed 200 OK in 224ms (Views: 0.5ms | ActiveRecord: 69.6ms)
1777
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:33 +0000
1778
+ Processing by ExampleController#restricted as JSON
1779
+ Completed in 19ms
1780
+  (0.2ms) begin transaction
1781
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31828"]]
1782
+  (10.3ms) commit transaction
1786
1783
   (0.1ms) begin transaction
1787
- 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", "a1s2d33047"]]
1788
-  (11.0ms) commit transaction
1784
+ 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", "a1s2d36386"]]
1785
+  (12.8ms) commit transaction
1789
1786
  Processing by Api::UserController#update as HTML
1790
- Parameters: {"uid"=>"a1s2d38772"}
1787
+ Parameters: {"uid"=>"a1s2d31828"}
1791
1788
  Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
1792
1789
   (0.1ms) begin transaction
1793
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38969"]]
1794
-  (13.0ms) commit transaction
1790
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32836"]]
1791
+  (17.2ms) commit transaction
1795
1792
   (0.1ms) begin transaction
1796
- 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", "a1s2d37935"]]
1797
-  (12.4ms) commit transaction
1793
+ 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", "a1s2d39200"]]
1794
+  (15.8ms) commit transaction
1798
1795
  Processing by Api::UserController#update as HTML
1799
- Parameters: {"uid"=>"a1s2d38969"}
1800
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38969' ORDER BY "users"."id" ASC LIMIT 1
1796
+ Parameters: {"uid"=>"a1s2d32836"}
1797
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32836' ORDER BY "users"."id" ASC LIMIT 1
1801
1798
   (0.1ms) begin transaction
1802
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
1803
-  (11.3ms) commit transaction
1804
- Completed 200 OK in 15ms (ActiveRecord: 11.9ms)
1805
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1799
+ SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
1800
+  (14.4ms) commit transaction
1801
+ Completed 200 OK in 19ms (ActiveRecord: 15.1ms)
1802
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1806
1803
   (0.1ms) begin transaction
1807
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34395"]]
1808
-  (13.4ms) commit transaction
1804
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36788"]]
1805
+  (10.8ms) commit transaction
1809
1806
   (0.1ms) begin transaction
1810
- 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", "a1s2d3860"]]
1811
-  (15.0ms) commit transaction
1807
+ 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", "a1s2d37304"]]
1808
+  (8.3ms) commit transaction
1812
1809
  Processing by Api::UserController#reauth as HTML
1813
- Parameters: {"uid"=>"a1s2d34395"}
1814
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34395' ORDER BY "users"."id" ASC LIMIT 1
1815
-  (0.1ms) begin transaction
1816
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 6 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1817
-  (9.8ms) commit transaction
1818
- Completed 200 OK in 13ms (ActiveRecord: 10.4ms)
1819
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1820
-  (0.1ms) begin transaction
1821
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39713"]]
1822
-  (14.2ms) commit transaction
1810
+ Parameters: {"uid"=>"a1s2d36788"}
1811
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1823
1812
   (0.1ms) begin transaction
1824
- 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", "a1s2d32695"]]
1825
-  (23.3ms) commit transaction
1813
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38294"]]
1814
+  (11.1ms) commit transaction
1815
+  (0.1ms) begin transaction
1816
+ 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", "a1s2d32070"]]
1817
+  (18.9ms) commit transaction
1826
1818
  Processing by Api::UserController#reauth as HTML
1827
1819
  Parameters: {"uid"=>"nonexistent-user"}
1828
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1829
- Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1830
-  (0.1ms) begin transaction
1831
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38178"]]
1832
-  (23.0ms) commit transaction
1820
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1821
+ Completed 200 OK in 1ms (ActiveRecord: 0.3ms)
1833
1822
   (0.1ms) begin transaction
1834
- 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", "a1s2d32182"]]
1835
-  (13.4ms) commit transaction
1823
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34010"]]
1824
+  (19.1ms) commit transaction
1825
+  (0.1ms) begin transaction
1826
+ SQL (1.0ms) 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", "a1s2d38133"]]
1827
+  (11.3ms) commit transaction
1836
1828
  Processing by Api::UserController#reauth as HTML
1837
- Parameters: {"uid"=>"a1s2d38178"}
1838
- Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1829
+ Parameters: {"uid"=>"a1s2d34010"}
1830
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34010' ORDER BY "users"."id" ASC LIMIT 1
1839
1831
   (0.1ms) begin transaction
1840
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36870"]]
1841
-  (15.5ms) commit transaction
1832
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 10 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1833
+  (14.7ms) commit transaction
1834
+ Completed 200 OK in 18ms (ActiveRecord: 15.3ms)
1835
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
1836
+  (0.1ms) begin transaction
1837
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37578"]]
1838
+  (19.5ms) commit transaction
1842
1839
   (0.1ms) begin transaction
1843
- 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", "a1s2d37225"]]
1844
-  (10.1ms) commit transaction
1840
+ 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", "a1s2d32975"]]
1841
+  (17.3ms) commit transaction
1845
1842
  Processing by Api::UserController#update as HTML
1846
- Parameters: {"uid"=>"a1s2d36870"}
1847
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1848
- Completed 403 Forbidden in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
1843
+ Parameters: {"uid"=>"a1s2d37578"}
1844
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms)
1845
+ Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
1849
1846
   (0.1ms) begin transaction
1850
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38375"]]
1851
-  (19.0ms) commit transaction
1847
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31040"]]
1848
+  (20.0ms) commit transaction
1852
1849
   (0.1ms) begin transaction
1853
- 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", "a1s2d3392"]]
1854
-  (13.5ms) commit transaction
1850
+ 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", "a1s2d38717"]]
1851
+  (9.9ms) commit transaction
1855
1852
  Processing by Api::UserController#update as HTML
1856
- Parameters: {"uid"=>"a1s2d38375"}
1857
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38375' ORDER BY "users"."id" ASC LIMIT 1
1853
+ Parameters: {"uid"=>"a1s2d31040"}
1854
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31040' ORDER BY "users"."id" ASC LIMIT 1
1858
1855
   (0.1ms) begin transaction
1859
- SQL (0.2ms) 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"]]
1860
-  (18.5ms) commit transaction
1861
- Completed 200 OK in 28ms (ActiveRecord: 19.0ms)
1856
+ SQL (0.3ms) 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"]]
1857
+  (9.2ms) commit transaction
1858
+ Completed 200 OK in 19ms (ActiveRecord: 9.8ms)
1862
1859
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1863
1860
   (0.1ms) begin transaction
1864
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33946"]]
1865
-  (7.8ms) commit transaction
1861
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3195"]]
1862
+  (11.3ms) commit transaction
1866
1863
   (0.1ms) begin transaction
1867
- SQL (0.1ms) 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", "a1s2d31968"]]
1868
-  (14.5ms) commit transaction
1864
+ 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", "a1s2d31911"]]
1865
+  (6.3ms) commit transaction
1869
1866
  Processing by Api::UserController#reauth as HTML
1870
- Parameters: {"uid"=>"a1s2d33946"}
1871
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33946' ORDER BY "users"."id" ASC LIMIT 1
1867
+ Parameters: {"uid"=>"a1s2d3195"}
1868
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3195' ORDER BY "users"."id" ASC LIMIT 1
1872
1869
   (0.1ms) begin transaction
1873
1870
  SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 5 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1874
-  (22.3ms) commit transaction
1875
- Completed 200 OK in 25ms (ActiveRecord: 22.8ms)
1871
+  (9.1ms) commit transaction
1872
+ Completed 200 OK in 12ms (ActiveRecord: 9.6ms)
1876
1873
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1877
1874
   (0.1ms) begin transaction
1878
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32133"]]
1879
-  (26.2ms) commit transaction
1875
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31459"]]
1876
+  (10.0ms) commit transaction
1880
1877
   (0.1ms) begin transaction
1881
- 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", "a1s2d3488"]]
1882
-  (14.3ms) commit transaction
1878
+ 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", "a1s2d31695"]]
1879
+  (9.7ms) commit transaction
1883
1880
  Processing by Api::UserController#reauth as HTML
1884
1881
  Parameters: {"uid"=>"nonexistent-user"}
1885
1882
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1886
1883
  Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1887
1884
   (0.1ms) begin transaction
1888
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35011"]]
1889
-  (11.9ms) commit transaction
1885
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33502"]]
1886
+  (11.8ms) commit transaction
1890
1887
   (0.1ms) begin transaction
1891
- 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", "a1s2d34765"]]
1892
-  (10.1ms) commit transaction
1888
+ 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", "a1s2d39496"]]
1889
+  (12.2ms) commit transaction
1893
1890
  Processing by Api::UserController#reauth as HTML
1894
- Parameters: {"uid"=>"a1s2d35011"}
1891
+ Parameters: {"uid"=>"a1s2d33502"}
1895
1892
  Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1896
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:10 +0000
1897
- Processing by ExampleController#this_requires_signin_permission as HTML
1893
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:51 +0000
1894
+ Processing by ExampleController#restricted as HTML
1898
1895
  Authenticating with gds_sso strategy
1899
- Completed in 15ms
1900
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:10 +0000
1901
- Started GET "/auth/gds/callback?code=e64513342e8863f7f5a471060db383853c3b059da995f7ed800c7def93c9866d&state=58f649d4f4d3380ff98f7b72acaf6562f23a156086403b03" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1896
+ Completed in 14ms
1897
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:51 +0000
1898
+ Started GET "/auth/gds/callback?code=ccd4400a2bbc3e4880da5994cd25551e5261c01cdc2735e0055a75336c525d86&state=6eaaf88e7aa54ab44ed37f277c1d37872ba916d4e0a20b1b" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1902
1899
  Processing by AuthenticationsController#callback as HTML
1903
- Parameters: {"code"=>"e64513342e8863f7f5a471060db383853c3b059da995f7ed800c7def93c9866d", "state"=>"58f649d4f4d3380ff98f7b72acaf6562f23a156086403b03"}
1900
+ Parameters: {"code"=>"ccd4400a2bbc3e4880da5994cd25551e5261c01cdc2735e0055a75336c525d86", "state"=>"6eaaf88e7aa54ab44ed37f277c1d37872ba916d4e0a20b1b"}
1904
1901
  Authenticating with gds_sso strategy
1905
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1902
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1906
1903
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1907
1904
   (0.1ms) begin transaction
1908
- 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"]]
1909
-  (44.1ms) commit transaction
1905
+ 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"]]
1906
+  (11.9ms) commit transaction
1910
1907
   (0.1ms) begin transaction
1911
- SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1912
-  (54.6ms) commit transaction
1913
- Redirected to http://www.example-client.com/this_requires_signin_permission
1914
- Completed 302 Found in 105ms (ActiveRecord: 99.5ms)
1915
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1916
- Processing by ExampleController#this_requires_signin_permission as HTML
1917
- 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
1918
- Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.2ms)
1919
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1920
- Processing by ExampleController#this_requires_signin_permission as HTML
1908
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1909
+  (11.9ms) commit transaction
1910
+ Redirected to http://www.example-client.com/restricted
1911
+ Completed 302 Found in 31ms (ActiveRecord: 24.9ms)
1912
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1913
+ Processing by ExampleController#restricted as HTML
1914
+ 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
1915
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)
1916
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1917
+ Processing by ExampleController#restricted as HTML
1921
1918
  Authenticating with gds_sso strategy
1922
1919
  Completed in 0ms
1923
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1924
- Started GET "/auth/gds/callback?code=02ee52ba09c3dffa5b55732871d5d9bf3024bb40a53be7b86f48c4c6cd6de671&state=f4a3ec8e33aa25d81c1e9b4b43f033ae4c3e8d8ec31d0ddb" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1920
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1921
+ Started GET "/auth/gds/callback?code=03d6ed901024efcc2458a1a2d21118e929f10cf655ba8e32ca62484d10812e8e&state=d422aa82d17f0c1a9f818b30ca3f0c3a059e2e7826031920" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1925
1922
  Processing by AuthenticationsController#callback as HTML
1926
- Parameters: {"code"=>"02ee52ba09c3dffa5b55732871d5d9bf3024bb40a53be7b86f48c4c6cd6de671", "state"=>"f4a3ec8e33aa25d81c1e9b4b43f033ae4c3e8d8ec31d0ddb"}
1923
+ Parameters: {"code"=>"03d6ed901024efcc2458a1a2d21118e929f10cf655ba8e32ca62484d10812e8e", "state"=>"d422aa82d17f0c1a9f818b30ca3f0c3a059e2e7826031920"}
1927
1924
  Authenticating with gds_sso strategy
1928
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1925
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1929
1926
   (0.1ms) begin transaction
1930
1927
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1931
-  (37.2ms) commit transaction
1928
+  (19.8ms) commit transaction
1932
1929
   (0.1ms) begin transaction
1933
1930
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1934
-  (25.1ms) commit transaction
1935
- Redirected to http://www.example-client.com/this_requires_signin_permission
1936
- Completed 302 Found in 68ms (ActiveRecord: 63.1ms)
1937
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1938
- Processing by ExampleController#this_requires_signin_permission as HTML
1939
- 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
1940
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1941
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1931
+  (34.2ms) commit transaction
1932
+ Redirected to http://www.example-client.com/restricted
1933
+ Completed 302 Found in 61ms (ActiveRecord: 54.9ms)
1934
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:52 +0000
1935
+ Processing by ExampleController#restricted as HTML
1936
+ 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
1937
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1938
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1942
1939
  Processing by ExampleController#restricted as HTML
1943
1940
  Authenticating with gds_sso strategy
1944
- Completed in 0ms
1945
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1946
- Started GET "/auth/gds/callback?code=9157de77d24ed08e94e9b1eda42afbc86d60456debbad73860627bafedf415f3&state=666e68ab435046d2eb4b6fd49a4d001c7477e2a149ac6efe" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1941
+ Completed in 1ms
1942
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1943
+ Started GET "/auth/gds/callback?code=09ea288e168f5fd1d0cc1bbf45c82a75d74a0c1a6cd3c7a6872d69645d90b3dc&state=09f4e00ba2b4673c925dbbe888eab3b9bacb7df3a46404f5" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1947
1944
  Processing by AuthenticationsController#callback as HTML
1948
- Parameters: {"code"=>"9157de77d24ed08e94e9b1eda42afbc86d60456debbad73860627bafedf415f3", "state"=>"666e68ab435046d2eb4b6fd49a4d001c7477e2a149ac6efe"}
1945
+ Parameters: {"code"=>"09ea288e168f5fd1d0cc1bbf45c82a75d74a0c1a6cd3c7a6872d69645d90b3dc", "state"=>"09f4e00ba2b4673c925dbbe888eab3b9bacb7df3a46404f5"}
1949
1946
  Authenticating with gds_sso strategy
1950
1947
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1951
1948
   (0.1ms) begin transaction
1952
1949
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1953
-  (20.6ms) commit transaction
1950
+  (21.1ms) commit transaction
1954
1951
   (0.1ms) begin transaction
1955
1952
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1956
-  (19.6ms) commit transaction
1953
+  (14.4ms) commit transaction
1957
1954
  Redirected to http://www.example-client.com/restricted
1958
- Completed 302 Found in 46ms (ActiveRecord: 40.9ms)
1959
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1960
- Processing by ExampleController#restricted as HTML
1961
- 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
1962
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1963
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1955
+ Completed 302 Found in 42ms (ActiveRecord: 36.3ms)
1956
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1964
1957
  Processing by ExampleController#restricted as HTML
1958
+ 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
1959
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1960
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1961
+ Processing by ExampleController#this_requires_signin_permission as HTML
1965
1962
  Authenticating with gds_sso strategy
1966
- Completed in 0ms
1967
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1968
- Started GET "/auth/gds/callback?code=2a203e2d0b3fc56dd597f968e4f49dbdae41d596ca89bef1e95b089892946d57&state=83e8bdbe59d0263eb6333c298791ba43f369f6e79b58e843" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1963
+ Completed in 1ms
1964
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:53 +0000
1965
+ Started GET "/auth/gds/callback?code=cf934e9bd2724f6b803444b5afab991951c917d1ddefb2fcb70541f94346be20&state=3528480cdfcf5e34c935a9d6bc0df9f6b4c5a4fae90a7c20" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
1969
1966
  Processing by AuthenticationsController#callback as HTML
1970
- Parameters: {"code"=>"2a203e2d0b3fc56dd597f968e4f49dbdae41d596ca89bef1e95b089892946d57", "state"=>"83e8bdbe59d0263eb6333c298791ba43f369f6e79b58e843"}
1967
+ Parameters: {"code"=>"cf934e9bd2724f6b803444b5afab991951c917d1ddefb2fcb70541f94346be20", "state"=>"3528480cdfcf5e34c935a9d6bc0df9f6b4c5a4fae90a7c20"}
1971
1968
  Authenticating with gds_sso strategy
1972
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1969
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1973
1970
   (0.1ms) begin transaction
1974
1971
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1975
-  (13.6ms) commit transaction
1972
+  (16.3ms) commit transaction
1976
1973
   (0.1ms) begin transaction
1977
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1978
-  (28.0ms) commit transaction
1979
- Redirected to http://www.example-client.com/restricted
1980
- Completed 302 Found in 47ms (ActiveRecord: 42.5ms)
1981
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1982
- Processing by ExampleController#restricted as HTML
1983
- 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
1984
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1985
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1986
- Processing by ExampleController#restricted as HTML
1974
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1975
+  (45.9ms) commit transaction
1976
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1977
+ Completed 302 Found in 69ms (ActiveRecord: 63.1ms)
1978
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
1979
+ Processing by ExampleController#this_requires_signin_permission as HTML
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
1981
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1982
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
1983
+ Processing by ExampleController#this_requires_signin_permission as HTML
1987
1984
  Authenticating with gds_sso strategy
1988
1985
  Completed in 0ms
1989
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1990
- Started GET "/auth/gds/callback?code=3c645a0c67cfa681c943c91b45ca7fa51137117e82e91632812cf656460dd09f&state=c763a0d8537d3cc3bd64f4e5271fa380b2bdcd56a965008a" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1986
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
1987
+ Started GET "/auth/gds/callback?code=cf26db0d32dfaf35fedb10869401749701f3955674f615799491ce397e82f57a&state=e6561b427911f0f1a988cd30b48d7475d65243c99ad587f0" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
1991
1988
  Processing by AuthenticationsController#callback as HTML
1992
- Parameters: {"code"=>"3c645a0c67cfa681c943c91b45ca7fa51137117e82e91632812cf656460dd09f", "state"=>"c763a0d8537d3cc3bd64f4e5271fa380b2bdcd56a965008a"}
1989
+ Parameters: {"code"=>"cf26db0d32dfaf35fedb10869401749701f3955674f615799491ce397e82f57a", "state"=>"e6561b427911f0f1a988cd30b48d7475d65243c99ad587f0"}
1993
1990
  Authenticating with gds_sso strategy
1994
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1991
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1995
1992
   (0.1ms) begin transaction
1996
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1997
-  (25.7ms) commit transaction
1993
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1994
+  (10.0ms) commit transaction
1998
1995
   (0.1ms) begin transaction
1999
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2000
-  (9.8ms) commit transaction
2001
- Redirected to http://www.example-client.com/restricted
2002
- Completed 302 Found in 40ms (ActiveRecord: 36.1ms)
2003
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2004
- Processing by ExampleController#restricted as HTML
2005
- 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
2006
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2007
- Started GET "/" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1996
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1997
+  (11.1ms) commit transaction
1998
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1999
+ Completed 302 Found in 27ms (ActiveRecord: 22.0ms)
2000
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
2001
+ Processing by ExampleController#this_requires_signin_permission as HTML
2002
+ 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
2003
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2004
+ Started GET "/" for 127.0.0.1 at 2014-11-20 14:07:54 +0000
2008
2005
  Processing by ExampleController#index as HTML
2009
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2010
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2006
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2007
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2011
2008
  Processing by ExampleController#restricted as HTML
2012
2009
  Authenticating with gds_sso strategy
2013
2010
  Completed in 1ms
2014
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2015
- Started GET "/auth/gds/callback?code=94c7888da7f291892f34a985113b2a8a712573cbe8c7aa6723e58bca705fa3af&state=6c9518d8a3866dc01171e5f4d7e22641b6a6fdfbcbde20d3" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2011
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2012
+ Started GET "/auth/gds/callback?code=eb1eef25ac1309d9c5925b89b068611a6ae89b3a58604f2f734c0d5cea96c349&state=0b52ffd6626b1e1de835f7c292443580eb8aeb2cac739cfd" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2016
2013
  Processing by AuthenticationsController#callback as HTML
2017
- Parameters: {"code"=>"94c7888da7f291892f34a985113b2a8a712573cbe8c7aa6723e58bca705fa3af", "state"=>"6c9518d8a3866dc01171e5f4d7e22641b6a6fdfbcbde20d3"}
2014
+ Parameters: {"code"=>"eb1eef25ac1309d9c5925b89b068611a6ae89b3a58604f2f734c0d5cea96c349", "state"=>"0b52ffd6626b1e1de835f7c292443580eb8aeb2cac739cfd"}
2018
2015
  Authenticating with gds_sso strategy
2019
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2016
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2020
2017
   (0.1ms) begin transaction
2021
2018
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2022
-  (23.2ms) commit transaction
2019
+  (36.4ms) commit transaction
2023
2020
   (0.1ms) begin transaction
2024
2021
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2025
-  (19.4ms) commit transaction
2022
+  (31.0ms) commit transaction
2026
2023
  Redirected to http://www.example-client.com/restricted
2027
- Completed 302 Found in 49ms (ActiveRecord: 43.5ms)
2028
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2024
+ Completed 302 Found in 74ms (ActiveRecord: 68.3ms)
2025
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2029
2026
  Processing by ExampleController#restricted as HTML
2030
- 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
2031
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2027
+ 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
2028
+ Completed 200 OK in 51ms (Views: 0.4ms | ActiveRecord: 0.3ms)
2032
2029
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
2033
2030
   (0.1ms) begin transaction
2034
2031
  SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
2035
-  (14.8ms) commit transaction
2036
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2032
+  (25.5ms) commit transaction
2033
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2037
2034
  Processing by ExampleController#restricted as HTML
2038
- 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
2035
+ 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
2039
2036
  Authenticating with gds_sso strategy
2040
- Completed in 1ms
2041
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2042
- Started GET "/auth/gds/callback?code=a537dd6615e7850e1c7652a598ba2a66ee2be7db53d656ea9db6a30f7dce5354&state=4b15a8e0f033f2acb99ae0f22e4edc2195eb4008bd9bdffe" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2037
+ Completed in 2ms
2038
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:55 +0000
2039
+ Started GET "/auth/gds/callback?code=48c1a343ac82ab1bd2d27639399013ff63a000306eb97b60d93f465c1049a87f&state=b56e53f84a2d6e10e7f9ae67ec099c0bba289ca58561e102" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2043
2040
  Processing by AuthenticationsController#callback as HTML
2044
- Parameters: {"code"=>"a537dd6615e7850e1c7652a598ba2a66ee2be7db53d656ea9db6a30f7dce5354", "state"=>"4b15a8e0f033f2acb99ae0f22e4edc2195eb4008bd9bdffe"}
2041
+ Parameters: {"code"=>"48c1a343ac82ab1bd2d27639399013ff63a000306eb97b60d93f465c1049a87f", "state"=>"b56e53f84a2d6e10e7f9ae67ec099c0bba289ca58561e102"}
2045
2042
  Authenticating with gds_sso strategy
2046
2043
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2047
2044
   (0.1ms) begin transaction
2048
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2049
-  (10.1ms) commit transaction
2045
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2046
+  (16.6ms) commit transaction
2050
2047
   (0.1ms) begin transaction
2051
- SQL (0.1ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
2052
-  (6.8ms) commit transaction
2048
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
2049
+  (29.3ms) commit transaction
2053
2050
  Redirected to http://www.example-client.com/restricted
2054
- Completed 302 Found in 21ms (ActiveRecord: 17.5ms)
2055
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2051
+ Completed 302 Found in 52ms (ActiveRecord: 46.8ms)
2052
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2056
2053
  Processing by ExampleController#restricted as HTML
2057
- 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
2058
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2059
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2054
+ 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
2055
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2056
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2060
2057
  Processing by ExampleController#restricted as HTML
2061
2058
  Authenticating with gds_sso strategy
2062
2059
  Completed in 1ms
2063
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2064
- Started GET "/auth/gds/callback?code=1003860500097f6ad3a3bd0b96cbddecff7c866f96f1b7c0e1beaa115e96ca01&state=96430d2ad9c66e04a25ca125a022965776d7bc39a0cb61e2" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2060
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2061
+ Started GET "/auth/gds/callback?code=bea934edf9abe54e487a0a93109b07b2d00aa593df40bbb79dbadb91eff2c329&state=4a92f88e0f55352208fbb0122f793ac9755024daaa3afcb5" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2065
2062
  Processing by AuthenticationsController#callback as HTML
2066
- Parameters: {"code"=>"1003860500097f6ad3a3bd0b96cbddecff7c866f96f1b7c0e1beaa115e96ca01", "state"=>"96430d2ad9c66e04a25ca125a022965776d7bc39a0cb61e2"}
2063
+ Parameters: {"code"=>"bea934edf9abe54e487a0a93109b07b2d00aa593df40bbb79dbadb91eff2c329", "state"=>"4a92f88e0f55352208fbb0122f793ac9755024daaa3afcb5"}
2067
2064
  Authenticating with gds_sso strategy
2068
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2065
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2069
2066
   (0.1ms) begin transaction
2070
2067
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2071
-  (12.1ms) commit transaction
2068
+  (8.5ms) commit transaction
2072
2069
   (0.1ms) begin transaction
2073
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2074
-  (18.8ms) commit transaction
2070
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2071
+  (16.4ms) commit transaction
2075
2072
  Redirected to http://www.example-client.com/restricted
2076
- Completed 302 Found in 36ms (ActiveRecord: 31.6ms)
2077
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2073
+ Completed 302 Found in 31ms (ActiveRecord: 25.7ms)
2074
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:56 +0000
2078
2075
  Processing by ExampleController#restricted as HTML
2079
- 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
2080
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
2081
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2076
+ 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
2077
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
2078
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:56 +0000
2082
2079
  Processing by ExampleController#restricted as HTML
2083
2080
  Authenticating with gds_sso strategy
2084
2081
  Completed in 1ms
2085
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2086
- Started GET "/auth/gds/callback?code=d5e8732e4060268a1c60e1a997aed95f26324df34bdca453cd94a01ff936dd83&state=1b6527cf8c88eb0aa8d11380fa409235eae5f3f0567991d6" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2082
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-21 10:12:56 +0000
2083
+ Started GET "/auth/gds/callback?code=f9daddfd3e553e181580faa1363987ae932c31d099d1581207dc3df20999d0bc&state=06849109dbf92fb328e76382083a2338cb715454f704dd48" for 127.0.0.1 at 2014-11-21 10:12:56 +0000
2087
2084
  Processing by AuthenticationsController#callback as HTML
2088
- Parameters: {"code"=>"d5e8732e4060268a1c60e1a997aed95f26324df34bdca453cd94a01ff936dd83", "state"=>"1b6527cf8c88eb0aa8d11380fa409235eae5f3f0567991d6"}
2085
+ Parameters: {"code"=>"f9daddfd3e553e181580faa1363987ae932c31d099d1581207dc3df20999d0bc", "state"=>"06849109dbf92fb328e76382083a2338cb715454f704dd48"}
2089
2086
  Authenticating with gds_sso strategy
2090
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2087
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2091
2088
   (0.1ms) begin transaction
2092
2089
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2093
-  (15.1ms) commit transaction
2094
-  (0.1ms) begin transaction
2090
+  (13.8ms) commit transaction
2091
+  (0.2ms) begin transaction
2095
2092
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2096
-  (14.9ms) commit transaction
2093
+  (20.2ms) commit transaction
2097
2094
  Redirected to http://www.example-client.com/restricted
2098
- Completed 302 Found in 36ms (ActiveRecord: 30.7ms)
2099
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2095
+ Completed 302 Found in 41ms (ActiveRecord: 35.0ms)
2096
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:12:57 +0000
2100
2097
  Processing by ExampleController#restricted as HTML
2101
2098
  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
2102
2099
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2103
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2100
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:57 +0000
2104
2101
  Processing by ExampleController#restricted as HTML
2105
2102
  Authenticating with gds_sso strategy
2106
- Completed in 0ms
2107
- Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2108
- Started GET "/auth/gds/callback?code=13b5fc01b820619d77ca8f5a383851300fad8c6bad2b713684195fb73b0615f0&state=8aa197a812c2fd1442eae4751ac7469fb8b8f738349778dd" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2103
+ Completed in 1ms
2104
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-11-20 14:07:57 +0000
2105
+ Started GET "/auth/gds/callback?code=c09d9f0fec45e1f994d9205cd003b9833274a361feb40affe3decefd2ad3ae2f&state=0c827ec14c4f0b3ffc1bf24629040f78ea1cbaf722fe561e" for 127.0.0.1 at 2014-11-20 14:07:57 +0000
2109
2106
  Processing by AuthenticationsController#callback as HTML
2110
- Parameters: {"code"=>"13b5fc01b820619d77ca8f5a383851300fad8c6bad2b713684195fb73b0615f0", "state"=>"8aa197a812c2fd1442eae4751ac7469fb8b8f738349778dd"}
2107
+ Parameters: {"code"=>"c09d9f0fec45e1f994d9205cd003b9833274a361feb40affe3decefd2ad3ae2f", "state"=>"0c827ec14c4f0b3ffc1bf24629040f78ea1cbaf722fe561e"}
2111
2108
  Authenticating with gds_sso strategy
2112
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2109
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2113
2110
   (0.1ms) begin transaction
2114
2111
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2115
-  (15.4ms) commit transaction
2112
+  (14.6ms) commit transaction
2116
2113
   (0.1ms) begin transaction
2117
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2118
-  (14.7ms) commit transaction
2114
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2115
+  (27.4ms) commit transaction
2119
2116
  Redirected to http://www.example-client.com/restricted
2120
- Completed 302 Found in 36ms (ActiveRecord: 30.7ms)
2121
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2117
+ Completed 302 Found in 49ms (ActiveRecord: 42.8ms)
2118
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:57 +0000
2122
2119
  Processing by ExampleController#restricted as HTML
2123
- 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
2124
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
2125
- Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:20:15 +0000
2120
+ 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
2121
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
2122
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-21 10:02:57 +0000
2126
2123
  Processing by ExampleController#restricted as HTML
2127
- 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
2128
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2129
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2130
- Processing by ExampleController#restricted as JSON
2131
- Completed in 17ms
2132
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2133
- Processing by ExampleController#restricted as JSON
2124
+ 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
2125
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2126
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-11-20 14:07:57 +0000
2127
+ Processing by ExampleController#this_requires_signin_permission as JSON
2134
2128
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2135
2129
   (0.1ms) begin transaction
2136
2130
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2137
-  (9.8ms) commit transaction
2131
+  (12.8ms) commit transaction
2138
2132
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2139
2133
   (0.1ms) begin transaction
2140
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2141
-  (9.9ms) commit transaction
2134
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2135
+  (20.4ms) commit transaction
2142
2136
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2143
2137
   (0.1ms) begin transaction
2144
2138
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2145
-  (64.7ms) commit transaction
2146
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2139
+  (36.5ms) commit transaction
2140
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2147
2141
   (0.1ms) begin transaction
2148
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2149
-  (12.9ms) commit transaction
2142
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2143
+  (25.3ms) commit transaction
2150
2144
   (0.1ms) begin transaction
2151
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2152
-  (15.9ms) commit transaction
2153
- Completed 200 OK in 333ms (Views: 0.5ms | ActiveRecord: 115.4ms)
2154
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2155
- Processing by ExampleController#this_requires_signin_permission as JSON
2145
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2146
+  (12.4ms) commit transaction
2147
+ Completed 200 OK in 304ms (Views: 0.5ms | ActiveRecord: 109.9ms)
2148
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:58 +0000
2149
+ Processing by ExampleController#restricted as JSON
2156
2150
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2157
2151
   (0.1ms) begin transaction
2158
2152
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2159
-  (38.9ms) commit transaction
2160
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2153
+  (13.9ms) commit transaction
2154
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2161
2155
   (0.1ms) begin transaction
2162
- SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2163
-  (46.5ms) commit transaction
2164
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2156
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2157
+  (15.0ms) commit transaction
2158
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2165
2159
   (0.1ms) begin transaction
2166
2160
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2167
-  (11.0ms) commit transaction
2161
+  (28.2ms) commit transaction
2168
2162
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2169
2163
   (0.1ms) begin transaction
2170
- SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2171
-  (18.0ms) commit transaction
2164
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2165
+  (16.1ms) commit transaction
2172
2166
   (0.1ms) begin transaction
2173
2167
  SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2174
-  (11.6ms) commit transaction
2175
- Completed 200 OK in 347ms (Views: 0.5ms | ActiveRecord: 128.5ms)
2176
- Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:17 +0000
2168
+  (27.4ms) commit transaction
2169
+ Completed 200 OK in 277ms (Views: 0.5ms | ActiveRecord: 102.9ms)
2170
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:59 +0000
2177
2171
  Processing by ExampleController#restricted as JSON
2178
- Completed in 12ms
2172
+ Completed in 19ms
2173
+ Started GET "/restricted" for 127.0.0.1 at 2014-11-20 14:07:59 +0000
2174
+ Processing by ExampleController#restricted as JSON
2175
+ Completed in 16ms