gds-sso 0.7.4 → 0.7.5

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.
data/lib/gds-sso/user.rb CHANGED
@@ -14,7 +14,7 @@ module GDS
14
14
 
15
15
  module User
16
16
  def has_permission?(scope, permission)
17
- if permissions.has_key?(scope)
17
+ if permissions && permissions.has_key?(scope)
18
18
  permissions[scope].include?(permission) || permissions[scope].include?("admin")
19
19
  end
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
@@ -2481,3 +2481,171 @@ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 14:56:44 +0000
2481
2481
  Processing by ExampleController#restricted as JSON
2482
2482
  Authenticating with gds_sso_api_access strategy
2483
2483
  Completed 200 OK in 1ms (Views: 0.5ms)
2484
+
2485
+
2486
+ Started GET "/" for 127.0.0.1 at 2012-06-27 15:46:59 +0000
2487
+ Processing by ExampleController#index as HTML
2488
+ Rendered text template (0.0ms)
2489
+ Completed 200 OK in 48ms (Views: 47.5ms)
2490
+
2491
+
2492
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:46:59 +0000
2493
+ Processing by ExampleController#restricted as HTML
2494
+ Authenticating with gds_sso strategy
2495
+ Completed in 57ms
2496
+
2497
+
2498
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:46:59 +0000
2499
+
2500
+
2501
+ Started GET "/auth/gds/callback?code=b80184ab5e79bda32b01fb50319d6982214355bb4f7053d4623bbf33613d462c" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2502
+ Processing by AuthenticationsController#callback as HTML
2503
+ Parameters: {"code"=>"b80184ab5e79bda32b01fb50319d6982214355bb4f7053d4623bbf33613d462c"}
2504
+ Authenticating with gds_sso strategy
2505
+ Redirected to http://www.example-client.com/restricted
2506
+ Completed 302 Found in 1ms
2507
+
2508
+
2509
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2510
+ Processing by ExampleController#restricted as HTML
2511
+ Completed 200 OK in 1ms (Views: 0.5ms)
2512
+
2513
+
2514
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2515
+ Processing by ExampleController#restricted as HTML
2516
+ Authenticating with gds_sso strategy
2517
+ Completed in 1ms
2518
+
2519
+
2520
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2521
+
2522
+
2523
+ Started GET "/auth/gds/callback?code=02fc47ed96d08a80af5e0916c768b59798440210fd9acc4367dcdd42163f942a" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2524
+ Processing by AuthenticationsController#callback as HTML
2525
+ Parameters: {"code"=>"02fc47ed96d08a80af5e0916c768b59798440210fd9acc4367dcdd42163f942a"}
2526
+ Authenticating with gds_sso strategy
2527
+ Redirected to http://www.example-client.com/restricted
2528
+ Completed 302 Found in 2ms
2529
+
2530
+
2531
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2532
+ Processing by ExampleController#restricted as HTML
2533
+ Completed 200 OK in 1ms (Views: 0.6ms)
2534
+
2535
+
2536
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2537
+ Processing by ExampleController#restricted as HTML
2538
+ Authenticating with gds_sso strategy
2539
+ Completed in 0ms
2540
+
2541
+
2542
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:47:00 +0000
2543
+
2544
+
2545
+ Started GET "/auth/gds/callback?code=5d4d2a06068d5d8d77ba35db3b2f2cced7157cb944019777f640b27e8075ce21" for 127.0.0.1 at 2012-06-27 15:47:01 +0000
2546
+ Processing by AuthenticationsController#callback as HTML
2547
+ Parameters: {"code"=>"5d4d2a06068d5d8d77ba35db3b2f2cced7157cb944019777f640b27e8075ce21"}
2548
+ Authenticating with gds_sso strategy
2549
+ Redirected to http://www.example-client.com/restricted
2550
+ Completed 302 Found in 1ms
2551
+
2552
+
2553
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:01 +0000
2554
+ Processing by ExampleController#restricted as HTML
2555
+ Completed 200 OK in 1ms (Views: 0.4ms)
2556
+
2557
+
2558
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:01 +0000
2559
+ Processing by ExampleController#restricted as JSON
2560
+ Authenticating with gds_sso_api_access strategy
2561
+ Completed in 63ms
2562
+
2563
+
2564
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:47:01 +0000
2565
+ Processing by ExampleController#restricted as JSON
2566
+ Authenticating with gds_sso_api_access strategy
2567
+ Completed 200 OK in 1ms (Views: 0.7ms)
2568
+
2569
+
2570
+ Started GET "/" for 127.0.0.1 at 2012-06-27 15:48:22 +0000
2571
+ Processing by ExampleController#index as HTML
2572
+ Rendered text template (0.0ms)
2573
+ Completed 200 OK in 48ms (Views: 47.6ms)
2574
+
2575
+
2576
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:23 +0000
2577
+ Processing by ExampleController#restricted as HTML
2578
+ Authenticating with gds_sso strategy
2579
+ Completed in 59ms
2580
+
2581
+
2582
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:48:23 +0000
2583
+
2584
+
2585
+ Started GET "/auth/gds/callback?code=d65782806639d52aaf0a207f78890b4266721ac1d39b94f7216c3ccbbea5a643" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2586
+ Processing by AuthenticationsController#callback as HTML
2587
+ Parameters: {"code"=>"d65782806639d52aaf0a207f78890b4266721ac1d39b94f7216c3ccbbea5a643"}
2588
+ Authenticating with gds_sso strategy
2589
+ Redirected to http://www.example-client.com/restricted
2590
+ Completed 302 Found in 1ms
2591
+
2592
+
2593
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2594
+ Processing by ExampleController#restricted as HTML
2595
+ Completed 200 OK in 1ms (Views: 0.5ms)
2596
+
2597
+
2598
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2599
+ Processing by ExampleController#restricted as HTML
2600
+ Authenticating with gds_sso strategy
2601
+ Completed in 1ms
2602
+
2603
+
2604
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2605
+
2606
+
2607
+ Started GET "/auth/gds/callback?code=28027318996d544f0d8c83067596c62e538ef4219e6be3b2d54b9aa9e08b2e19" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2608
+ Processing by AuthenticationsController#callback as HTML
2609
+ Parameters: {"code"=>"28027318996d544f0d8c83067596c62e538ef4219e6be3b2d54b9aa9e08b2e19"}
2610
+ Authenticating with gds_sso strategy
2611
+ Redirected to http://www.example-client.com/restricted
2612
+ Completed 302 Found in 1ms
2613
+
2614
+
2615
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2616
+ Processing by ExampleController#restricted as HTML
2617
+ Completed 200 OK in 1ms (Views: 0.6ms)
2618
+
2619
+
2620
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2621
+ Processing by ExampleController#restricted as HTML
2622
+ Authenticating with gds_sso strategy
2623
+ Completed in 0ms
2624
+
2625
+
2626
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2627
+
2628
+
2629
+ Started GET "/auth/gds/callback?code=d6ceb2ff97df34f331ce8bd197ad07ecbcbca51e0e2f072623842df3a6c1fc1b" for 127.0.0.1 at 2012-06-27 15:48:24 +0000
2630
+ Processing by AuthenticationsController#callback as HTML
2631
+ Parameters: {"code"=>"d6ceb2ff97df34f331ce8bd197ad07ecbcbca51e0e2f072623842df3a6c1fc1b"}
2632
+ Authenticating with gds_sso strategy
2633
+ Redirected to http://www.example-client.com/restricted
2634
+ Completed 302 Found in 1ms
2635
+
2636
+
2637
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:25 +0000
2638
+ Processing by ExampleController#restricted as HTML
2639
+ Completed 200 OK in 1ms (Views: 0.3ms)
2640
+
2641
+
2642
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:25 +0000
2643
+ Processing by ExampleController#restricted as JSON
2644
+ Authenticating with gds_sso_api_access strategy
2645
+ Completed in 69ms
2646
+
2647
+
2648
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 15:48:25 +0000
2649
+ Processing by ExampleController#restricted as JSON
2650
+ Authenticating with gds_sso_api_access strategy
2651
+ 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.7.4
5
+ version: 0.7.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Patterson
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - ">="
206
206
  - !ruby/object:Gem::Version
207
- hash: 3774185917167488634
207
+ hash: 449159821961409847
208
208
  segments:
209
209
  - 0
210
210
  version: "0"
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- hash: 3774185917167488634
216
+ hash: 449159821961409847
217
217
  segments:
218
218
  - 0
219
219
  version: "0"