oat-sa / generis-auth-keyvalue
Generis key value authentication
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-11-16 08:35:37 UTC
README
A key-value implementation of the Tao 3.0 user authentication
Requirement
You need to have a redis server installed. You will need to enable redis in the phpconfig, and perhaps to add redis.so library to your system if not already installed
Installation
This system can be added to a projet as a library. You need to add this parameter to your composer.json
"minimum-stability" : "dev",
"require": {
"oat-sa/generis-auth-keyvalue": "dev-master"
},
Once it's done, run a composer update.
Be sure to have a key value persistence registered that will be used for caching. The default persistence identifier is authKeyValue
, but you will be able to configure which one will be used. Here is an example of registered redis persistence in config/generis/persistences.conf.php:
'authKeyValue' => array(
'driver' => 'phpredis',
'host' => '127.0.0.1',
'port' => 6379
)
To enable the authentication cache you have to run an install script:
php index.php 'oat\authKeyValue\action\ActivateKeyValueAuthentication' --persistence authKeyValue
Then the login will try to use this library.