-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[SecurityBundle] Add missing fixXmlConfig()
calls
#60996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 8.0
Are you sure you want to change the base?
Conversation
223af63
to
a887d78
Compare
Isn't this relevant for older Symfony releases as well? |
I would say yes for the issuer and one of the algorithms |
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php
Outdated
Show resolved
Hide resolved
a887d78
to
256bee4
Compare
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php
Show resolved
Hide resolved
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php
Outdated
Show resolved
Hide resolved
…ler 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 symfony#60929
…/AccessToken/OidcTokenHandlerFactory.php
abad2b0
to
d9f1aad
Compare
It seems like the calls are still in the wrong place. |
Yes they are, will try to find time soon |
The fixXmlConfig() calls should be placed at the parent node level (oidc) rather than on individual child array nodes (issuers, algorithms) to properly handle XML configuration transformations.
fixXmlConfig()
calls for OIDC token handler arraysfixXmlConfig()
calls
@@ -90,6 +90,8 @@ public function addConfiguration(NodeBuilder $node): void | |||
$node | |||
->arrayNode($this->getKey()) | |||
->fixXmlConfig($this->getKey()) | |||
->fixXmlConfig('issuer') | |||
->fixXmlConfig('algorithm') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one can only work in 8.0 as it already exists in 7.4 (not even sure that this is a good idea as the semantic is not going to be the same between the 2 versions).
@@ -90,6 +90,8 @@ public function addConfiguration(NodeBuilder $node): void | |||
$node | |||
->arrayNode($this->getKey()) | |||
->fixXmlConfig($this->getKey()) | |||
->fixXmlConfig('issuer') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is for 7.3.
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.