method
authentication_request
v4.0.2 -
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 110
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