Skip to content

charlesread/fastify-jwt-acl-auth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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

About

fastify-jwt-webapp and fastify-acl-auth demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published