instance method
authentication_request
Ruby on Rails 2.3.18
Since v2.3.18Signature
authentication_request(controller, realm, message = nil)
No documentation comment.
Parameters
-
controllerreq -
realmreq -
messageopt = nil
Source
# File actionpack/lib/action_controller/http_authentication.rb, line 241
def authentication_request(controller, realm, message = nil)
message ||= "HTTP Digest: Access denied.\n"
authentication_header(controller, realm)
controller.__send__ :render, :text => message, :status => :unauthorized
end
Defined in actionpack/lib/action_controller/http_authentication.rb line 241
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest