mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
display OpenIDConnect errors and problem on the login page, do NOT fail silently
This commit is contained in:
parent
c54c127d05
commit
b7f740c50d
@ -51,6 +51,8 @@ class Openidconnect implements BackendSSO
|
|||||||
// fail if auto-creation of authenticated users is NOT configured
|
// fail if auto-creation of authenticated users is NOT configured
|
||||||
if (empty($GLOBALS['egw_info']['server']['auto_create_acct']))
|
if (empty($GLOBALS['egw_info']['server']['auto_create_acct']))
|
||||||
{
|
{
|
||||||
|
error_log(__METHOD__."() OpenIDConnect login successful, but user '$account_lid' does NOT exist in EGroupware, AND automatic user creating is disabled!");
|
||||||
|
$_GET['cd'] = lang("OpenIDConnect login successful, but user '%1' does NOT exist in EGroupware, AND automatic user creating is disabled!", $account_lid);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@ -75,7 +77,7 @@ class Openidconnect implements BackendSSO
|
|||||||
}
|
}
|
||||||
catch(\Exception $e) {
|
catch(\Exception $e) {
|
||||||
_egw_log_exception($e);
|
_egw_log_exception($e);
|
||||||
$GLOBALS['egw']->session->cd_reason = 'OpenIDConnect Error: '.$e->getMessage();
|
$_GET['cd'] = 'OpenIDConnect Error: '.$e->getMessage();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user