]> BookStack Code Mirror - bookstack/blobdiff - app/Access/Controllers/OidcController.php
respective book and chapter structure added.
[bookstack] / app / Access / Controllers / OidcController.php
index e8c94493425f4a81d0b29dc65adc3385d47c9c46..055d4c1403ff2cae480bb8424f065b3a6d159970 100644 (file)
@@ -11,9 +11,6 @@ class OidcController extends Controller
 {
     protected OidcService $oidcService;
 
-    /**
-     * OpenIdController constructor.
-     */
     public function __construct(OidcService $oidcService)
     {
         $this->oidcService = $oidcService;
@@ -63,4 +60,12 @@ class OidcController extends Controller
 
         return redirect()->intended();
     }
+
+    /**
+     * Log the user out then start the OIDC RP-initiated logout process.
+     */
+    public function logout()
+    {
+        return redirect($this->oidcService->logout());
+    }
 }