instance method
authenticate
Ruby on Rails 2.3.18
Since v2.3.18Signature
authenticate(controller, realm, &password_procedure)
Returns false on a valid response, true otherwise
Parameters
-
controllerreq -
realmreq -
password_procedureblock
Source
# File actionpack/lib/action_controller/http_authentication.rb, line 175
def authenticate(controller, realm, &password_procedure)
authorization(controller.request) && validate_digest_response(controller.request, realm, &password_procedure)
end
Defined in actionpack/lib/action_controller/http_authentication.rb line 175
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest