Skip to content

Commit 17ab0ad

Browse files
committed
Let user customize sent claims.
1 parent fe67f93 commit 17ab0ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AuthMethod/ClientSecretJwt.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ protected function createAuthJwt(OpenIDClient $client, array $claims = []): stri
7878
$jti = base64url_encode(random_bytes(32));
7979

8080
/** @var string $payload */
81-
$payload = json_encode(array_merge(
82-
$claims,
81+
$payload = json_encode(
82+
$claims +
8383
[
8484
'iss' => $clientId,
8585
'sub' => $clientId,
@@ -88,7 +88,7 @@ protected function createAuthJwt(OpenIDClient $client, array $claims = []): stri
8888
'exp' => $time + 60,
8989
'jti' => $jti,
9090
]
91-
));
91+
);
9292

9393
$jws = $this->getJwsBuilder()->create()
9494
->withPayload($payload)

0 commit comments

Comments
 (0)