Method: ActionController::HttpAuthentication::Digest::ControllerMethods#authenticate_or_request_with_http_digest

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

#authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure) ⇒ Object

Authenticate using an HTTP Digest, or otherwise render an HTTP header requesting the client to send a Digest.

See ActionController::HttpAuthentication::Digest for example usage.



197
198
199
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 197

def authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure)
  authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, message)
end