Skip to content

Commit

Permalink
Make the JWKS more fully featured by adding additional key params
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaangoossens authored Apr 26, 2024
1 parent 7115514 commit fe6fd60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Laravel/JwksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public function __invoke() {
$jsonData = [
'keys' => [
[
'alg' => 'RS256',
'kty' => 'RSA',
'use' => 'sig',
'n' => rtrim(str_replace(['+', '/'], ['-', '_'], base64_encode($keyInfo['rsa']['n'])), '='),
'e' => rtrim(str_replace(['+', '/'], ['-', '_'], base64_encode($keyInfo['rsa']['e'])), '='),
],
Expand Down

0 comments on commit fe6fd60

Please sign in to comment.