Replies: 1 comment
-
Hello @Catzilla Check out this example https://github.com/ory/examples/tree/master/oathkeeper/11-kratos-keto Let me know if it helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I want to use Ory Keto for assigning roles to users (regular user, vip, writer, moderator, admin, etc). Each user can have multiple roles.
In my app I use Ory Kratos for authentication, and Ory Oathkeeper for generation JWT token used by backend.
Backend is a third-party solution, that requires user roles to be passed as array in JWT token claims.
Currently I use following Oathkeeper configuration:
How can I request user roles from Ory Keto, and enrich
roles
token claim with them?I found
hydrator
mutator, but it requires specific request/response format, that cannot be changed with jsonnet or something similar.Can someone point me in the right direction?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions