ActionController::HttpAuthentication::Basic::ControllerMethods
Namespace
Methods
A
R
Instance Public methods
authenticate_or_request_with_http_basic(realm = "Application", message = nil, &login_procedure)
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 82
def authenticate_or_request_with_http_basic(realm = "Application", message = nil, &login_procedure)
  authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm, message)
end
authenticate_with_http_basic(&login_procedure)
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 86
def authenticate_with_http_basic(&login_procedure)
  HttpAuthentication::Basic.authenticate(request, &login_procedure)
end
request_http_basic_authentication(realm = "Application", message = nil)
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 90
def request_http_basic_authentication(realm = "Application", message = nil)
  HttpAuthentication::Basic.authentication_request(self, realm, message)
end