Add this gem to your Gemfile and set some ENV variables to activate a basic auth layer
Björn Wolf
MIT