Skip to content

Commit 0e98f86

Browse files
committed
Enable injecting TMSE usage policy
Enable injecting Trust Mark Status Endpoint Usage Policy in Federation handler
1 parent 0e85d8d commit 0e98f86

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Federation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use GuzzleHttp\Client;
99
use Psr\Log\LoggerInterface;
1010
use Psr\SimpleCache\CacheInterface;
11+
use SimpleSAML\OpenID\Codebooks\TrustMarkStatusEndpointUsagePolicyEnum;
1112
use SimpleSAML\OpenID\Decorators\CacheDecorator;
1213
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
1314
use SimpleSAML\OpenID\Decorators\HttpClientDecorator;
@@ -117,6 +118,8 @@ public function __construct(
117118
?CacheInterface $cache = null,
118119
protected readonly ?LoggerInterface $logger = null,
119120
?Client $client = null,
121+
// phpcs:ignore
122+
protected readonly TrustMarkStatusEndpointUsagePolicyEnum $defaultTrustMarkStatusEndpointUsagePolicyEnum = TrustMarkStatusEndpointUsagePolicyEnum::NotUsed,
120123
) {
121124
$this->maxCacheDurationDecorator = $this->dateIntervalDecoratorFactory()->build($maxCacheDuration);
122125
$this->timestampValidationLeewayDecorator = $this->dateIntervalDecoratorFactory()
@@ -290,6 +293,7 @@ public function trustMarkValidator(): TrustMarkValidator
290293
$this->maxCacheDurationDecorator,
291294
$this->cacheDecorator(),
292295
$this->logger,
296+
$this->defaultTrustMarkStatusEndpointUsagePolicyEnum,
293297
);
294298
}
295299

0 commit comments

Comments
 (0)