Skip to content

Commit 9485e93

Browse files
committed
do not use UitIdV1JwtValidator in constructor of RequestAuthenticatorMiddleware
1 parent 81f0a6f commit 9485e93

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

app/Authentication/AuthServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public function register(): void
5353
RequestAuthenticatorMiddleware::class,
5454
function () use ($container): RequestAuthenticatorMiddleware {
5555
$authenticator = new RequestAuthenticatorMiddleware(
56-
new UitIdV1JwtValidator(
57-
'file://' . __DIR__ . '/../../' . $container->get('config')['jwt']['v1']['keys']['public']['file'],
58-
$container->get('config')['jwt']['v1']['valid_issuers']
59-
),
6056
$this->createUitIdV2JwtValidator($container),
6157
new CachedApiKeyAuthenticator(
6258
new CultureFeedApiKeyAuthenticator($container->get(ConsumerReadRepository::class)),

src/Http/Auth/RequestAuthenticatorMiddleware.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ final class RequestAuthenticatorMiddleware implements MiddlewareInterface
4343

4444
private ?JsonWebToken $token = null;
4545
private ?ApiKey $apiKey = null;
46-
47-
private JwtValidator $uitIdV1JwtValidator;
4846
private JwtValidator $uitIdV2JwtValidator;
4947
private ApiKeyAuthenticator $apiKeyAuthenticator;
5048
private ApiKeyConsumerReadRepository $apiKeyConsumerReadRepository;
@@ -56,7 +54,6 @@ final class RequestAuthenticatorMiddleware implements MiddlewareInterface
5654
private ?ApiKeysMatchedToClientIds $apiKeysMatchedToClientIds;
5755

5856
public function __construct(
59-
JwtValidator $uitIdV1JwtValidator,
6057
JwtValidator $uitIdV2JwtValidator,
6158
ApiKeyAuthenticator $apiKeyAuthenticator,
6259
ApiKeyConsumerReadRepository $apiKeyConsumerReadRepository,
@@ -65,7 +62,6 @@ public function __construct(
6562
ClientIdResolver $clientIdResolver,
6663
?ApiKeysMatchedToClientIds $apiKeysMatchedToClientIds = null
6764
) {
68-
$this->uitIdV1JwtValidator = $uitIdV1JwtValidator;
6965
$this->uitIdV2JwtValidator = $uitIdV2JwtValidator;
7066
$this->apiKeyAuthenticator = $apiKeyAuthenticator;
7167
$this->apiKeyConsumerReadRepository = $apiKeyConsumerReadRepository;

0 commit comments

Comments
 (0)