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