Initial
This commit is contained in:
31
system/Test/Mock/MockSecurityConfig.php
Normal file
31
system/Test/Mock/MockSecurityConfig.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of CodeIgniter 4 framework.
|
||||
*
|
||||
* (c) CodeIgniter Foundation <admin@codeigniter.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace CodeIgniter\Test\Mock;
|
||||
|
||||
use Config\Security as Security;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class MockSecurityConfig extends Security
|
||||
{
|
||||
public $tokenName = 'csrf_test_name';
|
||||
public $headerName = 'X-CSRF-TOKEN';
|
||||
public $cookieName = 'csrf_cookie_name';
|
||||
public $expires = 7200;
|
||||
public $regenerate = true;
|
||||
public $redirect = false;
|
||||
public $samesite = 'Lax';
|
||||
public $excludeURIs = ['http://example.com'];
|
||||
}
|
||||
Reference in New Issue
Block a user