Module: ActionController::HttpAuthentication::Digest::ControllerMethods
- Defined in:
- lib/action_controller/metal/http_authentication.rb
Instance Method Summary collapse
- #authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure) ⇒ Object
-
#authenticate_with_http_digest(realm = "Application", &password_procedure) ⇒ Object
Authenticate with HTTP Digest, returns true or false.
-
#request_http_digest_authentication(realm = "Application", message = nil) ⇒ Object
Render output including the HTTP Digest authentication header.
Instance Method Details
#authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure) ⇒ Object
184 185 186 |
# File 'lib/action_controller/metal/http_authentication.rb', line 184 def authenticate_or_request_with_http_digest(realm = "Application", = nil, &password_procedure) authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, ) end |
#authenticate_with_http_digest(realm = "Application", &password_procedure) ⇒ Object
Authenticate with HTTP Digest, returns true or false
189 190 191 |
# File '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) ⇒ Object
Render output including the HTTP Digest authentication header
194 195 196 |
# File 'lib/action_controller/metal/http_authentication.rb', line 194 def request_http_digest_authentication(realm = "Application", = nil) HttpAuthentication::Digest.authentication_request(self, realm, ) end |