gds-sso 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
@@ -89,7 +89,11 @@ Warden::Strategies.add(:mock_gds_sso) do
89
89
  if test_user
90
90
  success!(test_user)
91
91
  else
92
- raise "GDS-SSO running in mock mode and no test user found. Normally we'd load the first user in the database. Create a user in the database."
92
+ if Rails.env.test? and ENV['GDS_SSO_MOCK_INVALID'] == '1'
93
+ fail!(:invalid)
94
+ else
95
+ raise "GDS-SSO running in mock mode and no test user found. Normally we'd load the first user in the database. Create a user in the database."
96
+ end
93
97
  end
94
98
  end
95
99
  end
@@ -6276,3 +6276,171 @@ Started GET "/restricted" for 127.0.0.1 at 2012-04-24 11:22:58 +0000
6276
6276
  Processing by ExampleController#restricted as JSON
6277
6277
  Authenticating with gds_sso_api_access strategy
6278
6278
  Completed 200 OK in 1ms (Views: 0.4ms)
6279
+
6280
+
6281
+ Started GET "/" for 127.0.0.1 at 2012-04-26 16:44:22 +0000
6282
+ Processing by ExampleController#index as HTML
6283
+ Rendered text template (0.0ms)
6284
+ Completed 200 OK in 44ms (Views: 44.2ms)
6285
+
6286
+
6287
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:22 +0000
6288
+ Processing by ExampleController#restricted as HTML
6289
+ Authenticating with gds_sso strategy
6290
+ Completed in 0ms
6291
+
6292
+
6293
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:44:22 +0000
6294
+
6295
+
6296
+ Started GET "/auth/gds/callback?code=D8fBhRds18zqBC7Tda02oyknYXPI64AJ6fwN9IBH1HhUJNct" for 127.0.0.1 at 2012-04-26 16:44:23 +0000
6297
+ Processing by AuthenticationsController#callback as HTML
6298
+ Parameters: {"code"=>"D8fBhRds18zqBC7Tda02oyknYXPI64AJ6fwN9IBH1HhUJNct"}
6299
+ Authenticating with gds_sso strategy
6300
+ Redirected to http://www.example-client.com/restricted
6301
+ Completed 302 Found in 1ms
6302
+
6303
+
6304
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:23 +0000
6305
+ Processing by ExampleController#restricted as HTML
6306
+ Completed 200 OK in 1ms (Views: 0.4ms)
6307
+
6308
+
6309
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6310
+ Processing by ExampleController#restricted as HTML
6311
+ Authenticating with gds_sso strategy
6312
+ Completed in 0ms
6313
+
6314
+
6315
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6316
+
6317
+
6318
+ Started GET "/auth/gds/callback?code=pHcX0LZv0vFJpfOKJVtjjWXGjBBAwVGffTa6gbdgVbeW5OoA" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6319
+ Processing by AuthenticationsController#callback as HTML
6320
+ Parameters: {"code"=>"pHcX0LZv0vFJpfOKJVtjjWXGjBBAwVGffTa6gbdgVbeW5OoA"}
6321
+ Authenticating with gds_sso strategy
6322
+ Redirected to http://www.example-client.com/restricted
6323
+ Completed 302 Found in 1ms
6324
+
6325
+
6326
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6327
+ Processing by ExampleController#restricted as HTML
6328
+ Completed 200 OK in 1ms (Views: 0.5ms)
6329
+
6330
+
6331
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6332
+ Processing by ExampleController#restricted as HTML
6333
+ Authenticating with gds_sso strategy
6334
+ Completed in 0ms
6335
+
6336
+
6337
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6338
+
6339
+
6340
+ Started GET "/auth/gds/callback?code=hXFTP5c0ufozGo35hcl22lbF3JAoGoTazgaeLtpjLv6tRVKe" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6341
+ Processing by AuthenticationsController#callback as HTML
6342
+ Parameters: {"code"=>"hXFTP5c0ufozGo35hcl22lbF3JAoGoTazgaeLtpjLv6tRVKe"}
6343
+ Authenticating with gds_sso strategy
6344
+ Redirected to http://www.example-client.com/restricted
6345
+ Completed 302 Found in 1ms
6346
+
6347
+
6348
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6349
+ Processing by ExampleController#restricted as HTML
6350
+ Completed 200 OK in 0ms (Views: 0.3ms)
6351
+
6352
+
6353
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6354
+ Processing by ExampleController#restricted as JSON
6355
+ Authenticating with gds_sso_api_access strategy
6356
+ Completed in 47ms
6357
+
6358
+
6359
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:44:24 +0000
6360
+ Processing by ExampleController#restricted as JSON
6361
+ Authenticating with gds_sso_api_access strategy
6362
+ Completed 200 OK in 1ms (Views: 0.4ms)
6363
+
6364
+
6365
+ Started GET "/" for 127.0.0.1 at 2012-04-26 16:45:22 +0000
6366
+ Processing by ExampleController#index as HTML
6367
+ Rendered text template (0.0ms)
6368
+ Completed 200 OK in 65ms (Views: 65.2ms)
6369
+
6370
+
6371
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:23 +0000
6372
+ Processing by ExampleController#restricted as HTML
6373
+ Authenticating with gds_sso strategy
6374
+ Completed in 1ms
6375
+
6376
+
6377
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:45:23 +0000
6378
+
6379
+
6380
+ Started GET "/auth/gds/callback?code=f17fbfef45c4ac4b56063ddae4f18e2c95405ddcc977dd597929ee226b483526" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6381
+ Processing by AuthenticationsController#callback as HTML
6382
+ Parameters: {"code"=>"f17fbfef45c4ac4b56063ddae4f18e2c95405ddcc977dd597929ee226b483526"}
6383
+ Authenticating with gds_sso strategy
6384
+ Redirected to http://www.example-client.com/restricted
6385
+ Completed 302 Found in 1ms
6386
+
6387
+
6388
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6389
+ Processing by ExampleController#restricted as HTML
6390
+ Completed 200 OK in 1ms (Views: 0.4ms)
6391
+
6392
+
6393
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6394
+ Processing by ExampleController#restricted as HTML
6395
+ Authenticating with gds_sso strategy
6396
+ Completed in 0ms
6397
+
6398
+
6399
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6400
+
6401
+
6402
+ Started GET "/auth/gds/callback?code=ba0e8248c61cc7420d876a014d99f7e68e3b2ec507fc284628883ea2fc116b57" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6403
+ Processing by AuthenticationsController#callback as HTML
6404
+ Parameters: {"code"=>"ba0e8248c61cc7420d876a014d99f7e68e3b2ec507fc284628883ea2fc116b57"}
6405
+ Authenticating with gds_sso strategy
6406
+ Redirected to http://www.example-client.com/restricted
6407
+ Completed 302 Found in 1ms
6408
+
6409
+
6410
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6411
+ Processing by ExampleController#restricted as HTML
6412
+ Completed 200 OK in 1ms (Views: 0.4ms)
6413
+
6414
+
6415
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6416
+ Processing by ExampleController#restricted as HTML
6417
+ Authenticating with gds_sso strategy
6418
+ Completed in 0ms
6419
+
6420
+
6421
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6422
+
6423
+
6424
+ Started GET "/auth/gds/callback?code=632d29c8d81e698484d01044f788987394d9797f8e4b69ba639b29521b89e102" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6425
+ Processing by AuthenticationsController#callback as HTML
6426
+ Parameters: {"code"=>"632d29c8d81e698484d01044f788987394d9797f8e4b69ba639b29521b89e102"}
6427
+ Authenticating with gds_sso strategy
6428
+ Redirected to http://www.example-client.com/restricted
6429
+ Completed 302 Found in 0ms
6430
+
6431
+
6432
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6433
+ Processing by ExampleController#restricted as HTML
6434
+ Completed 200 OK in 0ms (Views: 0.3ms)
6435
+
6436
+
6437
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6438
+ Processing by ExampleController#restricted as JSON
6439
+ Authenticating with gds_sso_api_access strategy
6440
+ Completed in 10ms
6441
+
6442
+
6443
+ Started GET "/restricted" for 127.0.0.1 at 2012-04-26 16:45:24 +0000
6444
+ Processing by ExampleController#restricted as JSON
6445
+ Authenticating with gds_sso_api_access strategy
6446
+ Completed 200 OK in 1ms (Views: 0.5ms)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.5.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Patterson
@@ -217,7 +217,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  requirements:
218
218
  - - ">="
219
219
  - !ruby/object:Gem::Version
220
- hash: -3590518853034987853
220
+ hash: -2627943247196164465
221
221
  segments:
222
222
  - 0
223
223
  version: "0"
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- hash: -3590518853034987853
229
+ hash: -2627943247196164465
230
230
  segments:
231
231
  - 0
232
232
  version: "0"