lithium-library li3_jwt
JSON Web Token Session Adapter for Lithium
jasonroyle/li3_jwt
JSON Web Token Session Adapter for Lithium
- Monday, May 18, 2015
- by jasonroyle
- Repository
- 1 Watchers
- 0 Stars
- 23 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 3 Open issues
- 4 Versions
- 0 % Grown
JSON Web Token Session Adapter for Lithium
Dependencies
Installation
Composer
composer require jasonroyle/li3_jwt
Enable the Libraries
Make the application aware of the libraries by adding the following to app/config/bootstrap/libraries.php
., (*1)
/**
* Add some plugins:
*/
Libraries::add('li3_jwt');
/**
* Load composer libraries
*/
require_once(dirname(LITHIUM_APP_PATH) . '/vendor/autoload.php');
Configuration
Add the following configuration to app/config/bootstrap/session.php
replacing ***SECRET***
with your secret string., (*2)
use lithium\storage\Session;
Session::config(['default' => [
'adapter' => 'Token',
'header' => 'Authorization',
'prefix' => 'Bearer ',
'strategies' => ['Jwt' => [
'secret' => '***SECRET***'
]]
]]);
dev-master
9999999-dev
JSON Web Token Session Adapter for Lithium
Sources
Download
MIT
The Requires
by
Jason Royle
dev-develop
dev-develop
JSON Web Token Session Adapter for Lithium
Sources
Download
MIT
The Requires
by
Jason Royle
0.0.2
0.0.2.0
JSON Web Token Session Adapter for Lithium
Sources
Download
MIT
The Requires
by
Jason Royle
0.0.1
0.0.1.0
JSON Web Token Session Adapter for Lithium
Sources
Download
MIT
The Requires
by
Jason Royle