@ory/elements-react 0.0.0-pr.e3d2b7e1 → 0.0.0-pr.f1d09ee2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/DEVELOPMENT.md +19 -4
  3. package/README.md +253 -4
  4. package/babel.config.js +10 -0
  5. package/dist/client/frontendClient.d.mts +5 -2
  6. package/dist/client/frontendClient.d.ts +5 -2
  7. package/dist/client/frontendClient.js +25 -2
  8. package/dist/client/frontendClient.js.map +1 -1
  9. package/dist/client/frontendClient.mjs +25 -2
  10. package/dist/client/frontendClient.mjs.map +1 -1
  11. package/dist/client/index.js +3 -3
  12. package/dist/index.d.mts +60 -11
  13. package/dist/index.d.ts +60 -11
  14. package/dist/index.js +915 -346
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.mjs +918 -350
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/theme/default/index.css +187 -125
  19. package/dist/theme/default/index.css.map +1 -1
  20. package/dist/theme/default/index.d.mts +31 -5
  21. package/dist/theme/default/index.d.ts +31 -5
  22. package/dist/theme/default/index.js +4279 -828
  23. package/dist/theme/default/index.js.map +1 -1
  24. package/dist/theme/default/index.mjs +4333 -804
  25. package/dist/theme/default/index.mjs.map +1 -1
  26. package/package.json +22 -15
  27. package/tailwind/generated/default-variables.css +1 -1
  28. package/tsconfig.json +3 -2
  29. package/.storybook/global.css +0 -7
  30. package/.storybook/main.ts +0 -50
  31. package/.storybook/preview-head.html +0 -15
  32. package/.storybook/preview.tsx +0 -68
  33. package/.storybook/public/InterVariable.woff2 +0 -0
  34. package/.storybook/public/inter.css +0 -8
  35. package/.stub-responses/login/1fa/all-methods/initial-form.json +0 -245
  36. package/.stub-responses/login/1fa/all-methods/missing-email.json +0 -263
  37. package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +0 -252
  38. package/.stub-responses/login/1fa/code/code-input.json +0 -135
  39. package/.stub-responses/login/1fa/code/initial-form.json +0 -173
  40. package/.stub-responses/login/1fa/code/invalid-account.json +0 -182
  41. package/.stub-responses/login/1fa/code/missing-email.json +0 -182
  42. package/.stub-responses/login/1fa/code/wrong-credentials.json +0 -124
  43. package/.stub-responses/login/1fa/none/initial-form.json +0 -33
  44. package/.stub-responses/login/1fa/oidc/credential-select-password.json +0 -120
  45. package/.stub-responses/login/1fa/oidc/credential-select.json +0 -81
  46. package/.stub-responses/login/1fa/oidc/initial-form.json +0 -279
  47. package/.stub-responses/login/1fa/passkey/initial-form.json +0 -122
  48. package/.stub-responses/login/1fa/password/initial-form.json +0 -154
  49. package/.stub-responses/login/1fa/password/missing-email.json +0 -172
  50. package/.stub-responses/login/1fa/password/wrong-credentials.json +0 -163
  51. package/.stub-responses/login/1fa/webauthn/initial-form.json +0 -76
  52. package/.stub-responses/login/1fa/webauthn/invalid-account.json +0 -83
  53. package/.stub-responses/login/1fa/webauthn/show-trigger.json +0 -105
  54. package/.stub-responses/recovery/disabled/initial-form.json +0 -9
  55. package/.stub-responses/recovery/none/initial-form.json +0 -9
  56. package/.stub-responses/registration/one-step/all-methods/initial-form.json +0 -334
  57. package/.stub-responses/registration/one-step/all-methods/missing-fields.json +0 -343
  58. package/.stub-responses/registration/one-step/disabled/initial-form.json +0 -10
  59. package/.stub-responses/registration/one-step/none/initial-form.json +0 -14
  60. package/.stub-responses/registration/one-step/oidc/initial-form.json +0 -338
  61. package/.stub-responses/registration/one-step/passkey/initial-form.json +0 -177
  62. package/.stub-responses/registration/one-step/password/initial-form.json +0 -154
  63. package/.stub-responses/registration/one-step/password/missing-fields.json +0 -172
  64. package/.stub-responses/registration/one-step/password/second-step.json +0 -164
  65. package/.stub-responses/registration/one-step/webauthn/initial-form.json +0 -185
  66. package/.stub-responses/registration/two-step/all-methods/enter-password.json +0 -242
  67. package/.stub-responses/registration/two-step/all-methods/initial-form.json +0 -180
  68. package/.stub-responses/registration/two-step/all-methods/missing-fields.json +0 -189
  69. package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +0 -244
  70. package/.stub-responses/registration/two-step/password/enter-password.json +0 -108
  71. package/.stub-responses/registration/two-step/password/initial-form.json +0 -134
  72. package/.stub-responses/registration/two-step/password/missing-fields.json +0 -143
  73. package/.stub-responses/registration/two-step/password/password-validation-error.json +0 -110
  74. package/.stub-responses/settings/all-methods/change-password.json +0 -381
  75. package/.stub-responses/settings/all-methods/change-trait.json +0 -377
  76. package/.stub-responses/settings/all-methods/initial-form.json +0 -368
  77. package/.stub-responses/settings/oidc/with-provider.json +0 -229
  78. package/.stub-responses/settings/passkey/initial-form.json +0 -256
  79. package/.stub-responses/settings/webauthn/initial-form.json +0 -263
  80. package/.stub-responses/verification/disabled/initial-form.json +0 -9
  81. package/.stub-responses/verification/none/initial-form.json +0 -9
  82. package/stories/components/login/1fa/all.stories.ts +0 -46
  83. package/stories/components/login/1fa/code.stories.ts +0 -64
  84. package/stories/components/login/1fa/custom.stories.tsx +0 -74
  85. package/stories/components/login/1fa/none.stories.tsx +0 -28
  86. package/stories/components/login/1fa/oidc.stories.tsx +0 -140
  87. package/stories/components/login/1fa/passkey.stories.ts +0 -28
  88. package/stories/components/login/1fa/password.stories.ts +0 -46
  89. package/stories/components/login/1fa/webauthn.stories.ts +0 -46
  90. package/stories/components/registration/one-step/all-methods.stories.ts +0 -37
  91. package/stories/components/registration/one-step/password.stories.ts +0 -37
  92. package/stories/components/registration/one-step/webauthn.stories.ts +0 -28
  93. package/stories/components/registration/two-step/all-methods.stories.ts +0 -55
  94. package/stories/components/registration/two-step/password.stories.ts +0 -55
  95. package/stories/components/settings/all.stories.ts +0 -46
  96. package/stories/components/settings/oidc.stories.ts +0 -28
  97. package/stories/components/settings/passkey.stories.ts +0 -28
  98. package/stories/components/settings/webauthn.stories.ts +0 -28
  99. package/stories/pages/error.tsx +0 -29
  100. package/stories/utils.ts +0 -20
  101. package/storybook-static/InterVariable.woff2 +0 -0
  102. package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +0 -1
  103. package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +0 -595
  104. package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +0 -11
  105. package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +0 -21
  106. package/storybook-static/assets/all.stories-CtQ0yCQi.js +0 -16
  107. package/storybook-static/assets/all.stories-DgIVCzcZ.js +0 -16
  108. package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +0 -1
  109. package/storybook-static/assets/code.stories-BbEryDcA.js +0 -26
  110. package/storybook-static/assets/custom.stories-DH2zHar9.js +0 -6
  111. package/storybook-static/assets/entry-preview-CcFGVifh.js +0 -10
  112. package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +0 -54
  113. package/storybook-static/assets/iframe-C5GAfuxh.js +0 -2
  114. package/storybook-static/assets/index-BVoBHvaS.js +0 -8
  115. package/storybook-static/assets/index-CfOt2XX2.js +0 -24
  116. package/storybook-static/assets/index-DPRSEdy-.js +0 -1
  117. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  118. package/storybook-static/assets/index-FeUjBnvO.js +0 -1
  119. package/storybook-static/assets/index-uubelm5h.js +0 -9
  120. package/storybook-static/assets/initial-form-DWp_1F-f.js +0 -1
  121. package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +0 -9
  122. package/storybook-static/assets/none.stories-TAeRhzd5.js +0 -6
  123. package/storybook-static/assets/oidc.stories-CniWBy7t.js +0 -58
  124. package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +0 -6
  125. package/storybook-static/assets/passkey.stories-CBtjoVSN.js +0 -6
  126. package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +0 -6
  127. package/storybook-static/assets/password.stories-0s6cDl0o.js +0 -11
  128. package/storybook-static/assets/password.stories-B2Wtckz_.js +0 -16
  129. package/storybook-static/assets/password.stories-DX0gkWjH.js +0 -21
  130. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  131. package/storybook-static/assets/preview-BPAmP-pY.js +0 -2
  132. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  133. package/storybook-static/assets/preview-BXtF2ySE.js +0 -234
  134. package/storybook-static/assets/preview-Cur_8nCX.css +0 -1
  135. package/storybook-static/assets/preview-D77C14du.js +0 -34
  136. package/storybook-static/assets/preview-DCjDUH0w.js +0 -27
  137. package/storybook-static/assets/preview-DFmD0pui.js +0 -1
  138. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  139. package/storybook-static/assets/preview-aVwhiz9X.js +0 -1
  140. package/storybook-static/assets/react-18-CtsMCmcS.js +0 -1
  141. package/storybook-static/assets/settings-BqEFC2-V.css +0 -1
  142. package/storybook-static/assets/settings-Bx4osEmB.js +0 -2304
  143. package/storybook-static/assets/webauthn.stories-BzodmV0c.js +0 -6
  144. package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +0 -6
  145. package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +0 -16
  146. package/storybook-static/favicon.svg +0 -1
  147. package/storybook-static/iframe.html +0 -654
  148. package/storybook-static/index.html +0 -173
  149. package/storybook-static/index.json +0 -1
  150. package/storybook-static/inter.css +0 -8
  151. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  152. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  153. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  154. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  155. package/storybook-static/preview-stats.json +0 -2344
  156. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  157. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  158. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  159. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  160. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -394
  161. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  162. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  163. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  164. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  165. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  166. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  167. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  168. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  169. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  170. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -211
  171. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  172. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  173. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  174. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  175. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  176. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  177. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  178. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  179. package/storybook-static/sb-manager/globals-module-info.js +0 -1006
  180. package/storybook-static/sb-manager/globals-runtime.js +0 -54400
  181. package/storybook-static/sb-manager/globals.js +0 -48
  182. package/storybook-static/sb-manager/runtime.js +0 -12089
  183. package/storybook-static/sb-preview/globals.js +0 -33
  184. package/storybook-static/sb-preview/runtime.js +0 -9498
