Hello there ! Just a quick question as I have no i...
# ory-selfhosting
d
Hello there ! Just a quick question as I have no idea on the subject, in our infrastructure we use the Kratos link to Hydra to perform the login challenge and get tokens(that why i work so hard to get a working functionnal selfhosted-ui and kratos-hydra integration example), with these tokens we can authenticate our users from our mobile app with our API gateway and Oathkeeper rules. But for our new requirement, we need to reverse the process, so that the Hydra tokens go back into the Kratos cookie to perform some interactions with the Kratos settings / oidc flows, do you know if this is possible and if there's a way like the Oathkeeper cookie mutator to do this? Any ideas Ory team or anyone ? @bland-eye-99092 @steep-lamp-91158 Slack Conversation
s
I think this has a something in common with my question above, how do I get identity information back in an ID token when I get my access token from Hydra. Unfortunately I don't yet know the answer to either of these questions.
d
Sorry @some-alligator-65274 I didn’t see your question but to get the identity from a id-token you can use a API gateway and Oathkeeper with authenticator
id-token
and mutator
header
to authenticate the request to ensure the user is logged and the token is still valid and get the id of the kratos user in your api/service behind your api gateway
🙏 1