I am having some difficulties implementing the OAu...
# ory-network
l
I am having some difficulties implementing the OAuth/OIDC flow with a custom login UI. If I use the default account experience login, the flow works fine. But with a custom UI enabled, I’m not getting redirected through to the consent flow after successfully submitting the email/password. Instead of using browser redirects, I am using this version of the “Submit a Login Flow”:
Browser flows with an accept header of
application/json
*will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a
Set-Cookie
header on success*; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors.
So after submitting the email/password, I get the 200 response, But I’m not sure where to look to get the correct redirect url. It’s not
flow.return_to
. Is it somewhere else in the
flow
object? Or would it be in the response? If you could point me at any documentation related to this, that would be great. Thank you.
f
could you share the payload you're getting back, redacted as needed?
l
The response body is just a normal session object.
The flow has some OAuth data. I’ll DM you the flow object.