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 redirect to continue_with for SPA flows #3889
base: master
Are you sure you want to change the base?
Conversation
This patch adds the new `continue_with` action `redirect_browser_to`, which contains the redirect URL the app should redirect to. It is only supported for SPA (not server-side browser apps, not native apps) flows at this point in time.
This is missing verification and recovery:
Also, I did not add tests for social sign in, because for social sign in we always use redirect-based flows, even for SPAs who react with 422 browser location change required, which in the end does a regular browser redirect with Since these are redirects I'm not sure if I covered all the cases everywhere. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3889 +/- ##
=======================================
Coverage 78.05% 78.06%
=======================================
Files 360 360
Lines 25241 25252 +11
=======================================
+ Hits 19703 19712 +9
- Misses 4032 4033 +1
- Partials 1506 1507 +1 ☔ View full report in Codecov by Sentry. |
I believe that these flows do not need continue_with transitions because they solve it differently (they show a success page where you click continue and end up on the redirect url). |
9d4f6d6
to
fde4678
Compare
Using `OnLoadTrigger` and `OnClickTrigger` one can now map the trigger to the corresponding JavaScript function. For example, trigger `{"on_click_trigger":"oryWebAuthnRegistration"}` should be translated to `window.oryWebAuthnRegistration()`: ``` if (attrs.onClickTrigger) { window[attrs.onClickTrigger]() } ```
This patch adds the new
continue_with
actionredirect_browser_to
, which contains the redirect URL the app should redirect to. It is only supported for SPA (not server-side browser apps, not native apps) flows at this point in time.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
security@ory.sh) from the maintainers to push
the changes.
works.
Further Comments