for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TMV\OpenIdClient\AuthMethod;
use function array_merge;
use function http_build_query;
use Psr\Http\Message\RequestInterface;
use TMV\OpenIdClient\Client\ClientInterface as OpenIDClient;
abstract class AbstractTLS implements AuthMethodInterface
{
public function createRequest(
RequestInterface $request,
OpenIDClient $client,
array $claims
): RequestInterface {
$clientId = $client->getMetadata()->getClientId();
$claims = array_merge($claims, [
'client_id' => $clientId,
]);
$request->getBody()->write(http_build_query($claims));
return $request;
}