devise_cas_authenticatable 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/devise_cas_authenticatable.gemspec +1 -1
- data/lib/devise_cas_authenticatable/strategy.rb +0 -6
- data/lib/devise_cas_authenticatable.rb +13 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 836c11beb6cfff139820be64809f25577cb2e835ff84f5a054bd6c0fc03d42fd
|
4
|
+
data.tar.gz: b642bbf0b62997007166096932e93ba276441d0aad2596f167e9ac7c2a7c1a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3502487105bb999d005e222080d1a16f2c8aee7192983c553f8dc1caec013a98782756f2ed111b45fb83d5200b0a4355d275e3ff86eff612e2ca4738bf73ec6
|
7
|
+
data.tar.gz: 05e4f421170c6bcce7f203964498764c9350a2c712e6ab40882337f02a730aabc7db81f72f5f776fd85db6dbcc1d14f276589e645c13c628c9cb09506f3bfd79
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog for devise_cas_authenticatable
|
2
2
|
|
3
|
+
## Version 2.0.2 - Febuary 8, 2022
|
4
|
+
|
5
|
+
- Remove the mistakenly-left-in single sign out config options. (If you try to set them, devise_cas_authenticatable
|
6
|
+
will now give a warning and do nothing.)
|
7
|
+
- Remove the mistakenly-left-in single sign out handling code in the Warden strategy (fixes #160)
|
8
|
+
|
3
9
|
## Version 2.0.1 - January 3, 2022
|
4
10
|
|
5
11
|
- Rails 7 compatibility fixes (thanks @francesco-loreti!)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'devise_cas_authenticatable'
|
3
|
-
s.version = '2.0.
|
3
|
+
s.version = '2.0.2'
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ['Nat Budin', 'Jeremy Haile']
|
@@ -20,12 +20,6 @@ module Devise
|
|
20
20
|
if cas_details
|
21
21
|
resource = mapping.to.authenticate_with_cas_details(cas_details)
|
22
22
|
if resource
|
23
|
-
# Store the ticket in the session for later usage
|
24
|
-
if ::Devise.cas_enable_single_sign_out
|
25
|
-
session['cas_last_valid_ticket'] = ticket.ticket
|
26
|
-
session['cas_last_valid_ticket_store'] = true
|
27
|
-
end
|
28
|
-
|
29
23
|
success!(resource)
|
30
24
|
else
|
31
25
|
username = cas_details['user']
|
@@ -20,15 +20,6 @@ module Devise
|
|
20
20
|
# Which url to send with logout, destination or follow. Can either be nil, destination or follow.
|
21
21
|
@@cas_logout_url_param = nil
|
22
22
|
|
23
|
-
# Should devise_cas_authenticatable enable single-sign-out? Requires use of a supported
|
24
|
-
# session_store. Currently supports active_record or redis.
|
25
|
-
# False by default.
|
26
|
-
@@cas_enable_single_sign_out = false
|
27
|
-
|
28
|
-
# What strategy should single sign out use for tracking token->session ID mapping.
|
29
|
-
# :rails_cache by default.
|
30
|
-
@@cas_single_sign_out_mapping_strategy = :rails_cache
|
31
|
-
|
32
23
|
# Should devise_cas_authenticatable attempt to create new user records for
|
33
24
|
# unknown usernames? True by default.
|
34
25
|
@@cas_create_user = true
|
@@ -43,7 +34,7 @@ module Devise
|
|
43
34
|
# Name of the parameter passed in the logout query
|
44
35
|
@@cas_destination_logout_param_name = nil
|
45
36
|
|
46
|
-
mattr_accessor :cas_destination_url, :cas_follow_url, :cas_logout_url_param, :cas_create_user, :cas_destination_logout_param_name, :cas_username_column, :
|
37
|
+
mattr_accessor :cas_destination_url, :cas_follow_url, :cas_logout_url_param, :cas_create_user, :cas_destination_logout_param_name, :cas_username_column, :cas_user_identifier
|
47
38
|
|
48
39
|
def self.cas_create_user?
|
49
40
|
cas_create_user
|
@@ -64,6 +55,18 @@ module Devise
|
|
64
55
|
def self.cas_action_url_factory_class
|
65
56
|
@cas_action_url_factory_class ||= CasActionUrlFactoryBase.prepare_class
|
66
57
|
end
|
58
|
+
|
59
|
+
def self.cas_enable_single_sign_out=(_value)
|
60
|
+
puts "Devise.cas_enable_single_sign_out is deprecated as of devise_cas_authenticatable 2.0, and has no effect."
|
61
|
+
puts "Single sign out is now handled via rack-cas. To set it up, see the rack-cas readme:"
|
62
|
+
puts "https://github.com/biola/rack-cas#single-logout"
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.cas_single_sign_out_mapping_strategy=(_value)
|
66
|
+
puts "Devise.cas_single_sign_out_mapping_strategy is deprecated as of devise_cas_authenticatable 2.0, and has no effect."
|
67
|
+
puts "Single sign out is now handled via rack-cas. To set it up, see the rack-cas readme:"
|
68
|
+
puts "https://github.com/biola/rack-cas#single-logout"
|
69
|
+
end
|
67
70
|
end
|
68
71
|
|
69
72
|
Devise.add_module(
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
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: 2022-
|
12
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|