Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Tests\Support;
use Psr\Http\Message\RequestInterface;use Wotnak\Atproto\Client\DpopNonceAwareAuthenticatedRequestSignerInterface;
final class AuthTestRequestSigner implements DpopNonceAwareAuthenticatedRequestSignerInterface {
public function sign(RequestInterface $request): RequestInterface { return $request->withHeader('X-Signed', 'signed'); }
public function signWithDpopNonce(RequestInterface $request, ?string $nonce): RequestInterface { return $this->sign($request)->withHeader('X-DPoP-Nonce', (string) $nonce); }
}