PHP Class Neos\Flow\Security\RequestPattern\CsrfProtection

Inheritance: implements Neos\Flow\Security\RequestPatternInterface
ファイルを表示 Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$policyService Neos\Flow\Security\Policy\PolicyService
$reflectionService Neos\Flow\Reflection\ReflectionService
$securityContext Neos\Flow\Security\Context
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Public Methods

Method Description
matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Matches a \Neos\Flow\Mvc\RequestInterface against the configured CSRF pattern rules and searches for invalid csrf tokens. If this returns TRUE, the request is invalid!

Protected Methods

Method Description
hasPolicyEntryForMethod ( string $className, string $methodName ) : boolean

Method Details

hasPolicyEntryForMethod() protected method

protected hasPolicyEntryForMethod ( string $className, string $methodName ) : boolean
$className string
$methodName string
return boolean

matchRequest() public method

Matches a \Neos\Flow\Mvc\RequestInterface against the configured CSRF pattern rules and searches for invalid csrf tokens. If this returns TRUE, the request is invalid!
public matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean
$request Neos\Flow\Mvc\RequestInterface The request that should be matched
return boolean TRUE if the pattern matched, FALSE otherwise

Property Details

$authenticationManager protected_oe property

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
return Neos\Flow\Security\Authentication\AuthenticationManagerInterface

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$policyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy $policyService
return Neos\Flow\Security\Policy\PolicyService

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
return Neos\Flow\Security\Context

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface