-
-
Notifications
You must be signed in to change notification settings - Fork 963
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
fix(selfservice): Recovery self service flow passes on return_to URL #1920
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1920 +/- ##
==========================================
- Coverage 74.93% 74.92% -0.01%
==========================================
Files 293 293
Lines 15318 15331 +13
==========================================
+ Hits 11478 11487 +9
- Misses 3012 3014 +2
- Partials 828 830 +2
Continue to review full report at Codecov.
|
@aeneasr Would you please review this PR? |
Sorry @sawadashota - I did not have a lot of time these past weeks to review PRs. Can you please add an e2e test for this PR? If you need help, please do let me know :) |
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.
Looking great, only a few minor requests :))
@@ -271,6 +272,7 @@ func (s *Strategy) recoveryIssueSession(w http.ResponseWriter, r *http.Request, | |||
if err != nil { | |||
return s.retryRecoveryFlowWithError(w, r, flow.TypeBrowser, err) | |||
} | |||
sf.RequestURL = f.RequestURL |
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 would incorrectly use the original recovery flow as the request URL. But we only need the return_to
query parameter - I would suggest we use only that part!
Signed-off-by: sawadashota <[email protected]>
Signed-off-by: sawadashota <[email protected]>
Signed-off-by: sawadashota <[email protected]>
Signed-off-by: sawadashota <[email protected]>
e2e tests failed at @aeneasr I've fixed. Tests for these seem to be passed! |
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.
🙏
Sorry for taking so long to review! |
Related issue(s)
#914
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments