]> source.dussan.org Git - nextcloud-server.git/commit
Add new CSRF manager for unit testing purposes
authorLukas Reschke <lukas@owncloud.com>
Mon, 25 Jan 2016 16:15:54 +0000 (17:15 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 25 Jan 2016 19:03:40 +0000 (20:03 +0100)
commita977465af5834a76b1e98854a2c9bfbe413c218c
tree7a47d606f7935ac7de09fe8169188691cc9e4373
parent37f5f5077a59d69723965d1345536d46605589f5
Add new CSRF manager for unit testing purposes

This adds a new CSRF manager for unit testing purposes, it's interface is based upon https://github.com/symfony/security-csrf. Due to some of our required custom changes it is however not possible to use the Symfony component directly.
17 files changed:
lib/private/appframework/http/request.php
lib/private/security/csrf/csrftoken.php [new file with mode: 0644]
lib/private/security/csrf/csrftokengenerator.php [new file with mode: 0644]
lib/private/security/csrf/csrftokenmanager.php [new file with mode: 0644]
lib/private/security/csrf/tokenstorage/sessionstorage.php [new file with mode: 0644]
lib/private/server.php
lib/private/template.php
lib/private/template/base.php
lib/private/user.php
lib/private/util.php
lib/public/util.php
tests/lib/appframework/http/RequestTest.php
tests/lib/security/csrf/CsrfTokenGeneratorTest.php [new file with mode: 0644]
tests/lib/security/csrf/CsrfTokenManagerTest.php [new file with mode: 0644]
tests/lib/security/csrf/CsrfTokenTest.php [new file with mode: 0644]
tests/lib/security/csrf/tokenstorage/SessionStorageTest.php [new file with mode: 0644]
tests/lib/util.php