https://www.ory.sh/ logo
#general
Title
# general
s

silly-telephone-79802

11/14/2021, 2:46 PM
I am a nodeJS developer. My actually use case is: I want to deploy hydra and kratos and use the user id provided by hydra/kratos. Also I want that I use jwt tokens to contain the scope of the tokens. So I assume I can manage the roles in kratos and when the user logs in I can consume the jwt token and depending on the scope/claims declared in the jwt token I can give permission to the specific rest api calls? Is there a way to get a webhook or so to give my system the information that the user was created?
m

magnificent-energy-493

11/15/2021, 5:26 PM
Hey, we have a lot of resources for nodeJS. There is also a document about the Kratos session token: https://www.ory.sh/kratos/docs/next/concepts/session/ Are you giving 3rd parties access to your users data or are you mainly doing login / registration and similar flows? Check out the hooks: https://www.ory.sh/kratos/docs/next/self-service/hooks/#registration
3 Views