@@ -180,7 +180,7 @@ Each part will be explained in the next section.
180180
181181 remember_me :
182182 token_provider : name
183- secret : someS3cretKey
183+ secret : " %secret% "
184184 name : NameOfTheCookie
185185 lifetime : 3600 # in seconds
186186 path : /foo
@@ -227,7 +227,7 @@ Each part will be explained in the next section.
227227 domain : ~
228228 handlers : []
229229 anonymous :
230- secret : 4f954a0667e01
230+ secret : " %secret% "
231231 switch_user :
232232 provider : ~
233233 parameter : _switch_user
@@ -246,6 +246,10 @@ Each part will be explained in the next section.
246246 ROLE_ADMIN : [ROLE_ORGANIZER, ROLE_USER]
247247 ROLE_SUPERADMIN : [ROLE_ADMIN]
248248
249+ .. versionadded :: 2.8
250+ The ``secret `` option of ``anonymous `` and ``remember_me `` was introduced
251+ in Symfony 2.8. Prior to 2.8, it was called ``key ``.
252+
249253.. _reference-security-firewall-form-login :
250254
251255Form Login Configuration
@@ -479,7 +483,7 @@ multiple firewalls, the "context" could actually be shared:
479483 HTTP-Digest Authentication
480484--------------------------
481485
482- To use HTTP-Digest authentication you need to provide a realm and a key :
486+ To use HTTP-Digest authentication you need to provide a realm and a secret :
483487
484488.. configuration-block ::
485489
@@ -490,15 +494,15 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
490494 firewalls :
491495 somename :
492496 http_digest :
493- key : " a_random_string "
497+ secret : " %secret% "
494498 realm : " secure-api"
495499
496500 .. code-block :: xml
497501
498502 <!-- app/config/security.xml -->
499503 <security : config >
500504 <firewall name =" somename" >
501- <http-digest key = " a_random_string " realm =" secure-api" />
505+ <http-digest secret = " %secret% " realm =" secure-api" />
502506 </firewall >
503507 </security : config >
504508
@@ -509,12 +513,16 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
509513 'firewalls' => array(
510514 'somename' => array(
511515 'http_digest' => array(
512- 'key' => 'a_random_string ',
513- 'realm' => 'secure-api',
516+ 'secret' => '%secret% ',
517+ 'realm' => 'secure-api',
514518 ),
515519 ),
516520 ),
517521 ));
518522
523+ .. versionadded :: 2.8
524+ The ``secret `` option was introduced in Symfony 2.8. Prior to 2.8, it was
525+ called ``key ``.
526+
519527.. _`PBKDF2` : https://en.wikipedia.org/wiki/PBKDF2
520528.. _`ircmaxell/password-compat` : https://packagist.org/packages/ircmaxell/password-compat
0 commit comments