How to add JWT Authentication to a CakePHP 3 REST API

In this follow-up post to How to prefix route a CakePHP 3 REST API we will implement JSON Web Token (JWT) authentication. To prevent (yet another) pa