mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
129bc02b82
commit
89a1e74df3
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user