Method: ActionController::HttpAuthentication::Basic::ControllerMethods#authenticate_or_request_with_http_basic

Defined in:
actionpack/lib/action_controller/metal/http_authentication.rb

#authenticate_or_request_with_http_basic(realm = nil, message = nil, &login_procedure) ⇒ Object



95
96
97
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 95

def authenticate_or_request_with_http_basic(realm = nil, message = nil, &)
  authenticate_with_http_basic(&) || request_http_basic_authentication(realm || "Application", message)
end