@@ -323,6 +323,10 @@ using the ``simple_preauth`` key:
323
323
simple_preauth :
324
324
authenticator : apikey_authenticator
325
325
326
+ providers :
327
+ simple_preauth :
328
+ id : your_api_key_user_provider
329
+
326
330
.. code-block :: xml
327
331
328
332
<!-- app/config/security.xml -->
@@ -341,6 +345,8 @@ using the ``simple_preauth`` key:
341
345
>
342
346
<simple-preauth authenticator =" apikey_authenticator" />
343
347
</firewall >
348
+
349
+ <provider name =" simple_preauth" id =" your_api_key_user_provider" />
344
350
</config >
345
351
</srv : container >
346
352
@@ -360,6 +366,11 @@ using the ``simple_preauth`` key:
360
366
),
361
367
),
362
368
),
369
+ 'providers' => array(
370
+ 'simple_preauth' => array(
371
+ 'id' => 'your_api_key_user_provider',
372
+ ),
373
+ ),
363
374
));
364
375
365
376
That's it! Now, your ``ApiKeyAuthentication `` should be called at the beginning
@@ -399,6 +410,10 @@ configuration or set it to ``false``:
399
410
simple_preauth :
400
411
authenticator : apikey_authenticator
401
412
413
+ providers :
414
+ simple_preauth :
415
+ id : your_api_key_user_provider
416
+
402
417
.. code-block :: xml
403
418
404
419
<!-- app/config/security.xml -->
@@ -417,6 +432,8 @@ configuration or set it to ``false``:
417
432
>
418
433
<simple-preauth authenticator =" apikey_authenticator" />
419
434
</firewall >
435
+
436
+ <provider name =" simple_preauth" id =" your_api_key_user_provider" />
420
437
</config >
421
438
</srv : container >
422
439
@@ -435,6 +452,11 @@ configuration or set it to ``false``:
435
452
),
436
453
),
437
454
),
455
+ 'providers' => array(
456
+ 'simple_preauth' => array(
457
+ 'id' => 'your_api_key_user_provider',
458
+ ),
459
+ ),
438
460
));
439
461
440
462
Even though the token is being stored in the session, the credentials - in this
0 commit comments