#Authentication , Authorization , CASL

1 messages · Page 1 of 1 (latest)

iron glade
#

How do I integrate casl with nest and firebase authentication ?

stark moon
#

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.

iron glade
#

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

stark moon
#

Ok. But, you are back to generalizations with "But it doesn't work". What doesn't work? What error are you getting?

iron glade
#

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

stark moon
#

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?