-
I'm trying to implement ORY Kratos in the following scenario but I'm missing something on how I can get a session token client-side. Consider this:
The basic login flow would be:
At this point, is there a way to call Would it be possible to swap the user cookie token available on Does this make sense or am I missing something security-wise? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @abarani, Sorry for only getting back to you now! 😰 I think i understand the use case. You have a cookie for If that's the case, maybe setting up a mutator on your oathkeeper rule to |
Beta Was this translation helpful? Give feedback.
Hi @abarani,
Sorry for only getting back to you now! 😰
I think i understand the use case. You have a cookie for
example.com
which is valid forapp.example.com
andlogin.example.com
but you don't want the cookie to be used on yourapi.example.com
so you want to transform the cookie for this sub-domain to something like a JWT?If that's the case, maybe setting up a mutator on your oathkeeper rule to
api.example.com
is what you need. https://www.ory.sh/oathkeeper/docs/pipeline/mutator