@@ -180,7 +180,7 @@ Each part will be explained in the next section.
180
180
181
181
remember_me :
182
182
token_provider : name
183
- secret : someS3cretKey
183
+ secret : " %secret% "
184
184
name : NameOfTheCookie
185
185
lifetime : 3600 # in seconds
186
186
path : /foo
@@ -227,7 +227,7 @@ Each part will be explained in the next section.
227
227
domain : ~
228
228
handlers : []
229
229
anonymous :
230
- secret : 4f954a0667e01
230
+ secret : " %secret% "
231
231
switch_user :
232
232
provider : ~
233
233
parameter : _switch_user
@@ -246,6 +246,10 @@ Each part will be explained in the next section.
246
246
ROLE_ADMIN : [ROLE_ORGANIZER, ROLE_USER]
247
247
ROLE_SUPERADMIN : [ROLE_ADMIN]
248
248
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
+
249
253
.. _reference-security-firewall-form-login :
250
254
251
255
Form Login Configuration
@@ -479,7 +483,7 @@ multiple firewalls, the "context" could actually be shared:
479
483
HTTP-Digest Authentication
480
484
--------------------------
481
485
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 :
483
487
484
488
.. configuration-block ::
485
489
@@ -490,15 +494,15 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
490
494
firewalls :
491
495
somename :
492
496
http_digest :
493
- key : " a_random_string "
497
+ secret : " %secret% "
494
498
realm : " secure-api"
495
499
496
500
.. code-block :: xml
497
501
498
502
<!-- app/config/security.xml -->
499
503
<security : config >
500
504
<firewall name =" somename" >
501
- <http-digest key = " a_random_string " realm =" secure-api" />
505
+ <http-digest secret = " %secret% " realm =" secure-api" />
502
506
</firewall >
503
507
</security : config >
504
508
@@ -509,12 +513,16 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
509
513
'firewalls' => array(
510
514
'somename' => array(
511
515
'http_digest' => array(
512
- 'key' => 'a_random_string ',
513
- 'realm' => 'secure-api',
516
+ 'secret' => '%secret% ',
517
+ 'realm' => 'secure-api',
514
518
),
515
519
),
516
520
),
517
521
));
518
522
523
+ .. versionadded :: 2.8
524
+ The ``secret `` option was introduced in Symfony 2.8. Prior to 2.8, it was
525
+ called ``key ``.
526
+
519
527
.. _`PBKDF2` : https://en.wikipedia.org/wiki/PBKDF2
520
528
.. _`ircmaxell/password-compat` : https://packagist.org/packages/ircmaxell/password-compat
0 commit comments