Skip to content

[Security] Adding info where login attempts are stored #17135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rate_limiter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
}
}

.. _rate-limiter-storage:

Storing Rate Limiter State
--------------------------

Expand Down
4 changes: 4 additions & 0 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,10 @@ You must enable this using the ``login_throttling`` setting:

The ``login_throttling.interval`` option was introduced in Symfony 5.3.

Internally, Symfony uses the :doc:`Rate Limiter component </rate_limiter>`
which by default uses Symfony's cache to store the previous login attempts.
However, you can implement a :ref:`custom storage <rate-limiter-storage>`.

Login attempts are limited on ``max_attempts`` (default: 5)
failed requests for ``IP address + username`` and ``5 * max_attempts``
failed requests for ``IP address``. The second limit protects against an
Expand Down