Instead of statically enabling basic auth on your controller by calling http_basic_authenticate_with, include HttpBasicAuthConfigurable in your controller, which allows you to configure basic auth through class attributes. This is particularly useful in certain use cases, such as allowing a host app to configure basic auth for a Rails engine it includes but doesn't control.

Required Ruby Version

>= 3.2.0

Authors

Alejandro Zamudio

Versions

  1. 0.1.0 August 19, 2026 (7.5 KB)

Pushed by

SHA 256 checksum