feature #31309 [SecurityBundle] add "service" option in remember_me firewall (Pchol)
This PR was squashed before being merged into the 5.1-dev branch.
Discussion
----------
[SecurityBundle] add "service" option in remember_me firewall
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
allow override remember me service
Commits
-------
bbf7421a92
[SecurityBundle] add "service" option in remember_me firewall
This commit is contained in:
commit
71de43128f
@ -44,7 +44,10 @@ class RememberMeFactory implements SecurityFactoryInterface
|
||||
;
|
||||
|
||||
// remember me services
|
||||
if (isset($config['token_provider'])) {
|
||||
if (isset($config['service'])) {
|
||||
$templateId = $config['service'];
|
||||
$rememberMeServicesId = $templateId.'.'.$id;
|
||||
} elseif (isset($config['token_provider'])) {
|
||||
$templateId = 'security.authentication.rememberme.services.persistent';
|
||||
$rememberMeServicesId = $templateId.'.'.$id;
|
||||
} else {
|
||||
@ -135,6 +138,7 @@ class RememberMeFactory implements SecurityFactoryInterface
|
||||
|
||||
$builder
|
||||
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end()
|
||||
->scalarNode('service')->end()
|
||||
->scalarNode('token_provider')->end()
|
||||
->arrayNode('user_providers')
|
||||
->beforeNormalization()
|
||||
|
Reference in New Issue
Block a user