-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle] Add missing fixXmlConfig()
calls for OIDC token handler arrays
#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?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…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 #60929
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,6 @@ public function addConfiguration(NodeBuilder $node): void | |
{ | ||
$node | ||
->arrayNode($this->getKey()) | ||
->fixXmlConfig($this->getKey()) | ||
->validate() | ||
->ifTrue(static fn ($v) => !isset($v['discovery']) && !isset($v['keyset'])) | ||
->thenInvalid('You must set either "discovery" or "keyset".') | ||
|
@@ -126,11 +125,13 @@ public function addConfiguration(NodeBuilder $node): void | |
->arrayNode('issuers') | ||
->info('Issuers allowed to generate the token, for validation purpose.') | ||
8000 ->isRequired() | ||
->fixXmlConfig('issuer') | ||
->scalarPrototype()->end() | ||
->end() | ||
->arrayNode('algorithms') | ||
->info('Algorithms used to sign the token.') | ||
->isRequired() | ||
->fixXmlConfig('algorithm') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is wrong. It needs to be set on the parent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for issuer then, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, all of them |
||
->scalarPrototype()->end() | ||
->end() | ||
->scalarNode('keyset') | ||
|
@@ -147,6 +148,7 @@ public function addConfiguration(NodeBuilder $node): void | |
->info('Algorithms used to decrypt the token.') | ||
->isRequired() | ||
->requiresAtLeastOneElement() | ||
->fixXmlConfig('algorithm') | ||
->scalarPrototype()->end() | ||
->end() | ||
->scalarNode('keyset') | ||
|
Uh oh!
There was an error while loading. Please reload this page.