method
authentication_request
authentication_request(controller, realm)
public
Hide source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 122 def authentication_request(controller, realm) controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}") controller.status = 401 controller.response_body = "HTTP Basic: Access denied.\n" end