| Module | ActionController::HttpAuthentication::Digest::ControllerMethods |
| In: |
vendor/rails/actionpack/lib/action_controller/http_authentication.rb
|
# File vendor/rails/actionpack/lib/action_controller/http_authentication.rb, line 159
159: def authenticate_or_request_with_http_digest(realm = "Application", &password_procedure)
160: authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm)
161: end
Authenticate with HTTP Digest, returns true or false
# File vendor/rails/actionpack/lib/action_controller/http_authentication.rb, line 164
164: def authenticate_with_http_digest(realm = "Application", &password_procedure)
165: HttpAuthentication::Digest.authenticate(self, realm, &password_procedure)
166: end
Render output including the HTTP Digest authentication header
# File vendor/rails/actionpack/lib/action_controller/http_authentication.rb, line 169
169: def request_http_digest_authentication(realm = "Application", message = nil)
170: HttpAuthentication::Digest.authentication_request(self, realm, message)
171: end