Skip to content

Commit 396aee9

Browse files
committed
minor #8247 Improved a help note about authentication providers (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #8247). Discussion ---------- Improved a help note about authentication providers This should fix #5264. Commits ------- bf26484 Improved a help note about authentication providers
2 parents 56873a5 + bf26484 commit 396aee9

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)