8000 Added note about the hash_equals polyfill by wouterj · Pull Request #6044 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added note about the hash_equals polyfill #6044

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

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Added note about the polyfill
  • Loading branch information
wouterj committed Dec 18, 2015
commit 397dbcc8d6238c28020ef06cfaf93fd7ec50f081
8 changes: 8 additions & 0 deletions cookbook/security/custom_authentication_provider.rst
7A1D
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ the ``PasswordDigest`` header value matches with the user's password.
provider for the given token. In the case of multiple providers, the
authentication manager will then move to the next provider in the list.

.. note::

While the :phpfunction:`hash_equals` function was introduced in PHP 5.6,
you are safe to use it with any PHP version in your Symfony application. In
PHP versions prior to 5.6, `Symfony Polyfill`_ (which is included in
Symfony) will define the function for you.

The Factory
-----------

Expand Down Expand Up @@ -666,3 +673,4 @@ in the factory and consumed or passed to the other classes in the container.
.. _`WSSE`: http://www.xml.com/pub/a/2003/12/17/dive.html
.. _`nonce`: https://en.wikipedia.org/wiki/Cryptographic_nonce
.. _`timing attacks`: https://en.wikipedia.org/wiki/Timing_attack
.. _`Symfony Polyfill`: https://github.com/symfony/polyfill
0