This the source for the examples in the blog post Authorization/Permissions with Thruway.
After cloning the repo, you just need to run:
composer install
in the project root.
From the project root:
php src/RouterWithJwtAuth.php
A simple test client can be found at this plunkr.