Module: Devise
- Defined in:
- lib/devise_cas_authenticatable.rb,
lib/devise_cas_authenticatable/model.rb,
lib/devise_cas_authenticatable/strategy.rb,
lib/devise_cas_authenticatable/cas_action_url_factory_base.rb
Defined Under Namespace
Modules: Models, Strategies Classes: CasActionUrlFactoryBase, CasSessionsController
Constant Summary collapse
- @@cas_destination_url =
The destination url for logout.
nil
- @@cas_follow_url =
The follow url for logout.
nil
- @@cas_logout_url_param =
Which url to send with logout, destination or follow. Can either be nil, destination or follow.
nil
- @@cas_create_user =
Should devise_cas_authenticatable attempt to create new user records for unknown usernames? True by default.
true
- @@cas_username_column =
The model attribute used for query conditions. :username by default
:username
- @@cas_user_identifier =
The CAS reponse value used to find users in the local database it is required that this field be in cas_extra_attributes
nil
- @@cas_destination_logout_param_name =
Name of the parameter passed in the logout query
nil
Class Method Summary collapse
- .cas_action_url(base_url, mapping, action) ⇒ Object
- .cas_action_url_factory_class ⇒ Object
- .cas_create_user? ⇒ Boolean
- .cas_enable_single_sign_out=(_value) ⇒ Object
- .cas_service_url(base_url, mapping) ⇒ Object
- .cas_single_sign_out_mapping_strategy=(_value) ⇒ Object
- .cas_unregistered_url(base_url, mapping) ⇒ Object
Class Method Details
.cas_action_url(base_url, mapping, action) ⇒ Object
51 52 53 |
# File 'lib/devise_cas_authenticatable.rb', line 51 def self.cas_action_url(base_url, mapping, action) cas_action_url_factory_class.new(base_url, mapping, action).call end |
.cas_action_url_factory_class ⇒ Object
55 56 57 |
# File 'lib/devise_cas_authenticatable.rb', line 55 def self.cas_action_url_factory_class @cas_action_url_factory_class ||= CasActionUrlFactoryBase.prepare_class end |
.cas_create_user? ⇒ Boolean
39 40 41 |
# File 'lib/devise_cas_authenticatable.rb', line 39 def self.cas_create_user? cas_create_user end |
.cas_enable_single_sign_out=(_value) ⇒ Object
59 60 61 62 63 |
# File 'lib/devise_cas_authenticatable.rb', line 59 def self.cas_enable_single_sign_out=(_value) puts "Devise.cas_enable_single_sign_out is deprecated as of devise_cas_authenticatable 2.0, and has no effect." puts "Single sign out is now handled via rack-cas. To set it up, see the rack-cas readme:" puts "https://github.com/biola/rack-cas#single-logout" end |
.cas_service_url(base_url, mapping) ⇒ Object
43 44 45 |
# File 'lib/devise_cas_authenticatable.rb', line 43 def self.cas_service_url(base_url, mapping) cas_action_url(base_url, mapping, 'service') end |
.cas_single_sign_out_mapping_strategy=(_value) ⇒ Object
65 66 67 68 69 |
# File 'lib/devise_cas_authenticatable.rb', line 65 def self.cas_single_sign_out_mapping_strategy=(_value) puts "Devise.cas_single_sign_out_mapping_strategy is deprecated as of devise_cas_authenticatable 2.0, and has no effect." puts "Single sign out is now handled via rack-cas. To set it up, see the rack-cas readme:" puts "https://github.com/biola/rack-cas#single-logout" end |
.cas_unregistered_url(base_url, mapping) ⇒ Object
47 48 49 |
# File 'lib/devise_cas_authenticatable.rb', line 47 def self.cas_unregistered_url(base_url, mapping) cas_action_url(base_url, mapping, 'unregistered') end |