instance method
authentication_request
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
authentication_request(controller, realm, message)
No documentation comment.
Parameters
-
controllerreq -
realmreq -
messagereq
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 130
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
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 130
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Basic