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