awallef/cakephp-redis-jwt-auth

There is no license information available for the latest version (3.4.0.1) of this package.

CakePHP redis jwt auth

3.4.0.1 2017-07-27 14:47 UTC

This package is auto-updated.

Last update: 2024-04-16 20:27:55 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
    ],
    ...
]