class Devise::Strategies::RadiusAuthenticatable
Strategy for authenticating users with a radius server. If authentication with the radius server fails, allow warden to move on to the next strategy. When authentication succeeds and Devise
indicates that the resource has been successfully validated, invoke the after_radius_authentication
callback on the resource and let warden know we were successful and not to continue with executing further strategies.
Public Instance Methods
authenticate!()
click to toggle source
Invoked by warden to execute the strategy.
# File lib/devise/strategies/radius_authenticatable.rb, line 13 def authenticate! auth_params = authentication_hash.merge(password: password) resource = valid_password? && mapping.to.find_for_radius_authentication(auth_params) return fail(:invalid) unless resource if validate(resource) resource.after_radius_authentication success!(resource) end end