gds-sso 6.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/app/controllers/api/user_controller.rb +1 -1
- data/lib/gds-sso/user.rb +2 -2
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +1 -1
- data/spec/controller/api_user_controller_spec.rb +2 -2
- data/spec/internal/app/models/user.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +1 -1
- data/spec/internal/log/test.log +2292 -0
- data/test/user_test.rb +2 -2
- metadata +6 -6
data/spec/internal/log/test.log
CHANGED
@@ -8187,3 +8187,2295 @@ Authenticating with gds_bearer_token strategy
|
|
8187
8187
|
' WHERE "users"."id" = 11[0m
|
8188
8188
|
[1m[35m (13.3ms)[0m commit transaction
|
8189
8189
|
Completed 200 OK in 91.9ms (Views: 0.2ms | ActiveRecord: 28.7ms)
|
8190
|
+
Connecting to database specified by database.yml
|
8191
|
+
[1m[36m (1.0ms)[0m [1mselect sqlite_version(*)[0m
|
8192
|
+
[1m[35m (16.6ms)[0m DROP TABLE "users"
|
8193
|
+
[1m[36m (13.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) [0m
|
8194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8195
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36499"]]
|
8196
|
+
[1m[35m (49.4ms)[0m commit transaction
|
8197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8198
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31029"]]
|
8199
|
+
[1m[36m (17.1ms)[0m [1mcommit transaction[0m
|
8200
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8201
|
+
Processing by Api::UserController#update as HTML
|
8202
|
+
Parameters: {"uid"=>"a1s2d36499"}
|
8203
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
8204
|
+
Completed 403 Forbidden in 7.5ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
8205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8206
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3895"]]
|
8207
|
+
[1m[35m (18.4ms)[0m commit transaction
|
8208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8209
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33240"]]
|
8210
|
+
[1m[36m (13.9ms)[0m [1mcommit transaction[0m
|
8211
|
+
Processing by Api::UserController#update as HTML
|
8212
|
+
Parameters: {"uid"=>"a1s2d3895"}
|
8213
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3895' LIMIT 1
|
8214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8215
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
8216
|
+
- signin
|
8217
|
+
- new permission
|
8218
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
8219
|
+
[1m[36m (12.5ms)[0m [1mcommit transaction[0m
|
8220
|
+
Completed 200 OK in 25.9ms (ActiveRecord: 12.9ms)
|
8221
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
8222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8223
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3188"]]
|
8224
|
+
[1m[36m (21.9ms)[0m [1mcommit transaction[0m
|
8225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8226
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35121"]]
|
8227
|
+
[1m[35m (44.9ms)[0m commit transaction
|
8228
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8229
|
+
Processing by Api::UserController#reauth as HTML
|
8230
|
+
Parameters: {"uid"=>"a1s2d3188"}
|
8231
|
+
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
8232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8233
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39205"]]
|
8234
|
+
[1m[36m (15.4ms)[0m [1mcommit transaction[0m
|
8235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8236
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35990"]]
|
8237
|
+
[1m[35m (16.9ms)[0m commit transaction
|
8238
|
+
Processing by Api::UserController#reauth as HTML
|
8239
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
8240
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
8241
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
8242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3203"]]
|
8244
|
+
[1m[35m (21.8ms)[0m commit transaction
|
8245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31661"]]
|
8247
|
+
[1m[36m (31.3ms)[0m [1mcommit transaction[0m
|
8248
|
+
Processing by Api::UserController#reauth as HTML
|
8249
|
+
Parameters: {"uid"=>"a1s2d3203"}
|
8250
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3203' LIMIT 1
|
8251
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8252
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
8253
|
+
- signin
|
8254
|
+
' WHERE "users"."id" = 9
|
8255
|
+
[1m[36m (15.1ms)[0m [1mcommit transaction[0m
|
8256
|
+
Completed 200 OK in 31.9ms (ActiveRecord: 15.8ms)
|
8257
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
8258
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
|
8259
|
+
Processing by ExampleController#index as HTML
|
8260
|
+
Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
8261
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
|
8262
|
+
Processing by ExampleController#restricted as HTML
|
8263
|
+
Authenticating with gds_sso strategy
|
8264
|
+
Completed in 2.6ms
|
8265
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:14 +0000
|
8266
|
+
Started GET "/auth/gds/callback?code=06726d4a0bc07792dccc837b0f84f328d9ada346e0fa7047ea7e936464c1fb6a&state=c0d66efb0e433e29d3c83da3d1ea09a48733d8600216406c" for 127.0.0.1 at 2013-11-04 14:53:15 +0000
|
8267
|
+
Processing by AuthenticationsController#callback as HTML
|
8268
|
+
Parameters: {"code"=>"06726d4a0bc07792dccc837b0f84f328d9ada346e0fa7047ea7e936464c1fb6a", "state"=>"c0d66efb0e433e29d3c83da3d1ea09a48733d8600216406c"}
|
8269
|
+
Authenticating with gds_sso strategy
|
8270
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8271
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8272
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
8273
|
+
[1m[35m (14.6ms)[0m commit transaction
|
8274
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8275
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
8276
|
+
- signin
|
8277
|
+
' WHERE "users"."id" = 11
|
8278
|
+
[1m[36m (12.5ms)[0m [1mcommit transaction[0m
|
8279
|
+
Redirected to http://www.example-client.com/restricted
|
8280
|
+
Completed 302 Found in 34.1ms (ActiveRecord: 27.7ms)
|
8281
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8282
|
+
Processing by ExampleController#restricted as HTML
|
8283
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8284
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8285
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8286
|
+
Processing by ExampleController#restricted as HTML
|
8287
|
+
Authenticating with gds_sso strategy
|
8288
|
+
Completed in 0.3ms
|
8289
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8290
|
+
Started GET "/auth/gds/callback?code=f148b65d7bdda006a9a6373f45924020b5c06b6168341b95d49fd41db6732687&state=8c560bb3107cdfec52a8ec9de907b26ffb8516e90b1c61a1" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8291
|
+
Processing by AuthenticationsController#callback as HTML
|
8292
|
+
Parameters: {"code"=>"f148b65d7bdda006a9a6373f45924020b5c06b6168341b95d49fd41db6732687", "state"=>"8c560bb3107cdfec52a8ec9de907b26ffb8516e90b1c61a1"}
|
8293
|
+
Authenticating with gds_sso strategy
|
8294
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8296
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8297
|
+
- signin
|
8298
|
+
' WHERE "users"."id" = 11[0m
|
8299
|
+
[1m[35m (5.4ms)[0m commit transaction
|
8300
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8301
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8302
|
+
- signin
|
8303
|
+
' WHERE "users"."id" = 11
|
8304
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
8305
|
+
Redirected to http://www.example-client.com/restricted
|
8306
|
+
Completed 302 Found in 18.5ms (ActiveRecord: 10.5ms)
|
8307
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8308
|
+
Processing by ExampleController#restricted as HTML
|
8309
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8310
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8311
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8312
|
+
Processing by ExampleController#restricted as HTML
|
8313
|
+
Authenticating with gds_sso strategy
|
8314
|
+
Completed in 0.2ms
|
8315
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8316
|
+
Started GET "/auth/gds/callback?code=fbaeeaad7852416e960a0f8c41e71d00bd57f90db3ec4af5cb35018b20b593d1&state=845d7304f00743be31a1af26a2844f67d241e75b661d7b0e" for 127.0.0.1 at 2013-11-04 14:53:16 +0000
|
8317
|
+
Processing by AuthenticationsController#callback as HTML
|
8318
|
+
Parameters: {"code"=>"fbaeeaad7852416e960a0f8c41e71d00bd57f90db3ec4af5cb35018b20b593d1", "state"=>"845d7304f00743be31a1af26a2844f67d241e75b661d7b0e"}
|
8319
|
+
Authenticating with gds_sso strategy
|
8320
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8321
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8322
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8323
|
+
- signin
|
8324
|
+
' WHERE "users"."id" = 11[0m
|
8325
|
+
[1m[35m (5.3ms)[0m commit transaction
|
8326
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8327
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8328
|
+
- signin
|
8329
|
+
' WHERE "users"."id" = 11
|
8330
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
8331
|
+
Redirected to http://www.example-client.com/restricted
|
8332
|
+
Completed 302 Found in 17.4ms (ActiveRecord: 10.5ms)
|
8333
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8334
|
+
Processing by ExampleController#restricted as HTML
|
8335
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8336
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
8337
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8338
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8339
|
+
Authenticating with gds_sso strategy
|
8340
|
+
Completed in 0.6ms
|
8341
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8342
|
+
Started GET "/auth/gds/callback?code=9f5486bee554a2ad173289d4f9e4a2ddaeb214099e96ddfdb9c8438461610abd&state=08d34c341460a4e1d61e7a9b16b9f17f9ef6729ae2decd92" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8343
|
+
Processing by AuthenticationsController#callback as HTML
|
8344
|
+
Parameters: {"code"=>"9f5486bee554a2ad173289d4f9e4a2ddaeb214099e96ddfdb9c8438461610abd", "state"=>"08d34c341460a4e1d61e7a9b16b9f17f9ef6729ae2decd92"}
|
8345
|
+
Authenticating with gds_sso strategy
|
8346
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8347
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8348
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8349
|
+
- signin
|
8350
|
+
' WHERE "users"."id" = 11[0m
|
8351
|
+
[1m[35m (7.6ms)[0m commit transaction
|
8352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8353
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8354
|
+
- signin
|
8355
|
+
' WHERE "users"."id" = 11
|
8356
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
8357
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
8358
|
+
Completed 302 Found in 21.0ms (ActiveRecord: 13.3ms)
|
8359
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8360
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8361
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8362
|
+
Completed 200 OK in 2.8ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8363
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8364
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8365
|
+
Authenticating with gds_sso strategy
|
8366
|
+
Completed in 0.2ms
|
8367
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8368
|
+
Started GET "/auth/gds/callback?code=b720026a318f8e82780bea827ee9e4a9e1d0d89bc817bfa5af576225c5cc9efa&state=1623f52829d3d70cac12dcefc2f8634a2a1a1cd041c7cbb1" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8369
|
+
Processing by AuthenticationsController#callback as HTML
|
8370
|
+
Parameters: {"code"=>"b720026a318f8e82780bea827ee9e4a9e1d0d89bc817bfa5af576225c5cc9efa", "state"=>"1623f52829d3d70cac12dcefc2f8634a2a1a1cd041c7cbb1"}
|
8371
|
+
Authenticating with gds_sso strategy
|
8372
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8373
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8374
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8375
|
+
- signin
|
8376
|
+
' WHERE "users"."id" = 11[0m
|
8377
|
+
[1m[35m (6.3ms)[0m commit transaction
|
8378
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8379
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8380
|
+
- signin
|
8381
|
+
' WHERE "users"."id" = 11
|
8382
|
+
[1m[36m (32.2ms)[0m [1mcommit transaction[0m
|
8383
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
8384
|
+
Completed 302 Found in 46.5ms (ActiveRecord: 38.9ms)
|
8385
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8386
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8387
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8388
|
+
Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8389
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8390
|
+
Processing by ExampleController#restricted as HTML
|
8391
|
+
Authenticating with gds_sso strategy
|
8392
|
+
Completed in 0.3ms
|
8393
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:17 +0000
|
8394
|
+
Started GET "/auth/gds/callback?code=05a06a48cab9ea38f6d93ec9880743b7d00dacba1fbf076c2600abd5cd7ad87b&state=8bcbb55b93c32a724c26b534ec01a8e0c8dab0e365b46b1e" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8395
|
+
Processing by AuthenticationsController#callback as HTML
|
8396
|
+
Parameters: {"code"=>"05a06a48cab9ea38f6d93ec9880743b7d00dacba1fbf076c2600abd5cd7ad87b", "state"=>"8bcbb55b93c32a724c26b534ec01a8e0c8dab0e365b46b1e"}
|
8397
|
+
Authenticating with gds_sso strategy
|
8398
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8399
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8400
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8401
|
+
- signin
|
8402
|
+
' WHERE "users"."id" = 11[0m
|
8403
|
+
[1m[35m (16.3ms)[0m commit transaction
|
8404
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8405
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8406
|
+
- signin
|
8407
|
+
' WHERE "users"."id" = 11
|
8408
|
+
[1m[36m (15.4ms)[0m [1mcommit transaction[0m
|
8409
|
+
Redirected to http://www.example-client.com/restricted
|
8410
|
+
Completed 302 Found in 40.0ms (ActiveRecord: 32.2ms)
|
8411
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8412
|
+
Processing by ExampleController#restricted as HTML
|
8413
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8414
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8415
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8417
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
8418
|
+
- signin
|
8419
|
+
' WHERE "users"."id" = 11[0m
|
8420
|
+
[1m[35m (4.6ms)[0m commit transaction
|
8421
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8422
|
+
Processing by ExampleController#restricted as HTML
|
8423
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8424
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
8425
|
+
Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
8426
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8427
|
+
Processing by AuthenticationsController#sign_out as HTML
|
8428
|
+
Redirected to http://localhost:4567/users/sign_out
|
8429
|
+
Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
|
8430
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8431
|
+
Processing by ExampleController#restricted as HTML
|
8432
|
+
Authenticating with gds_sso strategy
|
8433
|
+
Completed in 0.2ms
|
8434
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8435
|
+
Started GET "/auth/gds/callback?code=c45cce8ffe57ffea85f13c6048d7ddc7f96c7bf0f535260b7078a5f82faf67cf&state=126877e1589904c7c219dc66edbc88c12a7237599e116fef" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8436
|
+
Processing by AuthenticationsController#callback as HTML
|
8437
|
+
Parameters: {"code"=>"c45cce8ffe57ffea85f13c6048d7ddc7f96c7bf0f535260b7078a5f82faf67cf", "state"=>"126877e1589904c7c219dc66edbc88c12a7237599e116fef"}
|
8438
|
+
Authenticating with gds_sso strategy
|
8439
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8440
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8441
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8442
|
+
- signin
|
8443
|
+
' WHERE "users"."id" = 11
|
8444
|
+
[1m[36m (38.3ms)[0m [1mcommit transaction[0m
|
8445
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8446
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
8447
|
+
- signin
|
8448
|
+
' WHERE "users"."id" = 11[0m
|
8449
|
+
[1m[35m (10.4ms)[0m commit transaction
|
8450
|
+
Redirected to http://www.example-client.com/restricted
|
8451
|
+
Completed 302 Found in 56.1ms (ActiveRecord: 49.2ms)
|
8452
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8453
|
+
Processing by ExampleController#restricted as HTML
|
8454
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8455
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8456
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8457
|
+
Processing by ExampleController#restricted as HTML
|
8458
|
+
Authenticating with gds_sso strategy
|
8459
|
+
Completed in 0.2ms
|
8460
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:18 +0000
|
8461
|
+
Started GET "/auth/gds/callback?code=9860037820951412f75aeb7aca06a4eafb1c311234565e384d07882407b67ffa&state=1401a7586ab3dbf27d58f9c74b5b83032985ea4cf1e9cc8e" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8462
|
+
Processing by AuthenticationsController#callback as HTML
|
8463
|
+
Parameters: {"code"=>"9860037820951412f75aeb7aca06a4eafb1c311234565e384d07882407b67ffa", "state"=>"1401a7586ab3dbf27d58f9c74b5b83032985ea4cf1e9cc8e"}
|
8464
|
+
Authenticating with gds_sso strategy
|
8465
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8467
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8468
|
+
- signin
|
8469
|
+
' WHERE "users"."id" = 11
|
8470
|
+
[1m[36m (12.4ms)[0m [1mcommit transaction[0m
|
8471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8472
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8473
|
+
- signin
|
8474
|
+
' WHERE "users"."id" = 11[0m
|
8475
|
+
[1m[35m (22.1ms)[0m commit transaction
|
8476
|
+
Redirected to http://www.example-client.com/restricted
|
8477
|
+
Completed 302 Found in 43.0ms (ActiveRecord: 35.1ms)
|
8478
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8479
|
+
Processing by ExampleController#restricted as HTML
|
8480
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8481
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8482
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
|
8483
|
+
Processing by ExampleController#restricted as HTML
|
8484
|
+
Authenticating with gds_sso strategy
|
8485
|
+
Completed in 0.2ms
|
8486
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
|
8487
|
+
Started GET "/auth/gds/callback?code=8feddcb054934cfbf8d2164c43a9320029aaef7dc4763573e41e43cf1f9a6758&state=43b29c93f0f71b31e80bd19fdb4227b1d1927ad5bde1b167" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
|
8488
|
+
Processing by AuthenticationsController#callback as HTML
|
8489
|
+
Parameters: {"code"=>"8feddcb054934cfbf8d2164c43a9320029aaef7dc4763573e41e43cf1f9a6758", "state"=>"43b29c93f0f71b31e80bd19fdb4227b1d1927ad5bde1b167"}
|
8490
|
+
Authenticating with gds_sso strategy
|
8491
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8493
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8494
|
+
- signin
|
8495
|
+
' WHERE "users"."id" = 11
|
8496
|
+
[1m[36m (29.2ms)[0m [1mcommit transaction[0m
|
8497
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8498
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8499
|
+
- signin
|
8500
|
+
' WHERE "users"."id" = 11[0m
|
8501
|
+
[1m[35m (3.6ms)[0m commit transaction
|
8502
|
+
Redirected to http://www.example-client.com/restricted
|
8503
|
+
Completed 302 Found in 40.8ms (ActiveRecord: 33.4ms)
|
8504
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:58:19 +0000
|
8505
|
+
Processing by ExampleController#restricted as HTML
|
8506
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8507
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
8508
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8509
|
+
Processing by ExampleController#restricted as HTML
|
8510
|
+
Authenticating with gds_sso strategy
|
8511
|
+
Completed in 0.2ms
|
8512
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8513
|
+
Started GET "/auth/gds/callback?code=fe26dae9665c2fee5f2729804bdbc2d118f00fd97d66a965b3522d52e76dbcd7&state=ff4cec5214be14b0250709cd3cd649308285a6c0c136b49e" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8514
|
+
Processing by AuthenticationsController#callback as HTML
|
8515
|
+
Parameters: {"code"=>"fe26dae9665c2fee5f2729804bdbc2d118f00fd97d66a965b3522d52e76dbcd7", "state"=>"ff4cec5214be14b0250709cd3cd649308285a6c0c136b49e"}
|
8516
|
+
Authenticating with gds_sso strategy
|
8517
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8518
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8519
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8520
|
+
- signin
|
8521
|
+
' WHERE "users"."id" = 11
|
8522
|
+
[1m[36m (12.6ms)[0m [1mcommit transaction[0m
|
8523
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8524
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8525
|
+
- signin
|
8526
|
+
' WHERE "users"."id" = 11[0m
|
8527
|
+
[1m[35m (36.3ms)[0m commit transaction
|
8528
|
+
Redirected to http://www.example-client.com/restricted
|
8529
|
+
Completed 302 Found in 57.8ms (ActiveRecord: 49.5ms)
|
8530
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:19 +0000
|
8531
|
+
Processing by ExampleController#restricted as HTML
|
8532
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8533
|
+
Completed 200 OK in 2.3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
8534
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:48:19 +0000
|
8535
|
+
Processing by ExampleController#restricted as HTML
|
8536
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8537
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
8538
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
|
8539
|
+
Processing by ExampleController#restricted as JSON
|
8540
|
+
Authenticating with gds_bearer_token strategy
|
8541
|
+
Completed in 7.1ms
|
8542
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
|
8543
|
+
Processing by ExampleController#restricted as JSON
|
8544
|
+
Authenticating with gds_bearer_token strategy
|
8545
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8546
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8547
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8548
|
+
- signin
|
8549
|
+
' WHERE "users"."id" = 11[0m
|
8550
|
+
[1m[35m (13.2ms)[0m commit transaction
|
8551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8552
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8553
|
+
- signin
|
8554
|
+
' WHERE "users"."id" = 11
|
8555
|
+
[1m[36m (26.4ms)[0m [1mcommit transaction[0m
|
8556
|
+
Completed 200 OK in 79.9ms (Views: 0.5ms | ActiveRecord: 40.0ms)
|
8557
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:53:20 +0000
|
8558
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
8559
|
+
Authenticating with gds_bearer_token strategy
|
8560
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8561
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8562
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8563
|
+
- signin
|
8564
|
+
' WHERE "users"."id" = 11
|
8565
|
+
[1m[36m (14.3ms)[0m [1mcommit transaction[0m
|
8566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8567
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8568
|
+
- signin
|
8569
|
+
' WHERE "users"."id" = 11[0m
|
8570
|
+
[1m[35m (12.6ms)[0m commit transaction
|
8571
|
+
Completed 200 OK in 71.1ms (Views: 0.3ms | ActiveRecord: 27.4ms)
|
8572
|
+
Connecting to database specified by database.yml
|
8573
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
8574
|
+
[1m[35m (27.3ms)[0m DROP TABLE "users"
|
8575
|
+
[1m[36m (14.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) [0m
|
8576
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8577
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3950"]]
|
8578
|
+
[1m[35m (18.4ms)[0m commit transaction
|
8579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8580
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39071"]]
|
8581
|
+
[1m[36m (15.0ms)[0m [1mcommit transaction[0m
|
8582
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8583
|
+
Processing by Api::UserController#update as HTML
|
8584
|
+
Parameters: {"uid"=>"a1s2d3950"}
|
8585
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (12.2ms)
|
8586
|
+
Completed 403 Forbidden in 17.9ms (Views: 17.2ms | ActiveRecord: 0.0ms)
|
8587
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8588
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3848"]]
|
8589
|
+
[1m[35m (37.1ms)[0m commit transaction
|
8590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8591
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3682"]]
|
8592
|
+
[1m[36m (26.2ms)[0m [1mcommit transaction[0m
|
8593
|
+
Processing by Api::UserController#update as HTML
|
8594
|
+
Parameters: {"uid"=>"a1s2d3848"}
|
8595
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3848' LIMIT 1
|
8596
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8597
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
8598
|
+
- signin
|
8599
|
+
- new permission
|
8600
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
8601
|
+
[1m[36m (18.4ms)[0m [1mcommit transaction[0m
|
8602
|
+
Completed 200 OK in 27.3ms (ActiveRecord: 18.8ms)
|
8603
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
8604
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8605
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38622"]]
|
8606
|
+
[1m[36m (23.8ms)[0m [1mcommit transaction[0m
|
8607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8608
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34018"]]
|
8609
|
+
[1m[35m (59.8ms)[0m commit transaction
|
8610
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8611
|
+
Processing by Api::UserController#reauth as HTML
|
8612
|
+
Parameters: {"uid"=>"a1s2d38622"}
|
8613
|
+
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
8614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8615
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35732"]]
|
8616
|
+
[1m[36m (22.1ms)[0m [1mcommit transaction[0m
|
8617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8618
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39986"]]
|
8619
|
+
[1m[35m (14.7ms)[0m commit transaction
|
8620
|
+
Processing by Api::UserController#reauth as HTML
|
8621
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
8622
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
8623
|
+
Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
|
8624
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8625
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32902"]]
|
8626
|
+
[1m[35m (24.5ms)[0m commit transaction
|
8627
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8628
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38871"]]
|
8629
|
+
[1m[36m (16.5ms)[0m [1mcommit transaction[0m
|
8630
|
+
Processing by Api::UserController#reauth as HTML
|
8631
|
+
Parameters: {"uid"=>"a1s2d32902"}
|
8632
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32902' LIMIT 1
|
8633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8634
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
8635
|
+
- signin
|
8636
|
+
' WHERE "users"."id" = 9
|
8637
|
+
[1m[36m (63.3ms)[0m [1mcommit transaction[0m
|
8638
|
+
Completed 200 OK in 67.7ms (ActiveRecord: 63.6ms)
|
8639
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
8640
|
+
Started GET "/" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
|
8641
|
+
Processing by ExampleController#index as HTML
|
8642
|
+
Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
8643
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
|
8644
|
+
Processing by ExampleController#restricted as HTML
|
8645
|
+
Authenticating with gds_sso strategy
|
8646
|
+
Completed in 2.6ms
|
8647
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:18 +0000
|
8648
|
+
Started GET "/auth/gds/callback?code=6523e9eefc06b21b57524f2e6b00fd0f7380afa648c50a84c2639fa023d41da7&state=f08907b2174d5f997abd1830f9956c56b78bcc0d17fef96a" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
|
8649
|
+
Processing by AuthenticationsController#callback as HTML
|
8650
|
+
Parameters: {"code"=>"6523e9eefc06b21b57524f2e6b00fd0f7380afa648c50a84c2639fa023d41da7", "state"=>"f08907b2174d5f997abd1830f9956c56b78bcc0d17fef96a"}
|
8651
|
+
Authenticating with gds_sso strategy
|
8652
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8654
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
8655
|
+
[1m[35m (14.2ms)[0m commit transaction
|
8656
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8657
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
8658
|
+
- signin
|
8659
|
+
' WHERE "users"."id" = 11
|
8660
|
+
[1m[36m (22.9ms)[0m [1mcommit transaction[0m
|
8661
|
+
Redirected to http://www.example-client.com/restricted
|
8662
|
+
Completed 302 Found in 44.3ms (ActiveRecord: 37.7ms)
|
8663
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
|
8664
|
+
Processing by ExampleController#restricted as HTML
|
8665
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8666
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8667
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
|
8668
|
+
Processing by ExampleController#restricted as HTML
|
8669
|
+
Authenticating with gds_sso strategy
|
8670
|
+
Completed in 0.3ms
|
8671
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:19 +0000
|
8672
|
+
Started GET "/auth/gds/callback?code=15ad67d3f290a61f7b518c78100143d6f232f6193ef47b7f088767bec062d434&state=e7562a405a239f21f3c322c931ea07082b5e5c5c0aa02da5" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8673
|
+
Processing by AuthenticationsController#callback as HTML
|
8674
|
+
Parameters: {"code"=>"15ad67d3f290a61f7b518c78100143d6f232f6193ef47b7f088767bec062d434", "state"=>"e7562a405a239f21f3c322c931ea07082b5e5c5c0aa02da5"}
|
8675
|
+
Authenticating with gds_sso strategy
|
8676
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8678
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8679
|
+
- signin
|
8680
|
+
' WHERE "users"."id" = 11[0m
|
8681
|
+
[1m[35m (3.7ms)[0m commit transaction
|
8682
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8683
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8684
|
+
- signin
|
8685
|
+
' WHERE "users"."id" = 11
|
8686
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
8687
|
+
Redirected to http://www.example-client.com/restricted
|
8688
|
+
Completed 302 Found in 16.0ms (ActiveRecord: 8.0ms)
|
8689
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8690
|
+
Processing by ExampleController#restricted as HTML
|
8691
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8692
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8693
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8694
|
+
Processing by ExampleController#restricted as HTML
|
8695
|
+
Authenticating with gds_sso strategy
|
8696
|
+
Completed in 0.1ms
|
8697
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8698
|
+
Started GET "/auth/gds/callback?code=543d3d1694e849a4e64634965ba893817ac02ece0f6d03ac100aad63ba83f0ac&state=f9ff9dc9e4a3227bce79cf5b2c4c5bdebc48fcfafc1fa26f" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8699
|
+
Processing by AuthenticationsController#callback as HTML
|
8700
|
+
Parameters: {"code"=>"543d3d1694e849a4e64634965ba893817ac02ece0f6d03ac100aad63ba83f0ac", "state"=>"f9ff9dc9e4a3227bce79cf5b2c4c5bdebc48fcfafc1fa26f"}
|
8701
|
+
Authenticating with gds_sso strategy
|
8702
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8703
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8704
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8705
|
+
- signin
|
8706
|
+
' WHERE "users"."id" = 11[0m
|
8707
|
+
[1m[35m (27.2ms)[0m commit transaction
|
8708
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8709
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8710
|
+
- signin
|
8711
|
+
' WHERE "users"."id" = 11
|
8712
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
8713
|
+
Redirected to http://www.example-client.com/restricted
|
8714
|
+
Completed 302 Found in 39.1ms (ActiveRecord: 31.7ms)
|
8715
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8716
|
+
Processing by ExampleController#restricted as HTML
|
8717
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8718
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8719
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8720
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8721
|
+
Authenticating with gds_sso strategy
|
8722
|
+
Completed in 0.7ms
|
8723
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8724
|
+
Started GET "/auth/gds/callback?code=d3b327860a52c4e8f42c523bd20ebe0f7ac1f93d6a53a269b9dc7398b2be259d&state=b7de822d6a291141397f4b6ce10a0dd798c18a2c78cb3927" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8725
|
+
Processing by AuthenticationsController#callback as HTML
|
8726
|
+
Parameters: {"code"=>"d3b327860a52c4e8f42c523bd20ebe0f7ac1f93d6a53a269b9dc7398b2be259d", "state"=>"b7de822d6a291141397f4b6ce10a0dd798c18a2c78cb3927"}
|
8727
|
+
Authenticating with gds_sso strategy
|
8728
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8729
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8730
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8731
|
+
- signin
|
8732
|
+
' WHERE "users"."id" = 11[0m
|
8733
|
+
[1m[35m (5.4ms)[0m commit transaction
|
8734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8735
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8736
|
+
- signin
|
8737
|
+
' WHERE "users"."id" = 11
|
8738
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
8739
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
8740
|
+
Completed 302 Found in 18.2ms (ActiveRecord: 10.4ms)
|
8741
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8742
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8743
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8744
|
+
Completed 200 OK in 2.9ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8745
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8746
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8747
|
+
Authenticating with gds_sso strategy
|
8748
|
+
Completed in 0.1ms
|
8749
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:20 +0000
|
8750
|
+
Started GET "/auth/gds/callback?code=0ef1b000ae067c654134ab31c03c27f7858e910cb347e9dfe7f8713585070b92&state=348b4cabd989365e379ed96f0f868e9f42c52f7c2493e3a7" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8751
|
+
Processing by AuthenticationsController#callback as HTML
|
8752
|
+
Parameters: {"code"=>"0ef1b000ae067c654134ab31c03c27f7858e910cb347e9dfe7f8713585070b92", "state"=>"348b4cabd989365e379ed96f0f868e9f42c52f7c2493e3a7"}
|
8753
|
+
Authenticating with gds_sso strategy
|
8754
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8755
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8756
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8757
|
+
- signin
|
8758
|
+
' WHERE "users"."id" = 11[0m
|
8759
|
+
[1m[35m (17.4ms)[0m commit transaction
|
8760
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8761
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8762
|
+
- signin
|
8763
|
+
' WHERE "users"."id" = 11
|
8764
|
+
[1m[36m (9.7ms)[0m [1mcommit transaction[0m
|
8765
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
8766
|
+
Completed 302 Found in 35.1ms (ActiveRecord: 27.6ms)
|
8767
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8768
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
8769
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8770
|
+
Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8771
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8772
|
+
Processing by ExampleController#restricted as HTML
|
8773
|
+
Authenticating with gds_sso strategy
|
8774
|
+
Completed in 0.3ms
|
8775
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8776
|
+
Started GET "/auth/gds/callback?code=8125dcd72f186b7feb785978f6538585aae7987948453c8a3f4f7b32cb5529db&state=108ff3f3ae3e28e9046bee2786378e60cb7dea1585a7b2c8" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8777
|
+
Processing by AuthenticationsController#callback as HTML
|
8778
|
+
Parameters: {"code"=>"8125dcd72f186b7feb785978f6538585aae7987948453c8a3f4f7b32cb5529db", "state"=>"108ff3f3ae3e28e9046bee2786378e60cb7dea1585a7b2c8"}
|
8779
|
+
Authenticating with gds_sso strategy
|
8780
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8782
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8783
|
+
- signin
|
8784
|
+
' WHERE "users"."id" = 11[0m
|
8785
|
+
[1m[35m (23.4ms)[0m commit transaction
|
8786
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8787
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
8788
|
+
- signin
|
8789
|
+
' WHERE "users"."id" = 11
|
8790
|
+
[1m[36m (6.1ms)[0m [1mcommit transaction[0m
|
8791
|
+
Redirected to http://www.example-client.com/restricted
|
8792
|
+
Completed 302 Found in 41.5ms (ActiveRecord: 30.2ms)
|
8793
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8794
|
+
Processing by ExampleController#restricted as HTML
|
8795
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8796
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8797
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8798
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8799
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
8800
|
+
- signin
|
8801
|
+
' WHERE "users"."id" = 11[0m
|
8802
|
+
[1m[35m (4.2ms)[0m commit transaction
|
8803
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8804
|
+
Processing by ExampleController#restricted as HTML
|
8805
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8806
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
8807
|
+
Completed 403 Forbidden in 2.9ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
8808
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8809
|
+
Processing by AuthenticationsController#sign_out as HTML
|
8810
|
+
Redirected to http://localhost:4567/users/sign_out
|
8811
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
8812
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8813
|
+
Processing by ExampleController#restricted as HTML
|
8814
|
+
Authenticating with gds_sso strategy
|
8815
|
+
Completed in 0.2ms
|
8816
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:21 +0000
|
8817
|
+
Started GET "/auth/gds/callback?code=e821b1b9ff9d08d9d77ef4aa29bc7c1186f4e11b4f9690c57fde46c2b2e6ac5c&state=5652b193a12f3c7141c8fcaef91ee803e9c4721cc643f8de" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8818
|
+
Processing by AuthenticationsController#callback as HTML
|
8819
|
+
Parameters: {"code"=>"e821b1b9ff9d08d9d77ef4aa29bc7c1186f4e11b4f9690c57fde46c2b2e6ac5c", "state"=>"5652b193a12f3c7141c8fcaef91ee803e9c4721cc643f8de"}
|
8820
|
+
Authenticating with gds_sso strategy
|
8821
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8822
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8823
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8824
|
+
- signin
|
8825
|
+
' WHERE "users"."id" = 11
|
8826
|
+
[1m[36m (6.8ms)[0m [1mcommit transaction[0m
|
8827
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8828
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
8829
|
+
- signin
|
8830
|
+
' WHERE "users"."id" = 11[0m
|
8831
|
+
[1m[35m (5.1ms)[0m commit transaction
|
8832
|
+
Redirected to http://www.example-client.com/restricted
|
8833
|
+
Completed 302 Found in 19.5ms (ActiveRecord: 12.4ms)
|
8834
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8835
|
+
Processing by ExampleController#restricted as HTML
|
8836
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8837
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8838
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8839
|
+
Processing by ExampleController#restricted as HTML
|
8840
|
+
Authenticating with gds_sso strategy
|
8841
|
+
Completed in 0.2ms
|
8842
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8843
|
+
Started GET "/auth/gds/callback?code=dab7f1966109f9030abc4c9f014283301612f8a61c846d763efa72b9d1949c83&state=3c265d92341a04132a51bcc3ca9b23e3f1e51da07fb18177" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8844
|
+
Processing by AuthenticationsController#callback as HTML
|
8845
|
+
Parameters: {"code"=>"dab7f1966109f9030abc4c9f014283301612f8a61c846d763efa72b9d1949c83", "state"=>"3c265d92341a04132a51bcc3ca9b23e3f1e51da07fb18177"}
|
8846
|
+
Authenticating with gds_sso strategy
|
8847
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8848
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8849
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8850
|
+
- signin
|
8851
|
+
' WHERE "users"."id" = 11
|
8852
|
+
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
|
8853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8854
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8855
|
+
- signin
|
8856
|
+
' WHERE "users"."id" = 11[0m
|
8857
|
+
[1m[35m (13.1ms)[0m commit transaction
|
8858
|
+
Redirected to http://www.example-client.com/restricted
|
8859
|
+
Completed 302 Found in 36.3ms (ActiveRecord: 28.4ms)
|
8860
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8861
|
+
Processing by ExampleController#restricted as HTML
|
8862
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8863
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
8864
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
|
8865
|
+
Processing by ExampleController#restricted as HTML
|
8866
|
+
Authenticating with gds_sso strategy
|
8867
|
+
Completed in 0.2ms
|
8868
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
|
8869
|
+
Started GET "/auth/gds/callback?code=6bc1a6226923682ce79faecd0c7b605279c693cac4c8f7c8dc4eb8ee9a636562&state=61b08f4472418cbf0f04aa3961aa1a943de5e102639269b5" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
|
8870
|
+
Processing by AuthenticationsController#callback as HTML
|
8871
|
+
Parameters: {"code"=>"6bc1a6226923682ce79faecd0c7b605279c693cac4c8f7c8dc4eb8ee9a636562", "state"=>"61b08f4472418cbf0f04aa3961aa1a943de5e102639269b5"}
|
8872
|
+
Authenticating with gds_sso strategy
|
8873
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8875
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
8876
|
+
- signin
|
8877
|
+
' WHERE "users"."id" = 11
|
8878
|
+
[1m[36m (14.2ms)[0m [1mcommit transaction[0m
|
8879
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8880
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8881
|
+
- signin
|
8882
|
+
' WHERE "users"."id" = 11[0m
|
8883
|
+
[1m[35m (8.1ms)[0m commit transaction
|
8884
|
+
Redirected to http://www.example-client.com/restricted
|
8885
|
+
Completed 302 Found in 29.8ms (ActiveRecord: 22.9ms)
|
8886
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 11:02:22 +0000
|
8887
|
+
Processing by ExampleController#restricted as HTML
|
8888
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8889
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8890
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8891
|
+
Processing by ExampleController#restricted as HTML
|
8892
|
+
Authenticating with gds_sso strategy
|
8893
|
+
Completed in 0.2ms
|
8894
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:57:22 +0000
|
8895
|
+
Started GET "/auth/gds/callback?code=8644d4f33da02d60b3d6c01951d5aeadcd05a07f779f2332fee3bd4e9cae50e3&state=8dee45f043f6f8685fb6a7fe85791a702b8907d6ded9e63e" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
|
8896
|
+
Processing by AuthenticationsController#callback as HTML
|
8897
|
+
Parameters: {"code"=>"8644d4f33da02d60b3d6c01951d5aeadcd05a07f779f2332fee3bd4e9cae50e3", "state"=>"8dee45f043f6f8685fb6a7fe85791a702b8907d6ded9e63e"}
|
8898
|
+
Authenticating with gds_sso strategy
|
8899
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8900
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8901
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8902
|
+
- signin
|
8903
|
+
' WHERE "users"."id" = 11
|
8904
|
+
[1m[36m (10.4ms)[0m [1mcommit transaction[0m
|
8905
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8906
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8907
|
+
- signin
|
8908
|
+
' WHERE "users"."id" = 11[0m
|
8909
|
+
[1m[35m (21.7ms)[0m commit transaction
|
8910
|
+
Redirected to http://www.example-client.com/restricted
|
8911
|
+
Completed 302 Found in 40.7ms (ActiveRecord: 32.7ms)
|
8912
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
|
8913
|
+
Processing by ExampleController#restricted as HTML
|
8914
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8915
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
8916
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:52:23 +0000
|
8917
|
+
Processing by ExampleController#restricted as HTML
|
8918
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8919
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
8920
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
|
8921
|
+
Processing by ExampleController#restricted as JSON
|
8922
|
+
Authenticating with gds_bearer_token strategy
|
8923
|
+
Completed in 7.1ms
|
8924
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
|
8925
|
+
Processing by ExampleController#restricted as JSON
|
8926
|
+
Authenticating with gds_bearer_token strategy
|
8927
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
8928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8929
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8930
|
+
- signin
|
8931
|
+
' WHERE "users"."id" = 11[0m
|
8932
|
+
[1m[35m (12.6ms)[0m commit transaction
|
8933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8934
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8935
|
+
- signin
|
8936
|
+
' WHERE "users"."id" = 11
|
8937
|
+
[1m[36m (13.9ms)[0m [1mcommit transaction[0m
|
8938
|
+
Completed 200 OK in 64.2ms (Views: 0.2ms | ActiveRecord: 27.0ms)
|
8939
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:57:23 +0000
|
8940
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
8941
|
+
Authenticating with gds_bearer_token strategy
|
8942
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
8943
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8944
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
8945
|
+
- signin
|
8946
|
+
' WHERE "users"."id" = 11
|
8947
|
+
[1m[36m (17.6ms)[0m [1mcommit transaction[0m
|
8948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8949
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
8950
|
+
- signin
|
8951
|
+
' WHERE "users"."id" = 11[0m
|
8952
|
+
[1m[35m (14.5ms)[0m commit transaction
|
8953
|
+
Completed 200 OK in 87.8ms (Views: 0.2ms | ActiveRecord: 32.6ms)
|
8954
|
+
Connecting to database specified by database.yml
|
8955
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
8956
|
+
[1m[35m (43.1ms)[0m DROP TABLE "users"
|
8957
|
+
[1m[36m (21.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) [0m
|
8958
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8959
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d326"]]
|
8960
|
+
[1m[35m (18.1ms)[0m commit transaction
|
8961
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8962
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39034"]]
|
8963
|
+
[1m[36m (16.4ms)[0m [1mcommit transaction[0m
|
8964
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8965
|
+
Processing by Api::UserController#update as HTML
|
8966
|
+
Parameters: {"uid"=>"a1s2d326"}
|
8967
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
|
8968
|
+
Completed 403 Forbidden in 6.8ms (Views: 6.1ms | ActiveRecord: 0.0ms)
|
8969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8970
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33800"]]
|
8971
|
+
[1m[35m (51.0ms)[0m commit transaction
|
8972
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8973
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32959"]]
|
8974
|
+
[1m[36m (17.9ms)[0m [1mcommit transaction[0m
|
8975
|
+
Processing by Api::UserController#update as HTML
|
8976
|
+
Parameters: {"uid"=>"a1s2d33800"}
|
8977
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33800' LIMIT 1
|
8978
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8979
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
8980
|
+
- signin
|
8981
|
+
- new permission
|
8982
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
8983
|
+
[1m[36m (18.2ms)[0m [1mcommit transaction[0m
|
8984
|
+
Completed 200 OK in 37.2ms (ActiveRecord: 18.6ms)
|
8985
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
8986
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8987
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31577"]]
|
8988
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
8989
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8990
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3392"]]
|
8991
|
+
[1m[35m (49.9ms)[0m commit transaction
|
8992
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
8993
|
+
Processing by Api::UserController#reauth as HTML
|
8994
|
+
Parameters: {"uid"=>"a1s2d31577"}
|
8995
|
+
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
8996
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8997
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3170"]]
|
8998
|
+
[1m[36m (19.8ms)[0m [1mcommit transaction[0m
|
8999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9000
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35949"]]
|
9001
|
+
[1m[35m (13.0ms)[0m commit transaction
|
9002
|
+
Processing by Api::UserController#reauth as HTML
|
9003
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
9004
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
9005
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
9006
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9007
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32504"]]
|
9008
|
+
[1m[35m (14.1ms)[0m commit transaction
|
9009
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9010
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37684"]]
|
9011
|
+
[1m[36m (13.0ms)[0m [1mcommit transaction[0m
|
9012
|
+
Processing by Api::UserController#reauth as HTML
|
9013
|
+
Parameters: {"uid"=>"a1s2d32504"}
|
9014
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32504' LIMIT 1
|
9015
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9016
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9017
|
+
- signin
|
9018
|
+
' WHERE "users"."id" = 9
|
9019
|
+
[1m[36m (45.1ms)[0m [1mcommit transaction[0m
|
9020
|
+
Completed 200 OK in 49.5ms (ActiveRecord: 45.5ms)
|
9021
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
9022
|
+
Started GET "/" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
|
9023
|
+
Processing by ExampleController#index as HTML
|
9024
|
+
Completed 200 OK in 1.8ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
9025
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
|
9026
|
+
Processing by ExampleController#restricted as HTML
|
9027
|
+
Authenticating with gds_sso strategy
|
9028
|
+
Completed in 2.4ms
|
9029
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:49 +0000
|
9030
|
+
Started GET "/auth/gds/callback?code=3144d74f111bf5981034b9dcee0d94a02c0bc2277cff644bb406b54269756ce5&state=73210209439dff30038aff64ff67f25436d70222cef4c708" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
|
9031
|
+
Processing by AuthenticationsController#callback as HTML
|
9032
|
+
Parameters: {"code"=>"3144d74f111bf5981034b9dcee0d94a02c0bc2277cff644bb406b54269756ce5", "state"=>"73210209439dff30038aff64ff67f25436d70222cef4c708"}
|
9033
|
+
Authenticating with gds_sso strategy
|
9034
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9035
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9036
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
9037
|
+
[1m[35m (14.7ms)[0m commit transaction
|
9038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9039
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9040
|
+
- signin
|
9041
|
+
' WHERE "users"."id" = 11
|
9042
|
+
[1m[36m (45.0ms)[0m [1mcommit transaction[0m
|
9043
|
+
Redirected to http://www.example-client.com/restricted
|
9044
|
+
Completed 302 Found in 66.8ms (ActiveRecord: 60.3ms)
|
9045
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
|
9046
|
+
Processing by ExampleController#restricted as HTML
|
9047
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9048
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
9049
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
|
9050
|
+
Processing by ExampleController#restricted as HTML
|
9051
|
+
Authenticating with gds_sso strategy
|
9052
|
+
Completed in 0.3ms
|
9053
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
|
9054
|
+
Started GET "/auth/gds/callback?code=8e626979c90717068751e717ccc11ed0cd8213c352eb170428da39093e5ca20e&state=e54880e1e22c7b5f4879466f9faff35dbcb0633b0f11046d" for 127.0.0.1 at 2013-11-06 17:46:50 +0000
|
9055
|
+
Processing by AuthenticationsController#callback as HTML
|
9056
|
+
Parameters: {"code"=>"8e626979c90717068751e717ccc11ed0cd8213c352eb170428da39093e5ca20e", "state"=>"e54880e1e22c7b5f4879466f9faff35dbcb0633b0f11046d"}
|
9057
|
+
Authenticating with gds_sso strategy
|
9058
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9060
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9061
|
+
- signin
|
9062
|
+
' WHERE "users"."id" = 11[0m
|
9063
|
+
[1m[35m (14.9ms)[0m commit transaction
|
9064
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9065
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9066
|
+
- signin
|
9067
|
+
' WHERE "users"."id" = 11
|
9068
|
+
[1m[36m (10.0ms)[0m [1mcommit transaction[0m
|
9069
|
+
Redirected to http://www.example-client.com/restricted
|
9070
|
+
Completed 302 Found in 33.2ms (ActiveRecord: 25.5ms)
|
9071
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9072
|
+
Processing by ExampleController#restricted as HTML
|
9073
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9074
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
9075
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9076
|
+
Processing by ExampleController#restricted as HTML
|
9077
|
+
Authenticating with gds_sso strategy
|
9078
|
+
Completed in 0.1ms
|
9079
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9080
|
+
Started GET "/auth/gds/callback?code=7f75c9678822704190a50305fde10a70e4d5dbe11a25c3231f824934ad04f8d7&state=e1c14be217db6e4cb1dcc3c48ecc37ab80738a93d2b42a49" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9081
|
+
Processing by AuthenticationsController#callback as HTML
|
9082
|
+
Parameters: {"code"=>"7f75c9678822704190a50305fde10a70e4d5dbe11a25c3231f824934ad04f8d7", "state"=>"e1c14be217db6e4cb1dcc3c48ecc37ab80738a93d2b42a49"}
|
9083
|
+
Authenticating with gds_sso strategy
|
9084
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9085
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9086
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9087
|
+
- signin
|
9088
|
+
' WHERE "users"."id" = 11[0m
|
9089
|
+
[1m[35m (6.7ms)[0m commit transaction
|
9090
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9091
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9092
|
+
- signin
|
9093
|
+
' WHERE "users"."id" = 11
|
9094
|
+
[1m[36m (6.6ms)[0m [1mcommit transaction[0m
|
9095
|
+
Redirected to http://www.example-client.com/restricted
|
9096
|
+
Completed 302 Found in 20.7ms (ActiveRecord: 13.8ms)
|
9097
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9098
|
+
Processing by ExampleController#restricted as HTML
|
9099
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9100
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9101
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9102
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9103
|
+
Authenticating with gds_sso strategy
|
9104
|
+
Completed in 0.6ms
|
9105
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9106
|
+
Started GET "/auth/gds/callback?code=ea7453d36c93aaec69cbe4599ae38f683f907868597e4d42e9a5f3f15b50b38a&state=07e30914377ae326f26b557b9590e4d3b6e5020dcff5a572" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9107
|
+
Processing by AuthenticationsController#callback as HTML
|
9108
|
+
Parameters: {"code"=>"ea7453d36c93aaec69cbe4599ae38f683f907868597e4d42e9a5f3f15b50b38a", "state"=>"07e30914377ae326f26b557b9590e4d3b6e5020dcff5a572"}
|
9109
|
+
Authenticating with gds_sso strategy
|
9110
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9111
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9112
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9113
|
+
- signin
|
9114
|
+
' WHERE "users"."id" = 11[0m
|
9115
|
+
[1m[35m (13.8ms)[0m commit transaction
|
9116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9117
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9118
|
+
- signin
|
9119
|
+
' WHERE "users"."id" = 11
|
9120
|
+
[1m[36m (12.4ms)[0m [1mcommit transaction[0m
|
9121
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9122
|
+
Completed 302 Found in 34.2ms (ActiveRecord: 26.7ms)
|
9123
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9124
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9125
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9126
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9127
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9128
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9129
|
+
Authenticating with gds_sso strategy
|
9130
|
+
Completed in 0.1ms
|
9131
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:51 +0000
|
9132
|
+
Started GET "/auth/gds/callback?code=4ebe2eb5d129b66775e23cb0944e5e9ce9b4f7a5b6858759da2c4cd2686bf057&state=f5aeef45797ecca1a7a68b11b483768c958ad05fc2be8834" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9133
|
+
Processing by AuthenticationsController#callback as HTML
|
9134
|
+
Parameters: {"code"=>"4ebe2eb5d129b66775e23cb0944e5e9ce9b4f7a5b6858759da2c4cd2686bf057", "state"=>"f5aeef45797ecca1a7a68b11b483768c958ad05fc2be8834"}
|
9135
|
+
Authenticating with gds_sso strategy
|
9136
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9137
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9138
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9139
|
+
- signin
|
9140
|
+
' WHERE "users"."id" = 11[0m
|
9141
|
+
[1m[35m (8.2ms)[0m commit transaction
|
9142
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9143
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9144
|
+
- signin
|
9145
|
+
' WHERE "users"."id" = 11
|
9146
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
9147
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9148
|
+
Completed 302 Found in 20.7ms (ActiveRecord: 13.3ms)
|
9149
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9150
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9151
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9152
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9153
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9154
|
+
Processing by ExampleController#restricted as HTML
|
9155
|
+
Authenticating with gds_sso strategy
|
9156
|
+
Completed in 0.3ms
|
9157
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9158
|
+
Started GET "/auth/gds/callback?code=a9e0cb8429ed2b5c8fc20593ae2b8d9b42356023cdbf30a6da3c72ab500c14b6&state=6ccac22d2bbadd5703d1fc0a28f353bba79a92bf3e9ea365" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9159
|
+
Processing by AuthenticationsController#callback as HTML
|
9160
|
+
Parameters: {"code"=>"a9e0cb8429ed2b5c8fc20593ae2b8d9b42356023cdbf30a6da3c72ab500c14b6", "state"=>"6ccac22d2bbadd5703d1fc0a28f353bba79a92bf3e9ea365"}
|
9161
|
+
Authenticating with gds_sso strategy
|
9162
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9164
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9165
|
+
- signin
|
9166
|
+
' WHERE "users"."id" = 11[0m
|
9167
|
+
[1m[35m (6.1ms)[0m commit transaction
|
9168
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9169
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9170
|
+
- signin
|
9171
|
+
' WHERE "users"."id" = 11
|
9172
|
+
[1m[36m (4.9ms)[0m [1mcommit transaction[0m
|
9173
|
+
Redirected to http://www.example-client.com/restricted
|
9174
|
+
Completed 302 Found in 19.3ms (ActiveRecord: 11.6ms)
|
9175
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9176
|
+
Processing by ExampleController#restricted as HTML
|
9177
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9178
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
9179
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9181
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9182
|
+
- signin
|
9183
|
+
' WHERE "users"."id" = 11[0m
|
9184
|
+
[1m[35m (6.1ms)[0m commit transaction
|
9185
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9186
|
+
Processing by ExampleController#restricted as HTML
|
9187
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9188
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
9189
|
+
Completed 403 Forbidden in 2.7ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
9190
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9191
|
+
Processing by AuthenticationsController#sign_out as HTML
|
9192
|
+
Redirected to http://localhost:4567/users/sign_out
|
9193
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
9194
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9195
|
+
Processing by ExampleController#restricted as HTML
|
9196
|
+
Authenticating with gds_sso strategy
|
9197
|
+
Completed in 0.4ms
|
9198
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9199
|
+
Started GET "/auth/gds/callback?code=e10e68bda70950d8d26d21522e273add9ba549a6b0d8a0fd19bb24046653cad6&state=e7dfadafe9c96cfc6367850ca7d66d1c03d5d781b0b7d238" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9200
|
+
Processing by AuthenticationsController#callback as HTML
|
9201
|
+
Parameters: {"code"=>"e10e68bda70950d8d26d21522e273add9ba549a6b0d8a0fd19bb24046653cad6", "state"=>"e7dfadafe9c96cfc6367850ca7d66d1c03d5d781b0b7d238"}
|
9202
|
+
Authenticating with gds_sso strategy
|
9203
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9205
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
9206
|
+
- signin
|
9207
|
+
' WHERE "users"."id" = 11
|
9208
|
+
[1m[36m (10.6ms)[0m [1mcommit transaction[0m
|
9209
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9210
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9211
|
+
- signin
|
9212
|
+
' WHERE "users"."id" = 11[0m
|
9213
|
+
[1m[35m (10.9ms)[0m commit transaction
|
9214
|
+
Redirected to http://www.example-client.com/restricted
|
9215
|
+
Completed 302 Found in 29.0ms (ActiveRecord: 22.0ms)
|
9216
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:52 +0000
|
9217
|
+
Processing by ExampleController#restricted as HTML
|
9218
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9219
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9220
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9221
|
+
Processing by ExampleController#restricted as HTML
|
9222
|
+
Authenticating with gds_sso strategy
|
9223
|
+
Completed in 0.2ms
|
9224
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9225
|
+
Started GET "/auth/gds/callback?code=f1b1f695738669cc168af6829dc2776cd08a3f092c62c879fb108d67f570f60a&state=9a39df313afe7e12ff5ff7598b3bf1d1e49975ba2bd185ae" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9226
|
+
Processing by AuthenticationsController#callback as HTML
|
9227
|
+
Parameters: {"code"=>"f1b1f695738669cc168af6829dc2776cd08a3f092c62c879fb108d67f570f60a", "state"=>"9a39df313afe7e12ff5ff7598b3bf1d1e49975ba2bd185ae"}
|
9228
|
+
Authenticating with gds_sso strategy
|
9229
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9231
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9232
|
+
- signin
|
9233
|
+
' WHERE "users"."id" = 11
|
9234
|
+
[1m[36m (16.0ms)[0m [1mcommit transaction[0m
|
9235
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9236
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9237
|
+
- signin
|
9238
|
+
' WHERE "users"."id" = 11[0m
|
9239
|
+
[1m[35m (9.8ms)[0m commit transaction
|
9240
|
+
Redirected to http://www.example-client.com/restricted
|
9241
|
+
Completed 302 Found in 34.1ms (ActiveRecord: 26.3ms)
|
9242
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9243
|
+
Processing by ExampleController#restricted as HTML
|
9244
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9245
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9246
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
|
9247
|
+
Processing by ExampleController#restricted as HTML
|
9248
|
+
Authenticating with gds_sso strategy
|
9249
|
+
Completed in 0.3ms
|
9250
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
|
9251
|
+
Started GET "/auth/gds/callback?code=35222d3a35cd2ccfa17bcbadc4f961ebef52ec7149ce0ced6d3332ea755f2396&state=d71d6c22a479ada2d30b3ae490fd8ca6c5e478d34d3bd644" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
|
9252
|
+
Processing by AuthenticationsController#callback as HTML
|
9253
|
+
Parameters: {"code"=>"35222d3a35cd2ccfa17bcbadc4f961ebef52ec7149ce0ced6d3332ea755f2396", "state"=>"d71d6c22a479ada2d30b3ae490fd8ca6c5e478d34d3bd644"}
|
9254
|
+
Authenticating with gds_sso strategy
|
9255
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9257
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
9258
|
+
- signin
|
9259
|
+
' WHERE "users"."id" = 11
|
9260
|
+
[1m[36m (10.3ms)[0m [1mcommit transaction[0m
|
9261
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9262
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9263
|
+
- signin
|
9264
|
+
' WHERE "users"."id" = 11[0m
|
9265
|
+
[1m[35m (8.0ms)[0m commit transaction
|
9266
|
+
Redirected to http://www.example-client.com/restricted
|
9267
|
+
Completed 302 Found in 25.6ms (ActiveRecord: 18.8ms)
|
9268
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:51:53 +0000
|
9269
|
+
Processing by ExampleController#restricted as HTML
|
9270
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9271
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
9272
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9273
|
+
Processing by ExampleController#restricted as HTML
|
9274
|
+
Authenticating with gds_sso strategy
|
9275
|
+
Completed in 0.2ms
|
9276
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-06 17:46:53 +0000
|
9277
|
+
Started GET "/auth/gds/callback?code=7ac79b2d6c71cd05d1f4e0fc6660144c64c988a0a69464fa6d27ebe750a32b4c&state=5015a361126ec3f15aa0d59deb2fddd53529a5fb78ce2d61" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
|
9278
|
+
Processing by AuthenticationsController#callback as HTML
|
9279
|
+
Parameters: {"code"=>"7ac79b2d6c71cd05d1f4e0fc6660144c64c988a0a69464fa6d27ebe750a32b4c", "state"=>"5015a361126ec3f15aa0d59deb2fddd53529a5fb78ce2d61"}
|
9280
|
+
Authenticating with gds_sso strategy
|
9281
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9282
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9283
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9284
|
+
- signin
|
9285
|
+
' WHERE "users"."id" = 11
|
9286
|
+
[1m[36m (14.2ms)[0m [1mcommit transaction[0m
|
9287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9288
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9289
|
+
- signin
|
9290
|
+
' WHERE "users"."id" = 11[0m
|
9291
|
+
[1m[35m (42.0ms)[0m commit transaction
|
9292
|
+
Redirected to http://www.example-client.com/restricted
|
9293
|
+
Completed 302 Found in 64.8ms (ActiveRecord: 56.7ms)
|
9294
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
|
9295
|
+
Processing by ExampleController#restricted as HTML
|
9296
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9297
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9298
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-07 13:41:54 +0000
|
9299
|
+
Processing by ExampleController#restricted as HTML
|
9300
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9301
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
9302
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
|
9303
|
+
Processing by ExampleController#restricted as JSON
|
9304
|
+
Authenticating with gds_bearer_token strategy
|
9305
|
+
Completed in 6.9ms
|
9306
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
|
9307
|
+
Processing by ExampleController#restricted as JSON
|
9308
|
+
Authenticating with gds_bearer_token strategy
|
9309
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9310
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9311
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9312
|
+
- signin
|
9313
|
+
' WHERE "users"."id" = 11[0m
|
9314
|
+
[1m[35m (7.6ms)[0m commit transaction
|
9315
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9316
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9317
|
+
- signin
|
9318
|
+
' WHERE "users"."id" = 11
|
9319
|
+
[1m[36m (17.3ms)[0m [1mcommit transaction[0m
|
9320
|
+
Completed 200 OK in 58.6ms (Views: 0.4ms | ActiveRecord: 25.4ms)
|
9321
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-06 17:46:54 +0000
|
9322
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
9323
|
+
Authenticating with gds_bearer_token strategy
|
9324
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9325
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9326
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9327
|
+
- signin
|
9328
|
+
' WHERE "users"."id" = 11
|
9329
|
+
[1m[36m (16.2ms)[0m [1mcommit transaction[0m
|
9330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9331
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9332
|
+
- signin
|
9333
|
+
' WHERE "users"."id" = 11[0m
|
9334
|
+
[1m[35m (11.2ms)[0m commit transaction
|
9335
|
+
Completed 200 OK in 82.6ms (Views: 0.3ms | ActiveRecord: 27.9ms)
|
9336
|
+
Connecting to database specified by database.yml
|
9337
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
9338
|
+
[1m[35m (23.5ms)[0m DROP TABLE "users"
|
9339
|
+
[1m[36m (13.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) [0m
|
9340
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9341
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38230"]]
|
9342
|
+
[1m[35m (26.1ms)[0m commit transaction
|
9343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9344
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35602"]]
|
9345
|
+
[1m[36m (27.9ms)[0m [1mcommit transaction[0m
|
9346
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
9347
|
+
Processing by Api::UserController#update as HTML
|
9348
|
+
Parameters: {"uid"=>"a1s2d38230"}
|
9349
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (13.1ms)
|
9350
|
+
Completed 403 Forbidden in 18.9ms (Views: 18.2ms | ActiveRecord: 0.0ms)
|
9351
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9352
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3328"]]
|
9353
|
+
[1m[35m (52.1ms)[0m commit transaction
|
9354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9355
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37283"]]
|
9356
|
+
[1m[36m (16.2ms)[0m [1mcommit transaction[0m
|
9357
|
+
Processing by Api::UserController#update as HTML
|
9358
|
+
Parameters: {"uid"=>"a1s2d3328"}
|
9359
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3328' LIMIT 1
|
9360
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9361
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
9362
|
+
- signin
|
9363
|
+
- new permission
|
9364
|
+
', "organisation" = 'justice-league' WHERE "users"."id" = 3
|
9365
|
+
[1m[36m (22.5ms)[0m [1mcommit transaction[0m
|
9366
|
+
Completed 200 OK in 31.1ms (ActiveRecord: 22.9ms)
|
9367
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
9368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9369
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37431"]]
|
9370
|
+
[1m[36m (19.6ms)[0m [1mcommit transaction[0m
|
9371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9372
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37412"]]
|
9373
|
+
[1m[35m (12.5ms)[0m commit transaction
|
9374
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
9375
|
+
Processing by Api::UserController#reauth as HTML
|
9376
|
+
Parameters: {"uid"=>"a1s2d37431"}
|
9377
|
+
Completed 403 Forbidden in 1.8ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
9378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9379
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36141"]]
|
9380
|
+
[1m[36m (15.6ms)[0m [1mcommit transaction[0m
|
9381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9382
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35540"]]
|
9383
|
+
[1m[35m (47.5ms)[0m commit transaction
|
9384
|
+
Processing by Api::UserController#reauth as HTML
|
9385
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
9386
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
9387
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
9388
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9389
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d357"]]
|
9390
|
+
[1m[35m (15.2ms)[0m commit transaction
|
9391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3580"]]
|
9393
|
+
[1m[36m (15.6ms)[0m [1mcommit transaction[0m
|
9394
|
+
Processing by Api::UserController#reauth as HTML
|
9395
|
+
Parameters: {"uid"=>"a1s2d357"}
|
9396
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d357' LIMIT 1
|
9397
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9398
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9399
|
+
- signin
|
9400
|
+
' WHERE "users"."id" = 9
|
9401
|
+
[1m[36m (53.0ms)[0m [1mcommit transaction[0m
|
9402
|
+
Completed 200 OK in 57.4ms (ActiveRecord: 53.4ms)
|
9403
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
9404
|
+
Started GET "/" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
|
9405
|
+
Processing by ExampleController#index as HTML
|
9406
|
+
Completed 200 OK in 1.8ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
9407
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
|
9408
|
+
Processing by ExampleController#restricted as HTML
|
9409
|
+
Authenticating with gds_sso strategy
|
9410
|
+
Completed in 2.6ms
|
9411
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:06 +0000
|
9412
|
+
Started GET "/auth/gds/callback?code=d4511e53b9abd965f3595a247e507d54dd3fce55a984a9355b4d26cef31b2712&state=78c429951376e527b6978caf44ca97e17fa2fa55ec1abc77" for 127.0.0.1 at 2013-11-08 14:47:07 +0000
|
9413
|
+
Processing by AuthenticationsController#callback as HTML
|
9414
|
+
Parameters: {"code"=>"d4511e53b9abd965f3595a247e507d54dd3fce55a984a9355b4d26cef31b2712", "state"=>"78c429951376e527b6978caf44ca97e17fa2fa55ec1abc77"}
|
9415
|
+
Authenticating with gds_sso strategy
|
9416
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9417
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9418
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
9419
|
+
[1m[35m (35.9ms)[0m commit transaction
|
9420
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9421
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9422
|
+
- signin
|
9423
|
+
' WHERE "users"."id" = 11
|
9424
|
+
[1m[36m (14.1ms)[0m [1mcommit transaction[0m
|
9425
|
+
Redirected to http://www.example-client.com/restricted
|
9426
|
+
Completed 302 Found in 57.3ms (ActiveRecord: 50.7ms)
|
9427
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:07 +0000
|
9428
|
+
Processing by ExampleController#restricted as HTML
|
9429
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9430
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9431
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9432
|
+
Processing by ExampleController#restricted as HTML
|
9433
|
+
Authenticating with gds_sso strategy
|
9434
|
+
Completed in 0.3ms
|
9435
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9436
|
+
Started GET "/auth/gds/callback?code=4b7ad14e0455c3da5f408120116b640e94d72c31ffe68e646f5ce8cc7d6405e6&state=393752b84fc58af21ac2d5db1d9c47faa072269d499669c2" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9437
|
+
Processing by AuthenticationsController#callback as HTML
|
9438
|
+
Parameters: {"code"=>"4b7ad14e0455c3da5f408120116b640e94d72c31ffe68e646f5ce8cc7d6405e6", "state"=>"393752b84fc58af21ac2d5db1d9c47faa072269d499669c2"}
|
9439
|
+
Authenticating with gds_sso strategy
|
9440
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9442
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9443
|
+
- signin
|
9444
|
+
' WHERE "users"."id" = 11[0m
|
9445
|
+
[1m[35m (4.4ms)[0m commit transaction
|
9446
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9447
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9448
|
+
- signin
|
9449
|
+
' WHERE "users"."id" = 11
|
9450
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
9451
|
+
Redirected to http://www.example-client.com/restricted
|
9452
|
+
Completed 302 Found in 17.2ms (ActiveRecord: 9.3ms)
|
9453
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9454
|
+
Processing by ExampleController#restricted as HTML
|
9455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9456
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9457
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9458
|
+
Processing by ExampleController#restricted as HTML
|
9459
|
+
Authenticating with gds_sso strategy
|
9460
|
+
Completed in 0.2ms
|
9461
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9462
|
+
Started GET "/auth/gds/callback?code=614cf71fa0731ff14d8845afb80207c5fb1853a7bb56da15e455d3aedcac4d6e&state=1cd84871ecc06fbe00682977252c39e94ab7c9dbe895f1a7" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9463
|
+
Processing by AuthenticationsController#callback as HTML
|
9464
|
+
Parameters: {"code"=>"614cf71fa0731ff14d8845afb80207c5fb1853a7bb56da15e455d3aedcac4d6e", "state"=>"1cd84871ecc06fbe00682977252c39e94ab7c9dbe895f1a7"}
|
9465
|
+
Authenticating with gds_sso strategy
|
9466
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9467
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9468
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9469
|
+
- signin
|
9470
|
+
' WHERE "users"."id" = 11[0m
|
9471
|
+
[1m[35m (17.6ms)[0m commit transaction
|
9472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9473
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9474
|
+
- signin
|
9475
|
+
' WHERE "users"."id" = 11
|
9476
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
9477
|
+
Redirected to http://www.example-client.com/restricted
|
9478
|
+
Completed 302 Found in 30.2ms (ActiveRecord: 23.2ms)
|
9479
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9480
|
+
Processing by ExampleController#restricted as HTML
|
9481
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9482
|
+
Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9483
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9484
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9485
|
+
Authenticating with gds_sso strategy
|
9486
|
+
Completed in 0.6ms
|
9487
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:08 +0000
|
9488
|
+
Started GET "/auth/gds/callback?code=36e9b0e5ad83d2031b66453db2162340df11709faab16b9f42a0e0314aa17a0a&state=41c80f6e0b9cd6e9390bdc0247f58f3f728823353810bd4b" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9489
|
+
Processing by AuthenticationsController#callback as HTML
|
9490
|
+
Parameters: {"code"=>"36e9b0e5ad83d2031b66453db2162340df11709faab16b9f42a0e0314aa17a0a", "state"=>"41c80f6e0b9cd6e9390bdc0247f58f3f728823353810bd4b"}
|
9491
|
+
Authenticating with gds_sso strategy
|
9492
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9493
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9494
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9495
|
+
- signin
|
9496
|
+
' WHERE "users"."id" = 11[0m
|
9497
|
+
[1m[35m (5.8ms)[0m commit transaction
|
9498
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9499
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9500
|
+
- signin
|
9501
|
+
' WHERE "users"."id" = 11
|
9502
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
9503
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9504
|
+
Completed 302 Found in 17.4ms (ActiveRecord: 9.7ms)
|
9505
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9506
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9507
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9508
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9509
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9510
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9511
|
+
Authenticating with gds_sso strategy
|
9512
|
+
Completed in 0.2ms
|
9513
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9514
|
+
Started GET "/auth/gds/callback?code=610ccfeebb25e1eb50e0d050ac1d89b798760d53134366fa47db76517a039a28&state=71fad6c7a516a79a2323ccddd9a7ee5a2299127171a88f45" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9515
|
+
Processing by AuthenticationsController#callback as HTML
|
9516
|
+
Parameters: {"code"=>"610ccfeebb25e1eb50e0d050ac1d89b798760d53134366fa47db76517a039a28", "state"=>"71fad6c7a516a79a2323ccddd9a7ee5a2299127171a88f45"}
|
9517
|
+
Authenticating with gds_sso strategy
|
9518
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9519
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9520
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9521
|
+
- signin
|
9522
|
+
' WHERE "users"."id" = 11[0m
|
9523
|
+
[1m[35m (15.6ms)[0m commit transaction
|
9524
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9525
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9526
|
+
- signin
|
9527
|
+
' WHERE "users"."id" = 11
|
9528
|
+
[1m[36m (14.0ms)[0m [1mcommit transaction[0m
|
9529
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9530
|
+
Completed 302 Found in 37.7ms (ActiveRecord: 30.1ms)
|
9531
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9532
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9533
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9534
|
+
Completed 200 OK in 3.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9535
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9536
|
+
Processing by ExampleController#restricted as HTML
|
9537
|
+
Authenticating with gds_sso strategy
|
9538
|
+
Completed in 0.3ms
|
9539
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9540
|
+
Started GET "/auth/gds/callback?code=3018b9c29dff911c3391b72a9440202c5ca28fe734633364ecda51e74d467c50&state=24539d85d63c7ca7bcc64fce3769779a247fc031a4ae6a04" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9541
|
+
Processing by AuthenticationsController#callback as HTML
|
9542
|
+
Parameters: {"code"=>"3018b9c29dff911c3391b72a9440202c5ca28fe734633364ecda51e74d467c50", "state"=>"24539d85d63c7ca7bcc64fce3769779a247fc031a4ae6a04"}
|
9543
|
+
Authenticating with gds_sso strategy
|
9544
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9545
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9546
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9547
|
+
- signin
|
9548
|
+
' WHERE "users"."id" = 11[0m
|
9549
|
+
[1m[35m (16.0ms)[0m commit transaction
|
9550
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9551
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9552
|
+
- signin
|
9553
|
+
' WHERE "users"."id" = 11
|
9554
|
+
[1m[36m (10.5ms)[0m [1mcommit transaction[0m
|
9555
|
+
Redirected to http://www.example-client.com/restricted
|
9556
|
+
Completed 302 Found in 34.9ms (ActiveRecord: 27.0ms)
|
9557
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:09 +0000
|
9558
|
+
Processing by ExampleController#restricted as HTML
|
9559
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9560
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9561
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9562
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9563
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9564
|
+
- signin
|
9565
|
+
' WHERE "users"."id" = 11[0m
|
9566
|
+
[1m[35m (14.6ms)[0m commit transaction
|
9567
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9568
|
+
Processing by ExampleController#restricted as HTML
|
9569
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9570
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
9571
|
+
Completed 403 Forbidden in 2.8ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
9572
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9573
|
+
Processing by AuthenticationsController#sign_out as HTML
|
9574
|
+
Redirected to http://localhost:4567/users/sign_out
|
9575
|
+
Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
|
9576
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9577
|
+
Processing by ExampleController#restricted as HTML
|
9578
|
+
Authenticating with gds_sso strategy
|
9579
|
+
Completed in 0.2ms
|
9580
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9581
|
+
Started GET "/auth/gds/callback?code=11262864dac7b5748763fa7bfa1bb3392a6559dcf4c48621d633f7af27530df4&state=162f3bb99bb82007f86536f4091ffdd10251dc74bb98a854" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9582
|
+
Processing by AuthenticationsController#callback as HTML
|
9583
|
+
Parameters: {"code"=>"11262864dac7b5748763fa7bfa1bb3392a6559dcf4c48621d633f7af27530df4", "state"=>"162f3bb99bb82007f86536f4091ffdd10251dc74bb98a854"}
|
9584
|
+
Authenticating with gds_sso strategy
|
9585
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9586
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9587
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9588
|
+
- signin
|
9589
|
+
' WHERE "users"."id" = 11
|
9590
|
+
[1m[36m (13.3ms)[0m [1mcommit transaction[0m
|
9591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9592
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9593
|
+
- signin
|
9594
|
+
' WHERE "users"."id" = 11[0m
|
9595
|
+
[1m[35m (11.0ms)[0m commit transaction
|
9596
|
+
Redirected to http://www.example-client.com/restricted
|
9597
|
+
Completed 302 Found in 31.8ms (ActiveRecord: 24.8ms)
|
9598
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9599
|
+
Processing by ExampleController#restricted as HTML
|
9600
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9601
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9602
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9603
|
+
Processing by ExampleController#restricted as HTML
|
9604
|
+
Authenticating with gds_sso strategy
|
9605
|
+
Completed in 0.2ms
|
9606
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9607
|
+
Started GET "/auth/gds/callback?code=dddeddc33498f17d2535d8503c383a85d60647e80d1a7d16a4e2dc157224d545&state=5c9346b3cec8b8ab243afa4cf46ef6f300cbbfc733e8c7c8" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9608
|
+
Processing by AuthenticationsController#callback as HTML
|
9609
|
+
Parameters: {"code"=>"dddeddc33498f17d2535d8503c383a85d60647e80d1a7d16a4e2dc157224d545", "state"=>"5c9346b3cec8b8ab243afa4cf46ef6f300cbbfc733e8c7c8"}
|
9610
|
+
Authenticating with gds_sso strategy
|
9611
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9612
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9613
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9614
|
+
- signin
|
9615
|
+
' WHERE "users"."id" = 11
|
9616
|
+
[1m[36m (10.2ms)[0m [1mcommit transaction[0m
|
9617
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9618
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9619
|
+
- signin
|
9620
|
+
' WHERE "users"."id" = 11[0m
|
9621
|
+
[1m[35m (13.2ms)[0m commit transaction
|
9622
|
+
Redirected to http://www.example-client.com/restricted
|
9623
|
+
Completed 302 Found in 31.5ms (ActiveRecord: 23.9ms)
|
9624
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:10 +0000
|
9625
|
+
Processing by ExampleController#restricted as HTML
|
9626
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9627
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9628
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
|
9629
|
+
Processing by ExampleController#restricted as HTML
|
9630
|
+
Authenticating with gds_sso strategy
|
9631
|
+
Completed in 0.2ms
|
9632
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
|
9633
|
+
Started GET "/auth/gds/callback?code=7777f0245ed85c93eeaec2239c0f7d4269f3a51c686702455796e59a31e08bee&state=47c5e7bd7aef3fe9dc1310974b8e05f14c6e37474f2d0ad4" for 127.0.0.1 at 2013-11-09 10:52:10 +0000
|
9634
|
+
Processing by AuthenticationsController#callback as HTML
|
9635
|
+
Parameters: {"code"=>"7777f0245ed85c93eeaec2239c0f7d4269f3a51c686702455796e59a31e08bee", "state"=>"47c5e7bd7aef3fe9dc1310974b8e05f14c6e37474f2d0ad4"}
|
9636
|
+
Authenticating with gds_sso strategy
|
9637
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9638
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9639
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
9640
|
+
- signin
|
9641
|
+
' WHERE "users"."id" = 11
|
9642
|
+
[1m[36m (31.6ms)[0m [1mcommit transaction[0m
|
9643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9644
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9645
|
+
- signin
|
9646
|
+
' WHERE "users"."id" = 11[0m
|
9647
|
+
[1m[35m (9.6ms)[0m commit transaction
|
9648
|
+
Redirected to http://www.example-client.com/restricted
|
9649
|
+
Completed 302 Found in 48.5ms (ActiveRecord: 41.7ms)
|
9650
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:52:11 +0000
|
9651
|
+
Processing by ExampleController#restricted as HTML
|
9652
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9653
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
9654
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9655
|
+
Processing by ExampleController#restricted as HTML
|
9656
|
+
Authenticating with gds_sso strategy
|
9657
|
+
Completed in 0.2ms
|
9658
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9659
|
+
Started GET "/auth/gds/callback?code=937ba0d676e1d64a2ab8917afbf21668c6ba8609eae1119285f8bec3bfdb0bf5&state=eb2dff280e8ce23260562a506ae04af5d22164b0ccc01b12" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9660
|
+
Processing by AuthenticationsController#callback as HTML
|
9661
|
+
Parameters: {"code"=>"937ba0d676e1d64a2ab8917afbf21668c6ba8609eae1119285f8bec3bfdb0bf5", "state"=>"eb2dff280e8ce23260562a506ae04af5d22164b0ccc01b12"}
|
9662
|
+
Authenticating with gds_sso strategy
|
9663
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9664
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9665
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9666
|
+
- signin
|
9667
|
+
' WHERE "users"."id" = 11
|
9668
|
+
[1m[36m (11.9ms)[0m [1mcommit transaction[0m
|
9669
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9670
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9671
|
+
- signin
|
9672
|
+
' WHERE "users"."id" = 11[0m
|
9673
|
+
[1m[35m (11.7ms)[0m commit transaction
|
9674
|
+
Redirected to http://www.example-client.com/restricted
|
9675
|
+
Completed 302 Found in 32.3ms (ActiveRecord: 24.2ms)
|
9676
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9677
|
+
Processing by ExampleController#restricted as HTML
|
9678
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9679
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9680
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:42:11 +0000
|
9681
|
+
Processing by ExampleController#restricted as HTML
|
9682
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9683
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
9684
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9685
|
+
Processing by ExampleController#restricted as JSON
|
9686
|
+
Authenticating with gds_bearer_token strategy
|
9687
|
+
Completed in 11.6ms
|
9688
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9689
|
+
Processing by ExampleController#restricted as JSON
|
9690
|
+
Authenticating with gds_bearer_token strategy
|
9691
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9692
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9693
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9694
|
+
- signin
|
9695
|
+
' WHERE "users"."id" = 11[0m
|
9696
|
+
[1m[35m (11.5ms)[0m commit transaction
|
9697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9698
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9699
|
+
- signin
|
9700
|
+
' WHERE "users"."id" = 11
|
9701
|
+
[1m[36m (6.5ms)[0m [1mcommit transaction[0m
|
9702
|
+
Completed 200 OK in 55.5ms (Views: 0.2ms | ActiveRecord: 18.5ms)
|
9703
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 14:47:11 +0000
|
9704
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
9705
|
+
Authenticating with gds_bearer_token strategy
|
9706
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9707
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9708
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9709
|
+
- signin
|
9710
|
+
' WHERE "users"."id" = 11
|
9711
|
+
[1m[36m (5.8ms)[0m [1mcommit transaction[0m
|
9712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9713
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9714
|
+
- signin
|
9715
|
+
' WHERE "users"."id" = 11[0m
|
9716
|
+
[1m[35m (4.1ms)[0m commit transaction
|
9717
|
+
Completed 200 OK in 63.0ms (Views: 0.2ms | ActiveRecord: 10.4ms)
|
9718
|
+
Connecting to database specified by database.yml
|
9719
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
9720
|
+
[1m[35m (17.3ms)[0m DROP TABLE "users"
|
9721
|
+
[1m[36m (14.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255)) [0m
|
9722
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9723
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38035"]]
|
9724
|
+
[1m[35m (47.8ms)[0m commit transaction
|
9725
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9726
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31250"]]
|
9727
|
+
[1m[36m (10.0ms)[0m [1mcommit transaction[0m
|
9728
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
9729
|
+
Processing by Api::UserController#update as HTML
|
9730
|
+
Parameters: {"uid"=>"a1s2d38035"}
|
9731
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
9732
|
+
Completed 403 Forbidden in 9.0ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
9733
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9734
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32362"]]
|
9735
|
+
[1m[35m (36.0ms)[0m commit transaction
|
9736
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9737
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37496"]]
|
9738
|
+
[1m[36m (13.0ms)[0m [1mcommit transaction[0m
|
9739
|
+
Processing by Api::UserController#update as HTML
|
9740
|
+
Parameters: {"uid"=>"a1s2d32362"}
|
9741
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32362' LIMIT 1
|
9742
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9743
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
9744
|
+
- signin
|
9745
|
+
- new permission
|
9746
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
|
9747
|
+
[1m[36m (14.2ms)[0m [1mcommit transaction[0m
|
9748
|
+
Completed 200 OK in 22.7ms (ActiveRecord: 14.6ms)
|
9749
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
9750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9751
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35967"]]
|
9752
|
+
[1m[36m (60.1ms)[0m [1mcommit transaction[0m
|
9753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9754
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38552"]]
|
9755
|
+
[1m[35m (18.4ms)[0m commit transaction
|
9756
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
9757
|
+
Processing by Api::UserController#reauth as HTML
|
9758
|
+
Parameters: {"uid"=>"a1s2d35967"}
|
9759
|
+
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
9760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9761
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38024"]]
|
9762
|
+
[1m[36m (19.5ms)[0m [1mcommit transaction[0m
|
9763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9764
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37858"]]
|
9765
|
+
[1m[35m (14.7ms)[0m commit transaction
|
9766
|
+
Processing by Api::UserController#reauth as HTML
|
9767
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
9768
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
9769
|
+
Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
|
9770
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9771
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d317"]]
|
9772
|
+
[1m[35m (48.3ms)[0m commit transaction
|
9773
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9774
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31792"]]
|
9775
|
+
[1m[36m (27.9ms)[0m [1mcommit transaction[0m
|
9776
|
+
Processing by Api::UserController#reauth as HTML
|
9777
|
+
Parameters: {"uid"=>"a1s2d317"}
|
9778
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d317' LIMIT 1
|
9779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9780
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9781
|
+
- signin
|
9782
|
+
' WHERE "users"."id" = 9
|
9783
|
+
[1m[36m (16.7ms)[0m [1mcommit transaction[0m
|
9784
|
+
Completed 200 OK in 21.7ms (ActiveRecord: 17.2ms)
|
9785
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
9786
|
+
Started GET "/" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
|
9787
|
+
Processing by ExampleController#index as HTML
|
9788
|
+
Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
9789
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
|
9790
|
+
Processing by ExampleController#restricted as HTML
|
9791
|
+
Authenticating with gds_sso strategy
|
9792
|
+
Completed in 2.5ms
|
9793
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:21 +0000
|
9794
|
+
Started GET "/auth/gds/callback?code=bef86a39b09b0998ac8c8b2d31bea4c7a9830c5e2009a9b7cb801ac19436f7c6&state=d6b1f002da22f88aa0f51e25c2995705f2a2aad3629e156c" for 127.0.0.1 at 2013-11-08 15:01:22 +0000
|
9795
|
+
Processing by AuthenticationsController#callback as HTML
|
9796
|
+
Parameters: {"code"=>"bef86a39b09b0998ac8c8b2d31bea4c7a9830c5e2009a9b7cb801ac19436f7c6", "state"=>"d6b1f002da22f88aa0f51e25c2995705f2a2aad3629e156c"}
|
9797
|
+
Authenticating with gds_sso strategy
|
9798
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9799
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9800
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
9801
|
+
[1m[35m (47.7ms)[0m commit transaction
|
9802
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9803
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9804
|
+
- signin
|
9805
|
+
' WHERE "users"."id" = 11
|
9806
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
9807
|
+
Redirected to http://www.example-client.com/restricted
|
9808
|
+
Completed 302 Found in 63.6ms (ActiveRecord: 57.3ms)
|
9809
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:22 +0000
|
9810
|
+
Processing by ExampleController#restricted as HTML
|
9811
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9812
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9813
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9814
|
+
Processing by ExampleController#restricted as HTML
|
9815
|
+
Authenticating with gds_sso strategy
|
9816
|
+
Completed in 0.2ms
|
9817
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9818
|
+
Started GET "/auth/gds/callback?code=30478aca56e02750ac6b743c0afc7761734800c512f1416dc39b66a39677df9f&state=d98d9fc90c7029ebcfe3b03834fea279721136dec30cc065" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9819
|
+
Processing by AuthenticationsController#callback as HTML
|
9820
|
+
Parameters: {"code"=>"30478aca56e02750ac6b743c0afc7761734800c512f1416dc39b66a39677df9f", "state"=>"d98d9fc90c7029ebcfe3b03834fea279721136dec30cc065"}
|
9821
|
+
Authenticating with gds_sso strategy
|
9822
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9824
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9825
|
+
- signin
|
9826
|
+
' WHERE "users"."id" = 11[0m
|
9827
|
+
[1m[35m (14.7ms)[0m commit transaction
|
9828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9829
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9830
|
+
- signin
|
9831
|
+
' WHERE "users"."id" = 11
|
9832
|
+
[1m[36m (9.8ms)[0m [1mcommit transaction[0m
|
9833
|
+
Redirected to http://www.example-client.com/restricted
|
9834
|
+
Completed 302 Found in 33.6ms (ActiveRecord: 25.1ms)
|
9835
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9836
|
+
Processing by ExampleController#restricted as HTML
|
9837
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9838
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9839
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9840
|
+
Processing by ExampleController#restricted as HTML
|
9841
|
+
Authenticating with gds_sso strategy
|
9842
|
+
Completed in 0.2ms
|
9843
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9844
|
+
Started GET "/auth/gds/callback?code=dbb6952b4512dc6d678e15e6bf41d64bb6f17d57c7289d1e36b95933ee8f4057&state=87509ffa738bd65b1f823372e8f2ebe7a4980eb69bcc375d" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9845
|
+
Processing by AuthenticationsController#callback as HTML
|
9846
|
+
Parameters: {"code"=>"dbb6952b4512dc6d678e15e6bf41d64bb6f17d57c7289d1e36b95933ee8f4057", "state"=>"87509ffa738bd65b1f823372e8f2ebe7a4980eb69bcc375d"}
|
9847
|
+
Authenticating with gds_sso strategy
|
9848
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9849
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9850
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9851
|
+
- signin
|
9852
|
+
' WHERE "users"."id" = 11[0m
|
9853
|
+
[1m[35m (5.4ms)[0m commit transaction
|
9854
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9855
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9856
|
+
- signin
|
9857
|
+
' WHERE "users"."id" = 11
|
9858
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
9859
|
+
Redirected to http://www.example-client.com/restricted
|
9860
|
+
Completed 302 Found in 16.3ms (ActiveRecord: 9.3ms)
|
9861
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9862
|
+
Processing by ExampleController#restricted as HTML
|
9863
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9864
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9865
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9866
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9867
|
+
Authenticating with gds_sso strategy
|
9868
|
+
Completed in 0.6ms
|
9869
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:23 +0000
|
9870
|
+
Started GET "/auth/gds/callback?code=d99b30e79b5feab446bdeb3d52da096b24598dd7f1f36082c85f9408458771af&state=440b860600ba1872fd19bd1e61e262fc12219f4e9d16963f" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9871
|
+
Processing by AuthenticationsController#callback as HTML
|
9872
|
+
Parameters: {"code"=>"d99b30e79b5feab446bdeb3d52da096b24598dd7f1f36082c85f9408458771af", "state"=>"440b860600ba1872fd19bd1e61e262fc12219f4e9d16963f"}
|
9873
|
+
Authenticating with gds_sso strategy
|
9874
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9875
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9876
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9877
|
+
- signin
|
9878
|
+
' WHERE "users"."id" = 11[0m
|
9879
|
+
[1m[35m (4.9ms)[0m commit transaction
|
9880
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9881
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9882
|
+
- signin
|
9883
|
+
' WHERE "users"."id" = 11
|
9884
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
9885
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9886
|
+
Completed 302 Found in 16.1ms (ActiveRecord: 8.6ms)
|
9887
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9888
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9889
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9890
|
+
Completed 200 OK in 3.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9891
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9892
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9893
|
+
Authenticating with gds_sso strategy
|
9894
|
+
Completed in 0.1ms
|
9895
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9896
|
+
Started GET "/auth/gds/callback?code=ad0e4943dcb83533de6bd7ce753eadb5e8541fb8f0b3feaac339204bb180f557&state=c1fb6e74a4e5e3ff96833cd091d44691a021a5d5ae878d8f" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9897
|
+
Processing by AuthenticationsController#callback as HTML
|
9898
|
+
Parameters: {"code"=>"ad0e4943dcb83533de6bd7ce753eadb5e8541fb8f0b3feaac339204bb180f557", "state"=>"c1fb6e74a4e5e3ff96833cd091d44691a021a5d5ae878d8f"}
|
9899
|
+
Authenticating with gds_sso strategy
|
9900
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9901
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9902
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9903
|
+
- signin
|
9904
|
+
' WHERE "users"."id" = 11[0m
|
9905
|
+
[1m[35m (8.0ms)[0m commit transaction
|
9906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9907
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9908
|
+
- signin
|
9909
|
+
' WHERE "users"."id" = 11
|
9910
|
+
[1m[36m (6.0ms)[0m [1mcommit transaction[0m
|
9911
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
9912
|
+
Completed 302 Found in 21.6ms (ActiveRecord: 14.6ms)
|
9913
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9914
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
9915
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9916
|
+
Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9917
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9918
|
+
Processing by ExampleController#restricted as HTML
|
9919
|
+
Authenticating with gds_sso strategy
|
9920
|
+
Completed in 0.2ms
|
9921
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9922
|
+
Started GET "/auth/gds/callback?code=d2c5c2a6aacd0a736b2248e9355f4455b664f884911fd07fd3acf8b75e3c446c&state=1b546fb384dc7f0bd4eb7be1b17ee0c83842bc852f46fd31" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9923
|
+
Processing by AuthenticationsController#callback as HTML
|
9924
|
+
Parameters: {"code"=>"d2c5c2a6aacd0a736b2248e9355f4455b664f884911fd07fd3acf8b75e3c446c", "state"=>"1b546fb384dc7f0bd4eb7be1b17ee0c83842bc852f46fd31"}
|
9925
|
+
Authenticating with gds_sso strategy
|
9926
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9927
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9928
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
9929
|
+
- signin
|
9930
|
+
' WHERE "users"."id" = 11[0m
|
9931
|
+
[1m[35m (6.8ms)[0m commit transaction
|
9932
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9933
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9934
|
+
- signin
|
9935
|
+
' WHERE "users"."id" = 11
|
9936
|
+
[1m[36m (6.3ms)[0m [1mcommit transaction[0m
|
9937
|
+
Redirected to http://www.example-client.com/restricted
|
9938
|
+
Completed 302 Found in 21.5ms (ActiveRecord: 13.7ms)
|
9939
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9940
|
+
Processing by ExampleController#restricted as HTML
|
9941
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9942
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9943
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9944
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9945
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
9946
|
+
- signin
|
9947
|
+
' WHERE "users"."id" = 11[0m
|
9948
|
+
[1m[35m (4.2ms)[0m commit transaction
|
9949
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9950
|
+
Processing by ExampleController#restricted as HTML
|
9951
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9952
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
9953
|
+
Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
9954
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 15:01:24 +0000
|
9955
|
+
Processing by AuthenticationsController#sign_out as HTML
|
9956
|
+
Redirected to http://localhost:4567/users/sign_out
|
9957
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
9958
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9959
|
+
Processing by ExampleController#restricted as HTML
|
9960
|
+
Authenticating with gds_sso strategy
|
9961
|
+
Completed in 0.2ms
|
9962
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9963
|
+
Started GET "/auth/gds/callback?code=94f0057c367d3c242c67eb40f67770f23b18de3f9ae8782023ffbf527802db8e&state=278080b1b7100342f586e07f2211323b2059a3e3073ded42" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9964
|
+
Processing by AuthenticationsController#callback as HTML
|
9965
|
+
Parameters: {"code"=>"94f0057c367d3c242c67eb40f67770f23b18de3f9ae8782023ffbf527802db8e", "state"=>"278080b1b7100342f586e07f2211323b2059a3e3073ded42"}
|
9966
|
+
Authenticating with gds_sso strategy
|
9967
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9968
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9969
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9970
|
+
- signin
|
9971
|
+
' WHERE "users"."id" = 11
|
9972
|
+
[1m[36m (11.2ms)[0m [1mcommit transaction[0m
|
9973
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9974
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
9975
|
+
- signin
|
9976
|
+
' WHERE "users"."id" = 11[0m
|
9977
|
+
[1m[35m (29.1ms)[0m commit transaction
|
9978
|
+
Redirected to http://www.example-client.com/restricted
|
9979
|
+
Completed 302 Found in 47.8ms (ActiveRecord: 40.8ms)
|
9980
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9981
|
+
Processing by ExampleController#restricted as HTML
|
9982
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
9983
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
9984
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9985
|
+
Processing by ExampleController#restricted as HTML
|
9986
|
+
Authenticating with gds_sso strategy
|
9987
|
+
Completed in 0.2ms
|
9988
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9989
|
+
Started GET "/auth/gds/callback?code=6bd96c038b7a4b3da7de36dc97fabcf73811277e7ffb2ba71b9361a065e56806&state=2aa83e648b56336a9951a2b3d7f381987bfe4925c98ee94f" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
9990
|
+
Processing by AuthenticationsController#callback as HTML
|
9991
|
+
Parameters: {"code"=>"6bd96c038b7a4b3da7de36dc97fabcf73811277e7ffb2ba71b9361a065e56806", "state"=>"2aa83e648b56336a9951a2b3d7f381987bfe4925c98ee94f"}
|
9992
|
+
Authenticating with gds_sso strategy
|
9993
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
9994
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9995
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
9996
|
+
- signin
|
9997
|
+
' WHERE "users"."id" = 11
|
9998
|
+
[1m[36m (49.4ms)[0m [1mcommit transaction[0m
|
9999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10000
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10001
|
+
- signin
|
10002
|
+
' WHERE "users"."id" = 11[0m
|
10003
|
+
[1m[35m (10.8ms)[0m commit transaction
|
10004
|
+
Redirected to http://www.example-client.com/restricted
|
10005
|
+
Completed 302 Found in 68.8ms (ActiveRecord: 60.8ms)
|
10006
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:25 +0000
|
10007
|
+
Processing by ExampleController#restricted as HTML
|
10008
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10009
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10010
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
|
10011
|
+
Processing by ExampleController#restricted as HTML
|
10012
|
+
Authenticating with gds_sso strategy
|
10013
|
+
Completed in 0.2ms
|
10014
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
|
10015
|
+
Started GET "/auth/gds/callback?code=ea4fd4e60ce54b9f456a11a5d209618c58e2800eb4d1dead071923188819bbd4&state=905f434431c0548a3f6b9913de56ab9ec0852fe32d82d2dc" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
|
10016
|
+
Processing by AuthenticationsController#callback as HTML
|
10017
|
+
Parameters: {"code"=>"ea4fd4e60ce54b9f456a11a5d209618c58e2800eb4d1dead071923188819bbd4", "state"=>"905f434431c0548a3f6b9913de56ab9ec0852fe32d82d2dc"}
|
10018
|
+
Authenticating with gds_sso strategy
|
10019
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10020
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10021
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10022
|
+
- signin
|
10023
|
+
' WHERE "users"."id" = 11
|
10024
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
10025
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10026
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10027
|
+
- signin
|
10028
|
+
' WHERE "users"."id" = 11[0m
|
10029
|
+
[1m[35m (9.4ms)[0m commit transaction
|
10030
|
+
Redirected to http://www.example-client.com/restricted
|
10031
|
+
Completed 302 Found in 25.9ms (ActiveRecord: 19.0ms)
|
10032
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:06:25 +0000
|
10033
|
+
Processing by ExampleController#restricted as HTML
|
10034
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10035
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
10036
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10037
|
+
Processing by ExampleController#restricted as HTML
|
10038
|
+
Authenticating with gds_sso strategy
|
10039
|
+
Completed in 0.2ms
|
10040
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10041
|
+
Started GET "/auth/gds/callback?code=40276fb1d0d0ef231f866bbcbc79bdc8204fe9134ed182d8041586413eb461e3&state=b0aecdac0e4b9475f8f682eae7a8964810bb38fc5a127a37" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10042
|
+
Processing by AuthenticationsController#callback as HTML
|
10043
|
+
Parameters: {"code"=>"40276fb1d0d0ef231f866bbcbc79bdc8204fe9134ed182d8041586413eb461e3", "state"=>"b0aecdac0e4b9475f8f682eae7a8964810bb38fc5a127a37"}
|
10044
|
+
Authenticating with gds_sso strategy
|
10045
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10046
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10047
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10048
|
+
- signin
|
10049
|
+
' WHERE "users"."id" = 11
|
10050
|
+
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
10051
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10052
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10053
|
+
- signin
|
10054
|
+
' WHERE "users"."id" = 11[0m
|
10055
|
+
[1m[35m (3.3ms)[0m commit transaction
|
10056
|
+
Redirected to http://www.example-client.com/restricted
|
10057
|
+
Completed 302 Found in 17.1ms (ActiveRecord: 9.5ms)
|
10058
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10059
|
+
Processing by ExampleController#restricted as HTML
|
10060
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10061
|
+
Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10062
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:56:26 +0000
|
10063
|
+
Processing by ExampleController#restricted as HTML
|
10064
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10065
|
+
Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
10066
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10067
|
+
Processing by ExampleController#restricted as JSON
|
10068
|
+
Authenticating with gds_bearer_token strategy
|
10069
|
+
Completed in 6.9ms
|
10070
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10071
|
+
Processing by ExampleController#restricted as JSON
|
10072
|
+
Authenticating with gds_bearer_token strategy
|
10073
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10074
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10075
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10076
|
+
- signin
|
10077
|
+
' WHERE "users"."id" = 11[0m
|
10078
|
+
[1m[35m (14.0ms)[0m commit transaction
|
10079
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10080
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10081
|
+
- signin
|
10082
|
+
' WHERE "users"."id" = 11
|
10083
|
+
[1m[36m (11.4ms)[0m [1mcommit transaction[0m
|
10084
|
+
Completed 200 OK in 70.0ms (Views: 0.2ms | ActiveRecord: 25.9ms)
|
10085
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:01:26 +0000
|
10086
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
10087
|
+
Authenticating with gds_bearer_token strategy
|
10088
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10090
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10091
|
+
- signin
|
10092
|
+
' WHERE "users"."id" = 11
|
10093
|
+
[1m[36m (10.9ms)[0m [1mcommit transaction[0m
|
10094
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10095
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10096
|
+
- signin
|
10097
|
+
' WHERE "users"."id" = 11[0m
|
10098
|
+
[1m[35m (10.8ms)[0m commit transaction
|
10099
|
+
Completed 200 OK in 61.1ms (Views: 0.2ms | ActiveRecord: 22.2ms)
|
10100
|
+
Connecting to database specified by database.yml
|
10101
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
10102
|
+
[1m[35m (37.7ms)[0m DROP TABLE "users"
|
10103
|
+
[1m[36m (16.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255)) [0m
|
10104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10105
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31283"]]
|
10106
|
+
[1m[35m (17.1ms)[0m commit transaction
|
10107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10108
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34722"]]
|
10109
|
+
[1m[36m (10.9ms)[0m [1mcommit transaction[0m
|
10110
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
10111
|
+
Processing by Api::UserController#update as HTML
|
10112
|
+
Parameters: {"uid"=>"a1s2d31283"}
|
10113
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
|
10114
|
+
Completed 403 Forbidden in 6.3ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
10115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10116
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39153"]]
|
10117
|
+
[1m[35m (37.9ms)[0m commit transaction
|
10118
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10119
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35638"]]
|
10120
|
+
[1m[36m (17.6ms)[0m [1mcommit transaction[0m
|
10121
|
+
Processing by Api::UserController#update as HTML
|
10122
|
+
Parameters: {"uid"=>"a1s2d39153"}
|
10123
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39153' LIMIT 1
|
10124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10125
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
10126
|
+
- signin
|
10127
|
+
- new permission
|
10128
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
|
10129
|
+
[1m[36m (18.9ms)[0m [1mcommit transaction[0m
|
10130
|
+
Completed 200 OK in 47.8ms (ActiveRecord: 19.3ms)
|
10131
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
10132
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10133
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34567"]]
|
10134
|
+
[1m[36m (17.0ms)[0m [1mcommit transaction[0m
|
10135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10136
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35651"]]
|
10137
|
+
[1m[35m (32.1ms)[0m commit transaction
|
10138
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
10139
|
+
Processing by Api::UserController#reauth as HTML
|
10140
|
+
Parameters: {"uid"=>"a1s2d34567"}
|
10141
|
+
Completed 403 Forbidden in 1.7ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
10142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10143
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36922"]]
|
10144
|
+
[1m[36m (20.4ms)[0m [1mcommit transaction[0m
|
10145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10146
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32073"]]
|
10147
|
+
[1m[35m (42.1ms)[0m commit transaction
|
10148
|
+
Processing by Api::UserController#reauth as HTML
|
10149
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
10150
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
10151
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
10152
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35898"]]
|
10154
|
+
[1m[35m (16.3ms)[0m commit transaction
|
10155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10156
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33825"]]
|
10157
|
+
[1m[36m (11.3ms)[0m [1mcommit transaction[0m
|
10158
|
+
Processing by Api::UserController#reauth as HTML
|
10159
|
+
Parameters: {"uid"=>"a1s2d35898"}
|
10160
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35898' LIMIT 1
|
10161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10162
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
10163
|
+
- signin
|
10164
|
+
' WHERE "users"."id" = 9
|
10165
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
10166
|
+
Completed 200 OK in 12.6ms (ActiveRecord: 8.7ms)
|
10167
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
|
10168
|
+
Started GET "/" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
|
10169
|
+
Processing by ExampleController#index as HTML
|
10170
|
+
Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
10171
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
|
10172
|
+
Processing by ExampleController#restricted as HTML
|
10173
|
+
Authenticating with gds_sso strategy
|
10174
|
+
Completed in 2.6ms
|
10175
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:41 +0000
|
10176
|
+
Started GET "/auth/gds/callback?code=1f15bab7459e5266f1631dd56cb797d19ffb7f39fb208d6e5fc307e82d73da02&state=051c120b8039dc740b5e8362c6971514ab9faec4ef97d765" for 127.0.0.1 at 2013-11-08 15:02:42 +0000
|
10177
|
+
Processing by AuthenticationsController#callback as HTML
|
10178
|
+
Parameters: {"code"=>"1f15bab7459e5266f1631dd56cb797d19ffb7f39fb208d6e5fc307e82d73da02", "state"=>"051c120b8039dc740b5e8362c6971514ab9faec4ef97d765"}
|
10179
|
+
Authenticating with gds_sso strategy
|
10180
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10182
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
10183
|
+
[1m[35m (14.7ms)[0m commit transaction
|
10184
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10185
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
10186
|
+
- signin
|
10187
|
+
' WHERE "users"."id" = 11
|
10188
|
+
[1m[36m (32.7ms)[0m [1mcommit transaction[0m
|
10189
|
+
Redirected to http://www.example-client.com/restricted
|
10190
|
+
Completed 302 Found in 54.5ms (ActiveRecord: 48.0ms)
|
10191
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:42 +0000
|
10192
|
+
Processing by ExampleController#restricted as HTML
|
10193
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10194
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10195
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10196
|
+
Processing by ExampleController#restricted as HTML
|
10197
|
+
Authenticating with gds_sso strategy
|
10198
|
+
Completed in 0.3ms
|
10199
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10200
|
+
Started GET "/auth/gds/callback?code=dd3db402e9ab7ae7815822077965e419c0fdf62a954acf781c4b8643b7f9eabe&state=e9deeedfb741a7c17c158ad118d9cda95b4110b2ce266cb6" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10201
|
+
Processing by AuthenticationsController#callback as HTML
|
10202
|
+
Parameters: {"code"=>"dd3db402e9ab7ae7815822077965e419c0fdf62a954acf781c4b8643b7f9eabe", "state"=>"e9deeedfb741a7c17c158ad118d9cda95b4110b2ce266cb6"}
|
10203
|
+
Authenticating with gds_sso strategy
|
10204
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10206
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10207
|
+
- signin
|
10208
|
+
' WHERE "users"."id" = 11[0m
|
10209
|
+
[1m[35m (31.5ms)[0m commit transaction
|
10210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10211
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10212
|
+
- signin
|
10213
|
+
' WHERE "users"."id" = 11
|
10214
|
+
[1m[36m (13.4ms)[0m [1mcommit transaction[0m
|
10215
|
+
Redirected to http://www.example-client.com/restricted
|
10216
|
+
Completed 302 Found in 53.0ms (ActiveRecord: 45.4ms)
|
10217
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10218
|
+
Processing by ExampleController#restricted as HTML
|
10219
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10220
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10221
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10222
|
+
Processing by ExampleController#restricted as HTML
|
10223
|
+
Authenticating with gds_sso strategy
|
10224
|
+
Completed in 0.2ms
|
10225
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10226
|
+
Started GET "/auth/gds/callback?code=327eaa7790a9b208216bf2519d85c13f42dc71305402f0a13fc2be2e09e8d56c&state=4714a2b35f3b1481cc7274fbdd5ac5d73a4c5b85e0133d22" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10227
|
+
Processing by AuthenticationsController#callback as HTML
|
10228
|
+
Parameters: {"code"=>"327eaa7790a9b208216bf2519d85c13f42dc71305402f0a13fc2be2e09e8d56c", "state"=>"4714a2b35f3b1481cc7274fbdd5ac5d73a4c5b85e0133d22"}
|
10229
|
+
Authenticating with gds_sso strategy
|
10230
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10231
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10232
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10233
|
+
- signin
|
10234
|
+
' WHERE "users"."id" = 11[0m
|
10235
|
+
[1m[35m (9.2ms)[0m commit transaction
|
10236
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10237
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10238
|
+
- signin
|
10239
|
+
' WHERE "users"."id" = 11
|
10240
|
+
[1m[36m (4.1ms)[0m [1mcommit transaction[0m
|
10241
|
+
Redirected to http://www.example-client.com/restricted
|
10242
|
+
Completed 302 Found in 21.7ms (ActiveRecord: 13.8ms)
|
10243
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10244
|
+
Processing by ExampleController#restricted as HTML
|
10245
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10246
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
10247
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10248
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
10249
|
+
Authenticating with gds_sso strategy
|
10250
|
+
Completed in 0.6ms
|
10251
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:43 +0000
|
10252
|
+
Started GET "/auth/gds/callback?code=404da1bf910fa7c838547c386139a7c25281491089bd87fbca64729e4a95f54a&state=e9602bc6256396e03cf5afb38bb3849ef728407de2890a2e" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10253
|
+
Processing by AuthenticationsController#callback as HTML
|
10254
|
+
Parameters: {"code"=>"404da1bf910fa7c838547c386139a7c25281491089bd87fbca64729e4a95f54a", "state"=>"e9602bc6256396e03cf5afb38bb3849ef728407de2890a2e"}
|
10255
|
+
Authenticating with gds_sso strategy
|
10256
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10257
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10258
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10259
|
+
- signin
|
10260
|
+
' WHERE "users"."id" = 11[0m
|
10261
|
+
[1m[35m (20.5ms)[0m commit transaction
|
10262
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10263
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10264
|
+
- signin
|
10265
|
+
' WHERE "users"."id" = 11
|
10266
|
+
[1m[36m (13.2ms)[0m [1mcommit transaction[0m
|
10267
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
10268
|
+
Completed 302 Found in 41.7ms (ActiveRecord: 34.2ms)
|
10269
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10270
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
10271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10272
|
+
Completed 200 OK in 2.9ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10273
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10274
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
10275
|
+
Authenticating with gds_sso strategy
|
10276
|
+
Completed in 0.2ms
|
10277
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10278
|
+
Started GET "/auth/gds/callback?code=2b710235af52d25f3967040ab08c3f3ccb3f4762b444a0b99d2ec46fd874271b&state=a95408ed3e33f548280066d979ef8c0f23781dcb6459fd62" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10279
|
+
Processing by AuthenticationsController#callback as HTML
|
10280
|
+
Parameters: {"code"=>"2b710235af52d25f3967040ab08c3f3ccb3f4762b444a0b99d2ec46fd874271b", "state"=>"a95408ed3e33f548280066d979ef8c0f23781dcb6459fd62"}
|
10281
|
+
Authenticating with gds_sso strategy
|
10282
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10284
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10285
|
+
- signin
|
10286
|
+
' WHERE "users"."id" = 11[0m
|
10287
|
+
[1m[35m (9.3ms)[0m commit transaction
|
10288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10289
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10290
|
+
- signin
|
10291
|
+
' WHERE "users"."id" = 11
|
10292
|
+
[1m[36m (7.5ms)[0m [1mcommit transaction[0m
|
10293
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
10294
|
+
Completed 302 Found in 24.7ms (ActiveRecord: 17.3ms)
|
10295
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10296
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
10297
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10298
|
+
Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10299
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10300
|
+
Processing by ExampleController#restricted as HTML
|
10301
|
+
Authenticating with gds_sso strategy
|
10302
|
+
Completed in 0.2ms
|
10303
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10304
|
+
Started GET "/auth/gds/callback?code=4e80b394e7d82a0f0eb6c73d7094fc61d0f47e2359720f81ad3f66eb39b7b7f8&state=2aea5dad89f223eec5195924a904865d4fa5150140660a74" for 127.0.0.1 at 2013-11-08 15:02:44 +0000
|
10305
|
+
Processing by AuthenticationsController#callback as HTML
|
10306
|
+
Parameters: {"code"=>"4e80b394e7d82a0f0eb6c73d7094fc61d0f47e2359720f81ad3f66eb39b7b7f8", "state"=>"2aea5dad89f223eec5195924a904865d4fa5150140660a74"}
|
10307
|
+
Authenticating with gds_sso strategy
|
10308
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10309
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10310
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10311
|
+
- signin
|
10312
|
+
' WHERE "users"."id" = 11[0m
|
10313
|
+
[1m[35m (23.2ms)[0m commit transaction
|
10314
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10315
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10316
|
+
- signin
|
10317
|
+
' WHERE "users"."id" = 11
|
10318
|
+
[1m[36m (13.0ms)[0m [1mcommit transaction[0m
|
10319
|
+
Redirected to http://www.example-client.com/restricted
|
10320
|
+
Completed 302 Found in 44.1ms (ActiveRecord: 36.6ms)
|
10321
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10322
|
+
Processing by ExampleController#restricted as HTML
|
10323
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10324
|
+
Completed 200 OK in 1.1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
10325
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10326
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10327
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
10328
|
+
- signin
|
10329
|
+
' WHERE "users"."id" = 11[0m
|
10330
|
+
[1m[35m (12.3ms)[0m commit transaction
|
10331
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10332
|
+
Processing by ExampleController#restricted as HTML
|
10333
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10334
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
10335
|
+
Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
10336
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10337
|
+
Processing by AuthenticationsController#sign_out as HTML
|
10338
|
+
Redirected to http://localhost:4567/users/sign_out
|
10339
|
+
Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
|
10340
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10341
|
+
Processing by ExampleController#restricted as HTML
|
10342
|
+
Authenticating with gds_sso strategy
|
10343
|
+
Completed in 0.2ms
|
10344
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10345
|
+
Started GET "/auth/gds/callback?code=1a57cb546ccdad7aa04689a6bb3a6de966d3efa64f37bcbe778dbc6f5fcb0734&state=e6ded0e740602f55d1873db2db40e81074c6e3f91ead341a" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10346
|
+
Processing by AuthenticationsController#callback as HTML
|
10347
|
+
Parameters: {"code"=>"1a57cb546ccdad7aa04689a6bb3a6de966d3efa64f37bcbe778dbc6f5fcb0734", "state"=>"e6ded0e740602f55d1873db2db40e81074c6e3f91ead341a"}
|
10348
|
+
Authenticating with gds_sso strategy
|
10349
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10351
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10352
|
+
- signin
|
10353
|
+
' WHERE "users"."id" = 11
|
10354
|
+
[1m[36m (14.6ms)[0m [1mcommit transaction[0m
|
10355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10356
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
10357
|
+
- signin
|
10358
|
+
' WHERE "users"."id" = 11[0m
|
10359
|
+
[1m[35m (11.7ms)[0m commit transaction
|
10360
|
+
Redirected to http://www.example-client.com/restricted
|
10361
|
+
Completed 302 Found in 33.8ms (ActiveRecord: 26.8ms)
|
10362
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10363
|
+
Processing by ExampleController#restricted as HTML
|
10364
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10365
|
+
Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
10366
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10367
|
+
Processing by ExampleController#restricted as HTML
|
10368
|
+
Authenticating with gds_sso strategy
|
10369
|
+
Completed in 0.2ms
|
10370
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10371
|
+
Started GET "/auth/gds/callback?code=b625d658705eecd075b56afec46f5590656138db8a381a9bd846bed189ad8ad2&state=87203e24e342df13610bafdb56805b97f7d4486eb0430fdd" for 127.0.0.1 at 2013-11-08 15:02:45 +0000
|
10372
|
+
Processing by AuthenticationsController#callback as HTML
|
10373
|
+
Parameters: {"code"=>"b625d658705eecd075b56afec46f5590656138db8a381a9bd846bed189ad8ad2", "state"=>"87203e24e342df13610bafdb56805b97f7d4486eb0430fdd"}
|
10374
|
+
Authenticating with gds_sso strategy
|
10375
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10376
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10377
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10378
|
+
- signin
|
10379
|
+
' WHERE "users"."id" = 11
|
10380
|
+
[1m[36m (66.5ms)[0m [1mcommit transaction[0m
|
10381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10382
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10383
|
+
- signin
|
10384
|
+
' WHERE "users"."id" = 11[0m
|
10385
|
+
[1m[35m (56.8ms)[0m commit transaction
|
10386
|
+
Redirected to http://www.example-client.com/restricted
|
10387
|
+
Completed 302 Found in 131.6ms (ActiveRecord: 123.8ms)
|
10388
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
|
10389
|
+
Processing by ExampleController#restricted as HTML
|
10390
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10391
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10392
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
|
10393
|
+
Processing by ExampleController#restricted as HTML
|
10394
|
+
Authenticating with gds_sso strategy
|
10395
|
+
Completed in 0.2ms
|
10396
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
|
10397
|
+
Started GET "/auth/gds/callback?code=f05a46d8c299f4ef3805ced576f6a99f7a299840a3e05969fd04097439cc0fe4&state=001047c5812986e315961437d22b6cf2bbc43b0211873952" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
|
10398
|
+
Processing by AuthenticationsController#callback as HTML
|
10399
|
+
Parameters: {"code"=>"f05a46d8c299f4ef3805ced576f6a99f7a299840a3e05969fd04097439cc0fe4", "state"=>"001047c5812986e315961437d22b6cf2bbc43b0211873952"}
|
10400
|
+
Authenticating with gds_sso strategy
|
10401
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10403
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
10404
|
+
- signin
|
10405
|
+
' WHERE "users"."id" = 11
|
10406
|
+
[1m[36m (58.7ms)[0m [1mcommit transaction[0m
|
10407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10408
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10409
|
+
- signin
|
10410
|
+
' WHERE "users"."id" = 11[0m
|
10411
|
+
[1m[35m (51.5ms)[0m commit transaction
|
10412
|
+
Redirected to http://www.example-client.com/restricted
|
10413
|
+
Completed 302 Found in 117.8ms (ActiveRecord: 110.8ms)
|
10414
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 11:07:46 +0000
|
10415
|
+
Processing by ExampleController#restricted as HTML
|
10416
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10417
|
+
Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
10418
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
|
10419
|
+
Processing by ExampleController#restricted as HTML
|
10420
|
+
Authenticating with gds_sso strategy
|
10421
|
+
Completed in 0.2ms
|
10422
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-08 15:02:46 +0000
|
10423
|
+
Started GET "/auth/gds/callback?code=d5c34ecf9181c70ec56312dddd27ea0734989b8dcde8304f3dfb4803a29f4b78&state=e37813311ff3b59220be09b94b63436c9ca508bb00b5f241" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
|
10424
|
+
Processing by AuthenticationsController#callback as HTML
|
10425
|
+
Parameters: {"code"=>"d5c34ecf9181c70ec56312dddd27ea0734989b8dcde8304f3dfb4803a29f4b78", "state"=>"e37813311ff3b59220be09b94b63436c9ca508bb00b5f241"}
|
10426
|
+
Authenticating with gds_sso strategy
|
10427
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10429
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10430
|
+
- signin
|
10431
|
+
' WHERE "users"."id" = 11
|
10432
|
+
[1m[36m (20.2ms)[0m [1mcommit transaction[0m
|
10433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10434
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10435
|
+
- signin
|
10436
|
+
' WHERE "users"."id" = 11[0m
|
10437
|
+
[1m[35m (14.0ms)[0m commit transaction
|
10438
|
+
Redirected to http://www.example-client.com/restricted
|
10439
|
+
Completed 302 Found in 42.8ms (ActiveRecord: 34.7ms)
|
10440
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
|
10441
|
+
Processing by ExampleController#restricted as HTML
|
10442
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10443
|
+
Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
10444
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-09 10:57:47 +0000
|
10445
|
+
Processing by ExampleController#restricted as HTML
|
10446
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10447
|
+
Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
10448
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
|
10449
|
+
Processing by ExampleController#restricted as JSON
|
10450
|
+
Authenticating with gds_bearer_token strategy
|
10451
|
+
Completed in 6.8ms
|
10452
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
|
10453
|
+
Processing by ExampleController#restricted as JSON
|
10454
|
+
Authenticating with gds_bearer_token strategy
|
10455
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
10456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10457
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10458
|
+
- signin
|
10459
|
+
' WHERE "users"."id" = 11[0m
|
10460
|
+
[1m[35m (8.5ms)[0m commit transaction
|
10461
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10462
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10463
|
+
- signin
|
10464
|
+
' WHERE "users"."id" = 11
|
10465
|
+
[1m[36m (7.7ms)[0m [1mcommit transaction[0m
|
10466
|
+
Completed 200 OK in 51.7ms (Views: 0.2ms | ActiveRecord: 16.8ms)
|
10467
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-08 15:02:47 +0000
|
10468
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
10469
|
+
Authenticating with gds_bearer_token strategy
|
10470
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
10471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10472
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
10473
|
+
- signin
|
10474
|
+
' WHERE "users"."id" = 11
|
10475
|
+
[1m[36m (8.5ms)[0m [1mcommit transaction[0m
|
10476
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10477
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
10478
|
+
- signin
|
10479
|
+
' WHERE "users"."id" = 11[0m
|
10480
|
+
[1m[35m (5.4ms)[0m commit transaction
|
10481
|
+
Completed 200 OK in 59.7ms (Views: 0.2ms | ActiveRecord: 14.3ms)
|