mirror of https://github.com/MISP/MISP
chg: [config:customAuth_header] Default to upper case.
- See $_SERVER make passed headers upper casepull/9303/head
parent
a829ddc5cb
commit
28179ced9c
|
@ -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') ||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue