method
http_basic_authenticate_with
v7.0.0 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods
http_basic_authenticate_with(name:, password:, realm: nil, **options)public
No documentation available.
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 73
def http_basic_authenticate_with(name,, password,, realm: nil, **options)
before_action(options) { http_basic_authenticate_or_request_with name: name, password: password, realm: realm }
end