Module: ActionController::HttpAuthentication::Digest::ControllerMethods
- Defined in:
- actionpack/lib/action_controller/metal/http_authentication.rb
Instance Method Summary (collapse)
- - (Object) authenticate_or_request_with_http_digest(realm = "Application", &password_procedure)
-
- (Object) authenticate_with_http_digest(realm = "Application", &password_procedure)
Authenticate with HTTP Digest, returns true or false.
-
- (Object) request_http_digest_authentication(realm = "Application", message = nil)
Render output including the HTTP Digest authentication header.
Instance Method Details
- (Object) authenticate_or_request_with_http_digest(realm = "Application", &password_procedure)
155 156 157 |
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 155 def authenticate_or_request_with_http_digest(realm = "Application", &password_procedure) authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm) end |
- (Object) authenticate_with_http_digest(realm = "Application", &password_procedure)
Authenticate with HTTP Digest, returns true or false
160 161 162 |
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 160 def authenticate_with_http_digest(realm = "Application", &password_procedure) HttpAuthentication::Digest.authenticate(request, realm, &password_procedure) end |
- (Object) request_http_digest_authentication(realm = "Application", message = nil)
Render output including the HTTP Digest authentication header
165 166 167 |
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 165 def request_http_digest_authentication(realm = "Application", = nil) HttpAuthentication::Digest.authentication_request(self, realm, ) end |