We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f444462 commit 0e14ecfCopy full SHA for 0e14ecf
security/custom_authenticator.rst
@@ -205,6 +205,11 @@ using :ref:`the user provider <security-user-providers>`::
205
// ...
206
$passport = new Passport(new UserBadge($email), $credentials);
207
208
+.. note::
209
+
210
+ The maximum length allowed for the user identifier is 4096 characters to
211
+ prevent `session storage flooding`_ attacks.
212
213
.. note::
214
215
You can optionally pass a user loader as second argument to the
@@ -373,3 +378,5 @@ authenticator methods (e.g. ``createToken()``)::
373
378
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
374
379
}
375
380
381
382
+.. _`session storage flooding`: https://symfony.com/blog/cve-2016-4423-large-username-storage-in-session
0 commit comments