method
authentication_request
v3.2.13 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Basic
authentication_request(controller, realm)public
No documentation available.
# 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