This is a demonstration of a "full-blown" stateless fastify-based web application using fastify-jwt-webapp (used for authentication), and fastify-acl-auth (used for authorization).
Here we use auth0 as our IdP, and by setting the return values of fastify-acl-auth's allowedRoles
and actualRoles
equal to one another we achieve a very impractical setup that whoever is logged-in is able to access an "admin" route.
npm i
node index.js