squareboat / nestjs-boilerplate

A production-ready 🏭 NestJS boilerplate with batteries 🔋 included. No Kidding! Now Supports NestJS V10!!
https://squareboat.com/open-source/nestjs-boilerplate/
MIT License
668 stars 97 forks source link

Adding Authentication & Authorization Middleware #28

Open codemonk79 opened 2 years ago

codemonk79 commented 2 years ago

this is an awesome boilerplate but I think it should also include API Authentication & Authorization Backend can be integrated using the passport supported Authentications can be:

for Authorization, there could be a base Gaurd to create roles and permission for Authorization

Raishin commented 2 years ago

for Authorization, there could be a base Gaurd to create roles and permission for Authorization

agreed 100 % - a middleware to tackle to dynamic permissions assigned to the auth user. i had work on one such feature using laravel. but i have no idea how to do it in ts on nestjs

Neosoulink commented 8 months ago

I like the idea, but this discussion is a bit old, Is someone planning to work on this feature?

cc: @vinayak25