diff --git a/cookbook/security/api_key_authentication.rst b/cookbook/security/api_key_authentication.rst index 41afcb03bc4..ee721e4894f 100644 --- a/cookbook/security/api_key_authentication.rst +++ b/cookbook/security/api_key_authentication.rst @@ -128,6 +128,11 @@ will cause authentication to fail. You might want to return ``null`` instead to just skip the authentication, so Symfony can fallback to another authentication 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``. + 2. supportsToken ~~~~~~~~~~~~~~~~
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: