On this page
module ActionController::HttpAuthentication::Digest::ControllerMethods
Public Instance Methods
authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure) Show source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 183
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
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 188
def authenticate_with_http_digest(realm = "Application", &password_procedure)
HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
end
Authenticate with HTTP Digest
, returns true or false
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 193
def request_http_digest_authentication(realm = "Application", message = nil)
HttpAuthentication::Digest.authentication_request(self, realm, message)
end
Render output including the HTTP Digest
authentication header
© 2004–2020 David Heinemeier Hansson
Licensed under the MIT License.