shibboleth-rails 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,25 +1,28 @@
|
|
1
1
|
class UserSessionsController < ApplicationController
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
# skip CanCan authorization
|
4
|
+
skip_authorization_check if respond_to?(:skip_authorization_check)
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
end
|
6
|
+
skip_before_filter :require_shibboleth
|
7
|
+
before_filter :not_in_production
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
9
|
+
def new
|
10
|
+
@users = User.all
|
11
|
+
end
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
def create
|
14
|
+
session[:simulate_id] = params[:user_id]
|
15
|
+
redirect_to root_url
|
16
|
+
end
|
19
17
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.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-
|
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
|