module ActionController::HttpAuthentication::Digest::ControllerMethods - actionpack-3.2.22 Documentation

# module ActionController::HttpAuthentication::Digest::ControllerMethods

### Public Instance Methods

authenticate_or_request_with_http_digest(realm = "Application", &password_procedure) click to toggle source

    # File lib/action_controller/metal/http_authentication.rb, line 162
    def authenticate_or_request_with_http_digest(realm = "Application", &password_procedure)
      authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm)
    end

authenticate_with_http_digest(realm = "Application", &password_procedure) click to toggle source

Authenticate with HTTP Digest, returns true or false

    # File lib/action_controller/metal/http_authentication.rb, line 167
    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) click to toggle source

Render output including the HTTP Digest authentication header

    # File lib/action_controller/metal/http_authentication.rb, line 172
    def request_http_digest_authentication(realm = "Application", message = nil)
      HttpAuthentication::Digest.authentication_request(self, realm, message)
    end