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 bb1c807 commit 3bfea4dCopy full SHA for 3bfea4d
cookbook/security/api_key_authentication.rst
@@ -130,6 +130,11 @@ will cause authentication to fail. You might want to return ``null`` instead
130
to just skip the authentication, so Symfony can fallback to another authentication
131
method, if any.
132
133
+.. tip::
134
+
135
+ In case you return ``null`` from your ``createToken()`` method, be sure to enable
136
+ ``anonymous`` in you firewall. This way you'll be able to get an ``AnonymousToken``.
137
138
2. supportsToken
139
~~~~~~~~~~~~~~~~
140
0 commit comments