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