This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Security/Csrf
Fabien Potencier 5931ef7288 Merge branch '2.8' into 3.0
* 2.8:
  updated copyright year
  updated copyright year
  Update copyright year
  [2.3] Static Code Analysis for Components
2016-01-03 16:35:16 +01:00
..
Exception [Security\Csrf] Split CsrfTokenGenerator into CsrfTokenManager and TokenGenerator 2013-10-07 14:50:43 +02:00
Tests Merge branch '2.8' 2015-10-10 12:22:50 +02:00
TokenGenerator Merge branch '2.8' 2015-10-07 09:44:07 +02:00
TokenStorage Merge branch '2.8' 2015-08-24 09:21:16 +02:00
.gitignore [Security] Added CSRF sub-component 2013-09-27 10:08:54 +02:00
composer.json Merge branch '2.8' 2015-10-30 16:35:59 -07:00
CsrfToken.php [Security] Added a missing field in SimpleAuthenticationHandler 2013-11-21 07:37:18 +01:00
CsrfTokenManager.php Rely on iconv and symfony/polyfill-* 2015-10-28 03:15:07 +01:00
CsrfTokenManagerInterface.php fixes CS 2015-08-24 09:13:45 +02:00
LICENSE updated copyright year 2016-01-03 16:33:06 +01:00
phpunit.xml.dist Merge branch '2.3' into 2.7 2015-11-18 14:41:01 +01:00
README.md Merge branch '2.8' 2015-05-13 13:38:41 +02:00

Security Component - CSRF

The Security CSRF (cross-site request forgery) component provides a class CsrfTokenManager for generating and validating CSRF tokens.

Resources

Documentation:

https://symfony.com/doc/3.0/book/security.html

Tests

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/Security/Csrf/
$ composer.phar install --dev
$ phpunit