use BookStack\Access\Oidc\OidcException;
use BookStack\Access\Oidc\OidcService;
-use BookStack\Http\Controllers\Controller;
+use BookStack\Http\Controller;
use Illuminate\Http\Request;
class OidcController extends Controller
return redirect()->intended();
}
+
+ /**
+ * OIDC Logout Feature: Start the authorization logout flow via OIDC.
+ */
+ public function logout()
+ {
+ try {
+ return $this->oidcService->logout();
+ } catch (OidcException $exception) {
+ $this->showErrorNotification($exception->getMessage());
+ return redirect('/logout');
+ }
+ }
+
}