Spec-Zone.ru › Ruby on Rails 5.2

модуль ActionController::HttpAuthentication::Digest::ControllerMethods

Публичные методы экземпляров

authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure) Показать исходный код
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 181
def authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure)
  authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, message)
end
authenticate_with_http_digest(realm = "Application", &password_procedure) Показать исходный код
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 186
def authenticate_with_http_digest(realm = "Application", &password_procedure)
  HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
end

Произвести аутентификацию с помощью HTTP Digest, возвращает true или false

request_http_digest_authentication(realm = "Application", message = nil) Показать исходный код
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 191
def request_http_digest_authentication(realm = "Application", message = nil)
  HttpAuthentication::Digest.authentication_request(self, realm, message)
end

Отобразить вывод, включая заголовок аутентификации HTTP Digest

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API