модуль ActionController::HttpAuthentication::Digest::ControllerMethods
Открытые методы экземпляра
authenticate_or_request_with_http_digest(realm = "Application", &password_procedure) Показать исходный код
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 180 def authenticate_or_request_with_http_digest(realm = "Application", &password_procedure) authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm) end
Проверка подлинности с помощью HTTP Digest, возвращает true или false
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 185 def authenticate_with_http_digest(realm = "Application", &password_procedure) HttpAuthentication::Digest.authenticate(request, realm, &password_procedure) end
Отобразить вывод, включая заголовок аутентификации HTTP Digest
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 190 def request_http_digest_authentication(realm = "Application", message = nil) HttpAuthentication::Digest.authentication_request(self, realm, message) end
© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.