Skip to content

Swap cookie for session token for use on different domain #1145

Answered by Benehiko
abarani asked this question in Q&A
Discussion options

You must be logged in to vote

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 for app.example.com and login.example.com but you don't want the cookie to be used on your api.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

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@abarani
Comment options

@Benehiko
Comment options

@abarani
Comment options

@Benehiko
Comment options

@abarani
Comment options

Answer selected by abarani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants