-
Notifications
You must be signed in to change notification settings - Fork 978
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
Conversation
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 @@
## two-step-login #3889 +/- ##
=================================================
Coverage ? 78.06%
=================================================
Files ? 360
Lines ? 25252
Branches ? 0
=================================================
Hits ? 19712
Misses ? 4033
Partials ? 1507 ☔ 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). |
fde4678
to
67c6d74
Compare
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.
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]() } ```
…n and add maxlength
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
[email protected]) from the maintainers to push
the changes.
works.
Further Comments