diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php index 715457783..c4a3512c9 100755 --- a/app/Controller/AppController.php +++ b/app/Controller/AppController.php @@ -1104,7 +1104,7 @@ class AppController extends Controller { $result = false; if (Configure::read('Plugin.CustomAuth_enable')) { - $header = Configure::read('Plugin.CustomAuth_header') ? Configure::read('Plugin.CustomAuth_header') : 'Authorization'; + $header = Configure::read('Plugin.CustomAuth_header') ? Configure::read('Plugin.CustomAuth_header') : 'AUTHORIZATION'; $authName = Configure::read('Plugin.CustomAuth_name') ? Configure::read('Plugin.CustomAuth_name') : 'External authentication'; if ( !Configure::check('Plugin.CustomAuth_use_header_namespace') || diff --git a/app/Model/Server.php b/app/Model/Server.php index 2c36b9b02..0a369f81f 100644 --- a/app/Model/Server.php +++ b/app/Model/Server.php @@ -7312,7 +7312,7 @@ class Server extends AppModel 'CustomAuth_header' => array( 'level' => 2, 'description' => __('Set the header that MISP should look for here. If left empty it will default to the Authorization header.'), - 'value' => 'Authorization', + 'value' => 'AUTHORIZATION', 'test' => 'testForEmpty', 'type' => 'string', 'null' => true diff --git a/app/View/Users/view.ctp b/app/View/Users/view.ctp index 51da8ac34..500ef57e2 100755 --- a/app/View/Users/view.ctp +++ b/app/View/Users/view.ctp @@ -90,7 +90,7 @@ if ($admin_view && $isSiteAdmin && $isTotp) { } if (Configure::read('Plugin.CustomAuth_enable') && !empty($user['User']['external_auth_key'])) { - $header = Configure::read('Plugin.CustomAuth_header') ?: 'Authorization'; + $header = Configure::read('Plugin.CustomAuth_header') ?: 'AUTHORIZATION'; $table_data[] = array( 'key' => __('Customauth header'), 'html' => sprintf(