We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee6cb2 commit 1337b31Copy full SHA for 1337b31
cookbook/security/api_key_authentication.rst
@@ -109,6 +109,11 @@ will cause authentication to fail. You might want to return ``null`` instead
109
to just skip the authentication, so Symfony can fallback to another authentication
110
method, if any.
111
112
+.. caution::
113
+
114
+ In case you return ``null`` from your ``createToken()`` method, be sure to enable
115
+ ``anonymous`` in you firewall. This way you'll be able to get an ``AnonymousToken``.
116
117
2. supportsToken
118
~~~~~~~~~~~~~~~~
119
0 commit comments