Skip to content

Commit

Permalink
Add end_session_endpoint key to DiscoveryController
Browse files Browse the repository at this point in the history
  • Loading branch information
bbredewold committed Jun 10, 2024
1 parent 989946e commit 5f039c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Laravel/DiscoveryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5f039c1

Please sign in to comment.