diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 247d5d316..ef83ebc5d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -177,9 +177,15 @@ class ApplicationController < ActionController::Base } end - def authentication_check + def authentication_check( params = { basic_auth_promt: false } ) result = authentication_check_only + # check if basic_auth fallback is possible + if params[:basic_auth_promt] && result[:auth] == false + + return request_http_basic_authentication + end + # return auth not ok if result[:auth] == false render(