Skip to content

Commit 14d0fcf

Browse files
committed
bug symfony#38528 [Security] Making login link signature_properties option required (weaverryan)
This PR was merged into the 5.x branch. Discussion ---------- [Security] Making login link signature_properties option required | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | yes (for a 5.2 feature) | New feature? | no | Deprecations? | no | Tickets | none | License | MIT | Doc PR | not needed Hi! My intention was always to force the user to set this option. Before this PR, you can simply leave this option off completely without a validation error. Thanks to Wouter for finding it. Also: made some punctuation & capitalization consistent on info messages. Cheers! Commits ------- f7bb954 Making login link signature_properties option required
2 parents a319090 + f7bb954 commit 14d0fcf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginLinkFactory.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,34 @@ public function addConfiguration(NodeDefinition $node)
3636
$builder
3737
->scalarNode('check_route')
3838
->isRequired()
39-
->info('Route that will validate the login link - e.g. app_login_link_verify')
39+
->info('Route that will validate the login link - e.g. app_login_link_verify.')
4040
->end()
4141
->arrayNode('signature_properties')
42+
->isRequired()
4243
->prototype('scalar')->end()
4344
->requiresAtLeastOneElement()
44-
->info('An array of properties on your User that are used to sign the link. If any of these change, all existing links will become invalid')
45+
->info('An array of properties on your User that are used to sign the link. If any of these change, all existing links will become invalid.')
4546
->example(['email', 'password'])
4647
->end()
4748
->integerNode('lifetime')
4849
->defaultValue(600)
49-
->info('The lifetime of the login link in seconds')
50+
->info('The lifetime of the login link in seconds.')
5051
->end()
5152
->integerNode('max_uses')
5253
->defaultNull()
5354
->info('Max number of times a login link can be used - null means unlimited within lifetime.')
5455
->end()
5556
->scalarNode('used_link_cache')
56-
->info('Cache service id used to expired links of max_uses is set')
57+
->info('Cache service id used to expired links of max_uses is set.')
5758
->end()
5859
->scalarNode('success_handler')
59-
->info(sprintf('A service id that implements %s', AuthenticationSuccessHandlerInterface::class))
60+
->info(sprintf('A service id that implements %s.', AuthenticationSuccessHandlerInterface::class))
6061
->end()
6162
->scalarNode('failure_handler')
62-
->info(sprintf('A service id that implements %s', AuthenticationFailureHandlerInterface::class))
63+
->info(sprintf('A service id that implements %s.', AuthenticationFailureHandlerInterface::class))
6364
->end()
6465
->scalarNode('provider')
65-
->info('the user provider to load users from.')
66+
->info('The user provider to load users from.')
6667
->end()
6768
;
6869

0 commit comments

Comments
 (0)