method
authentication_request
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionController::HttpAuthentication::Basic
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