Methods
- authenticate_or_request_with_http_digest
- authenticate_with_http_digest
- request_http_digest_authentication
Instance Public methods
authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure)
📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 181
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
🔎 See on GitHub
authenticate_with_http_digest(realm = "Application", &password_procedure)
Authenticate with HTTP Digest
, returns true or false
📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 186
def authenticate_with_http_digest(realm = "Application", &password_procedure)
HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
end
🔎 See on GitHub
request_http_digest_authentication(realm = "Application", message = nil)
Render output including the HTTP Digest
authentication header
📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 191
def request_http_digest_authentication(realm = "Application", message = nil)
HttpAuthentication::Digest.authentication_request(self, realm, message)
end
🔎 See on GitHub