Hey team! :wave: We have been building our identit...
# ory-network
p
Hey team! 👋 We have been building our identity management part of our system for a few days now and yesterday when everything started to come together I came across deviations from how the Ory network works compared to what the documentation tells you (might also just be me, and our setup). Everywhere I look I've come across this statement that when a user completes the recovery flow, they should be prompted to set a new password. In my case the user gets redirected to a settings flow (with a snack message that they should update their password). Is it correct that the user should be redirected to the settings flow instead of a "set new password" flow/page? --- To continue I could ask the community how have you built your systems? our current flow
A new user places an order, once the order is completed an identity is created through the IdentityAPI. We then trigger a recovery flow (magic link) using the FrontendAPI and redirects the user through that, wanting the user to set a password as the last step. Now they are redirected to the settings page, and IMO might be confused what they should do on the page.
possible other solutions
A) We send the magic link along with a normal order confirmation to the user, allowing them to complete the setup later. But the problem still stands, if they are redirected to the settings page after completing a recovery.
B) Have a custom UI handle the password reset, only showing the relevant fields (two input fields for the new password).
C) Rearrange the order of the nodes in the settings flow, having the password be first, to make it clearer that we wish them to set a password.
D) The correct way?
What is the preferred way, or how have you solved this? 🙂
b
In my case the user gets redirected to a settings flow (with a snack message that they should update their password).
Is it correct that the user should be redirected to the settings flow instead of a "set new password" flow/page?
Yes, this is correct, as the recovery flow doesn't just work for Password credentials, but also passkeys, oidc, etc.. You could patch this using a custom UI for the setting flow, and show just a password UI.
p
Got it, that was my next though as well. Thanks Jonas! Any good resource out of your head how to patch the setting flow with a custom UI?
b
We don't really have great documentation on this topic yet. Essentially, you'd configure a custom settings flow URL to a URL you control, and can run your own frontend on. We will redirect the user and add a query parameter to the redirect URL so you can fetch the settings flow.
🙇 1