From 5f039c19ae66fbd8a6c1abe77083025cbede49c2 Mon Sep 17 00:00:00 2001 From: Bert Bredewold Date: Mon, 10 Jun 2024 13:49:38 +0200 Subject: [PATCH] Add end_session_endpoint key to DiscoveryController --- src/Laravel/DiscoveryController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Laravel/DiscoveryController.php b/src/Laravel/DiscoveryController.php index ea213e1..cb7536d 100644 --- a/src/Laravel/DiscoveryController.php +++ b/src/Laravel/DiscoveryController.php @@ -40,6 +40,10 @@ public function __invoke(Request $request) $response['jwks_uri'] = route('openid.jwks'); } + if (Route::has('openid.end_session_endpoint')) { + $response['end_session_endpoint'] = route('openid.end_session_endpoint'); + } + return response()->json($response, 200, [], JSON_PRETTY_PRINT); }