From ee74bce3e4f05e3e88ce05e812ffd31f428d19d3 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Mon, 24 Nov 2025 14:53:49 +0100 Subject: [PATCH] Change `token_endpoint_auth_methods_supported` to be an array. --- src/Config/Server.php | 2 +- tests/unit/Config/ServerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/Server.php b/src/Config/Server.php index a946707..05e9a00 100644 --- a/src/Config/Server.php +++ b/src/Config/Server.php @@ -61,7 +61,7 @@ final public function __construct(array $data, bool $strict = false) OidcMeta::TOKEN_TYPES_SUPPORTED => array("legacyPop","dpop"), OidcMeta::RESPONSE_MODES_SUPPORTED => array("query","fragment"), OidcMeta::GRANT_TYPES_SUPPORTED => array("authorization_code","implicit","refresh_token","client_credentials"), - OidcMeta::TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED => "client_secret_basic", + OidcMeta::TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED => ["client_secret_basic"], OidcMeta::TOKEN_ENDPOINT_AUTH_SIGNING_ALG_VALUES_SUPPORTED => ["RS256"], OidcMeta::CODE_CHALLENGE_METHODS_SUPPORTED => ["S256"], OidcMeta::DPOP_SIGNING_ALG_VALUES_SUPPORTED => ["RS256"], diff --git a/tests/unit/Config/ServerTest.php b/tests/unit/Config/ServerTest.php index 20092ff..bffa784 100644 --- a/tests/unit/Config/ServerTest.php +++ b/tests/unit/Config/ServerTest.php @@ -108,7 +108,7 @@ final public function testServerConfigShouldReturnExpectedValuesWhenSerializedWi 'token_types_supported' => ['legacyPop','dpop'], 'response_modes_supported' => ['query', 'fragment'], 'grant_types_supported' => ['authorization_code', 'implicit', 'refresh_token', 'client_credentials'], - 'token_endpoint_auth_methods_supported' => 'client_secret_basic', + 'token_endpoint_auth_methods_supported' => ['client_secret_basic'], 'token_endpoint_auth_signing_alg_values_supported' => ['RS256'], 'display_values_supported' => [], 'claim_types_supported' => ['normal'],