https://trinitytuts.com/secure-cakephp-web-services-using-jwt/
Secure CakePHP web services using JWT