Method: ActionController::HttpAuthentication::Basic#authentication_request
- Defined in:
- actionpack/lib/action_controller/metal/http_authentication.rb
#authentication_request(controller, realm, message) ⇒ Object
138 139 140 141 142 143 |
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 138 def authentication_request(controller, realm, ) ||= "HTTP Basic: Access denied.\n" controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.tr('"', "")}") controller.status = 401 controller.response_body = end |