From bf6891d06ae2b2e6b2acbc8c5edbe18d10f9c626 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 22 Feb 2023 09:01:40 +0100 Subject: [PATCH] let framework know we are a popup stops setting data-sidebox and egw.js fails because there is no sidebox --- api/src/Auth/OpenIDConnectClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Auth/OpenIDConnectClient.php b/api/src/Auth/OpenIDConnectClient.php index 4345cce280..dc670056e4 100644 --- a/api/src/Auth/OpenIDConnectClient.php +++ b/api/src/Auth/OpenIDConnectClient.php @@ -191,6 +191,7 @@ class OpenIDConnectClient extends \Jumbojett\OpenIDConnectClient // authenticate might not return, because it redirected if ($this->authenticate()) { + $_GET['cd'] = 'popup'; // let framework know we are a popup array_unshift($success_params, $this); return call_user_func_array($success, $success_params); } @@ -198,6 +199,7 @@ class OpenIDConnectClient extends \Jumbojett\OpenIDConnectClient catch(OpenIDConnectClientException $e) { _egw_log_exception($e); } + $_GET['cd'] = 'popup'; // let framework know we are a popup // authentication failure or exception array_unshift($failure_params, $e ?? false); call_user_func_array($failure, $failure_params);