Module: Devise::Models::RemoteAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise/models/remote_authenticatable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#remote_authentication(authentication_hash) ⇒ Object

Here you do the request to the external webservice

If the authentication is successful you should return a resource instance

If the authentication fails you should return false



14
15
16
# File 'lib/devise/models/remote_authenticatable.rb', line 14

def remote_authentication(authentication_hash)
  self.class.authenticate(authentication_hash) # call MnoEnterprise::User.authenticate
end

#send_password_change_notificationObject



23
24
25
# File 'lib/devise/models/remote_authenticatable.rb', line 23

def send_password_change_notification
  send_devise_notification(:password_change)
end