@@ -419,20 +419,20 @@ multiple firewalls, the "context" could actually be shared:
419
419
420
420
.. code-block :: xml
421
421
422
- <!-- app/config/security.xml -->
423
- <security : config >
424
- <firewall name =" somename" context =" my_context" >
425
- <! ... ->
426
- </firewall >
427
- <firewall name =" othername" context =" my_context" >
428
- <! ... ->
429
- </firewall >
430
- </security : config >
422
+ <!-- app/config/security.xml -->
423
+ <security : config >
424
+ <firewall name =" somename" context =" my_context" >
425
+ <! ... ->
426
+ </firewall >
427
+ <firewall name =" othername" context =" my_context" >
428
+ <! ... ->
429
+ </firewall >
430
+ </security : config >
431
431
432
432
.. code-block :: php
433
433
434
- // app/config/security.php
435
- $container->loadFromExtension('security', array(
434
+ // app/config/security.php
435
+ $container->loadFromExtension('security', array(
436
436
'firewalls' => array(
437
437
'somename' => array(
438
438
// ...
@@ -443,7 +443,7 @@ multiple firewalls, the "context" could actually be shared:
443
443
'context' => 'my_context'
444
444
),
445
445
),
446
- ));
446
+ ));
447
447
448
448
HTTP-Digest Authentication
449
449
--------------------------
@@ -452,38 +452,38 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
452
452
453
453
.. configuration-block ::
454
454
455
- .. code-block :: yaml
456
-
457
- # app/config/security.yml
458
- security :
459
- firewalls :
460
- somename :
461
- http_digest :
462
- key : " a_random_string"
463
- realm : " secure-api"
464
-
465
- .. code-block :: xml
466
-
467
- <!-- app/config/security.xml -->
468
- <security : config >
469
- <firewall name =" somename" >
470
- <http-digest key =" a_random_string" realm =" secure-api" />
471
- </firewall >
472
- </security : config >
473
-
474
- .. code-block :: php
475
-
476
- // app/config/security.php
477
- $container->loadFromExtension('security', array(
478
- 'firewalls' => array(
479
- 'somename' => array(
480
- 'http_digest' => array(
481
- 'key' => 'a_random_string',
482
- 'realm' => 'secure-api',
483
- ),
484
- ),
485
- ),
486
- ));
455
+ .. code-block :: yaml
456
+
457
+ # app/config/security.yml
458
+ security :
459
+ firewalls :
460
+ somename :
461
+ http_digest :
462
+ key : " a_random_string"
463
+ realm : " secure-api"
464
+
465
+ .. code-block :: xml
466
+
467
+ <!-- app/config/security.xml -->
468
+ <security : config >
469
+ <firewall name =" somename" >
470
+ <http-digest key =" a_random_string" realm =" secure-api" />
471
+ </firewall >
472
+ </security : config >
473
+
474
+ .. code-block :: php
475
+
476
+ // app/config/security.php
477
+ $container->loadFromExtension('security', array(
478
+ 'firewalls' => array(
479
+ 'somename' => array(
480
+ 'http_digest' => array(
481
+ 'key' => 'a_random_string',
482
+ 'realm' => 'secure-api',
483
+ ),
484
+ ),
485
+ ),
486
+ ));
487
487
488
488
.. _`PBKDF2` : http://en.wikipedia.org/wiki/PBKDF2
489
489
.. _`ircmaxell/password-compat` : https://packagist.org/packages/ircmaxell/password-compat
0 commit comments