Search for all
| Title | Object type | File name | Summary |
|---|---|---|---|
| CsrfAccessCheck::$csrfToken | property | core/ |
The CSRF token generator. |
| CsrfAccessCheck::access | function | core/ |
Checks access based on a CSRF token for the request. |
| CsrfAccessCheck::__construct | function | core/ |
Constructs a CsrfAccessCheck object. |
| CsrfAccessCheckTest | class | core/ |
@coversDefaultClass \Drupal\Core\Access\CsrfAccessCheck[[api-linebreak]] @group Access |
| CsrfAccessCheckTest.php | file | core/ |
|
| CsrfAccessCheckTest::$accessCheck | property | core/ |
The access checker. |
| CsrfAccessCheckTest::$csrfToken | property | core/ |
The mock CSRF token generator. |
| CsrfAccessCheckTest::$routeMatch | property | core/ |
The mock route match. |
| CsrfAccessCheckTest::setUp | function | core/ |
|
| CsrfAccessCheckTest::testAccessTokenPass | function | core/ |
Tests the access() method with a valid token. |
| CsrfAccessCheckTest::testCsrfTokenInvalid | function | core/ |
@covers ::access[[api-linebreak]] |
| CsrfAccessCheckTest::testCsrfTokenMissing | function | core/ |
@covers ::access[[api-linebreak]] |
| CsrfRequestHeaderAccessCheck | class | core/ |
Access protection against CSRF attacks. |
| CsrfRequestHeaderAccessCheck.php | file | core/ |
|
| CsrfRequestHeaderAccessCheck::$csrfToken | property | core/ |
The token generator. |
| CsrfRequestHeaderAccessCheck::$sessionConfiguration | property | core/ |
The session configuration. |
| CsrfRequestHeaderAccessCheck::access | function | core/ |
Checks access. |
| CsrfRequestHeaderAccessCheck::applies | function | core/ |
Declares whether the access check applies to a specific route or not. |
| CsrfRequestHeaderAccessCheck::TOKEN_KEY | constant | core/ |
A string key that will used to designate the token used by this class. |
| CsrfRequestHeaderAccessCheck::__construct | function | core/ |
Constructs a new rest CSRF access check. |
| CsrfRequestHeaderTest | class | core/ |
Tests protecting routes by requiring CSRF token in the request header. |
| CsrfRequestHeaderTest.php | file | core/ |
|
| CsrfRequestHeaderTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
| CsrfRequestHeaderTest::$modules | property | core/ |
Modules to enable. |
| CsrfRequestHeaderTest::testRouteAccess | function | core/ |
Tests access to routes protected by CSRF request header requirements. |
| CsrfTokenController | class | core/ |
Returns responses for CSRF token routes. |
| CsrfTokenController.php | file | core/ |
|
| CsrfTokenController::$tokenGenerator | property | core/ |
The CSRF token generator. |
| CsrfTokenController::create | function | core/ |
Instantiates a new instance of this class. |
| CsrfTokenController::csrfToken | function | core/ |
Returns a CSRF protecting session token. |
| CsrfTokenController::__construct | function | core/ |
Constructs a new CsrfTokenController object. |
| CsrfTokenGenerator | class | core/ |
Generates and validates CSRF tokens. |
| CsrfTokenGenerator.php | file | core/ |
|
| CsrfTokenGenerator::$privateKey | property | core/ |
The private key service. |
| CsrfTokenGenerator::$sessionMetadata | property | core/ |
The session metadata bag. |
| CsrfTokenGenerator::computeToken | function | core/ |
Generates a token based on $value, the token seed, and the private key. |
| CsrfTokenGenerator::get | function | core/ |
Generates a token based on $value, the user session, and the private key. |
| CsrfTokenGenerator::validate | function | core/ |
Validates a token based on $value, the user session, and the private key. |
| CsrfTokenGenerator::__construct | function | core/ |
Constructs the token generator. |
| CsrfTokenGeneratorTest | class | core/ |
Tests the CsrfTokenGenerator class. |
| CsrfTokenGeneratorTest.php | file | core/ |
|
| CsrfTokenGeneratorTest::$generator | property | core/ |
The CSRF token generator. |
| CsrfTokenGeneratorTest::$privateKey | property | core/ |
The mock private key instance. |
| CsrfTokenGeneratorTest::$sessionMetadata | property | core/ |
The mock session metadata bag. |
| CsrfTokenGeneratorTest::providerTestInvalidParameterTypes | function | core/ |
Provides data for testInvalidParameterTypes. |
| CsrfTokenGeneratorTest::providerTestValidateParameterTypes | function | core/ |
Provides data for testValidateParameterTypes. |
| CsrfTokenGeneratorTest::setUp | function | core/ |
|
| CsrfTokenGeneratorTest::setupDefaultExpectations | function | core/ |
Set up default expectations on the mocks. |
| CsrfTokenGeneratorTest::testGenerateSeedOnGet | function | core/ |
Tests that a new token seed is generated upon first use. |
| CsrfTokenGeneratorTest::testGet | function | core/ |
Tests CsrfTokenGenerator::get(). |
Pagination
- Previous page
- Page 321
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.