Skip to content

Commit 21b84cd

Browse files
committed
Change error code as per OIDF draft 41
1 parent 8c80c69 commit 21b84cd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Server/Exceptions/OidcServerException.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use League\OAuth2\Server\Exception\OAuthServerException;
88
use Psr\Http\Message\ResponseInterface;
9+
use SimpleSAML\OpenID\Codebooks\ErrorsEnum;
910
use Throwable;
1011

1112
use function http_build_query;
@@ -253,7 +254,16 @@ public static function invalidTrustChain(
253254
): OidcServerException {
254255
$errorMessage = 'Trust chain validation failed.';
255256

256-
$e = new self($errorMessage, 12, 'trust_chain_validation_failed', 400, $hint, $redirectUri, $previous, $state);
257+
$e = new self(
258+
$errorMessage,
259+
12,
260+
ErrorsEnum::InvalidTrustChain->value,
261+
400,
262+
$hint,
263+
$redirectUri,
264+
$previous,
265+
$state,
266+
);
257267
$e->useFragmentInHttpResponses($useFragment);
258268

259269
return $e;

0 commit comments

Comments
 (0)