In the release 2.0 of Ory Hydra was announced that they have now an integration with Kratos their identity provider. It is also mentioned that this is possible to achieve by doing some configuration "Ory Identities is now compatible with the Ory OAuth2 Login and Consent Flow. This means, for example, that Ory Kratos can be the login provider for Ory Hydra with a bit of configuration."
Have someone done this configuration, is there any example I can follow to use Kratos as identity provider for Hydra?
Release notes: https://github.com/ory/hydra/releases/tag/v2.0.0
So far I was able to setup a docker compose file where I have a Postgres database and I also have Hydra and Kratos. What I don't know is how to make them interact with each other.
You must still handle the consent flow through Ory Kratos. You can refer to an example provided by the community here. Additionally, you can check out this project: https://github.com/lus/hydra-consent and the related issue: https://github.com/ory/kratos-selfservice-ui-node/issues/224.
In the future, it would be ideal to have a tutorial on how to set up the consent flow in the self-hosted section of Ory Hydra or Ory Kratos. This integration comes with Ory Network (https://console.ory.sh/) but requires additional coding to set up on-premises.