gds-sso 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/gds-sso/config.rb +4 -1
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +9 -3
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +1248 -0
- data/spec/requests/end_to_end_spec.rb +39 -0
- data/test/session_serialisation_test.rb +50 -0
- data/test/test_helper.rb +6 -3
- metadata +17 -4
data/README.md
CHANGED
@@ -17,7 +17,7 @@ These can be provided by one of the team with admin access to sign-on-o-tron.
|
|
17
17
|
|
18
18
|
Then include the gem in your Gemfile:
|
19
19
|
|
20
|
-
gem 'gds-sso', :git => 'https://github.com/alphagov/gds-sso.git'
|
20
|
+
gem 'gds-sso', :git => 'https://github.com/alphagov/gds-sso.git'
|
21
21
|
|
22
22
|
Create a `config/initializers/gds-sso.rb` that looks like:
|
23
23
|
|
data/lib/gds-sso/config.rb
CHANGED
data/lib/gds-sso/version.rb
CHANGED
@@ -9,11 +9,17 @@ Warden::Manager.after_authentication do |user, auth, opts|
|
|
9
9
|
end
|
10
10
|
|
11
11
|
Warden::Manager.serialize_into_session do |user|
|
12
|
-
user.respond_to?(:uid) ? user.uid : nil
|
12
|
+
user.respond_to?(:uid) ? [user.uid, Time.now.utc] : nil
|
13
13
|
end
|
14
14
|
|
15
|
-
Warden::Manager.serialize_from_session do |
|
16
|
-
|
15
|
+
Warden::Manager.serialize_from_session do |tuple|
|
16
|
+
# This will reject old sessions that don't have an auth_set time
|
17
|
+
uid, auth_set = tuple
|
18
|
+
if auth_set and (auth_set + GDS::SSO::Config.auth_valid_for) > Time.now.utc
|
19
|
+
GDS::SSO::Config.user_klass.find_by_uid(uid)
|
20
|
+
else
|
21
|
+
nil
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
Warden::Strategies.add(:gds_sso) do
|
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -6270,3 +6270,1251 @@ GDS_SSO integration test:
|
|
6270
6270
|
[1m[36m (20.5ms)[0m [1mcommit transaction[0m
|
6271
6271
|
Completed 200 OK in 24ms (ActiveRecord: 21.0ms)
|
6272
6272
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
6273
|
+
Connecting to database specified by database.yml
|
6274
|
+
[1m[36m (3.3ms)[0m [1mselect sqlite_version(*)[0m
|
6275
|
+
[1m[35m (13.8ms)[0m DROP TABLE "users"
|
6276
|
+
[1m[36m (2.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) [0m
|
6277
|
+
|
6278
|
+
|
6279
|
+
Started GET "/" for 127.0.0.1 at 2012-07-27 08:15:49 +0000
|
6280
|
+
Processing by ExampleController#index as HTML
|
6281
|
+
Rendered text template (0.0ms)
|
6282
|
+
Completed 200 OK in 109ms (Views: 108.5ms | ActiveRecord: 0.0ms)
|
6283
|
+
|
6284
|
+
|
6285
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:50 +0000
|
6286
|
+
Processing by ExampleController#restricted as HTML
|
6287
|
+
Authenticating with gds_sso strategy
|
6288
|
+
Completed in 20ms
|
6289
|
+
|
6290
|
+
|
6291
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:50 +0000
|
6292
|
+
|
6293
|
+
|
6294
|
+
Started GET "/auth/gds/callback?code=672f73760787d1340c50a43992e1b1477d7ff417db36a2111f73727d3f29d71b&state=2ea392230392df2431984e0e2618a420c3f7b445731a076d" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6295
|
+
Processing by AuthenticationsController#callback as HTML
|
6296
|
+
Parameters: {"code"=>"672f73760787d1340c50a43992e1b1477d7ff417db36a2111f73727d3f29d71b", "state"=>"2ea392230392df2431984e0e2618a420c3f7b445731a076d"}
|
6297
|
+
Authenticating with gds_sso strategy
|
6298
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6300
|
+
[1m[35mSQL (8.7ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
6301
|
+
[1m[36m (12.6ms)[0m [1mcommit transaction[0m
|
6302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6303
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6304
|
+
GDS_SSO integration test:
|
6305
|
+
- signin
|
6306
|
+
' WHERE "users"."id" = 1[0m
|
6307
|
+
[1m[35m (7.6ms)[0m commit transaction
|
6308
|
+
Redirected to http://www.example-client.com/restricted
|
6309
|
+
Completed 302 Found in 110ms (ActiveRecord: 30.3ms)
|
6310
|
+
|
6311
|
+
|
6312
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6313
|
+
Processing by ExampleController#restricted as HTML
|
6314
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6315
|
+
Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
6316
|
+
|
6317
|
+
|
6318
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6319
|
+
Processing by ExampleController#restricted as HTML
|
6320
|
+
Authenticating with gds_sso strategy
|
6321
|
+
Completed in 1ms
|
6322
|
+
|
6323
|
+
|
6324
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6325
|
+
|
6326
|
+
|
6327
|
+
Started GET "/auth/gds/callback?code=cfbd28a81c65a35470911eb2c3d2ed45231399c6a9969f864e17eafdee4e3fb3&state=9cb9c1eb965df4d40eb08664d487b7dbdb7b1b0aecbc2f5c" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6328
|
+
Processing by AuthenticationsController#callback as HTML
|
6329
|
+
Parameters: {"code"=>"cfbd28a81c65a35470911eb2c3d2ed45231399c6a9969f864e17eafdee4e3fb3", "state"=>"9cb9c1eb965df4d40eb08664d487b7dbdb7b1b0aecbc2f5c"}
|
6330
|
+
Authenticating with gds_sso strategy
|
6331
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6333
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
6334
|
+
GDS_SSO integration test:
|
6335
|
+
- signin
|
6336
|
+
' WHERE "users"."id" = 1
|
6337
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
6338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6339
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6340
|
+
GDS_SSO integration test:
|
6341
|
+
- signin
|
6342
|
+
' WHERE "users"."id" = 1[0m
|
6343
|
+
[1m[35m (1.5ms)[0m commit transaction
|
6344
|
+
Redirected to http://www.example-client.com/restricted
|
6345
|
+
Completed 302 Found in 17ms (ActiveRecord: 10.6ms)
|
6346
|
+
|
6347
|
+
|
6348
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6349
|
+
Processing by ExampleController#restricted as HTML
|
6350
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6351
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
6352
|
+
|
6353
|
+
|
6354
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6355
|
+
Processing by ExampleController#restricted as HTML
|
6356
|
+
Authenticating with gds_sso strategy
|
6357
|
+
Completed in 0ms
|
6358
|
+
|
6359
|
+
|
6360
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:51 +0000
|
6361
|
+
|
6362
|
+
|
6363
|
+
Started GET "/auth/gds/callback?code=30e282807cc44ca2d222238386176fb6993ba6d40deb12b368338e99330dead2&state=be71eaa9a2b9895ce44564acc0ce4e48b358dbe323fb57e5" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6364
|
+
Processing by AuthenticationsController#callback as HTML
|
6365
|
+
Parameters: {"code"=>"30e282807cc44ca2d222238386176fb6993ba6d40deb12b368338e99330dead2", "state"=>"be71eaa9a2b9895ce44564acc0ce4e48b358dbe323fb57e5"}
|
6366
|
+
Authenticating with gds_sso strategy
|
6367
|
+
[1m[35mUser Load (0.8ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6369
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6370
|
+
GDS_SSO integration test:
|
6371
|
+
- signin
|
6372
|
+
' WHERE "users"."id" = 1
|
6373
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6375
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6376
|
+
GDS_SSO integration test:
|
6377
|
+
- signin
|
6378
|
+
' WHERE "users"."id" = 1[0m
|
6379
|
+
[1m[35m (12.8ms)[0m commit transaction
|
6380
|
+
Redirected to http://www.example-client.com/restricted
|
6381
|
+
Completed 302 Found in 23ms (ActiveRecord: 17.3ms)
|
6382
|
+
|
6383
|
+
|
6384
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6385
|
+
Processing by ExampleController#restricted as HTML
|
6386
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6387
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6388
|
+
|
6389
|
+
|
6390
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6391
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6392
|
+
Authenticating with gds_sso strategy
|
6393
|
+
Completed in 1ms
|
6394
|
+
|
6395
|
+
|
6396
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6397
|
+
|
6398
|
+
|
6399
|
+
Started GET "/auth/gds/callback?code=5eddf9c1cd8e1eaa1612cdad277860e889cdf799e3073ae8be0080e3f51a0a1e&state=60fc9b714bfb5bb8ba71082848f26cb4fada08ade34efa46" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6400
|
+
Processing by AuthenticationsController#callback as HTML
|
6401
|
+
Parameters: {"code"=>"5eddf9c1cd8e1eaa1612cdad277860e889cdf799e3073ae8be0080e3f51a0a1e", "state"=>"60fc9b714bfb5bb8ba71082848f26cb4fada08ade34efa46"}
|
6402
|
+
Authenticating with gds_sso strategy
|
6403
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6404
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6405
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
6406
|
+
GDS_SSO integration test:
|
6407
|
+
- signin
|
6408
|
+
' WHERE "users"."id" = 1
|
6409
|
+
[1m[36m (6.4ms)[0m [1mcommit transaction[0m
|
6410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6411
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6412
|
+
GDS_SSO integration test:
|
6413
|
+
- signin
|
6414
|
+
' WHERE "users"."id" = 1[0m
|
6415
|
+
[1m[35m (1.7ms)[0m commit transaction
|
6416
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6417
|
+
Completed 302 Found in 17ms (ActiveRecord: 9.3ms)
|
6418
|
+
|
6419
|
+
|
6420
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6421
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6422
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6423
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
|
6424
|
+
|
6425
|
+
|
6426
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6427
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6428
|
+
Authenticating with gds_sso strategy
|
6429
|
+
Completed in 0ms
|
6430
|
+
|
6431
|
+
|
6432
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6433
|
+
|
6434
|
+
|
6435
|
+
Started GET "/auth/gds/callback?code=38cf49e620008c91d2d23d43683ee6d824c2ae843ef8ba516a5101fceba75574&state=6319007bf5c7f50ae4f765b37589f5fd89706e9e49475b55" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6436
|
+
Processing by AuthenticationsController#callback as HTML
|
6437
|
+
Parameters: {"code"=>"38cf49e620008c91d2d23d43683ee6d824c2ae843ef8ba516a5101fceba75574", "state"=>"6319007bf5c7f50ae4f765b37589f5fd89706e9e49475b55"}
|
6438
|
+
Authenticating with gds_sso strategy
|
6439
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6440
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6441
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6442
|
+
GDS_SSO integration test:
|
6443
|
+
- signin
|
6444
|
+
' WHERE "users"."id" = 1
|
6445
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
6446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6447
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6448
|
+
GDS_SSO integration test:
|
6449
|
+
- signin
|
6450
|
+
' WHERE "users"."id" = 1[0m
|
6451
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6452
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6453
|
+
Completed 302 Found in 17ms (ActiveRecord: 10.7ms)
|
6454
|
+
|
6455
|
+
|
6456
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6457
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6458
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6459
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6460
|
+
|
6461
|
+
|
6462
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6463
|
+
Processing by ExampleController#restricted as HTML
|
6464
|
+
Authenticating with gds_sso strategy
|
6465
|
+
Completed in 0ms
|
6466
|
+
|
6467
|
+
|
6468
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:52 +0000
|
6469
|
+
|
6470
|
+
|
6471
|
+
Started GET "/auth/gds/callback?code=ca6e4a7ad1fd4a30712d29900a4ccc749b34fdb576f56e2998e0e59864ae6bf9&state=6cd4bb3683856d09e630a2cd952e1de882d8ecf8bdc53fb2" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6472
|
+
Processing by AuthenticationsController#callback as HTML
|
6473
|
+
Parameters: {"code"=>"ca6e4a7ad1fd4a30712d29900a4ccc749b34fdb576f56e2998e0e59864ae6bf9", "state"=>"6cd4bb3683856d09e630a2cd952e1de882d8ecf8bdc53fb2"}
|
6474
|
+
Authenticating with gds_sso strategy
|
6475
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6476
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6477
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6478
|
+
GDS_SSO integration test:
|
6479
|
+
- signin
|
6480
|
+
' WHERE "users"."id" = 1
|
6481
|
+
[1m[36m (13.1ms)[0m [1mcommit transaction[0m
|
6482
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6483
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6484
|
+
GDS_SSO integration test:
|
6485
|
+
- signin
|
6486
|
+
' WHERE "users"."id" = 1[0m
|
6487
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6488
|
+
Redirected to http://www.example-client.com/restricted
|
6489
|
+
Completed 302 Found in 22ms (ActiveRecord: 15.5ms)
|
6490
|
+
|
6491
|
+
|
6492
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6493
|
+
Processing by ExampleController#restricted as HTML
|
6494
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6495
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
6496
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6497
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6498
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6499
|
+
GDS_SSO integration test:
|
6500
|
+
- signin
|
6501
|
+
' WHERE "users"."id" = 1
|
6502
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
6503
|
+
|
6504
|
+
|
6505
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6506
|
+
Processing by ExampleController#restricted as HTML
|
6507
|
+
[1m[35mUser Load (2.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6508
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6509
|
+
Completed 403 Forbidden in 39ms (Views: 34.6ms | ActiveRecord: 2.7ms)
|
6510
|
+
|
6511
|
+
|
6512
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6513
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6514
|
+
Redirected to http://localhost:4567/users/sign_out
|
6515
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
6516
|
+
|
6517
|
+
|
6518
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6519
|
+
Processing by ExampleController#restricted as HTML
|
6520
|
+
Authenticating with gds_sso strategy
|
6521
|
+
Completed in 0ms
|
6522
|
+
|
6523
|
+
|
6524
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6525
|
+
|
6526
|
+
|
6527
|
+
Started GET "/auth/gds/callback?code=7f37e5caee14b7feab19b435fc00e71f81e24bd40e766844b15b129aabb0f162&state=c76e9bb3b617955fe7537ec7db86ca3be085695a8b31d5a9" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6528
|
+
Processing by AuthenticationsController#callback as HTML
|
6529
|
+
Parameters: {"code"=>"7f37e5caee14b7feab19b435fc00e71f81e24bd40e766844b15b129aabb0f162", "state"=>"c76e9bb3b617955fe7537ec7db86ca3be085695a8b31d5a9"}
|
6530
|
+
Authenticating with gds_sso strategy
|
6531
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6533
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6534
|
+
GDS_SSO integration test:
|
6535
|
+
- signin
|
6536
|
+
' WHERE "users"."id" = 1[0m
|
6537
|
+
[1m[35m (8.2ms)[0m commit transaction
|
6538
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6539
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6540
|
+
GDS_SSO integration test:
|
6541
|
+
- signin
|
6542
|
+
' WHERE "users"."id" = 1
|
6543
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
6544
|
+
Redirected to http://www.example-client.com/restricted
|
6545
|
+
Completed 302 Found in 17ms (ActiveRecord: 11.2ms)
|
6546
|
+
|
6547
|
+
|
6548
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6549
|
+
Processing by ExampleController#restricted as HTML
|
6550
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6551
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6552
|
+
|
6553
|
+
|
6554
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:53 +0000
|
6555
|
+
Processing by ExampleController#restricted as JSON
|
6556
|
+
Authenticating with gds_sso_api_access strategy
|
6557
|
+
Completed in 95ms
|
6558
|
+
|
6559
|
+
|
6560
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:15:54 +0000
|
6561
|
+
Processing by ExampleController#restricted as JSON
|
6562
|
+
Authenticating with gds_sso_api_access strategy
|
6563
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
6564
|
+
|
6565
|
+
|
6566
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:15:54 +0000
|
6567
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
6568
|
+
Authenticating with gds_sso_api_access strategy
|
6569
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
6570
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6571
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31126"]]
|
6572
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
6573
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6574
|
+
Processing by Api::UserController#update as HTML
|
6575
|
+
Parameters: {"uid"=>"a1s2d31126"}
|
6576
|
+
Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
6577
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6578
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36505"]]
|
6579
|
+
[1m[35m (1.8ms)[0m commit transaction
|
6580
|
+
Processing by Api::UserController#update as HTML
|
6581
|
+
Parameters: {"uid"=>"a1s2d36505"}
|
6582
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36505' LIMIT 1[0m
|
6583
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6584
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
6585
|
+
GDS_SSO integration test:
|
6586
|
+
- signin
|
6587
|
+
- new permission
|
6588
|
+
' WHERE "users"."id" = 3[0m
|
6589
|
+
[1m[35m (4.4ms)[0m commit transaction
|
6590
|
+
Completed 200 OK in 10ms (ActiveRecord: 5.0ms)
|
6591
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6593
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36793"]]
|
6594
|
+
[1m[35m (2.7ms)[0m commit transaction
|
6595
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
6596
|
+
Processing by Api::UserController#reauth as HTML
|
6597
|
+
Parameters: {"uid"=>"a1s2d36793"}
|
6598
|
+
Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
6599
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6600
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3666"]]
|
6601
|
+
[1m[36m (6.9ms)[0m [1mcommit transaction[0m
|
6602
|
+
Processing by Api::UserController#reauth as HTML
|
6603
|
+
Parameters: {"uid"=>"a1s2d3666"}
|
6604
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3666' LIMIT 1
|
6605
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6606
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6607
|
+
GDS_SSO integration test:
|
6608
|
+
- signin
|
6609
|
+
' WHERE "users"."id" = 5
|
6610
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
6611
|
+
Completed 200 OK in 6ms (ActiveRecord: 2.9ms)
|
6612
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
6613
|
+
Connecting to database specified by database.yml
|
6614
|
+
[1m[36m (3.5ms)[0m [1mselect sqlite_version(*)[0m
|
6615
|
+
[1m[35m (12.8ms)[0m DROP TABLE "users"
|
6616
|
+
[1m[36m (2.0ms)[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) [0m
|
6617
|
+
|
6618
|
+
|
6619
|
+
Started GET "/" for 127.0.0.1 at 2012-07-27 08:45:53 +0000
|
6620
|
+
Processing by ExampleController#index as HTML
|
6621
|
+
Rendered text template (0.0ms)
|
6622
|
+
Completed 200 OK in 70ms (Views: 69.5ms | ActiveRecord: 0.0ms)
|
6623
|
+
|
6624
|
+
|
6625
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:53 +0000
|
6626
|
+
Processing by ExampleController#restricted as HTML
|
6627
|
+
Authenticating with gds_sso strategy
|
6628
|
+
Completed in 81ms
|
6629
|
+
|
6630
|
+
|
6631
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:53 +0000
|
6632
|
+
|
6633
|
+
|
6634
|
+
Started GET "/auth/gds/callback?code=536c417bbb064146666b91baff9a33cd9e4e4643b28452121cec3457ab7f570e&state=9d3fc06fdb3417d828d8746ea0dda736758f569f601f3244" for 127.0.0.1 at 2012-07-27 08:45:54 +0000
|
6635
|
+
Processing by AuthenticationsController#callback as HTML
|
6636
|
+
Parameters: {"code"=>"536c417bbb064146666b91baff9a33cd9e4e4643b28452121cec3457ab7f570e", "state"=>"9d3fc06fdb3417d828d8746ea0dda736758f569f601f3244"}
|
6637
|
+
Authenticating with gds_sso strategy
|
6638
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6639
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6640
|
+
[1m[35mSQL (8.9ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
6641
|
+
[1m[36m (7.4ms)[0m [1mcommit transaction[0m
|
6642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6643
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6644
|
+
GDS_SSO integration test:
|
6645
|
+
- signin
|
6646
|
+
' WHERE "users"."id" = 1[0m
|
6647
|
+
[1m[35m (1.8ms)[0m commit transaction
|
6648
|
+
Redirected to http://www.example-client.com/restricted
|
6649
|
+
Completed 302 Found in 100ms (ActiveRecord: 19.6ms)
|
6650
|
+
|
6651
|
+
|
6652
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:54 +0000
|
6653
|
+
Processing by ExampleController#restricted as HTML
|
6654
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6655
|
+
Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.3ms)
|
6656
|
+
|
6657
|
+
|
6658
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:54 +0000
|
6659
|
+
Processing by ExampleController#restricted as HTML
|
6660
|
+
Authenticating with gds_sso strategy
|
6661
|
+
Completed in 1ms
|
6662
|
+
|
6663
|
+
|
6664
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:54 +0000
|
6665
|
+
|
6666
|
+
|
6667
|
+
Started GET "/auth/gds/callback?code=12d1c1bacf23b4586b4e0d4496e86f72ca8ccfe8e691ec00cc794ac493a3eac1&state=ccdc9707ae270452cf66729c6179849fc42a5a8dea4520fb" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6668
|
+
Processing by AuthenticationsController#callback as HTML
|
6669
|
+
Parameters: {"code"=>"12d1c1bacf23b4586b4e0d4496e86f72ca8ccfe8e691ec00cc794ac493a3eac1", "state"=>"ccdc9707ae270452cf66729c6179849fc42a5a8dea4520fb"}
|
6670
|
+
Authenticating with gds_sso strategy
|
6671
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6673
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6674
|
+
GDS_SSO integration test:
|
6675
|
+
- signin
|
6676
|
+
' WHERE "users"."id" = 1
|
6677
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
6678
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6679
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6680
|
+
GDS_SSO integration test:
|
6681
|
+
- signin
|
6682
|
+
' WHERE "users"."id" = 1[0m
|
6683
|
+
[1m[35m (1.5ms)[0m commit transaction
|
6684
|
+
Redirected to http://www.example-client.com/restricted
|
6685
|
+
Completed 302 Found in 13ms (ActiveRecord: 6.0ms)
|
6686
|
+
|
6687
|
+
|
6688
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6689
|
+
Processing by ExampleController#restricted as HTML
|
6690
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6691
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
6692
|
+
|
6693
|
+
|
6694
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6695
|
+
Processing by ExampleController#restricted as HTML
|
6696
|
+
Authenticating with gds_sso strategy
|
6697
|
+
Completed in 0ms
|
6698
|
+
|
6699
|
+
|
6700
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6701
|
+
|
6702
|
+
|
6703
|
+
Started GET "/auth/gds/callback?code=d254b41dcb4644f0e6cd1f70a1282eb9267de53daaaf847c549d3729682a6d83&state=a48b481d9dbeea050405364337b6630530639045a7930d59" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6704
|
+
Processing by AuthenticationsController#callback as HTML
|
6705
|
+
Parameters: {"code"=>"d254b41dcb4644f0e6cd1f70a1282eb9267de53daaaf847c549d3729682a6d83", "state"=>"a48b481d9dbeea050405364337b6630530639045a7930d59"}
|
6706
|
+
Authenticating with gds_sso strategy
|
6707
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6708
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6709
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6710
|
+
GDS_SSO integration test:
|
6711
|
+
- signin
|
6712
|
+
' WHERE "users"."id" = 1
|
6713
|
+
[1m[36m (7.6ms)[0m [1mcommit transaction[0m
|
6714
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6715
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6716
|
+
GDS_SSO integration test:
|
6717
|
+
- signin
|
6718
|
+
' WHERE "users"."id" = 1[0m
|
6719
|
+
[1m[35m (8.8ms)[0m commit transaction
|
6720
|
+
Redirected to http://www.example-client.com/restricted
|
6721
|
+
Completed 302 Found in 24ms (ActiveRecord: 17.3ms)
|
6722
|
+
|
6723
|
+
|
6724
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6725
|
+
Processing by ExampleController#restricted as HTML
|
6726
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6727
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6728
|
+
|
6729
|
+
|
6730
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6731
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6732
|
+
Authenticating with gds_sso strategy
|
6733
|
+
Completed in 1ms
|
6734
|
+
|
6735
|
+
|
6736
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6737
|
+
|
6738
|
+
|
6739
|
+
Started GET "/auth/gds/callback?code=8fb2389f1e1f41415720c1bcadc320c4810dbb0a6ceb221974183c00683f3e64&state=9e6e2b00cc54c6ea645706c8dfa626e38ce053c81bfdd844" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6740
|
+
Processing by AuthenticationsController#callback as HTML
|
6741
|
+
Parameters: {"code"=>"8fb2389f1e1f41415720c1bcadc320c4810dbb0a6ceb221974183c00683f3e64", "state"=>"9e6e2b00cc54c6ea645706c8dfa626e38ce053c81bfdd844"}
|
6742
|
+
Authenticating with gds_sso strategy
|
6743
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6745
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
6746
|
+
GDS_SSO integration test:
|
6747
|
+
- signin
|
6748
|
+
' WHERE "users"."id" = 1
|
6749
|
+
[1m[36m (7.0ms)[0m [1mcommit transaction[0m
|
6750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6751
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6752
|
+
GDS_SSO integration test:
|
6753
|
+
- signin
|
6754
|
+
' WHERE "users"."id" = 1[0m
|
6755
|
+
[1m[35m (1.6ms)[0m commit transaction
|
6756
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6757
|
+
Completed 302 Found in 17ms (ActiveRecord: 9.8ms)
|
6758
|
+
|
6759
|
+
|
6760
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6761
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6762
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6763
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
6764
|
+
|
6765
|
+
|
6766
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6767
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6768
|
+
Authenticating with gds_sso strategy
|
6769
|
+
Completed in 0ms
|
6770
|
+
|
6771
|
+
|
6772
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:55 +0000
|
6773
|
+
|
6774
|
+
|
6775
|
+
Started GET "/auth/gds/callback?code=7edd6ac39078154c1413f71220eb8c8ccda4c02b348c4d11cdde82f19946aef2&state=6a3c08bd1a3df26444f79da14ca60882f403c960cd6d4256" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6776
|
+
Processing by AuthenticationsController#callback as HTML
|
6777
|
+
Parameters: {"code"=>"7edd6ac39078154c1413f71220eb8c8ccda4c02b348c4d11cdde82f19946aef2", "state"=>"6a3c08bd1a3df26444f79da14ca60882f403c960cd6d4256"}
|
6778
|
+
Authenticating with gds_sso strategy
|
6779
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6781
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6782
|
+
GDS_SSO integration test:
|
6783
|
+
- signin
|
6784
|
+
' WHERE "users"."id" = 1
|
6785
|
+
[1m[36m (9.6ms)[0m [1mcommit transaction[0m
|
6786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6787
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6788
|
+
GDS_SSO integration test:
|
6789
|
+
- signin
|
6790
|
+
' WHERE "users"."id" = 1[0m
|
6791
|
+
[1m[35m (1.8ms)[0m commit transaction
|
6792
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
6793
|
+
Completed 302 Found in 19ms (ActiveRecord: 12.5ms)
|
6794
|
+
|
6795
|
+
|
6796
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6797
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
6798
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6799
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6800
|
+
|
6801
|
+
|
6802
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6803
|
+
Processing by ExampleController#restricted as HTML
|
6804
|
+
Authenticating with gds_sso strategy
|
6805
|
+
Completed in 0ms
|
6806
|
+
|
6807
|
+
|
6808
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6809
|
+
|
6810
|
+
|
6811
|
+
Started GET "/auth/gds/callback?code=04e2475db9bc90f0e56da6fb4868b70f88d182d485c433d03bc75ebb5c999394&state=744df284f488b88d779047f22459b042e4b592941959d833" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6812
|
+
Processing by AuthenticationsController#callback as HTML
|
6813
|
+
Parameters: {"code"=>"04e2475db9bc90f0e56da6fb4868b70f88d182d485c433d03bc75ebb5c999394", "state"=>"744df284f488b88d779047f22459b042e4b592941959d833"}
|
6814
|
+
Authenticating with gds_sso strategy
|
6815
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6816
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6817
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6818
|
+
GDS_SSO integration test:
|
6819
|
+
- signin
|
6820
|
+
' WHERE "users"."id" = 1
|
6821
|
+
[1m[36m (7.7ms)[0m [1mcommit transaction[0m
|
6822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6823
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6824
|
+
GDS_SSO integration test:
|
6825
|
+
- signin
|
6826
|
+
' WHERE "users"."id" = 1[0m
|
6827
|
+
[1m[35m (7.2ms)[0m commit transaction
|
6828
|
+
Redirected to http://www.example-client.com/restricted
|
6829
|
+
Completed 302 Found in 23ms (ActiveRecord: 16.0ms)
|
6830
|
+
|
6831
|
+
|
6832
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6833
|
+
Processing by ExampleController#restricted as HTML
|
6834
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6835
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
6836
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6838
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
6839
|
+
GDS_SSO integration test:
|
6840
|
+
- signin
|
6841
|
+
' WHERE "users"."id" = 1
|
6842
|
+
[1m[36m (13.5ms)[0m [1mcommit transaction[0m
|
6843
|
+
|
6844
|
+
|
6845
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6846
|
+
Processing by ExampleController#restricted as HTML
|
6847
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6848
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
6849
|
+
Completed 403 Forbidden in 11ms (Views: 9.3ms | ActiveRecord: 0.2ms)
|
6850
|
+
|
6851
|
+
|
6852
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6853
|
+
Processing by AuthenticationsController#sign_out as HTML
|
6854
|
+
Redirected to http://localhost:4567/users/sign_out
|
6855
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
6856
|
+
|
6857
|
+
|
6858
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6859
|
+
Processing by ExampleController#restricted as HTML
|
6860
|
+
Authenticating with gds_sso strategy
|
6861
|
+
Completed in 0ms
|
6862
|
+
|
6863
|
+
|
6864
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6865
|
+
|
6866
|
+
|
6867
|
+
Started GET "/auth/gds/callback?code=243b962a5961200888e2c8635bd2afb282c85b287a9864cfd06ac3fcae5f4d62&state=637b5ff7c0eb9fe8511223295b630ae448e21c47b103fafc" for 127.0.0.1 at 2012-07-27 08:45:56 +0000
|
6868
|
+
Processing by AuthenticationsController#callback as HTML
|
6869
|
+
Parameters: {"code"=>"243b962a5961200888e2c8635bd2afb282c85b287a9864cfd06ac3fcae5f4d62", "state"=>"637b5ff7c0eb9fe8511223295b630ae448e21c47b103fafc"}
|
6870
|
+
Authenticating with gds_sso strategy
|
6871
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6872
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6873
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6874
|
+
GDS_SSO integration test:
|
6875
|
+
- signin
|
6876
|
+
' WHERE "users"."id" = 1[0m
|
6877
|
+
[1m[35m (28.4ms)[0m commit transaction
|
6878
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6879
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
6880
|
+
GDS_SSO integration test:
|
6881
|
+
- signin
|
6882
|
+
' WHERE "users"."id" = 1
|
6883
|
+
[1m[36m (5.7ms)[0m [1mcommit transaction[0m
|
6884
|
+
Redirected to http://www.example-client.com/restricted
|
6885
|
+
Completed 302 Found in 42ms (ActiveRecord: 35.1ms)
|
6886
|
+
|
6887
|
+
|
6888
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6889
|
+
Processing by ExampleController#restricted as HTML
|
6890
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6891
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6892
|
+
|
6893
|
+
|
6894
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6895
|
+
Processing by ExampleController#restricted as HTML
|
6896
|
+
Authenticating with gds_sso strategy
|
6897
|
+
Completed in 0ms
|
6898
|
+
|
6899
|
+
|
6900
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6901
|
+
|
6902
|
+
|
6903
|
+
Started GET "/auth/gds/callback?code=2a8ab41d23ec9e39a5c449e5030645a327fa39c486f2b4ed82f8a793f199fa83&state=67c77987f68bc78bae845b4db4936fd70506318af01f5c77" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6904
|
+
Processing by AuthenticationsController#callback as HTML
|
6905
|
+
Parameters: {"code"=>"2a8ab41d23ec9e39a5c449e5030645a327fa39c486f2b4ed82f8a793f199fa83", "state"=>"67c77987f68bc78bae845b4db4936fd70506318af01f5c77"}
|
6906
|
+
Authenticating with gds_sso strategy
|
6907
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6909
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6910
|
+
GDS_SSO integration test:
|
6911
|
+
- signin
|
6912
|
+
' WHERE "users"."id" = 1[0m
|
6913
|
+
[1m[35m (6.1ms)[0m commit transaction
|
6914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6915
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
6916
|
+
GDS_SSO integration test:
|
6917
|
+
- signin
|
6918
|
+
' WHERE "users"."id" = 1
|
6919
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
6920
|
+
Redirected to http://www.example-client.com/restricted
|
6921
|
+
Completed 302 Found in 17ms (ActiveRecord: 9.1ms)
|
6922
|
+
|
6923
|
+
|
6924
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6925
|
+
Processing by ExampleController#restricted as HTML
|
6926
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6927
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
6928
|
+
|
6929
|
+
|
6930
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:50:57 +0000
|
6931
|
+
Processing by ExampleController#restricted as HTML
|
6932
|
+
Authenticating with gds_sso strategy
|
6933
|
+
Completed in 0ms
|
6934
|
+
|
6935
|
+
|
6936
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-28 04:50:57 +0000
|
6937
|
+
|
6938
|
+
|
6939
|
+
Started GET "/auth/gds/callback?code=548c1490e5aa385eb93ffd86f9a3baa58a49271432ff0d726dcf9561e21f2106&state=405c3eb10c17cf787a4acb78c4c3995b3dd22bb39622237b" for 127.0.0.1 at 2012-07-28 04:50:57 +0000
|
6940
|
+
Processing by AuthenticationsController#callback as HTML
|
6941
|
+
Parameters: {"code"=>"548c1490e5aa385eb93ffd86f9a3baa58a49271432ff0d726dcf9561e21f2106", "state"=>"405c3eb10c17cf787a4acb78c4c3995b3dd22bb39622237b"}
|
6942
|
+
Authenticating with gds_sso strategy
|
6943
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6944
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6945
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6946
|
+
GDS_SSO integration test:
|
6947
|
+
- signin
|
6948
|
+
' WHERE "users"."id" = 1[0m
|
6949
|
+
[1m[35m (9.6ms)[0m commit transaction
|
6950
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6951
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
6952
|
+
GDS_SSO integration test:
|
6953
|
+
- signin
|
6954
|
+
' WHERE "users"."id" = 1
|
6955
|
+
[1m[36m (6.5ms)[0m [1mcommit transaction[0m
|
6956
|
+
Redirected to http://www.example-client.com/restricted
|
6957
|
+
Completed 302 Found in 24ms (ActiveRecord: 17.2ms)
|
6958
|
+
|
6959
|
+
|
6960
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:50:57 +0000
|
6961
|
+
Processing by ExampleController#restricted as HTML
|
6962
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6963
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
6964
|
+
|
6965
|
+
|
6966
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6967
|
+
Processing by ExampleController#restricted as HTML
|
6968
|
+
Authenticating with gds_sso strategy
|
6969
|
+
Completed in 0ms
|
6970
|
+
|
6971
|
+
|
6972
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6973
|
+
|
6974
|
+
|
6975
|
+
Started GET "/auth/gds/callback?code=f1bb413bf09405e14f63f4f04c5c193a515e6f44f645c493acb22a4dca5e2353&state=4c080f6dea98f167921b7a3db60bc17d1436113ea31faa5d" for 127.0.0.1 at 2012-07-27 08:45:57 +0000
|
6976
|
+
Processing by AuthenticationsController#callback as HTML
|
6977
|
+
Parameters: {"code"=>"f1bb413bf09405e14f63f4f04c5c193a515e6f44f645c493acb22a4dca5e2353", "state"=>"4c080f6dea98f167921b7a3db60bc17d1436113ea31faa5d"}
|
6978
|
+
Authenticating with gds_sso strategy
|
6979
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
6980
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6981
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
6982
|
+
GDS_SSO integration test:
|
6983
|
+
- signin
|
6984
|
+
' WHERE "users"."id" = 1[0m
|
6985
|
+
[1m[35m (19.9ms)[0m commit transaction
|
6986
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6987
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
6988
|
+
GDS_SSO integration test:
|
6989
|
+
- signin
|
6990
|
+
' WHERE "users"."id" = 1
|
6991
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
6992
|
+
Redirected to http://www.example-client.com/restricted
|
6993
|
+
Completed 302 Found in 35ms (ActiveRecord: 26.4ms)
|
6994
|
+
|
6995
|
+
|
6996
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:58 +0000
|
6997
|
+
Processing by ExampleController#restricted as HTML
|
6998
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
6999
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
7000
|
+
|
7001
|
+
|
7002
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:40:58 +0000
|
7003
|
+
Processing by ExampleController#restricted as HTML
|
7004
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7005
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
7006
|
+
|
7007
|
+
|
7008
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:58 +0000
|
7009
|
+
Processing by ExampleController#restricted as JSON
|
7010
|
+
Authenticating with gds_sso_api_access strategy
|
7011
|
+
Completed in 74ms
|
7012
|
+
|
7013
|
+
|
7014
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:45:58 +0000
|
7015
|
+
Processing by ExampleController#restricted as JSON
|
7016
|
+
Authenticating with gds_sso_api_access strategy
|
7017
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
7018
|
+
|
7019
|
+
|
7020
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:45:58 +0000
|
7021
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
7022
|
+
Authenticating with gds_sso_api_access strategy
|
7023
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
7024
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7025
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39416"]]
|
7026
|
+
[1m[35m (2.8ms)[0m commit transaction
|
7027
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7028
|
+
Processing by Api::UserController#update as HTML
|
7029
|
+
Parameters: {"uid"=>"a1s2d39416"}
|
7030
|
+
Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
7031
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7032
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38152"]]
|
7033
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
7034
|
+
Processing by Api::UserController#update as HTML
|
7035
|
+
Parameters: {"uid"=>"a1s2d38152"}
|
7036
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38152' LIMIT 1
|
7037
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7038
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
7039
|
+
GDS_SSO integration test:
|
7040
|
+
- signin
|
7041
|
+
- new permission
|
7042
|
+
' WHERE "users"."id" = 3
|
7043
|
+
[1m[36m (12.9ms)[0m [1mcommit transaction[0m
|
7044
|
+
Completed 200 OK in 18ms (ActiveRecord: 13.4ms)
|
7045
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
7046
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7047
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39041"]]
|
7048
|
+
[1m[36m (19.9ms)[0m [1mcommit transaction[0m
|
7049
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7050
|
+
Processing by Api::UserController#reauth as HTML
|
7051
|
+
Parameters: {"uid"=>"a1s2d39041"}
|
7052
|
+
Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
7053
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7054
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3694"]]
|
7055
|
+
[1m[35m (1.9ms)[0m commit transaction
|
7056
|
+
Processing by Api::UserController#reauth as HTML
|
7057
|
+
Parameters: {"uid"=>"a1s2d3694"}
|
7058
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3694' LIMIT 1[0m
|
7059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7060
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7061
|
+
GDS_SSO integration test:
|
7062
|
+
- signin
|
7063
|
+
' WHERE "users"."id" = 5[0m
|
7064
|
+
[1m[35m (12.3ms)[0m commit transaction
|
7065
|
+
Completed 200 OK in 16ms (ActiveRecord: 12.9ms)
|
7066
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 5]]
|
7067
|
+
Connecting to database specified by database.yml
|
7068
|
+
[1m[36m (3.1ms)[0m [1mselect sqlite_version(*)[0m
|
7069
|
+
[1m[35m (66.1ms)[0m DROP TABLE "users"
|
7070
|
+
[1m[36m (6.2ms)[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) [0m
|
7071
|
+
|
7072
|
+
|
7073
|
+
Started GET "/" for 127.0.0.1 at 2012-07-27 08:49:16 +0000
|
7074
|
+
Processing by ExampleController#index as HTML
|
7075
|
+
Rendered text template (0.0ms)
|
7076
|
+
Completed 200 OK in 63ms (Views: 62.6ms | ActiveRecord: 0.0ms)
|
7077
|
+
|
7078
|
+
|
7079
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:16 +0000
|
7080
|
+
Processing by ExampleController#restricted as HTML
|
7081
|
+
Authenticating with gds_sso strategy
|
7082
|
+
Completed in 74ms
|
7083
|
+
|
7084
|
+
|
7085
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:16 +0000
|
7086
|
+
|
7087
|
+
|
7088
|
+
Started GET "/auth/gds/callback?code=11ed7e29f5118cd5fda35d51e4c33228e6ac7d7d0e66d669c2d621ece789c101&state=3e874f70e521017a5d2eca9c16063aacea2551b9a5dfb3e7" for 127.0.0.1 at 2012-07-27 08:49:17 +0000
|
7089
|
+
Processing by AuthenticationsController#callback as HTML
|
7090
|
+
Parameters: {"code"=>"11ed7e29f5118cd5fda35d51e4c33228e6ac7d7d0e66d669c2d621ece789c101", "state"=>"3e874f70e521017a5d2eca9c16063aacea2551b9a5dfb3e7"}
|
7091
|
+
Authenticating with gds_sso strategy
|
7092
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7093
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7094
|
+
[1m[35mSQL (18.6ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
7095
|
+
[1m[36m (21.7ms)[0m [1mcommit transaction[0m
|
7096
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7097
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7098
|
+
GDS_SSO integration test:
|
7099
|
+
- signin
|
7100
|
+
' WHERE "users"."id" = 1[0m
|
7101
|
+
[1m[35m (10.5ms)[0m commit transaction
|
7102
|
+
Redirected to http://www.example-client.com/restricted
|
7103
|
+
Completed 302 Found in 210ms (ActiveRecord: 52.1ms)
|
7104
|
+
|
7105
|
+
|
7106
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:18 +0000
|
7107
|
+
Processing by ExampleController#restricted as HTML
|
7108
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7109
|
+
Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.3ms)
|
7110
|
+
|
7111
|
+
|
7112
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:18 +0000
|
7113
|
+
Processing by ExampleController#restricted as HTML
|
7114
|
+
Authenticating with gds_sso strategy
|
7115
|
+
Completed in 1ms
|
7116
|
+
|
7117
|
+
|
7118
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:18 +0000
|
7119
|
+
|
7120
|
+
|
7121
|
+
Started GET "/auth/gds/callback?code=82b6c070b1b92bcd703794a4e47e769007424793ba44cafcfddcae066e102586&state=93d86f64b6755da7edc623f039d7ec33f065ab64376c21ce" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7122
|
+
Processing by AuthenticationsController#callback as HTML
|
7123
|
+
Parameters: {"code"=>"82b6c070b1b92bcd703794a4e47e769007424793ba44cafcfddcae066e102586", "state"=>"93d86f64b6755da7edc623f039d7ec33f065ab64376c21ce"}
|
7124
|
+
Authenticating with gds_sso strategy
|
7125
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7127
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7128
|
+
GDS_SSO integration test:
|
7129
|
+
- signin
|
7130
|
+
' WHERE "users"."id" = 1
|
7131
|
+
[1m[36m (25.3ms)[0m [1mcommit transaction[0m
|
7132
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7133
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7134
|
+
GDS_SSO integration test:
|
7135
|
+
- signin
|
7136
|
+
' WHERE "users"."id" = 1[0m
|
7137
|
+
[1m[35m (1.8ms)[0m commit transaction
|
7138
|
+
Redirected to http://www.example-client.com/restricted
|
7139
|
+
Completed 302 Found in 36ms (ActiveRecord: 28.1ms)
|
7140
|
+
|
7141
|
+
|
7142
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7143
|
+
Processing by ExampleController#restricted as HTML
|
7144
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7145
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
7146
|
+
|
7147
|
+
|
7148
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7149
|
+
Processing by ExampleController#restricted as HTML
|
7150
|
+
Authenticating with gds_sso strategy
|
7151
|
+
Completed in 0ms
|
7152
|
+
|
7153
|
+
|
7154
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7155
|
+
|
7156
|
+
|
7157
|
+
Started GET "/auth/gds/callback?code=108abc54dd5903ba4ef81201a3d25d11c2cb2a55aea275dbb42598619f7bf88c&state=15d10b5a84779242774884ea54c7365bde9cecf67fd266e3" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7158
|
+
Processing by AuthenticationsController#callback as HTML
|
7159
|
+
Parameters: {"code"=>"108abc54dd5903ba4ef81201a3d25d11c2cb2a55aea275dbb42598619f7bf88c", "state"=>"15d10b5a84779242774884ea54c7365bde9cecf67fd266e3"}
|
7160
|
+
Authenticating with gds_sso strategy
|
7161
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7162
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7163
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
7164
|
+
GDS_SSO integration test:
|
7165
|
+
- signin
|
7166
|
+
' WHERE "users"."id" = 1
|
7167
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
7168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7169
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7170
|
+
GDS_SSO integration test:
|
7171
|
+
- signin
|
7172
|
+
' WHERE "users"."id" = 1[0m
|
7173
|
+
[1m[35m (1.9ms)[0m commit transaction
|
7174
|
+
Redirected to http://www.example-client.com/restricted
|
7175
|
+
Completed 302 Found in 29ms (ActiveRecord: 12.2ms)
|
7176
|
+
|
7177
|
+
|
7178
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7179
|
+
Processing by ExampleController#restricted as HTML
|
7180
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7181
|
+
Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
7182
|
+
|
7183
|
+
|
7184
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7185
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7186
|
+
Authenticating with gds_sso strategy
|
7187
|
+
Completed in 1ms
|
7188
|
+
|
7189
|
+
|
7190
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:19 +0000
|
7191
|
+
|
7192
|
+
|
7193
|
+
Started GET "/auth/gds/callback?code=8f5fa8eb067f3e5d2ee42db94b71994ea779125021bd80ecde89d9afc5468a4a&state=deacc16d75b5d3aade82ef7de2bd8db4d61ea2e79956e3b8" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7194
|
+
Processing by AuthenticationsController#callback as HTML
|
7195
|
+
Parameters: {"code"=>"8f5fa8eb067f3e5d2ee42db94b71994ea779125021bd80ecde89d9afc5468a4a", "state"=>"deacc16d75b5d3aade82ef7de2bd8db4d61ea2e79956e3b8"}
|
7196
|
+
Authenticating with gds_sso strategy
|
7197
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7199
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7200
|
+
GDS_SSO integration test:
|
7201
|
+
- signin
|
7202
|
+
' WHERE "users"."id" = 1
|
7203
|
+
[1m[36m (16.9ms)[0m [1mcommit transaction[0m
|
7204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7205
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7206
|
+
GDS_SSO integration test:
|
7207
|
+
- signin
|
7208
|
+
' WHERE "users"."id" = 1[0m
|
7209
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7210
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7211
|
+
Completed 302 Found in 28ms (ActiveRecord: 19.7ms)
|
7212
|
+
|
7213
|
+
|
7214
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7215
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7216
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7217
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
7218
|
+
|
7219
|
+
|
7220
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7221
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7222
|
+
Authenticating with gds_sso strategy
|
7223
|
+
Completed in 0ms
|
7224
|
+
|
7225
|
+
|
7226
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7227
|
+
|
7228
|
+
|
7229
|
+
Started GET "/auth/gds/callback?code=7cc10d54143214d9754f2ac15b1acaa3b9a38743879e03722d694be96719f0eb&state=201eef216c9e162d3ea4db7e9324a010efc6926e9f548c25" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7230
|
+
Processing by AuthenticationsController#callback as HTML
|
7231
|
+
Parameters: {"code"=>"7cc10d54143214d9754f2ac15b1acaa3b9a38743879e03722d694be96719f0eb", "state"=>"201eef216c9e162d3ea4db7e9324a010efc6926e9f548c25"}
|
7232
|
+
Authenticating with gds_sso strategy
|
7233
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7235
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7236
|
+
GDS_SSO integration test:
|
7237
|
+
- signin
|
7238
|
+
' WHERE "users"."id" = 1
|
7239
|
+
[1m[36m (15.1ms)[0m [1mcommit transaction[0m
|
7240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7241
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7242
|
+
GDS_SSO integration test:
|
7243
|
+
- signin
|
7244
|
+
' WHERE "users"."id" = 1[0m
|
7245
|
+
[1m[35m (16.8ms)[0m commit transaction
|
7246
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
7247
|
+
Completed 302 Found in 39ms (ActiveRecord: 32.9ms)
|
7248
|
+
|
7249
|
+
|
7250
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7251
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
7252
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7253
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
7254
|
+
|
7255
|
+
|
7256
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7257
|
+
Processing by ExampleController#restricted as HTML
|
7258
|
+
Authenticating with gds_sso strategy
|
7259
|
+
Completed in 0ms
|
7260
|
+
|
7261
|
+
|
7262
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:20 +0000
|
7263
|
+
|
7264
|
+
|
7265
|
+
Started GET "/auth/gds/callback?code=a3f78e0c6e72b321aa5905d9d852fd1541d2a9bfa7c5c69c42cc4716dabc0cf9&state=05cb302b04ba9b3326e8d3fc2a93c12cdfe858e8f80bcf31" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7266
|
+
Processing by AuthenticationsController#callback as HTML
|
7267
|
+
Parameters: {"code"=>"a3f78e0c6e72b321aa5905d9d852fd1541d2a9bfa7c5c69c42cc4716dabc0cf9", "state"=>"05cb302b04ba9b3326e8d3fc2a93c12cdfe858e8f80bcf31"}
|
7268
|
+
Authenticating with gds_sso strategy
|
7269
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7270
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7271
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
7272
|
+
GDS_SSO integration test:
|
7273
|
+
- signin
|
7274
|
+
' WHERE "users"."id" = 1
|
7275
|
+
[1m[36m (23.5ms)[0m [1mcommit transaction[0m
|
7276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7277
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7278
|
+
GDS_SSO integration test:
|
7279
|
+
- signin
|
7280
|
+
' WHERE "users"."id" = 1[0m
|
7281
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7282
|
+
Redirected to http://www.example-client.com/restricted
|
7283
|
+
Completed 302 Found in 44ms (ActiveRecord: 26.4ms)
|
7284
|
+
|
7285
|
+
|
7286
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7287
|
+
Processing by ExampleController#restricted as HTML
|
7288
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7289
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
7290
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7292
|
+
[1m[35m (10.5ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7293
|
+
GDS_SSO integration test:
|
7294
|
+
- signin
|
7295
|
+
' WHERE "users"."id" = 1
|
7296
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
7297
|
+
|
7298
|
+
|
7299
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7300
|
+
Processing by ExampleController#restricted as HTML
|
7301
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7302
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
7303
|
+
Completed 403 Forbidden in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms)
|
7304
|
+
|
7305
|
+
|
7306
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7307
|
+
Processing by AuthenticationsController#sign_out as HTML
|
7308
|
+
Redirected to http://localhost:4567/users/sign_out
|
7309
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7310
|
+
|
7311
|
+
|
7312
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7313
|
+
Processing by ExampleController#restricted as HTML
|
7314
|
+
Authenticating with gds_sso strategy
|
7315
|
+
Completed in 0ms
|
7316
|
+
|
7317
|
+
|
7318
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:21 +0000
|
7319
|
+
|
7320
|
+
|
7321
|
+
Started GET "/auth/gds/callback?code=98716b82739c67387474c3557cf721a21cff4a88052a48d821c31d8a49e1dcde&state=b27b72cb23a9812370729a4a480c2e115fb592de3f80abbd" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7322
|
+
Processing by AuthenticationsController#callback as HTML
|
7323
|
+
Parameters: {"code"=>"98716b82739c67387474c3557cf721a21cff4a88052a48d821c31d8a49e1dcde", "state"=>"b27b72cb23a9812370729a4a480c2e115fb592de3f80abbd"}
|
7324
|
+
Authenticating with gds_sso strategy
|
7325
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7327
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7328
|
+
GDS_SSO integration test:
|
7329
|
+
- signin
|
7330
|
+
' WHERE "users"."id" = 1[0m
|
7331
|
+
[1m[35m (17.8ms)[0m commit transaction
|
7332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7333
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
7334
|
+
GDS_SSO integration test:
|
7335
|
+
- signin
|
7336
|
+
' WHERE "users"."id" = 1
|
7337
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
7338
|
+
Redirected to http://www.example-client.com/restricted
|
7339
|
+
Completed 302 Found in 27ms (ActiveRecord: 20.4ms)
|
7340
|
+
|
7341
|
+
|
7342
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7343
|
+
Processing by ExampleController#restricted as HTML
|
7344
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7345
|
+
Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
7346
|
+
|
7347
|
+
|
7348
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7349
|
+
Processing by ExampleController#restricted as HTML
|
7350
|
+
Authenticating with gds_sso strategy
|
7351
|
+
Completed in 0ms
|
7352
|
+
|
7353
|
+
|
7354
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7355
|
+
|
7356
|
+
|
7357
|
+
Started GET "/auth/gds/callback?code=9c9e2e4da32bc275daafce610fc556763ffdf2693f2b8001046779f87f8b21c7&state=6f3bc6ea360d5396e13faf1bedff7cc603178a3daa8e13ca" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7358
|
+
Processing by AuthenticationsController#callback as HTML
|
7359
|
+
Parameters: {"code"=>"9c9e2e4da32bc275daafce610fc556763ffdf2693f2b8001046779f87f8b21c7", "state"=>"6f3bc6ea360d5396e13faf1bedff7cc603178a3daa8e13ca"}
|
7360
|
+
Authenticating with gds_sso strategy
|
7361
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7363
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7364
|
+
GDS_SSO integration test:
|
7365
|
+
- signin
|
7366
|
+
' WHERE "users"."id" = 1[0m
|
7367
|
+
[1m[35m (17.5ms)[0m commit transaction
|
7368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7369
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7370
|
+
GDS_SSO integration test:
|
7371
|
+
- signin
|
7372
|
+
' WHERE "users"."id" = 1
|
7373
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
7374
|
+
Redirected to http://www.example-client.com/restricted
|
7375
|
+
Completed 302 Found in 28ms (ActiveRecord: 20.5ms)
|
7376
|
+
|
7377
|
+
|
7378
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:22 +0000
|
7379
|
+
Processing by ExampleController#restricted as HTML
|
7380
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7381
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
7382
|
+
|
7383
|
+
|
7384
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:54:22 +0000
|
7385
|
+
Processing by ExampleController#restricted as HTML
|
7386
|
+
Authenticating with gds_sso strategy
|
7387
|
+
Completed in 0ms
|
7388
|
+
|
7389
|
+
|
7390
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-28 04:54:22 +0000
|
7391
|
+
|
7392
|
+
|
7393
|
+
Started GET "/auth/gds/callback?code=7256ac7a70b0bc41438b8db31b8ee83bed187a6673d5d239ea652b26b2be7010&state=9b3a9f1afb99e15a8c573552c5aebfec35386ff8a84482ec" for 127.0.0.1 at 2012-07-28 04:54:22 +0000
|
7394
|
+
Processing by AuthenticationsController#callback as HTML
|
7395
|
+
Parameters: {"code"=>"7256ac7a70b0bc41438b8db31b8ee83bed187a6673d5d239ea652b26b2be7010", "state"=>"9b3a9f1afb99e15a8c573552c5aebfec35386ff8a84482ec"}
|
7396
|
+
Authenticating with gds_sso strategy
|
7397
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7399
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7400
|
+
GDS_SSO integration test:
|
7401
|
+
- signin
|
7402
|
+
' WHERE "users"."id" = 1[0m
|
7403
|
+
[1m[35m (22.8ms)[0m commit transaction
|
7404
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7405
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7406
|
+
GDS_SSO integration test:
|
7407
|
+
- signin
|
7408
|
+
' WHERE "users"."id" = 1
|
7409
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
7410
|
+
Redirected to http://www.example-client.com/restricted
|
7411
|
+
Completed 302 Found in 32ms (ActiveRecord: 25.6ms)
|
7412
|
+
|
7413
|
+
|
7414
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:54:22 +0000
|
7415
|
+
Processing by ExampleController#restricted as HTML
|
7416
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7417
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
7418
|
+
|
7419
|
+
|
7420
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7421
|
+
Processing by ExampleController#restricted as HTML
|
7422
|
+
Authenticating with gds_sso strategy
|
7423
|
+
Completed in 0ms
|
7424
|
+
|
7425
|
+
|
7426
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7427
|
+
|
7428
|
+
|
7429
|
+
Started GET "/auth/gds/callback?code=ef30affe82a39f9a7cfccc667fed4ea1bb8ce15583ad3e9471c084c0ad215589&state=027efdb72e202ca04ed1b019c5045dca00b0216d917430d3" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7430
|
+
Processing by AuthenticationsController#callback as HTML
|
7431
|
+
Parameters: {"code"=>"ef30affe82a39f9a7cfccc667fed4ea1bb8ce15583ad3e9471c084c0ad215589", "state"=>"027efdb72e202ca04ed1b019c5045dca00b0216d917430d3"}
|
7432
|
+
Authenticating with gds_sso strategy
|
7433
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7434
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7435
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
7436
|
+
GDS_SSO integration test:
|
7437
|
+
- signin
|
7438
|
+
' WHERE "users"."id" = 1[0m
|
7439
|
+
[1m[35m (23.6ms)[0m commit transaction
|
7440
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7441
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
7442
|
+
GDS_SSO integration test:
|
7443
|
+
- signin
|
7444
|
+
' WHERE "users"."id" = 1
|
7445
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
7446
|
+
Redirected to http://www.example-client.com/restricted
|
7447
|
+
Completed 302 Found in 34ms (ActiveRecord: 26.6ms)
|
7448
|
+
|
7449
|
+
|
7450
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7451
|
+
Processing by ExampleController#restricted as HTML
|
7452
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
7453
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
7454
|
+
|
7455
|
+
|
7456
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-28 04:44:23 +0000
|
7457
|
+
Processing by ExampleController#restricted as HTML
|
7458
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
7459
|
+
Completed 200 OK in 22ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
7460
|
+
|
7461
|
+
|
7462
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7463
|
+
Processing by ExampleController#restricted as JSON
|
7464
|
+
Authenticating with gds_sso_api_access strategy
|
7465
|
+
Completed in 148ms
|
7466
|
+
|
7467
|
+
|
7468
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-27 08:49:23 +0000
|
7469
|
+
Processing by ExampleController#restricted as JSON
|
7470
|
+
Authenticating with gds_sso_api_access strategy
|
7471
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
7472
|
+
|
7473
|
+
|
7474
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-27 08:49:24 +0000
|
7475
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
7476
|
+
Authenticating with gds_sso_api_access strategy
|
7477
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
7478
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7479
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31963"]]
|
7480
|
+
[1m[35m (25.1ms)[0m commit transaction
|
7481
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7482
|
+
Processing by Api::UserController#update as HTML
|
7483
|
+
Parameters: {"uid"=>"a1s2d31963"}
|
7484
|
+
Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
7485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7486
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31159"]]
|
7487
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
7488
|
+
Processing by Api::UserController#update as HTML
|
7489
|
+
Parameters: {"uid"=>"a1s2d31159"}
|
7490
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31159' LIMIT 1
|
7491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7492
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
7493
|
+
GDS_SSO integration test:
|
7494
|
+
- signin
|
7495
|
+
- new permission
|
7496
|
+
' WHERE "users"."id" = 3
|
7497
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
7498
|
+
Completed 200 OK in 17ms (ActiveRecord: 2.4ms)
|
7499
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
7500
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7501
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34898"]]
|
7502
|
+
[1m[36m (9.6ms)[0m [1mcommit transaction[0m
|
7503
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
7504
|
+
Processing by Api::UserController#reauth as HTML
|
7505
|
+
Parameters: {"uid"=>"a1s2d34898"}
|
7506
|
+
Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
7507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7508
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34245"]]
|
7509
|
+
[1m[35m (8.1ms)[0m commit transaction
|
7510
|
+
Processing by Api::UserController#reauth as HTML
|
7511
|
+
Parameters: {"uid"=>"a1s2d34245"}
|
7512
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34245' LIMIT 1[0m
|
7513
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7514
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
7515
|
+
GDS_SSO integration test:
|
7516
|
+
- signin
|
7517
|
+
' WHERE "users"."id" = 5[0m
|
7518
|
+
[1m[35m (9.5ms)[0m commit transaction
|
7519
|
+
Completed 200 OK in 17ms (ActiveRecord: 10.3ms)
|
7520
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 5]]
|