in2code / in2frontendauthentication
通过IP地址模拟fe_groups登录
9.0.0
2024-02-08 08:53 UTC
Requires
- php: ^7.4 || ^8.0
- s1lentium/iptools: ^1.1 || dev-master#88be1aaaab3c50fc131ebe778e246215ff006d8e
- typo3/cms-core: ^11.5 || ^12.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.10
- helmich/typo3-typoscript-lint: ^2.5
- phpmd/phpmd: ^2.8
- squizlabs/php_codesniffer: ^3.5
Replaces
- typo3-ter/in2frontendauthentication: 9.0.0
README
简介
此TYPO3扩展用于在IP地址(IPv4和IPv6)匹配时模拟组的fe-login。您可以在后端为每个组定义多个IP地址和范围。
简介
注意:这允许您向特定用户组显示/隐藏内容元素、页面和其他记录。但“showAtAnyLogin”或“hideAtAnyLogin”不受支持。
要求和安装
composer require in2code/in2frontendauthentication
由于使用了s1lentium/iptools库,此扩展需要通过composer进行安装。
fe_groups.ip_mask中IP和IP范围定义示例
127.0.0.1
127.0.0.0/12
127.0.0.*
1001:5a3:3100:0000:0000:0000:0000:0000
1001:5a3:3100:::::
1001:5a3:3100::/40
1001:5a3:3100:0000:*:*:*:*
您可以使用单个IP地址或带子网掩码的定义范围(例如/8
)。此外,您还可以使用*
作为通配符。只需定义更多IP地址或范围,并用逗号分隔即可。
支持的TYPO3和PHP版本
-
TYPO3 11.5
-
TYPO3 12.4
-
PHP 7.4
-
PHP 8.0
-
PHP 8.1
-
PHP 8.2
-
PHP 8.3
支持的扩展
- 版本4.0或更高版本的fal_securedownload
- staticfilecache(见下文说明)
静态文件缓存
staticfilecache扩展设置了一个cookie来标识用户是否已登录,并且静态文件缓存可能无法使用。当用户初始化时,它会挂钩到正常的认证过程。由于EXT:in2frontendauthentication没有特定的前端用户,因此这里也需要设置。
此功能可以在扩展管理器中的扩展设置中启用。