#Authentication , Authorization , CASL
1 messages · Page 1 of 1 (latest)
That's a pretty general question and yet quite niche that more than likely no one will answer. The question also deal's with two different subjects. Authentication and Authorization. I'd suggest reading up on how to implement both with the tech you've noted. Give it a try and then come back with more specific questions, when you face some difficulty.
this is the implementation of casl in nest js how i integrate it
this the facotry class
this is the guard
and this is the decorated that i have created
and this is the implementation in the resolver file
but it doesn't work
Here's details
Ok. But, you are back to generalizations with "But it doesn't work". What doesn't work? What error are you getting?
In fact when i try to implements it in the resolver it doesn't restrict the api and doesn't apply the permissions in the decorator
You need to learn to not use "it" when describing things. Be specific. You have different guards in your resolvers. Which one is not working?