From 8a0ecd9b43c1e8e21dadb9634aeed25055c9bed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 23 Jul 2024 12:15:49 +0200 Subject: [PATCH] Fixing scopes_supported key in /.well-known/openid-configuration The scopes_supported key returned was an object, but according to the spec, it must be an array. See https://openid.net/specs/openid-connect-discovery-1_0-37.html Closes #25 --- src/Laravel/DiscoveryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Laravel/DiscoveryController.php b/src/Laravel/DiscoveryController.php index a69e387..e89ca31 100644 --- a/src/Laravel/DiscoveryController.php +++ b/src/Laravel/DiscoveryController.php @@ -32,7 +32,7 @@ public function __invoke(Request $request) 'id_token_signing_alg_values_supported' => [ 'RS256', ], - 'scopes_supported' => config('openid.passport.tokens_can'), + 'scopes_supported' => array_keys(config('openid.passport.tokens_can')), 'token_endpoint_auth_methods_supported' => [ 'client_secret_basic', 'client_secret_post',