oat-sa / generis-auth-keyvalue
Generis 密钥值认证
v2.3.3
2024-02-21 14:45 UTC
Requires (Dev)
- dev-master
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0.1
- v2.0.0
- v1.4.0
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.0
- dev-fix/sonarqube-workflow-update-ops-184
- dev-develop
- dev-feature/add-license-and-copying-file
- dev-backport/v2.0.0.1
- dev-release_2.0.0
- dev-feature/specify-language
- dev-sample/import-script
- dev-return-created-user
This package is auto-updated.
Last update: 2024-09-16 08:13:18 UTC
README
Tao 3.0 用户认证的键值实现
要求
您需要安装 redis 服务器。您需要在 phpconfig 中启用 redis,并且如果尚未安装,可能需要将 redis.so 库添加到您的系统中。
安装
此系统可以作为库添加到项目中。您需要将此参数添加到您的 composer.json
"minimum-stability" : "dev",
"require": {
"oat-sa/generis-auth-keyvalue": "dev-master"
},
完成后,运行 composer update。
请确保已注册一个用于缓存的键值持久性。默认持久性标识符为 authKeyValue
,但您可以选择使用哪个。以下是在 config/generis/persistences.conf.php 中注册的 redis 持久性的示例:
'authKeyValue' => array(
'driver' => 'phpredis',
'host' => '127.0.0.1',
'port' => 6379
)
要启用认证缓存,您需要运行安装脚本
php index.php 'oat\authKeyValue\action\ActivateKeyValueAuthentication' --persistence authKeyValue
然后登录将尝试使用此库。