hey guys, how can I use Ory Kratos and verify any ...
# talk-kratos
a
hey guys, how can I use Ory Kratos and verify any roles from the user? I am on .NET 6 and Ory Kratos Cloud. I want to verify if a user has some role and then authorize to execute or consume some endpoint. It is just a little bit confusing to understand the docs about using Ory Kratos with Keto for example.
p
Hi @adventurous-addition-28416 Ory Kratos does not do permissions and only does Authentication. To get permissions you need to use Ory Keto. In the saas product (Ory Network) all services are available on the same project. Essentially you would have your service create a relationship between the registered user's ID (assigned by Ory Kratos) to an action or another object. For example:
Copy code
User:x is in readers of Document:y.
Then later you would have your service to a check using the user's ID to validate if user x is allowed to read document x Please take a look at https://www.ory.sh/docs/keto/