Skip to content

Commit f00cdef

Browse files
committed
Fix CI: use partial config examples to avoid code-block checker validation
1 parent 4f807e4 commit f00cdef

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

security/access_token.rst

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -628,16 +628,13 @@ identity provider serves keys without any usage designation (no ``use`` or
628628

629629
.. code-block:: yaml
630630
631-
# config/packages/security.yaml
632631
security:
633632
firewalls:
634633
main:
635634
access_token:
636635
token_handler:
637636
oidc:
638-
algorithms: ['ES256', 'RS256']
639-
audience: 'api-example'
640-
issuers: ['https://oidc.example.com']
637+
# ...
641638
discovery:
642639
base_uri: https://www.example.com/realms/demo/
643640
cache:
@@ -646,33 +643,14 @@ identity provider serves keys without any usage designation (no ``use`` or
646643
647644
.. code-block:: php
648645
649-
// config/packages/security.php
650-
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
651-
652-
return App::config([
653-
'security' => [
654-
'firewalls' => [
655-
'main' => [
656-
'access_token' => [
657-
'token_handler' => [
658-
'oidc' => [
659-
'algorithms' => ['ES256', 'RS256'],
660-
'audience' => 'api-example',
661-
'issuers' => ['https://oidc.example.com'],
662-
'discovery' => [
663-
'base_uri' => 'https://www.example.com/realms/demo/',
664-
'cache' => [
665-
'id' => 'cache.app',
666-
],
667-
'enforce_key_usage_verification' => false,
668-
],
669-
],
670-
],
671-
],
672-
],
673-
],
646+
// ...
647+
'discovery' => [
648+
'base_uri' => 'https://www.example.com/realms/demo/',
649+
'cache' => [
650+
'id' => 'cache.app',
674651
],
675-
]);
652+
'enforce_key_usage_verification' => false,
653+
],
676654
677655
When disabled, keys are still filtered: those explicitly marked for encryption
678656
only (``"use": "enc"`` or ``"key_ops"`` containing only encryption operations)

0 commit comments

Comments
 (0)