method
authentication_request
v2.3.8 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Basic
authentication_request(controller, realm)public
No documentation available.
# File actionpack/lib/action_controller/http_authentication.rb, line 149
def authentication_request(controller, realm)
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
controller.__send__ :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
end