[SecurityBundle] add "service" option in remember_me firewall
This commit is contained in:
parent
2aca43f908
commit
bbf7421a92
@ -44,7 +44,10 @@ class RememberMeFactory implements SecurityFactoryInterface
|
|||||||
;
|
;
|
||||||
|
|
||||||
// remember me services
|
// 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';
|
$templateId = 'security.authentication.rememberme.services.persistent';
|
||||||
$rememberMeServicesId = $templateId.'.'.$id;
|
$rememberMeServicesId = $templateId.'.'.$id;
|
||||||
} else {
|
} else {
|
||||||
@ -135,6 +138,7 @@ class RememberMeFactory implements SecurityFactoryInterface
|
|||||||
|
|
||||||
$builder
|
$builder
|
||||||
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end()
|
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end()
|
||||||
|
->scalarNode('service')->end()
|
||||||
->scalarNode('token_provider')->end()
|
->scalarNode('token_provider')->end()
|
||||||
->arrayNode('user_providers')
|
->arrayNode('user_providers')
|
||||||
->beforeNormalization()
|
->beforeNormalization()
|
||||||
|
Reference in New Issue
Block a user