X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/cc10d1ddfc652f6bcf3bbf61d5ec2e2861394c03..refs/pull/5280/head:/app/Access/Controllers/OidcController.php diff --git a/app/Access/Controllers/OidcController.php b/app/Access/Controllers/OidcController.php index 083e83e35..055d4c140 100644 --- a/app/Access/Controllers/OidcController.php +++ b/app/Access/Controllers/OidcController.php @@ -11,9 +11,6 @@ class OidcController extends Controller { protected OidcService $oidcService; - /** - * OpenIdController constructor. - */ public function __construct(OidcService $oidcService) { $this->oidcService = $oidcService; @@ -65,16 +62,10 @@ class OidcController extends Controller } /** - * OIDC Logout Feature: Start the authorization logout flow via OIDC. + * Log the user out then start the OIDC RP-initiated logout process. */ public function logout() { - try { - return $this->oidcService->logout(); - } catch (OidcException $exception) { - $this->showErrorNotification($exception->getMessage()); - return redirect('/logout'); - } + return redirect($this->oidcService->logout()); } - }