From e5c400214a539c4fd8012ffeea72efd65feddef3 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 22 Jan 2023 20:09:30 +0200 Subject: [PATCH] oidc backchannel logout portal --- application/Espo/Controllers/Oidc.php | 3 ++- .../Espo/Core/Authentication/Oidc/BackchannelLogout.php | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/application/Espo/Controllers/Oidc.php b/application/Espo/Controllers/Oidc.php index 12b191674e..35e8d81fca 100644 --- a/application/Espo/Controllers/Oidc.php +++ b/application/Espo/Controllers/Oidc.php @@ -58,9 +58,10 @@ class Oidc $response->writeBody(Json::encode($data)); } + /** * @throws BadRequest - * @throws ForbiddenSilent + * @throws Forbidden */ public function postActionBackchannelLogout(Request $request, Response $response): void { diff --git a/application/Espo/Core/Authentication/Oidc/BackchannelLogout.php b/application/Espo/Core/Authentication/Oidc/BackchannelLogout.php index ef2f3961a3..606fdc6d79 100644 --- a/application/Espo/Core/Authentication/Oidc/BackchannelLogout.php +++ b/application/Espo/Core/Authentication/Oidc/BackchannelLogout.php @@ -90,10 +90,6 @@ class BackchannelLogout return; } - if ($user->isPortal()) { - return; - } - $authTokenList = $this->entityManager ->getRDBRepositoryByClass(AuthTokenEntity::class) ->where([