diff --git a/security/api_key_authentication.rst b/security/api_key_authentication.rst index 8334b934797..567db80eb1d 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 your + firewall. This way Symfony executes the anonymous authentication provider + and you'll get an ``AnonymousToken``. 2. supportsToken ~~~~~~~~~~~~~~~~