@@ -92,7 +92,7 @@ value and then a User object is created::
92
92
93
93
Once you've :ref: `configured <cookbook-security-api-key-config >` everything,
94
94
you'll be able to authenticate by adding an apikey parameter to the query
95
- string, like ``http://example.com/admin /foo?apikey=37b51d194a7513e45b56f6524f2d51f2 ``.
95
+ string, like ``http://example.com/api /foo?apikey=37b51d194a7513e45b56f6524f2d51f2 ``.
96
96
97
97
The authentication process has several steps, and your implementation will
98
98
probably differ:
@@ -354,7 +354,7 @@ using the ``simple_preauth`` and ``provider`` keys respectively:
354
354
355
355
firewalls :
356
356
secured_area :
357
- pattern : ^/admin
357
+ pattern : ^/api
358
358
stateless : true
359
359
simple_preauth :
360
360
authenticator : apikey_authenticator
@@ -377,7 +377,7 @@ using the ``simple_preauth`` and ``provider`` keys respectively:
377
377
<!-- ... -->
378
378
379
379
<firewall name =" secured_area"
380
- pattern =" ^/admin "
380
+ pattern =" ^/api "
381
381
stateless =" true"
382
382
provider =" api_key_user_provider"
383
383
>
@@ -397,7 +397,7 @@ using the ``simple_preauth`` and ``provider`` keys respectively:
397
397
$container->loadFromExtension('security', array(
398
398
'firewalls' => array(
399
399
'secured_area' => array(
400
- 'pattern' => '^/admin ',
400
+ 'pattern' => '^/api ',
401
401
'stateless' => true,
402
402
'simple_preauth' => array(
403
403
'authenticator' => 'apikey_authenticator',
@@ -412,7 +412,7 @@ using the ``simple_preauth`` and ``provider`` keys respectively:
412
412
),
413
413
));
414
414
415
- If you have defined `access_control `, make sure to add new entry:
415
+ If you have defined `` access_control `` , make sure to add a new entry:
416
416
417
417
.. configuration-block ::
418
418
@@ -423,7 +423,7 @@ If you have defined `access_control`, make sure to add new entry:
423
423
# ...
424
424
425
425
access_control :
426
- - { path: ^/admin , roles: ROLE_API }
426
+ - { path: ^/api , roles: ROLE_API }
427
427
428
428
.. code-block :: xml
429
429
@@ -435,9 +435,7 @@ If you have defined `access_control`, make sure to add new entry:
435
435
xsi : schemaLocation =" http://symfony.com/schema/dic/services
436
436
http://symfony.com/schema/dic/services/services-1.0.xsd" >
437
437
438
- <rule path =" ^/admin"
439
- role =" ROLE_API"
440
- />
438
+ <rule path =" ^/api" role =" ROLE_API" />
441
439
</srv : container >
442
440
443
441
.. code-block :: php
@@ -446,7 +444,7 @@ If you have defined `access_control`, make sure to add new entry:
446
444
$container->loadFromExtension('security', array(
447
445
'access_control' => array(
448
446
array(
449
- 'path' => '^/admin ',
447
+ 'path' => '^/api ',
450
448
'role' => 'ROLE_API',
451
449
),
452
450
),
@@ -484,7 +482,7 @@ configuration or set it to ``false``:
484
482
485
483
firewalls :
486
484
secured_area :
487
- pattern : ^/admin
485
+ pattern : ^/api
488
486
stateless : false
489
487
simple_preauth :
490
488
authenticator : apikey_authenticator
@@ -507,7 +505,7 @@ configuration or set it to ``false``:
507
505
<!-- ... -->
508
506
509
507
<firewall name =" secured_area"
510
- pattern =" ^/admin "
508
+ pattern =" ^/api "
511
509
stateless =" false"
512
510
provider =" api_key_user_provider"
513
511
>
@@ -526,7 +524,7 @@ configuration or set it to ``false``:
526
524
$container->loadFromExtension('security', array(
527
525
'firewalls' => array(
528
526
'secured_area' => array(
529
- 'pattern' => '^/admin ',
527
+ 'pattern' => '^/api ',
530
528
'stateless' => false,
531
529
'simple_preauth' => array(
532
530
'authenticator' => 'apikey_authenticator',
0 commit comments