We would like to use both Ory Kratos and Hydra sel...
# ory-selfhosting
b
We would like to use both Ory Kratos and Hydra self-hosted. We've an existing oauth provider implementation of our own however, and would like to replace our identity management with kratos first, and later migrate to hydra. There seems to be built in support for hydra integration in kratos, using the hydra sdk and based on whether a login_challeng param is associated with the login / registration flow. Is there a way we can replace that with our own client implementation following the same pattern/api? Basically, it boils down to a need to maintain some kind of mapping from access tokens we issue to sessions issued by kratos - is there a different way we could manage that?
i
Definitely. Just implement the login provider concept described in hydra and glue kratos into it.
m
Check out the example we have here: https://github.com/ory/examples Any feedback or improvements to this very welcome 🙏
b
thanks! we'll have a dig around that!