Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 4 | public function createRequest( |
|
23 | RequestInterface $request, |
||
24 | OpenIDClient $client, |
||
25 | array $claims |
||
26 | ): RequestInterface { |
||
27 | 4 | $clientId = $client->getMetadata()->getClientId(); |
|
28 | |||
29 | 4 | $claims = array_merge([ |
|
30 | 4 | 'client_id' => $clientId, |
|
31 | 4 | 'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', |
|
32 | 4 | 'client_assertion' => $this->createAuthJwt($client, $claims), |
|
33 | 3 | ], $claims); |
|
34 | |||
35 | 3 | $request->getBody()->write(http_build_query($claims)); |
|
36 | |||
37 | 3 | return $request; |
|
38 | } |
||
40 |