@@ -1,256 +0,0 @@
1
- {
2
- "id": "5893b5f4-ef16-4edb-9598-6af61e7eb72e",
3
- "type": "browser",
4
- "expires_at": "2025-02-26T09:31:53.498378Z",
5
- "issued_at": "2025-02-26T08:31:53.498378Z",
6
- "request_url": "https://adoring-lichterman-sz32ix39wl.projects.oryapis:8080/self-service/settings/browser?return_to=",
7
- "ui": {
8
- "action": "https://adoring-lichterman-sz32ix39wl.projects.oryapis:8080/self-service/settings?flow=5893b5f4-ef16-4edb-9598-6af61e7eb72e",
9
- "method": "POST",
10
- "nodes": [
11
- {
12
- "type": "input",
13
- "group": "passkey",
14
- "attributes": {
15
- "name": "passkey_register_trigger",
16
- "type": "button",
17
- "value": "",
18
- "disabled": false,
19
- "onclick": "window.oryPasskeySettingsRegistration()",
20
- "onclickTrigger": "oryPasskeySettingsRegistration",
21
- "node_type": "input"
22
- },
23
- "messages": [],
24
- "meta": {
25
- "label": {
26
- "id": 1050019,
27
- "text": "Add passkey",
28
- "type": "info"
29
- }
30
- }
31
- },
32
- {
33
- "type": "input",
34
- "group": "passkey",
35
- "attributes": {
36
- "name": "passkey_remove",
37
- "type": "submit",
38
- "value": "2101f802769288155182243725ed403957a2e9085878da81e5116eaf47a61b93",
39
- "disabled": true,
40
- "node_type": "input"
41
- },
42
- "messages": [],
43
- "meta": {
44
- "label": {
45
- "id": 1050020,
46
- "text": "Remove passkey \"unnamed\"",
47
- "type": "info",
48
- "context": {
49
- "added_at": "2025-02-26T08:31:53Z",
50
- "added_at_unix": 1740558713,
51
- "display_name": "unnamed"
52
- }
53
- }
54
- }
55
- },
56
- {
57
- "type": "input",
58
- "group": "passkey",
59
- "attributes": {
60
- "name": "passkey_settings_register",
61
- "type": "hidden",
62
- "disabled": false,
63
- "node_type": "input"
64
- },
65
- "messages": [],
66
- "meta": {}
67
- },
68
- {
69
- "type": "input",
70
- "group": "passkey",
71
- "attributes": {
72
- "name": "passkey_create_data",
73
- "type": "hidden",
74
- "value": "{\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-c4nVeNczRipV33Oz-4-tests/elements/passkey.spec.ts\\u003eGenerate passkey API responses for Ory Elements Storybook\\u003epasskey states\",\"id\":\"adoring-lichterman-sz32ix39wl.projects.oryapis\"},\"user\":{\"name\":\"dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev\",\"displayName\":\"dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev\",\"id\":\"TkxRMmpjT3dZMENxYUZxcVNxU2xDTm56d0pNaG9QMmJEM212TWFUemFDb0VUalF5OWRXMTN5eDZZbFBpNWR2Nw\"},\"challenge\":\"RJxgj9hT0zlmBsRGxU2Tzyhx2FznMm2gzx1UlsVrFT8\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":300000,\"authenticatorSelection\":{\"authenticatorAttachment\":\"platform\",\"requireResidentKey\":true,\"residentKey\":\"required\",\"userVerification\":\"preferred\"}}}",
75
- "disabled": false,
76
- "node_type": "input"
77
- },
78
- "messages": [],
79
- "meta": {}
80
- },
81
- {
82
- "type": "input",
83
- "group": "default",
84
- "attributes": {
85
- "name": "csrf_token",
86
- "type": "hidden",
87
- "value": "S4r5JZ1PM+Vg9zz1gnyvroehpeh4mteXKMO0yNH9HzLsKXGXDT14eWvDWLehi7OKNCiCw7IwmwuQK8Z5g+Cx9w==",
88
- "required": true,
89
- "disabled": false,
90
- "node_type": "input"
91
- },
92
- "messages": [],
93
- "meta": {}
94
- },
95
- {
96
- "type": "input",
97
- "group": "profile",
98
- "attributes": {
99
- "name": "traits.email",
100
- "type": "email",
101
- "value": "dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev",
102
- "required": true,
103
- "autocomplete": "email",
104
- "disabled": false,
105
- "node_type": "input"
106
- },
107
- "messages": [],
108
- "meta": {
109
- "label": {
110
- "id": 1070002,
111
- "text": "E-Mail",
112
- "type": "info",
113
- "context": {
114
- "title": "E-Mail"
115
- }
116
- }
117
- }
118
- },
119
- {
120
- "type": "input",
121
- "group": "profile",
122
- "attributes": {
123
- "name": "traits.tos",
124
- "type": "checkbox",
125
- "disabled": false,
126
- "node_type": "input"
127
- },
128
- "messages": [],
129
- "meta": {
130
- "label": {
131
- "id": 1070002,
132
- "text": "Accept the terms of service",
133
- "type": "info",
134
- "context": {
135
- "title": "Accept the terms of service"
136
- }
137
- }
138
- }
139
- },
140
- {
141
- "type": "input",
142
- "group": "profile",
143
- "attributes": {
144
- "name": "traits.phone",
145
- "type": "text",
146
- "disabled": false,
147
- "node_type": "input"
148
- },
149
- "messages": [],
150
- "meta": {
151
- "label": {
152
- "id": 1070002,
153
- "text": "Phone Number",
154
- "type": "info",
155
- "context": {
156
- "title": "Phone Number"
157
- }
158
- }
159
- }
160
- },
161
- {
162
- "type": "input",
163
- "group": "profile",
164
- "attributes": {
165
- "name": "traits.nested.name",
166
- "type": "text",
167
- "disabled": false,
168
- "node_type": "input"
169
- },
170
- "messages": [],
171
- "meta": {
172
- "label": {
173
- "id": 1070002,
174
- "text": "Name",
175
- "type": "info",
176
- "context": {
177
- "title": "Name"
178
- }
179
- }
180
- }
181
- },
182
- {
183
- "type": "input",
184
- "group": "profile",
185
- "attributes": {
186
- "name": "method",
187
- "type": "submit",
188
- "value": "profile",
189
- "disabled": false,
190
- "node_type": "input"
191
- },
192
- "messages": [],
193
- "meta": {
194
- "label": {
195
- "id": 1070003,
196
- "text": "Save",
197
- "type": "info"
198
- }
199
- }
200
- },
201
- {
202
- "type": "script",
203
- "group": "webauthn",
204
- "attributes": {
205
- "src": "https://adoring-lichterman-sz32ix39wl.projects.oryapis:8080/.well-known/ory/webauthn.js",
206
- "async": true,
207
- "referrerpolicy": "no-referrer",
208
- "crossorigin": "anonymous",
209
- "integrity": "sha512-GJndj+bkFBMHiun3qBMmFh5eeGodY/eSh8tg50xHcNEdOBCIKnlofYd2slaBTtVpyI4opfkMc/zw+nwBjGdAbw==",
210
- "type": "text/javascript",
211
- "id": "webauthn_script",
212
- "nonce": "00bdb17f-ec32-4c7d-a348-cd2bdde76dd5",
213
- "node_type": "script"
214
- },
215
- "messages": [],
216
- "meta": {}
217
- }
218
- ]
219
- },
220
- "identity": {
221
- "id": "f1f5bd3e-6a19-4cd4-b92d-f9291e93f0ce",
222
- "schema_id": "3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",
223
- "schema_url": "https://adoring-lichterman-sz32ix39wl.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",
224
- "state": "active",
225
- "state_changed_at": "2025-02-26T08:31:52.514858Z",
226
- "traits": {
227
- "email": "dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev",
228
- "nested": {}
229
- },
230
- "verifiable_addresses": [
231
- {
232
- "id": "c33a98f5-d08d-475c-8b23-d26d85512e55",
233
- "value": "dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev",
234
- "verified": false,
235
- "via": "email",
236
- "status": "sent",
237
- "created_at": "2025-02-26T08:31:52.518807Z",
238
- "updated_at": "2025-02-26T08:31:52.518807Z"
239
- }
240
- ],
241
- "recovery_addresses": [
242
- {
243
- "id": "02a2f6bc-4e96-41c4-a858-f2f797fcdb2b",
244
- "value": "dev+orycye2eda2f162daf6142dd0.jlmay2w2inb0.olunqa7k8sb@ory.dev",
245
- "via": "email",
246
- "created_at": "2025-02-26T08:31:52.52486Z",
247
- "updated_at": "2025-02-26T08:31:52.52486Z"
248
- }
249
- ],
250
- "metadata_public": null,
251
- "created_at": "2025-02-26T08:31:52.516372Z",
252
- "updated_at": "2025-02-26T08:31:52.516372Z",
253
- "organization_id": null
254
- },
255
- "state": "show_form"
256
- }
@@ -1,263 +0,0 @@
1
- {
2
- "id": "41e5afbe-35ef-4e77-ab0e-73345d461335",
3
- "type": "browser",
4
- "expires_at": "2025-02-26T09:31:59.268006Z",
5
- "issued_at": "2025-02-26T08:31:59.268006Z",
6
- "request_url": "https://ecstatic-cohen-vqvlpcrrkw.projects.oryapis:8080/self-service/settings/browser?return_to=",
7
- "ui": {
8
- "action": "https://ecstatic-cohen-vqvlpcrrkw.projects.oryapis:8080/self-service/settings?flow=41e5afbe-35ef-4e77-ab0e-73345d461335",
9
- "method": "POST",
10
- "nodes": [
11
- {
12
- "type": "input",
13
- "group": "default",
14
- "attributes": {
15
- "name": "csrf_token",
16
- "type": "hidden",
17
- "value": "BsmfkTRipaDbTB9W1YdFflqdTHQ6Tz+RACdXLZ0y9msonS/JQ+jZAP6EEWCD3ZAxVlamkYb+SouLFHK9GfiiTw==",
18
- "required": true,
19
- "disabled": false,
20
- "node_type": "input"
21
- },
22
- "messages": [],
23
- "meta": {}
24
- },
25
- {
26
- "type": "input",
27
- "group": "profile",
28
- "attributes": {
29
- "name": "traits.email",
30
- "type": "email",
31
- "value": "dev+orycye2eda2f162daf6142dd0.8e2a252998k0.nf5ru2d6xk@ory.dev",
32
- "required": true,
33
- "autocomplete": "email",
34
- "disabled": false,
35
- "node_type": "input"
36
- },
37
- "messages": [],
38
- "meta": {
39
- "label": {
40
- "id": 1070002,
41
- "text": "E-Mail",
42
- "type": "info",
43
- "context": {
44
- "title": "E-Mail"
45
- }
46
- }
47
- }
48
- },
49
- {
50
- "type": "input",
51
- "group": "profile",
52
- "attributes": {
53
- "name": "traits.tos",
54
- "type": "checkbox",
55
- "disabled": false,
56
- "node_type": "input"
57
- },
58
- "messages": [],
59
- "meta": {
60
- "label": {
61
- "id": 1070002,
62
- "text": "Accept the terms of service",
63
- "type": "info",
64
- "context": {
65
- "title": "Accept the terms of service"
66
- }
67
- }
68
- }
69
- },
70
- {
71
- "type": "input",
72
- "group": "profile",
73
- "attributes": {
74
- "name": "traits.phone",
75
- "type": "text",
76
- "disabled": false,
77
- "node_type": "input"
78
- },
79
- "messages": [],
80
- "meta": {
81
- "label": {
82
- "id": 1070002,
83
- "text": "Phone Number",
84
- "type": "info",
85
- "context": {
86
- "title": "Phone Number"
87
- }
88
- }
89
- }
90
- },
91
- {
92
- "type": "input",
93
- "group": "profile",
94
- "attributes": {
95
- "name": "traits.nested.name",
96
- "type": "text",
97
- "disabled": false,
98
- "node_type": "input"
99
- },
100
- "messages": [],
101
- "meta": {
102
- "label": {
103
- "id": 1070002,
104
- "text": "Name",
105
- "type": "info",
106
- "context": {
107
- "title": "Name"
108
- }
109
- }
110
- }
111
- },
112
- {
113
- "type": "input",
114
- "group": "profile",
115
- "attributes": {
116
- "name": "method",
117
- "type": "submit",
118
- "value": "profile",
119
- "disabled": false,
120
- "node_type": "input"
121
- },
122
- "messages": [],
123
- "meta": {
124
- "label": {
125
- "id": 1070003,
126
- "text": "Save",
127
- "type": "info"
128
- }
129
- }
130
- },
131
- {
132
- "type": "input",
133
- "group": "webauthn",
134
- "attributes": {
135
- "name": "webauthn_remove",
136
- "type": "submit",
137
- "value": "88eb11bf54e7457a6a68d9ef70aaea985a1d562a0db9e5a919249446ff923d21",
138
- "disabled": true,
139
- "node_type": "input"
140
- },
141
- "messages": [],
142
- "meta": {
143
- "label": {
144
- "id": 1050018,
145
- "text": "Remove security key \"unnamed\"",
146
- "type": "info",
147
- "context": {
148
- "added_at": "2025-02-26T08:31:58Z",
149
- "added_at_unix": 1740558718,
150
- "display_name": "unnamed"
151
- }
152
- }
153
- }
154
- },
155
- {
156
- "type": "input",
157
- "group": "webauthn",
158
- "attributes": {
159
- "name": "webauthn_register_displayname",
160
- "type": "text",
161
- "value": "",
162
- "disabled": false,
163
- "node_type": "input"
164
- },
165
- "messages": [],
166
- "meta": {
167
- "label": {
168
- "id": 1050013,
169
- "text": "Name of the security key",
170
- "type": "info"
171
- }
172
- }
173
- },
174
- {
175
- "type": "input",
176
- "group": "webauthn",
177
- "attributes": {
178
- "name": "webauthn_register",
179
- "type": "hidden",
180
- "value": "",
181
- "disabled": false,
182
- "node_type": "input"
183
- },
184
- "messages": [],
185
- "meta": {}
186
- },
187
- {
188
- "type": "input",
189
- "group": "webauthn",
190
- "attributes": {
191
- "name": "webauthn_register_trigger",
192
- "type": "button",
193
- "value": "{\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"ecstatic-cohen-vqvlpcrrkw.projects.oryapis\"},\"user\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"displayName\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"73juKtoxTs6yJ5ObQhAqbQ\"},\"challenge\":\"d_trAqmcshO34GZM4eVbb70oYNaD0bMLQ11urLUPusY\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":120000,\"authenticatorSelection\":{\"userVerification\":\"discouraged\"}}}",
194
- "disabled": false,
195
- "onclick": "window.oryWebAuthnRegistration({\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"ecstatic-cohen-vqvlpcrrkw.projects.oryapis\"},\"user\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"displayName\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-CJ8rKr1gDNg3wXiq-5-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"73juKtoxTs6yJ5ObQhAqbQ\"},\"challenge\":\"d_trAqmcshO34GZM4eVbb70oYNaD0bMLQ11urLUPusY\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":120000,\"authenticatorSelection\":{\"userVerification\":\"discouraged\"}}})",
196
- "onclickTrigger": "oryWebAuthnRegistration",
197
- "node_type": "input"
198
- },
199
- "messages": [],
200
- "meta": {
201
- "label": {
202
- "id": 1050012,
203
- "text": "Add security key",
204
- "type": "info"
205
- }
206
- }
207
- },
208
- {
209
- "type": "script",
210
- "group": "webauthn",
211
- "attributes": {
212
- "src": "https://ecstatic-cohen-vqvlpcrrkw.projects.oryapis:8080/.well-known/ory/webauthn.js",
213
- "async": true,
214
- "referrerpolicy": "no-referrer",
215
- "crossorigin": "anonymous",
216
- "integrity": "sha512-GJndj+bkFBMHiun3qBMmFh5eeGodY/eSh8tg50xHcNEdOBCIKnlofYd2slaBTtVpyI4opfkMc/zw+nwBjGdAbw==",
217
- "type": "text/javascript",
218
- "id": "webauthn_script",
219
- "nonce": "de125316-26ff-44ae-b852-5422764f6750",
220
- "node_type": "script"
221
- },
222
- "messages": [],
223
- "meta": {}
224
- }
225
- ]
226
- },
227
- "identity": {
228
- "id": "ef78ee2a-da31-4ece-b227-939b42102a6d",
229
- "schema_id": "3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",
230
- "schema_url": "https://ecstatic-cohen-vqvlpcrrkw.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",
231
- "state": "active",
232
- "state_changed_at": "2025-02-26T08:31:57.543366Z",
233
- "traits": {
234
- "email": "dev+orycye2eda2f162daf6142dd0.8e2a252998k0.nf5ru2d6xk@ory.dev",
235
- "nested": {}
236
- },
237
- "verifiable_addresses": [
238
- {
239
- "id": "c882c189-d56a-499d-ba47-59eca51bef24",
240
- "value": "dev+orycye2eda2f162daf6142dd0.8e2a252998k0.nf5ru2d6xk@ory.dev",
241
- "verified": false,
242
- "via": "email",
243
- "status": "sent",
244
- "created_at": "2025-02-26T08:31:57.547625Z",
245
- "updated_at": "2025-02-26T08:31:57.547625Z"
246
- }
247
- ],
248
- "recovery_addresses": [
249
- {
250
- "id": "ab3b3ebe-7bc6-46f9-821a-18176c102f31",
251
- "value": "dev+orycye2eda2f162daf6142dd0.8e2a252998k0.nf5ru2d6xk@ory.dev",
252
- "via": "email",
253
- "created_at": "2025-02-26T08:31:57.552676Z",
254
- "updated_at": "2025-02-26T08:31:57.552676Z"
255
- }
256
- ],
257
- "metadata_public": null,
258
- "created_at": "2025-02-26T08:31:57.544952Z",
259
- "updated_at": "2025-02-26T08:31:57.544952Z",
260
- "organization_id": null
261
- },
262
- "state": "show_form"
263
- }
@@ -1,9 +0,0 @@
1
- {
2
- "error": {
3
- "code": 400,
4
- "status": "Bad Request",
5
- "request": "ee655a16-7e8a-9965-aff2-c0764fdf88d9",
6
- "reason": "Verification is not allowed because it was disabled.",
7
- "message": "The request was malformed or contained invalid parameters"
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "error": {
3
- "code": 400,
4
- "status": "Bad Request",
5
- "request": "2b81792a-e8d1-9cd8-b16e-f2b458ee6306",
6
- "reason": "The active verification strategy code is not enabled. Please enable it in the configuration.",
7
- "message": "The request was malformed or contained invalid parameters"
8
- }
9
- }
@@ -1,46 +0,0 @@
1
- // Copyright © 2024 Ory Corp
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { LoginFlowFromJSON } from "@ory/client-fetch"
5
- import type { Meta, StoryObj } from "@storybook/react"
6
- import { config } from "../../../utils"
7
- import { Login } from "../../../../src/theme/default"
8
-
9
- const meta = {
10
- title: "Ory Elements/First Factor Login/Methods/Everything",
11
- component: Login,
12
- parameters: {
13
- layout: "centered",
14
- },
15
- } satisfies Meta<typeof Login>
16
-
17
- export default meta
18
-
19
- type Story = StoryObj<typeof meta>
20
-
21
- export const ShowForm: Story = {
22
- args: {
23
- flow: LoginFlowFromJSON(
24
- require("$snapshots/login/1fa/all-methods/initial-form.json"),
25
- ),
26
- config,
27
- },
28
- }
29
-
30
- export const ValidationMissingFields: Story = {
31
- args: {
32
- flow: LoginFlowFromJSON(
33
- require("$snapshots/login/1fa/all-methods/missing-email.json"),
34
- ),
35
- config,
36
- },
37
- }
38
-
39
- export const ValidationIncorrectCredentials: Story = {
40
- args: {
41
- flow: LoginFlowFromJSON(
42
- require("$snapshots/login/1fa/all-methods/wrong-credentials.json"),
43
- ),
44
- config,
45
- },
46
- }
@@ -1,64 +0,0 @@
1
- // Copyright © 2024 Ory Corp
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { LoginFlowFromJSON } from "@ory/client-fetch"
5
- import type { Meta, StoryObj } from "@storybook/react"
6
- import { config } from "../../../utils"
7
- import { Login } from "../../../../src/theme/default"
8
-
9
- const meta = {
10
- title: "Ory Elements/First Factor Login/Methods/Code",
11
- component: Login,
12
- parameters: {
13
- layout: "centered",
14
- },
15
- } satisfies Meta<typeof Login>
16
-
17
- export default meta
18
-
19
- type Story = StoryObj<typeof meta>
20
-
21
- export const ShowForm: Story = {
22
- args: {
23
- flow: LoginFlowFromJSON(
24
- require("$snapshots/login/1fa/code/initial-form.json"),
25
- ),
26
- config,
27
- },
28
- }
29
-
30
- export const ValidationMissingFields: Story = {
31
- args: {
32
- flow: LoginFlowFromJSON(
33
- require("$snapshots/login/1fa/code/missing-email.json"),
34
- ),
35
- config,
36
- },
37
- }
38
-
39
- export const ValidationInvalidAccount: Story = {
40
- args: {
41
- flow: LoginFlowFromJSON(
42
- require("$snapshots/login/1fa/code/invalid-account.json"),
43
- ),
44
- config,
45
- },
46
- }
47
-
48
- export const CodeInput: Story = {
49
- args: {
50
- flow: LoginFlowFromJSON(
51
- require("$snapshots/login/1fa/code/code-input.json"),
52
- ),
53
- config,
54
- },
55
- }
56
-
57
- export const ValidationIncorrectCode: Story = {
58
- args: {
59
- flow: LoginFlowFromJSON(
60
- require("$snapshots/login/1fa/code/wrong-credentials.json"),
61
- ),
62
- config,
63
- },
64
- }