module ActionController::HttpAuthentication::Digest::ControllerMethods

def authenticate_with_http_digest(realm = "Application", &password_procedure)

Authenticate with HTTP Digest, returns true or false
def authenticate_with_http_digest(realm = "Application", &password_procedure)
  HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
end