« Previous | Next » 

Revision 2c1c4a32

ID2c1c4a323cac2670b41584aa213109584de778fe
Parent 5c188b4e
Child 2c1dfc70

Added by Alexander Berl over 6 years ago

[FEATURE] Request patterns for host name and IP addresses

This change adds RequestPatterns for host name and IP addresses.
Host names are configurable with a simple wildcard ('*') pattern, IP
addresses use ``CIDR`` style pattern with support for both ``IPv4`` and
``IPv6`` following ``RFC4632`` and ``RFC4291``.

Examples:

Only grant access to clients with IPs from 192.168.178.0 to
192.168.178.255::

TYPO3:
Flow:
security:
firewall:
rejectAll: TRUE
filters:
'ip':
patternType: 'Ip'
patternValue: '192.168.178.0/24'
interceptor: 'AccessGrant'

Protect an area of your application file based authentication and IP
check (only trigger authentication and entry points for clients with an
IP of ``127.0.0.1``)::

TYPO3:
Flow:
security:
authentication:
providers:
'LocalNetworkProvider':
provider: 'FileBasedSimpleKeyProvider'
providerOptions:
keyName: 'AdminKey'
authenticateRoles: ['Acme.SomePackage:Administrator']
requestPatterns:
controllerObjectName: 'Acme\SomePackage\Controller\Administration\.*'
ip: '::7F00:1'

Change-Id: I5494f0f90b563026cefda32a1763b3988316dcbf
Resolves: #49522
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted