Module: Devise::Models::SamlAuthenticatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise_saml_authenticatable/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #after_saml_authentication(session_index) ⇒ Object
- #authenticatable_salt ⇒ Object
- #update_with_password(params = {}) ⇒ Object
- #update_without_password(params = {}) ⇒ Object
Instance Method Details
#after_saml_authentication(session_index) ⇒ Object
27 28 29 30 31 |
# File 'lib/devise_saml_authenticatable/model.rb', line 27 def after_saml_authentication(session_index) if self.respond_to? Devise.saml_session_index_key self.update_attribute(Devise.saml_session_index_key, session_index) end end |
#authenticatable_salt ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/devise_saml_authenticatable/model.rb', line 33 def authenticatable_salt if self.respond_to?(Devise.saml_session_index_key) && self.send(Devise.saml_session_index_key).present? self.send(Devise.saml_session_index_key) else super end end |
#update_with_password(params = {}) ⇒ Object
14 15 16 17 |
# File 'lib/devise_saml_authenticatable/model.rb', line 14 def update_with_password(params={}) params.delete(:current_password) self.update_without_password(params) end |
#update_without_password(params = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/devise_saml_authenticatable/model.rb', line 19 def update_without_password(params={}) params.delete(:password) params.delete(:password_confirmation) result = update_attributes(params) result end |