instance method
http_basic_authenticate_with
Ruby on Rails 6.1.7.10
Since v3.1.12Signature
http_basic_authenticate_with(name:, password:, realm: nil, **options)
No documentation comment.
Parameters
-
namekeyreq -
passwordkeyreq -
realmkey = nil -
optionskeyrest
Source
# 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
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 73
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods