| 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 |
||
| 16 | 4 | public function createRequest( |
|
| 17 | RequestInterface $request, |
||
| 18 | OpenIDClient $client, |
||
| 19 | array $claims |
||
| 20 | ): RequestInterface { |
||
| 21 | 4 | $clientId = $client->getMetadata()->getClientId(); |
|
| 22 | |||
| 23 | 4 | $claims = array_merge([ |
|
| 24 | 4 | 'client_id' => $clientId, |
|
| 25 | 4 | 'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', |
|
| 26 | 4 | 'client_assertion' => $this->createAuthJwt($client, $claims), |
|
| 27 | 3 | ], $claims); |
|
| 28 | |||
| 29 | 3 | $request->getBody()->write(http_build_query($claims)); |
|
| 30 | |||
| 31 | 3 | return $request; |
|
| 32 | } |
||
| 34 |