devise_cas_authenticatable 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -1
- data/Gemfile.devise21 +2 -1
- data/README.md +13 -8
- data/devise_cas_authenticatable.gemspec +3 -3
- data/lib/devise_cas_authenticatable/single_sign_out.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b1bd33da3b198cecce4b3171a7196919f392228
|
4
|
+
data.tar.gz: 00269482f2b15ceca12481571bd8a7c60f7aaebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b2a3f29488dbdc223ad2c05c66541d8928d8186612f17e3e5aeb4ccd8614ce0ded09fc31ff5e29b98aa314f65abe0b6adbc27fba9b2502ca1e4b982bc35b8ac
|
7
|
+
data.tar.gz: d8dcb99e7567345dc6ebeba7a84d139444a7ac9d5177cba311496801e9db8312828716a62e685ff7730d5661eaaa2be6d1053c3acac52c115020177992a09012
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog for devise\_cas\_authenticatable
|
2
2
|
|
3
|
+
## Version 1.3.8 - April 24, 2015
|
4
|
+
|
5
|
+
* Remove a deprecated dependency (thanks to @gmoore)
|
6
|
+
* Fix a wrong variable name that could break debug logging (thanks again to @gmoore)
|
7
|
+
|
3
8
|
## Version 1.3.7 - July 17, 2014
|
4
9
|
|
5
10
|
* Be less verbose in the log during single sign-out (thanks to @liudangyi)
|
data/Gemfile
CHANGED
data/Gemfile.devise21
CHANGED
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Installation
|
|
21
21
|
------------
|
22
22
|
|
23
23
|
gem install --pre devise_cas_authenticatable
|
24
|
-
|
24
|
+
|
25
25
|
and in your config/environment.rb (on Rails 2.3):
|
26
26
|
|
27
27
|
config.gem 'devise', :version => '~> 1.0.6'
|
@@ -38,7 +38,7 @@ Setup
|
|
38
38
|
Once devise\_cas\_authenticatable is installed, add the following to your user model:
|
39
39
|
|
40
40
|
devise :cas_authenticatable
|
41
|
-
|
41
|
+
|
42
42
|
You can also add other modules such as token_authenticatable, trackable, etc. Please do not
|
43
43
|
add database_authenticatable as this module is intended to replace it.
|
44
44
|
|
@@ -63,12 +63,12 @@ to tell your app how to talk to your CAS server:
|
|
63
63
|
Devise.setup do |config|
|
64
64
|
...
|
65
65
|
config.cas_base_url = "https://cas.myorganization.com"
|
66
|
-
|
66
|
+
|
67
67
|
# you can override these if you need to, but cas_base_url is usually enough
|
68
68
|
# config.cas_login_url = "https://cas.myorganization.com/login"
|
69
69
|
# config.cas_logout_url = "https://cas.myorganization.com/logout"
|
70
70
|
# config.cas_validate_url = "https://cas.myorganization.com/serviceValidate"
|
71
|
-
|
71
|
+
|
72
72
|
# The CAS specification allows for the passing of a follow URL to be displayed when
|
73
73
|
# a user logs out on the CAS server. RubyCAS-Server also supports redirecting to a
|
74
74
|
# URL via the destination param. Set either of these urls and specify either nil,
|
@@ -77,7 +77,7 @@ to tell your app how to talk to your CAS server:
|
|
77
77
|
# config.cas_destination_url = 'https://cas.myorganization.com'
|
78
78
|
# config.cas_follow_url = 'https://cas.myorganization.com'
|
79
79
|
# config.cas_logout_url_param = nil
|
80
|
-
|
80
|
+
|
81
81
|
# You can specify the name of the destination argument with the following option.
|
82
82
|
# e.g. the following option will change it from 'destination' to 'url'
|
83
83
|
# config.cas_destination_logout_param_name = 'url'
|
@@ -90,14 +90,19 @@ to tell your app how to talk to your CAS server:
|
|
90
90
|
# You can enable Single Sign Out, which by default is disabled.
|
91
91
|
# config.cas_enable_single_sign_out = true
|
92
92
|
|
93
|
-
# If you want to use the Devise Timeoutable module with single sign out,
|
93
|
+
# If you want to use the Devise Timeoutable module with single sign out,
|
94
94
|
# uncommenting this will redirect timeouts to the logout url, so that the CAS can
|
95
95
|
# take care of signing out the other serviced applocations. Note that each
|
96
|
-
# application manages timeouts independently, so one application timing out will
|
96
|
+
# application manages timeouts independently, so one application timing out will
|
97
97
|
# kill the session on all applications serviced by the CAS.
|
98
98
|
# config.warden do |manager|
|
99
99
|
# manager.failure_app = DeviseCasAuthenticatable::SingleSignOut::WardenFailureApp
|
100
100
|
# end
|
101
|
+
|
102
|
+
# If you need to specify some extra configs for rubycas-client, you can do this via:
|
103
|
+
# config.cas_client_config_options = {
|
104
|
+
# logger: Rails.logger
|
105
|
+
# }
|
101
106
|
end
|
102
107
|
|
103
108
|
Extra attributes
|
@@ -109,7 +114,7 @@ cas_extra_attributes= to accept these. For example:
|
|
109
114
|
|
110
115
|
class User < ActiveRecord::Base
|
111
116
|
devise :cas_authenticatable
|
112
|
-
|
117
|
+
|
113
118
|
def cas_extra_attributes=(extra_attributes)
|
114
119
|
extra_attributes.each do |name, value|
|
115
120
|
case name.to_sym
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{devise_cas_authenticatable}
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Nat Budin", "Jeremy Haile"]
|
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.add_development_dependency("rails", ">= 3.0.7")
|
28
28
|
s.add_development_dependency("rspec-rails")
|
29
29
|
s.add_development_dependency("mocha")
|
30
|
-
s.add_development_dependency("shoulda"
|
31
|
-
s.add_development_dependency("sqlite3
|
30
|
+
s.add_development_dependency("shoulda")
|
31
|
+
s.add_development_dependency("sqlite3")
|
32
32
|
s.add_development_dependency("sham_rack")
|
33
33
|
s.add_development_dependency("capybara")
|
34
34
|
s.add_development_dependency('crypt-isaac')
|
@@ -49,9 +49,9 @@ module DeviseCasAuthenticatable
|
|
49
49
|
elsif session_store_class.name =~ /CacheStore/
|
50
50
|
current_session_store.destroy_session({}, sid, {})
|
51
51
|
true
|
52
|
-
else
|
52
|
+
else
|
53
53
|
logger.error "Cannot process logout request because this Rails application's session store is "+
|
54
|
-
" #{
|
54
|
+
" #{session_store_class.name} and is not a support session store type for Single Sign-Out."
|
55
55
|
false
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_cas_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
@@ -85,18 +85,18 @@ dependencies:
|
|
85
85
|
name: shoulda
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name: sqlite3
|
99
|
+
name: sqlite3
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: 1.3.1
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.
|
293
|
+
rubygems_version: 2.4.5
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: CAS authentication module for Devise
|