@@ -323,6 +323,10 @@ using the ``simple_preauth`` key:
323323 simple_preauth :
324324 authenticator : apikey_authenticator
325325
326+ providers :
327+ simple_preauth :
328+ id : your_api_key_user_provider
329+
326330 .. code-block :: xml
327331
328332 <!-- app/config/security.xml -->
@@ -341,6 +345,8 @@ using the ``simple_preauth`` key:
341345 >
342346 <simple-preauth authenticator =" apikey_authenticator" />
343347 </firewall >
348+
349+ <provider name =" simple_preauth" id =" your_api_key_user_provider" />
344350 </config >
345351 </srv : container >
346352
@@ -360,6 +366,11 @@ using the ``simple_preauth`` key:
360366 ),
361367 ),
362368 ),
369+ 'providers' => array(
370+ 'simple_preauth' => array(
371+ 'id' => 'your_api_key_user_provider',
372+ ),
373+ ),
363374 ));
364375
365376 That's it! Now, your ``ApiKeyAuthentication `` should be called at the beginning
@@ -399,6 +410,10 @@ configuration or set it to ``false``:
399410 simple_preauth :
400411 authenticator : apikey_authenticator
401412
413+ providers :
414+ simple_preauth :
415+ id : your_api_key_user_provider
416+
402417 .. code-block :: xml
403418
404419 <!-- app/config/security.xml -->
@@ -417,6 +432,8 @@ configuration or set it to ``false``:
417432 >
418433 <simple-preauth authenticator =" apikey_authenticator" />
419434 </firewall >
435+
436+ <provider name =" simple_preauth" id =" your_api_key_user_provider" />
420437 </config >
421438 </srv : container >
422439
@@ -435,6 +452,11 @@ configuration or set it to ``false``:
435452 ),
436453 ),
437454 ),
455+ 'providers' => array(
456+ 'simple_preauth' => array(
457+ 'id' => 'your_api_key_user_provider',
458+ ),
459+ ),
438460 ));
439461
440462 Even though the token is being stored in the session, the credentials - in this
0 commit comments