Skip to content

Commit a887d78

Browse files
committed
[SecurityBundle] Add fixXmlConfig() for OIDC token handler arrays
Add fixXmlConfig() calls for 'issuers' and 'algorithms' arrays to allow using singular XML tags that get automatically converted to plural form. This improves XML configuration ergonomics. As requested in PR #60929
1 parent 6e4ffa6 commit a887d78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ public function addConfiguration(NodeBuilder $node): void
126126
->arrayNode('issuers')
127127
->info('Issuers allowed to generate the token, for validation purpose.')
128128
->isRequired()
129+
->fixXmlConfig('issuer')
129130
->scalarPrototype()->end()
130131
->end()
131132
->arrayNode('algorithms')
132133
->info('Algorithms used to sign the token.')
133134
->isRequired()
135+
->fixXmlConfig('algorithm')
134136
->scalarPrototype()->end()
135137
->end()
136138
->scalarNode('keyset')
@@ -147,6 +149,7 @@ public function addConfiguration(NodeBuilder $node): void
147149
->info('Algorithms used to decrypt the token.')
148150
->isRequired()
149151
->requiresAtLeastOneElement()
152+
->fixXmlConfig('algorithm')
150153
->scalarPrototype()->end()
151154
->end()
152155
->scalarNode('keyset')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy