Skip to content

Commit bf26484

Browse files
javiereguiluzxabbuh
authored andcommitted
Improved a help note about authentication providers
1 parent 861e72b commit bf26484

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

security/api_key_authentication.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ method, if any.
111111

112112
.. caution::
113113

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``.
114+
In case you return ``null`` from your ``createToken()`` method, Symfony
115+
passes this request to the next authentication provider. If you haven't
116+
configured any other provider, enable the ``anonymous`` option in your
117+
firewall. This way Symfony executes the anonymous authentication provider
118+
and you'll get an ``AnonymousToken``.
116119

117120
2. supportsToken
118121
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)