Skip to content

Commit

Permalink
Merge pull request #18 from bbredewold/main
Browse files Browse the repository at this point in the history
Add end_session_endpoint key for RP-Initiated Logout to DiscoveryController
  • Loading branch information
jeremy379 authored Jun 12, 2024
2 parents 989946e + 5f039c1 commit aa0e5b4
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 aa0e5b4

Please sign in to comment.