instance method
authentication_request
Ruby on Rails 2.2.3
Since v2.2.3Signature
authentication_request(controller, realm)
No documentation comment.
Parameters
-
controllerreq -
realmreq
Source
# File actionpack/lib/action_controller/http_authentication.rb, line 118
def authentication_request(controller, realm)
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
controller.__send__ :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
end
Defined in actionpack/lib/action_controller/http_authentication.rb line 118
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Basic