method

http_basic_authenticate_with

http_basic_authenticate_with(name:, password:, realm: nil, **options)
public

Enables HTTP Basic authentication.

See ActionController::HttpAuthentication::Basic for example usage.