shibboleth-rails 0.3.3 → 0.3.4

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,25 +1,28 @@
1
1
  class UserSessionsController < ApplicationController
2
2
 
3
- skip_before_filter :require_shibboleth
4
- before_filter :not_in_production
3
+ # skip CanCan authorization
4
+ skip_authorization_check if respond_to?(:skip_authorization_check)
5
5
 
6
- def new
7
- @users = User.all
8
- end
6
+ skip_before_filter :require_shibboleth
7
+ before_filter :not_in_production
9
8
 
10
- def create
11
- session[:simulate_id] = params[:user_id]
12
- redirect_to root_url
13
- end
9
+ def new
10
+ @users = User.all
11
+ end
14
12
 
15
- def destroy
16
- session[:simulate_id] = nil
17
- redirect_to new_user_session_url, :notice => "Logout successful!"
18
- end
13
+ def create
14
+ session[:simulate_id] = params[:user_id]
15
+ redirect_to root_url
16
+ end
19
17
 
20
- private
21
- def not_in_production
22
- redirect_to root_url if Rails.env.production?
23
- end
18
+ def destroy
19
+ session[:simulate_id] = nil
20
+ redirect_to new_user_session_url, :notice => "Logout successful!"
21
+ end
22
+
23
+ private
24
+ def not_in_production
25
+ redirect_to root_url if Rails.env.production?
26
+ end
24
27
 
25
28
  end
@@ -1,5 +1,5 @@
1
1
  module Shibboleth
2
2
  module Rails
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shibboleth-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - mikegee
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-11 00:00:00 Z
18
+ date: 2011-10-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -89,5 +89,5 @@ rubygems_version: 1.8.10
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: This Rails plugin integrates Shibboletth single signon.
92
- test_files: []
93
-
92
+ test_files:
93
+ - spec/controllers/user_sessions_controller_spec.rb