Force usage of another authentication when there is only openid_connect since he doesn't work for api, ws, and cdav login (#30777)

This commit is contained in:
MaximilienR-easya 2024-08-29 09:20:02 +02:00 committed by GitHub
parent 129bc02b82
commit 89a1e74df3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ class Login
}
// Authentication mode
if (empty($dolibarr_main_authentication)) {
if (empty($dolibarr_main_authentication) || $dolibarr_main_authentication == 'openid_connect') {
$dolibarr_main_authentication = 'dolibarr';
}

View File

@ -75,7 +75,7 @@ function check_authentication($authentication, &$error, &$errorcode, &$errorlabe
$fuser->loadRights(); // Load permission of user
// Authentication mode
if (empty($dolibarr_main_authentication)) {
if (empty($dolibarr_main_authentication) || $dolibarr_main_authentication == 'openid_connect') {
$dolibarr_main_authentication = 'http,dolibarr';
}
// Authentication mode: forceuser

View File

@ -117,7 +117,7 @@ $authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(
}
// Authentication mode
if (empty($dolibarr_main_authentication)) {
if (empty($dolibarr_main_authentication) || $dolibarr_main_authentication == 'openid_connect') {
$dolibarr_main_authentication = 'dolibarr';
}