-
Notifications
You must be signed in to change notification settings - Fork 972
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: two-step login and improved UI APIs for Ory Elements v1 #3934
Conversation
OK - we need a proper ID structure then in Ory Elements to deal with that but I agree
Am 24.05.2024 um 10:22 schrieb Patrik ***@***.***>:
@zepatrik commented on this pull request.
In text/message_system.go:
@@ -13,3 +13,11 @@ func NewErrorSystemGeneric(reason string) *Message {
}),
}
}
+
+func NewErrorSelfServiceNoMethodsAvailable() *Message {
I don't think that we should add any element specific messages here. Kratos is headless, and should only care about the messages it uses.
In the previous Ory elements version, we also had two sources of messages for translations, and had a small script to merge the two:
https://github.com/ory/elements/blob/a93569f94b252ba193658199559f944162f9b6ab/scripts/generate-locales.ts#L53-L80
I strongly suggest to not add any messages here that are not part of this codebase, as it will become a nightmare to maintain down the road.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Previously we used inline definitions, e.g. https://github.com/ory/elements/blob/a93569f94b252ba193658199559f944162f9b6ab/src/react-components/ory/user-auth-card.tsx#L131-L134 |
8ec1894
to
43b7000
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3934 +/- ##
==========================================
+ Coverage 78.23% 78.35% +0.11%
==========================================
Files 365 369 +4
Lines 25586 25967 +381
==========================================
+ Hits 20018 20347 +329
- Misses 4039 4073 +34
- Partials 1529 1547 +18 ☔ View full report in Codecov by Sentry. |
2976ede
to
50f72a4
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
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.
In my view this is good to go.
Co-authored-by: hackerman <[email protected]>
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.
Let's go 🚀
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