-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for recovery on native flows #3273
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3273 +/- ##
==========================================
+ Coverage 78.29% 78.39% +0.10%
==========================================
Files 343 343
Lines 23418 23470 +52
==========================================
+ Hits 18334 18400 +66
+ Misses 3703 3685 -18
- Partials 1381 1385 +4 ☔ View full report in Codecov by Sentry. |
e092315
to
91116de
Compare
Co-authored-by: Jonas Hungershausen <[email protected]>
d88d8cf
to
49a2b84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely still needs e2e tests (either PW or cypress), for all the cases. Since the react-native PR got merged, that should be quite easy to do.
49a2b84
to
0af37f3
Compare
Co-authored-by: Jonas Hungershausen <[email protected]>
0af37f3
to
77b7c72
Compare
…o jonas-jonas/nativeRecovery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I just have a small suggestion regarding the naming of the feature flag.
Also, IIRC, the DX of the 422 errors is not really great in all SDKs. For Java, it requires explicitly overriding some error factory to extract the error. Is this really the best way? We should probably discuss this elsewhere.
Yes, you're right, but I am not sure what error code we could use instead. A 200 OK response would still be okay, but it doesn't convey the "urgency" that there is another step required here. |
What changes are needed in the docs for this? |
I'll need to figure out how to document this properly. Since we now use the feature flag, and we'll need a UI in the console for it, I'll first try to get this into the network and then do the docs changes, if that's okay with you. @aeneasr |
Can you please add an entry for the changelog here? |
Adds the ability to complete the recovery flow properly on API flows. This PR also streamlines the behavior for SPA flows to not return 422 errors anymore. To enable this new behavior, set the features.use_continue_with_transitions flag in the config to `true`. See also #3273
Adds the ability to complete the recovery flow properly on API flows. This PR also streamlines the behavior for SPA flows to not return 422 errors anymore. To enable this new behavior, set the features.use_continue_with_transitions flag in the config to `true`. See also #3273
--------- Co-authored-by: Henning Perl <[email protected]> Co-authored-by: Alano Terblanche <[email protected]> Co-authored-by: aeneasr <[email protected]>
Adds the ability to complete the recovery flow properly on API flows. This PR also streamlines the behavior for SPA flows to not return 422 errors anymore. To enable this new behavior, set the features.use_continue_with_transitions flag in the config to `true`. See also ory#3273
Adds the ability to complete the recovery flow properly on API flows. This PR also streamlines the behavior for SPA flows to not return 422 errors anymore. To enable this new behavior, set the
features.use_continue_with_transitions
flag in the config totrue
.Fixes #2628
Related issue(s)
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments