diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 905bc14..8805bb9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,7 @@ class ApplicationController < ActionController::API include Response + + include ActionController::HttpAuthentication::Basic::ControllerMethods + http_basic_authenticate_with name: ENV['BASIC_AUTH_USERNAME'], + password: ENV['BASIC_AUTH_PASSWORD'] end