123456789_123456789_123456789_123456789_123456789_

Module: ActionController::HttpAuthentication::Digest::ControllerMethods

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
::ActionController::Base, ::ActionView::TestCase::TestController, Rails::ApplicationController, Rails::InfoController, Rails::MailersController, Rails::WelcomeController
Defined in: actionpack/lib/action_controller/metal/http_authentication.rb

Instance Method Summary

Instance Method Details

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

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 184

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

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

Authenticate with HTTP Digest, returns true or false

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 189

def authenticate_with_http_digest(realm = "Application", &password_procedure)
  HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
end

#request_http_digest_authentication(realm = "Application", message = nil)

Render output including the HTTP Digest authentication header

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 194

def request_http_digest_authentication(realm = "Application", message = nil)
  HttpAuthentication::Digest.authentication_request(self, realm, message)
end