From a04a7cb2a18d78d73ea85ec67ecf603d5c7c75f0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 1 Aug 2017 11:33:34 +0200 Subject: [PATCH 1/2] Improved a help note about authentication providers --- security/api_key_authentication.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/security/api_key_authentication.rst b/security/api_key_authentication.rst index 8334b934797..d0e5e16ce34 100644 --- a/security/api_key_authentication.rst +++ b/security/api_key_authentication.rst @@ -111,8 +111,11 @@ method, if any. .. caution:: - In case you return ``null`` from your ``createToken()`` method, be sure to enable - ``anonymous`` in you firewall. This way you'll be able to get an ``AnonymousToken``. + In case you return ``null`` from your ``createToken()`` method, Symfony + passes this request to the next authentication provider. If you haven't + configured any other provider, enable the ``anonymous`` option in you + firewall. This way Symfony executes the anonymous authentication provider + and you'll get an ``AnonymousToken``. 2. supportsToken ~~~~~~~~~~~~~~~~ From 7682fbd47cfe15e48ff65050166ea1ed7c54fe0f Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 1 Aug 2017 11:39:58 +0200 Subject: [PATCH 2/2] Fixed typo --- security/api_key_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/api_key_authentication.rst b/security/api_key_authentication.rst index d0e5e16ce34..567db80eb1d 100644 --- a/security/api_key_authentication.rst +++ b/security/api_key_authentication.rst @@ -113,7 +113,7 @@ method, if any. In case you return ``null`` from your ``createToken()`` method, Symfony passes this request to the next authentication provider. If you haven't - configured any other provider, enable the ``anonymous`` option in you + configured any other provider, enable the ``anonymous`` option in your firewall. This way Symfony executes the anonymous authentication provider and you'll get an ``AnonymousToken``.