gds-sso 10.1.0 → 11.0.0

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