Skip to content

Commit

Permalink
Fixing scopes_supported key in /.well-known/openid-configuration
Browse files Browse the repository at this point in the history
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
  • Loading branch information
moufmouf committed Jul 23, 2024
1 parent 429fe56 commit 8a0ecd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/DiscoveryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8a0ecd9

Please sign in to comment.