Skip to content
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
1 change: 1 addition & 0 deletions reference/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Security
~~~~~~~~

* :ref:`CurrentUser <security-json-login>`
* :ref:`IsCsrfTokenValid <csrf-controller-attributes>`
* :ref:`IsGranted <security-securing-controller-attributes>`

Serializer
Expand Down
2 changes: 2 additions & 0 deletions security/csrf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ method to check its validity::
}
}

.. _csrf-controller-attributes:

Alternatively you can use the
:class:`Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid`
attribute on the controller action::
Expand Down