Hello team! I’m trying to perform a complete OAuth...
# ory-selfhosting
h
Hello team! I’m trying to perform a complete OAuth2 authorisation flow using the Ory products, Hydra and Kratos in Kubernetes, using the helm charts available. Can someone instruct me on this (maybe by providing a guideline doc), since I’ve been trying to do it on my own and faced so many difficulties in wiring them. By now, I’ve managed to deploy all the components that we need in Minikube. OAuth provider: Hydra IdP: Kratos Kratos sample UI (https://github.com/ory/k8s/tree/master/helm/charts/kratos-selfservice-ui-node) Consent: I’m using the consent endpoint of sample IdP given by Ory (https://github.com/ory/k8s/tree/master/helm/charts/example-idp) Now I’m working on the wiring and I managed to complete until the user authentication. But according to hydra documentation, hydra expects the IdP to send back the login_challenge parameter, to fetch login details (https://www.ory.sh/docs/hydra/concepts/login#the-login-endpoint). But such an implementation is not there in Kratos. Therefore I’m stuck here in the authorization flow. If someone can instruct me on this, it’ll be a great help!
👀 1
a
Hi! About two weeks ago the "kratos-hydra integration" logic was added to kratos master branch, it's now possible to wire a working PoC of Hydra with backend Kratos without writing any code on your end. For the details take a look at https://github.com/ory/kratos/issues/273#issuecomment-1305388654, it's not really a guide but should get you started I had to build the Kratos docker image (based on master branch) on my own (as the one in docker hub was too old), other than that it's smooth sailing