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

Instance Method Details

#after_saml_authentication(session_index) ⇒ Object


15
16
17
18
19
# File 'lib/devise_saml_authenticatable/model.rb', line 15

def after_saml_authentication(session_index)
  if Devise.saml_session_index_key && self.respond_to?(Devise.saml_session_index_key)
    self.update_attribute(Devise.saml_session_index_key, session_index)
  end
end

#authenticatable_saltObject


21
22
23
24
25
26
27
28
29
# File 'lib/devise_saml_authenticatable/model.rb', line 21

def authenticatable_salt
  if Devise.saml_session_index_key &&
     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