Download the PHP package t73biz/cakephp2-jwt-auth without Composer
On this page you can find all versions of the php package t73biz/cakephp2-jwt-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t73biz/cakephp2-jwt-auth
More information about t73biz/cakephp2-jwt-auth
Files in t73biz/cakephp2-jwt-auth
Package cakephp2-jwt-auth
Short Description Cakephp 2 JWT Authentication
License MIT
Homepage http://github.com/t73biz/cakephp2-jwt-auth
Informations about the package cakephp2-jwt-auth
CakePHP 2.x JWT Authentication (DEAD)
This project is no longer being actively developed.
This plugin is a CakePHP 2.x Authentication component and view helper for JWT.
Components
- Auth/JwtTokeAuthenticate - A JSON Web Token implementation for CakePHP 2.6.x
Helpers
- AuthHelper - Utility functions for helping with the authentication of users.
Requirements
- PHP version: PHP 5.3+
- CakePHP version: 2.6 Stable
Support
For support and feature request, please visit the JWT Authentication Plugin Support section.
License
Copyright 2011 - 2014, Florian Krämer Copyright 2015, Ronald Chaplin
Licensed under The MIT License
Redistributions of files must retain the above copyright notice.
Copyright
Copyright 2011 - 2014 Florian Krämer http://github.com/burzum
Copyright 2015 Ronald Chaplin http://github.com/t73biz
Version
1.0.6
Installation
This will install into the Plugin directory (in the folder). To run the tests, simply navigate to your webroot/test.php and follow the links for the test cases for the Authentication Adapter.
Usage
Configuration
You can either declare this in your Controller's array, or on the fly in an (if you need to load any configuration values, which you can't do when declaring in the array, for example).
Or
Where (excluding common authentication items):
- is an array containing the details of which passed values (POSTed) contain the , and
- is used to hold a unique key against the user once authenticated and is also stored in the JWT
- is the query string parameter that could hold the JWT
- is the HTTP header that could hold the JWT
- is the salt to use when encrypting your JWT (keep this super secret!)
Defaults
Authentication
You can authenticate by passing a valid JWT as either:
- The query string parameter defined as in the config array (defaults to )
- The contents of the header defined as in the config array (defaults to )
TODO
Implement an end to end example for inside clients and 3rd party client usage.