awallef / cakephp-redis-jwt-auth
CakePHP redis jwt auth
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.5.9
- awallef/cakephp-redis: ^3.4
- cakephp/cakephp: ^3.3
- firebase/php-jwt: ~4.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-16 21:53:08 UTC
README
This plugin allows you store jwt token in redis engine and login via Basic
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require awallef/cakephp-redis-jwt-auth
Load it in your config/boostrap.php
Plugin::load('Awallef/RJA',['boostrap' => true]);
Redis caching
This plugin provides a very little bit different redis engine based on cakephp's RedisEngine. differences are:
- Engine config comes with a bool 'serialize' option ( default is true )
- Read and wirte fct use config 'serialize' option
- Keys are stored/read/deleted in order to uses : and :* redis skills!
Configure the engine in app.php like follow:
'Cache' => [
...
'redis' => [
'className' => 'Awallef/Redis.Redis',
'prefix' => 'www.your-site.com:',
'duration' => '+24 hours',
'serialize' => true
],
...
]