method
http_basic_authenticate_with
rails latest stable - Class:
ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods
http_basic_authenticate_with(name:, password:, realm: nil, **options)public
Enables HTTP Basic authentication.
See ActionController::HttpAuthentication::Basic for example usage.