Hello all. This seems like a popular topic but I h...
# ory-selfhosting
f
Hello all. This seems like a popular topic but I have done as much reading and looking at examples and docs as I could before asking here. I am trying to integrate hydra + kratos with my own UI. Currently I create a new API login flow, and I send the flow ID and the login challenge, along with the username/password form to my Go backend. When the backend makes a call to kratos for info about the flow before submitting it, I can see that there is information included about the Oauth2 flow (oauth2_login_request), and it's still in the
choose_method
state. If I send a post request with the login info + login_challenge to submit the login flow, it will give me a session token and authenticate me as usual, with no other mention of the oauth2 flow. Other than adding the
login_challenge?=
to the flow submission url, is there anything else I am supposed to do when submiting the login flow to kratos? or do i move on with hydra? Thanks! your time is definitely appreciated
d
Hi @fresh-summer-85333, if there's no login request information in your login/registration flow, it's because you need to include the
login_challenge
query param in the request when you ask a new flow, as is the case in: https://github.com/ory/kratos-selfservice-ui-node/blob/master/src/routes/login.ts#L41
f
Hi thanks for the reply! I had included the query parameter, after some digging through the kratos source code I see that it appears to only be setup for browser flows, and as soon as I switched to a browser flow kratos began handing the redirects so I think that issue is all figured out. Thanks!