@owlmeans/client-auth 0.1.18-rc.4 → 0.1.18-rc.41

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 (180) hide show
  1. package/README.md +280 -37
  2. package/agent-meta/manifest.json +2 -2
  3. package/agent-meta/skills/client-auth/SKILL.md +139 -21
  4. package/build/components/dispatcher/component.d.ts.map +1 -1
  5. package/build/components/dispatcher/component.js +14 -3
  6. package/build/components/dispatcher/component.js.map +1 -1
  7. package/build/entrypoints.d.ts +7 -0
  8. package/build/entrypoints.d.ts.map +1 -0
  9. package/build/entrypoints.js +7 -0
  10. package/build/entrypoints.js.map +1 -0
  11. package/build/helper.d.ts +2 -1
  12. package/build/helper.d.ts.map +1 -1
  13. package/build/helper.js +24 -3
  14. package/build/helper.js.map +1 -1
  15. package/build/index.d.ts +1 -1
  16. package/build/index.d.ts.map +1 -1
  17. package/build/index.js +1 -1
  18. package/build/index.js.map +1 -1
  19. package/build/login/adopt.d.ts +24 -0
  20. package/build/login/adopt.d.ts.map +1 -0
  21. package/build/login/adopt.js +28 -0
  22. package/build/login/adopt.js.map +1 -0
  23. package/build/login/consts.d.ts +49 -0
  24. package/build/login/consts.d.ts.map +1 -0
  25. package/build/login/consts.js +49 -0
  26. package/build/login/consts.js.map +1 -0
  27. package/build/login/credit.d.ts +24 -0
  28. package/build/login/credit.d.ts.map +1 -0
  29. package/build/login/credit.js +58 -0
  30. package/build/login/credit.js.map +1 -0
  31. package/build/login/env.d.ts +32 -0
  32. package/build/login/env.d.ts.map +1 -0
  33. package/build/login/env.js +84 -0
  34. package/build/login/env.js.map +1 -0
  35. package/build/login/flow.d.ts +20 -0
  36. package/build/login/flow.d.ts.map +1 -0
  37. package/build/login/flow.js +39 -0
  38. package/build/login/flow.js.map +1 -0
  39. package/build/login/hook.d.ts +37 -0
  40. package/build/login/hook.d.ts.map +1 -0
  41. package/build/login/hook.js +72 -0
  42. package/build/login/hook.js.map +1 -0
  43. package/build/login/i18n/be.json +37 -0
  44. package/build/login/i18n/de.json +37 -0
  45. package/build/login/i18n/en.json +37 -0
  46. package/build/login/i18n/es.json +37 -0
  47. package/build/login/i18n/fr.json +37 -0
  48. package/build/login/i18n/pl.json +37 -0
  49. package/build/login/i18n/ru.json +37 -0
  50. package/build/login/i18n/uk.json +37 -0
  51. package/build/login/i18n.d.ts +2 -0
  52. package/build/login/i18n.d.ts.map +1 -0
  53. package/build/login/i18n.js +27 -0
  54. package/build/login/i18n.js.map +1 -0
  55. package/build/login/index.d.ts +15 -0
  56. package/build/login/index.d.ts.map +1 -0
  57. package/build/login/index.js +15 -0
  58. package/build/login/index.js.map +1 -0
  59. package/build/login/methods.d.ts +25 -0
  60. package/build/login/methods.d.ts.map +1 -0
  61. package/build/login/methods.js +97 -0
  62. package/build/login/methods.js.map +1 -0
  63. package/build/login/resume.d.ts +30 -0
  64. package/build/login/resume.d.ts.map +1 -0
  65. package/build/login/resume.js +57 -0
  66. package/build/login/resume.js.map +1 -0
  67. package/build/login/screen.d.ts +17 -0
  68. package/build/login/screen.d.ts.map +1 -0
  69. package/build/login/screen.js +76 -0
  70. package/build/login/screen.js.map +1 -0
  71. package/build/login/service.d.ts +31 -0
  72. package/build/login/service.d.ts.map +1 -0
  73. package/build/login/service.js +148 -0
  74. package/build/login/service.js.map +1 -0
  75. package/build/login/surrogate.d.ts +20 -0
  76. package/build/login/surrogate.d.ts.map +1 -0
  77. package/build/login/surrogate.js +33 -0
  78. package/build/login/surrogate.js.map +1 -0
  79. package/build/login/terms.d.ts +20 -0
  80. package/build/login/terms.d.ts.map +1 -0
  81. package/build/login/terms.js +0 -0
  82. package/build/login/terms.js.map +1 -0
  83. package/build/login/types.d.ts +256 -0
  84. package/build/login/types.d.ts.map +1 -0
  85. package/build/login/types.js +31 -0
  86. package/build/login/types.js.map +1 -0
  87. package/build/manager/components/authentication/control.js +3 -3
  88. package/build/manager/components/authentication/control.js.map +1 -1
  89. package/build/manager/components/authentication/types.d.ts +2 -2
  90. package/build/manager/components/authentication/types.d.ts.map +1 -1
  91. package/build/manager/components/tunnel-consumer.js +2 -2
  92. package/build/manager/components/tunnel-consumer.js.map +1 -1
  93. package/build/manager/entrypoints.d.ts +11 -0
  94. package/build/manager/entrypoints.d.ts.map +1 -0
  95. package/build/manager/entrypoints.js +17 -0
  96. package/build/manager/entrypoints.js.map +1 -0
  97. package/build/manager/plugins/basic-ed25519.d.ts.map +1 -1
  98. package/build/manager/plugins/basic-ed25519.js +5 -0
  99. package/build/manager/plugins/basic-ed25519.js.map +1 -1
  100. package/build/manager/plugins/exports.d.ts +2 -0
  101. package/build/manager/plugins/exports.d.ts.map +1 -1
  102. package/build/manager/plugins/exports.js +2 -0
  103. package/build/manager/plugins/exports.js.map +1 -1
  104. package/build/manager/plugins/index.d.ts +1 -5
  105. package/build/manager/plugins/index.d.ts.map +1 -1
  106. package/build/manager/plugins/index.js +9 -1
  107. package/build/manager/plugins/index.js.map +1 -1
  108. package/build/manager/plugins/methods.d.ts +6 -0
  109. package/build/manager/plugins/methods.d.ts.map +1 -0
  110. package/build/manager/plugins/methods.js +65 -0
  111. package/build/manager/plugins/methods.js.map +1 -0
  112. package/build/manager/plugins/re-captcha.d.ts.map +1 -1
  113. package/build/manager/plugins/re-captcha.js +5 -0
  114. package/build/manager/plugins/re-captcha.js.map +1 -1
  115. package/build/manager/plugins/registry.d.ts +20 -0
  116. package/build/manager/plugins/registry.d.ts.map +1 -0
  117. package/build/manager/plugins/registry.js +19 -0
  118. package/build/manager/plugins/registry.js.map +1 -0
  119. package/build/manager/plugins/tunnel-consumer.d.ts.map +1 -1
  120. package/build/manager/plugins/tunnel-consumer.js +8 -1
  121. package/build/manager/plugins/tunnel-consumer.js.map +1 -1
  122. package/build/manager/plugins/types.d.ts +53 -0
  123. package/build/manager/plugins/types.d.ts.map +1 -1
  124. package/build/service.js +1 -1
  125. package/build/service.js.map +1 -1
  126. package/package.json +36 -27
  127. package/src/components/dispatcher/component.tsx +16 -3
  128. package/src/entrypoints.ts +10 -0
  129. package/src/helper.ts +26 -3
  130. package/src/index.ts +1 -1
  131. package/src/login/adopt.ts +31 -0
  132. package/src/login/consts.ts +64 -0
  133. package/src/login/credit.ts +75 -0
  134. package/src/login/env.ts +86 -0
  135. package/src/login/flow.ts +44 -0
  136. package/src/login/hook.ts +80 -0
  137. package/src/login/i18n/be.json +37 -0
  138. package/src/login/i18n/de.json +37 -0
  139. package/src/login/i18n/en.json +37 -0
  140. package/src/login/i18n/es.json +37 -0
  141. package/src/login/i18n/fr.json +37 -0
  142. package/src/login/i18n/pl.json +37 -0
  143. package/src/login/i18n/ru.json +37 -0
  144. package/src/login/i18n/uk.json +37 -0
  145. package/src/login/i18n.ts +28 -0
  146. package/src/login/index.ts +15 -0
  147. package/src/login/methods.ts +113 -0
  148. package/src/login/resume.ts +58 -0
  149. package/src/login/screen.tsx +136 -0
  150. package/src/login/service.ts +195 -0
  151. package/src/login/surrogate.ts +45 -0
  152. package/src/login/terms.ts +0 -0
  153. package/src/login/types.ts +279 -0
  154. package/src/manager/README.md +37 -80
  155. package/src/manager/components/authentication/control.ts +3 -3
  156. package/src/manager/components/authentication/types.ts +2 -2
  157. package/src/manager/components/tunnel-consumer.tsx +2 -2
  158. package/src/manager/entrypoints.ts +18 -0
  159. package/src/manager/plugins/basic-ed25519.tsx +7 -0
  160. package/src/manager/plugins/exports.ts +2 -0
  161. package/src/manager/plugins/index.ts +10 -4
  162. package/src/manager/plugins/methods.ts +74 -0
  163. package/src/manager/plugins/re-captcha.tsx +7 -0
  164. package/src/manager/plugins/registry.ts +26 -0
  165. package/src/manager/plugins/tunnel-consumer.tsx +10 -1
  166. package/src/manager/plugins/types.ts +54 -0
  167. package/src/service.ts +1 -1
  168. package/tests/context.ts +1 -2
  169. package/tests/login.spec.ts +332 -0
  170. package/build/.gitkeep +0 -0
  171. package/build/manager/modules.d.ts +0 -2
  172. package/build/manager/modules.d.ts.map +0 -1
  173. package/build/manager/modules.js +0 -16
  174. package/build/manager/modules.js.map +0 -1
  175. package/build/modules.d.ts +0 -4
  176. package/build/modules.d.ts.map +0 -1
  177. package/build/modules.js +0 -9
  178. package/build/modules.js.map +0 -1
  179. package/src/manager/modules.ts +0 -18
  180. package/src/modules.ts +0 -13
@@ -0,0 +1,86 @@
1
+ import { LOGIN_SURROGATE_MARKER, LOGIN_SURROGATE_NAME } from './consts.js'
2
+ import type { LoginEnv } from './types.js'
3
+
4
+ /**
5
+ * Whether this document is embedded in a frame.
6
+ *
7
+ * Reading `window.top` across origins throws, and that throw is itself the answer: a `top` that
8
+ * differs and a `top` that cannot be reached both mean "framed".
9
+ */
10
+ export const isEmbedded = (): boolean => {
11
+ try {
12
+ return window.self !== window.top
13
+ } catch {
14
+ return true
15
+ }
16
+ }
17
+
18
+ /**
19
+ * Record that this window is the surrogate login window, while that is still knowable.
20
+ *
21
+ * Must run on the surrogate's **first** load, before the flow navigates to the provider:
22
+ * `window.name` is the only evidence at that point, and browsers clear it as soon as a top-level
23
+ * context goes cross-origin — so by the time the provider redirects back, the name is gone and
24
+ * this window would look like an ordinary tab.
25
+ *
26
+ * Idempotent, and a no-op in every window that is not the surrogate.
27
+ */
28
+ export const markSurrogate = (): void => {
29
+ if (typeof window === 'undefined' || window.name !== LOGIN_SURROGATE_NAME) {
30
+ return
31
+ }
32
+ try {
33
+ window.sessionStorage.setItem(LOGIN_SURROGATE_MARKER, '1')
34
+ } catch {
35
+ // Storage can be unavailable (private modes, blocked cookies). The `window.name` check still
36
+ // covers the case where nothing cross-origin happened in between.
37
+ }
38
+ }
39
+
40
+ /** Whether this document is the surrogate login window. */
41
+ export const isSurrogate = (): boolean => {
42
+ if (typeof window === 'undefined') {
43
+ return false
44
+ }
45
+ if (window.name === LOGIN_SURROGATE_NAME) {
46
+ return true
47
+ }
48
+ try {
49
+ return window.sessionStorage.getItem(LOGIN_SURROGATE_MARKER) === '1'
50
+ } catch {
51
+ return false
52
+ }
53
+ }
54
+
55
+ /** Forget the surrogate marker — called once its token has been handed back. */
56
+ export const clearSurrogate = (): void => {
57
+ if (typeof window === 'undefined') {
58
+ return
59
+ }
60
+ try {
61
+ window.sessionStorage.removeItem(LOGIN_SURROGATE_MARKER)
62
+ } catch { /* nothing to clean up if storage was never available */ }
63
+ }
64
+
65
+ /**
66
+ * Default login environment.
67
+ *
68
+ * The single source of environment truth for cascade selection — a plugin's `match` reads this
69
+ * and never probes `window` itself, so a non-DOM host can drive the same plugins by supplying its
70
+ * own descriptor.
71
+ */
72
+ export const defaultLoginEnv = (): LoginEnv => {
73
+ const hasWindow = typeof window !== 'undefined'
74
+ if (!hasWindow) {
75
+ return { hasWindow, embedded: false, surrogate: false, hasOpener: false }
76
+ }
77
+
78
+ return {
79
+ hasWindow,
80
+ embedded: isEmbedded(),
81
+ surrogate: isSurrogate(),
82
+ // `Cross-Origin-Opener-Policy: same-origin` from the provider severs this permanently, which
83
+ // is why it is observed rather than assumed from "we were opened by someone".
84
+ hasOpener: window.opener != null,
85
+ }
86
+ }
@@ -0,0 +1,44 @@
1
+ import { FLOW_PLACEHOLDER, OidcAuthStep, STD_OIDC_FLOW } from '@owlmeans/flow'
2
+ import type { FlowModel } from '@owlmeans/flow'
3
+ import { DEFAULT_ENTITY } from '../consts.js'
4
+
5
+ /**
6
+ * Bring a freshly booted standard OIDC flow to the step an authorization request can be made from.
7
+ *
8
+ * `stdOidcFlow` starts at `Dispatch`, but `OidcAuthService.authenticate` refuses any state that is
9
+ * not `Ephemeral` and returns null — so an application whose flow was only booted can ask for an
10
+ * authorization URL all day and be told nothing, forever. The dispatcher in this package has always
11
+ * done this transition inline; a relying party that replaces that dispatcher (`web-oidc-rp`,
12
+ * `mui-oidc-rp`) inherited the requirement without the code, which is what left a sign-in button
13
+ * that reported no error and did nothing at all.
14
+ *
15
+ * `Ephemeral` is the branch for an application that is its OWN authority — its flow configuration
16
+ * maps the auth service to a placeholder, which is exactly the generated-application case. An app
17
+ * federated with a real auth service keeps its target and is left alone.
18
+ *
19
+ * Idempotent, and safe to call on every attempt: a flow already past `Dispatch`, or one that is
20
+ * not the standard OIDC flow at all, is returned untouched.
21
+ */
22
+ export const enterOidcAuthorization = (model: FlowModel): FlowModel => {
23
+ const state = model.state()
24
+ if (state.flow !== STD_OIDC_FLOW || state.step !== OidcAuthStep.Dispatch) {
25
+ return model
26
+ }
27
+
28
+ const target = model.step().service
29
+ if (state.service == null || state.service === '') {
30
+ model.target(target)
31
+ }
32
+
33
+ // The entity travels to this app's own backend, which resolves its default provider by `def`
34
+ // alone. It still has to BE there: the init endpoint rejects a body without one.
35
+ if (state.entityId == null) {
36
+ model.entity(DEFAULT_ENTITY)
37
+ }
38
+
39
+ if (target === FLOW_PLACEHOLDER) {
40
+ model.transit(OidcAuthStep.Ephemeral, true)
41
+ }
42
+
43
+ return model
44
+ }
@@ -0,0 +1,80 @@
1
+ import { useCallback } from 'react'
2
+ import type { MouseEvent } from 'react'
3
+ import { useContext, useNavigate } from '@owlmeans/client'
4
+ import type { ClientContext } from '@owlmeans/client-context'
5
+ import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'
6
+ import { DISPATCHER } from '@owlmeans/auth'
7
+ import type { LoginContext, LoginService } from './types.js'
8
+ import { LoginIntent } from './types.js'
9
+ import { LOGIN_SERVICE } from './consts.js'
10
+ import { surrogatePath } from './surrogate.js'
11
+
12
+ /**
13
+ * Wiring for a "Log in" control: where it points, and what it does when clicked.
14
+ *
15
+ * The caller renders one control and attaches one handler — which browsing context the flow can
16
+ * actually complete in is the login service's problem, not the app's. An ordinary tab redirects;
17
+ * an app embedded in a frame runs the flow one window up, because the provider refuses to be
18
+ * framed and its cookies are third-party there.
19
+ *
20
+ * The returned handler is deliberately NOT async and awaits nothing before delegating: a window
21
+ * opened after the user gesture has finished being handled is eaten by the popup blocker.
22
+ *
23
+ * The dispatcher entrypoint is resolved INSIDE the hook, never at module scope. Module bodies run
24
+ * while the app is still being imported, before `registerEntrypoints` has put anything on the
25
+ * context, and a top-level lookup throws `Entrypoint dispatcher not found` — which escapes during
26
+ * import, takes the whole render down, and paints an empty page with no component at fault.
27
+ */
28
+ export const useLogin = (target?: string): readonly [string, (event?: MouseEvent) => void] => {
29
+ const context = useContext() as unknown as ClientContext
30
+ const nav = useNavigate()
31
+ const dispatcher = context.entrypoint<ClientEntrypoint>(DISPATCHER)
32
+ const path = dispatcher.path()
33
+
34
+ const onLogin = useCallback((event?: MouseEvent) => {
35
+ event?.preventDefault()
36
+ const login = context.service<LoginService>(LOGIN_SERVICE)
37
+ void login.begin({
38
+ url: path,
39
+ target,
40
+ // Only a component may call `useNavigate`, so the in-app continuation is handed to the
41
+ // plugin rather than reinvented by it.
42
+ navigate: () => { nav.go(target ?? DISPATCHER) },
43
+ })
44
+ }, [context, path, target])
45
+
46
+ return [path, onLogin] as const
47
+ }
48
+
49
+ /**
50
+ * Wiring for a "Log out" control.
51
+ *
52
+ * One control, one handler, no decision — the mirror of {@link useLogin}. Where the session has to
53
+ * be ended (here, or one window up in a surrogate whose storage partition this document cannot
54
+ * reach) is the login plugin's call.
55
+ *
56
+ * NOT async, and nothing is awaited before delegating: logging out of a framed application opens a
57
+ * window, and a window opened after the gesture has finished being handled is eaten by the popup
58
+ * blocker. The surrogate entrypoint is resolved INSIDE the hook for the same reason `useLogin`
59
+ * resolves the dispatcher there.
60
+ *
61
+ * The return shape stays a bare handler rather than `useLogin`'s tuple: a logout control has no
62
+ * address to point at, and every generated application carries a copy of a component that writes
63
+ * `const onLogOut = useLogout()`. `(event?: MouseEvent) => void` is assignable to `() => void`, so
64
+ * `onClick={onLogOut}` keeps compiling everywhere.
65
+ */
66
+ export const useLogout = (target?: string): ((event?: MouseEvent) => void) => {
67
+ const context = useContext() as unknown as ClientContext
68
+ const nav = useNavigate()
69
+ const path = surrogatePath(context as unknown as LoginContext, { intent: LoginIntent.Logout })
70
+
71
+ return useCallback((event?: MouseEvent) => {
72
+ event?.preventDefault()
73
+ const login = context.service<LoginService>(LOGIN_SERVICE)
74
+ void login.logout({
75
+ // An application whose entrypoint list predates the surrogate route logs out in place.
76
+ url: path ?? '',
77
+ ...(target != null ? { navigate: () => { nav.go(target) } } : {}),
78
+ })
79
+ }, [context, path, target])
80
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Уваход",
4
+ "subtitle": "Абярыце спосаб уваходу.",
5
+ "busy": "Адкрываем акно ўваходу…",
6
+ "empty": "Для гэтай праграмы не наладжаны ніводзін спосаб уваходу.",
7
+ "method": {
8
+ "google": "Працягнуць з Google",
9
+ "oidc": "Працягнуць з {{provider}}",
10
+ "oidc-default": "Увайсці / Зарэгістравацца",
11
+ "oidc-client": "Працягнуць з {{provider}}",
12
+ "basic-ed25519": "Увайсці з ключом",
13
+ "pk-supervisor": "Сакрэтны ключ (аператар)",
14
+ "wallet-consumer": "Гаманец OwlMeans ID",
15
+ "one-time-token": "Увайсці па кодзе з ліста",
16
+ "fallback": "Працягнуць з {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "Я прачытаў(-ла) і прымаю {{terms}} і {{privacy}}.",
20
+ "terms": "Умовы карыстання",
21
+ "privacy": "Палітыку прыватнасці",
22
+ "cookies": "Палітыку файлаў cookie",
23
+ "required": "Каб працягнуць, пацвердзіце Умовы карыстання і Палітыку прыватнасці."
24
+ },
25
+ "consent": {
26
+ "required": "Уваход захоўвае сеансавы файл cookie. Прыміце неабходныя файлы cookie, каб працягнуць."
27
+ },
28
+ "credit": {
29
+ "powered": "Працуе на OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Уваход не завершаны. Паспрабуйце яшчэ раз.",
33
+ "blocked": "Акно ўваходу заблакавана. Націсніце значок заблакаванага ўсплывальнага акна ў адрасным радку браўзера, каб адкрыць яго."
34
+ },
35
+ "orphaned": "Уваход выкананы. Можаце закрыць гэтае акно і вярнуцца ў праграму."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Anmelden",
4
+ "subtitle": "Wählen Sie, wie Sie fortfahren möchten.",
5
+ "busy": "Anmeldung wird geöffnet…",
6
+ "empty": "Für diese Anwendung ist keine Anmeldemethode konfiguriert.",
7
+ "method": {
8
+ "google": "Mit Google fortfahren",
9
+ "oidc": "Mit {{provider}} fortfahren",
10
+ "oidc-default": "Anmelden / Registrieren",
11
+ "oidc-client": "Mit {{provider}} fortfahren",
12
+ "basic-ed25519": "Mit einem Schlüssel anmelden",
13
+ "pk-supervisor": "Geheimer Schlüssel (Betreiber)",
14
+ "wallet-consumer": "OwlMeans-ID-Wallet",
15
+ "one-time-token": "Mit einem E-Mail-Code anmelden",
16
+ "fallback": "Mit {{method}} fortfahren"
17
+ },
18
+ "terms": {
19
+ "agreement": "Ich habe die {{terms}} und die {{privacy}} gelesen und stimme ihnen zu.",
20
+ "terms": "Allgemeinen Geschäftsbedingungen",
21
+ "privacy": "Datenschutzerklärung",
22
+ "cookies": "Cookie-Richtlinie",
23
+ "required": "Bitte bestätigen Sie die Allgemeinen Geschäftsbedingungen und die Datenschutzerklärung, um fortzufahren."
24
+ },
25
+ "consent": {
26
+ "required": "Bei der Anmeldung wird ein Sitzungs-Cookie gespeichert. Akzeptieren Sie die notwendigen Cookies, um fortzufahren."
27
+ },
28
+ "credit": {
29
+ "powered": "Betrieben mit OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Die Anmeldung wurde nicht abgeschlossen. Bitte versuchen Sie es erneut.",
33
+ "blocked": "Das Anmeldefenster wurde blockiert. Klicken Sie auf das Symbol für blockierte Pop-ups in der Adressleiste Ihres Browsers, um es zu öffnen."
34
+ },
35
+ "orphaned": "Angemeldet. Sie können dieses Fenster schließen und in der Anwendung fortfahren."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Sign in",
4
+ "subtitle": "Choose how you would like to continue.",
5
+ "busy": "Opening sign-in…",
6
+ "empty": "No sign-in method is configured for this application.",
7
+ "method": {
8
+ "google": "Continue with Google",
9
+ "oidc": "Continue with {{provider}}",
10
+ "oidc-default": "Sign in / Sign up",
11
+ "oidc-client": "Continue with {{provider}}",
12
+ "basic-ed25519": "Sign in with a key",
13
+ "pk-supervisor": "Secret key (operator)",
14
+ "wallet-consumer": "OwlMeans ID wallet",
15
+ "one-time-token": "Sign in with an email code",
16
+ "fallback": "Continue with {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "I have read and agree to the {{terms}} and the {{privacy}}.",
20
+ "terms": "Terms & Conditions",
21
+ "privacy": "Privacy Policy",
22
+ "cookies": "Cookie Policy",
23
+ "required": "Please confirm the Terms & Conditions and the Privacy Policy to continue."
24
+ },
25
+ "consent": {
26
+ "required": "Signing in stores a session cookie. Accept essential cookies to continue."
27
+ },
28
+ "credit": {
29
+ "powered": "Powered by OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Sign-in did not complete. Please try again.",
33
+ "blocked": "The sign-in window was blocked. Click the blocked pop-up icon in your browser's address bar to open it."
34
+ },
35
+ "orphaned": "Signed in. You can close this window and continue in the application."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Iniciar sesión",
4
+ "subtitle": "Elige cómo quieres continuar.",
5
+ "busy": "Abriendo el inicio de sesión…",
6
+ "empty": "No hay ningún método de inicio de sesión configurado para esta aplicación.",
7
+ "method": {
8
+ "google": "Continuar con Google",
9
+ "oidc": "Continuar con {{provider}}",
10
+ "oidc-default": "Iniciar sesión / Registrarse",
11
+ "oidc-client": "Continuar con {{provider}}",
12
+ "basic-ed25519": "Iniciar sesión con una clave",
13
+ "pk-supervisor": "Clave secreta (operador)",
14
+ "wallet-consumer": "Cartera OwlMeans ID",
15
+ "one-time-token": "Iniciar sesión con un código por correo",
16
+ "fallback": "Continuar con {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "He leído y acepto los {{terms}} y la {{privacy}}.",
20
+ "terms": "Términos y Condiciones",
21
+ "privacy": "Política de Privacidad",
22
+ "cookies": "Política de Cookies",
23
+ "required": "Confirma los Términos y Condiciones y la Política de Privacidad para continuar."
24
+ },
25
+ "consent": {
26
+ "required": "Iniciar sesión guarda una cookie de sesión. Acepta las cookies esenciales para continuar."
27
+ },
28
+ "credit": {
29
+ "powered": "Con tecnología de OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "El inicio de sesión no se completó. Inténtalo de nuevo.",
33
+ "blocked": "Se bloqueó la ventana de inicio de sesión. Haz clic en el icono de ventana emergente bloqueada en la barra de direcciones del navegador para abrirla."
34
+ },
35
+ "orphaned": "Sesión iniciada. Puedes cerrar esta ventana y continuar en la aplicación."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Connexion",
4
+ "subtitle": "Choisissez comment continuer.",
5
+ "busy": "Ouverture de la connexion…",
6
+ "empty": "Aucune méthode de connexion n’est configurée pour cette application.",
7
+ "method": {
8
+ "google": "Continuer avec Google",
9
+ "oidc": "Continuer avec {{provider}}",
10
+ "oidc-default": "Connexion / Inscription",
11
+ "oidc-client": "Continuer avec {{provider}}",
12
+ "basic-ed25519": "Se connecter avec une clé",
13
+ "pk-supervisor": "Clé secrète (opérateur)",
14
+ "wallet-consumer": "Portefeuille d’identité OwlMeans",
15
+ "one-time-token": "Se connecter avec un code e-mail",
16
+ "fallback": "Continuer avec {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "J’ai lu et j’accepte les {{terms}} et la {{privacy}}.",
20
+ "terms": "conditions générales",
21
+ "privacy": "politique de confidentialité",
22
+ "cookies": "Politique relative aux cookies",
23
+ "required": "Confirmez les conditions générales et la politique de confidentialité pour continuer."
24
+ },
25
+ "consent": {
26
+ "required": "La connexion enregistre un cookie de session. Acceptez les cookies essentiels pour continuer."
27
+ },
28
+ "credit": {
29
+ "powered": "Propulsé par OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "La connexion n’a pas abouti. Réessayez.",
33
+ "blocked": "La fenêtre de connexion a été bloquée. Cliquez sur l’icône de fenêtre contextuelle bloquée dans la barre d’adresse pour l’ouvrir."
34
+ },
35
+ "orphaned": "Vous êtes connecté. Vous pouvez fermer cette fenêtre et continuer dans l’application."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Zaloguj się",
4
+ "subtitle": "Wybierz sposób, w jaki chcesz kontynuować.",
5
+ "busy": "Otwieranie logowania…",
6
+ "empty": "Dla tej aplikacji nie skonfigurowano żadnej metody logowania.",
7
+ "method": {
8
+ "google": "Kontynuuj z Google",
9
+ "oidc": "Kontynuuj z {{provider}}",
10
+ "oidc-default": "Zaloguj się / Zarejestruj się",
11
+ "oidc-client": "Kontynuuj z {{provider}}",
12
+ "basic-ed25519": "Zaloguj się kluczem",
13
+ "pk-supervisor": "Klucz tajny (operator)",
14
+ "wallet-consumer": "Portfel OwlMeans ID",
15
+ "one-time-token": "Zaloguj się kodem e-mail",
16
+ "fallback": "Kontynuuj z {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "Przeczytałem(-am) i akceptuję {{terms}} oraz {{privacy}}.",
20
+ "terms": "Regulamin",
21
+ "privacy": "Politykę prywatności",
22
+ "cookies": "Politykę plików cookie",
23
+ "required": "Aby kontynuować, potwierdź Regulamin i Politykę prywatności."
24
+ },
25
+ "consent": {
26
+ "required": "Logowanie zapisuje plik cookie sesji. Zaakceptuj niezbędne pliki cookie, aby kontynuować."
27
+ },
28
+ "credit": {
29
+ "powered": "Napędzane przez OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Logowanie nie zostało ukończone. Spróbuj ponownie.",
33
+ "blocked": "Okno logowania zostało zablokowane. Kliknij ikonę zablokowanego okienka w pasku adresu przeglądarki, aby je otworzyć."
34
+ },
35
+ "orphaned": "Zalogowano. Możesz zamknąć to okno i kontynuować w aplikacji."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Вход",
4
+ "subtitle": "Выберите способ входа.",
5
+ "busy": "Открываем окно входа…",
6
+ "empty": "Для этого приложения не настроен ни один способ входа.",
7
+ "method": {
8
+ "google": "Продолжить с Google",
9
+ "oidc": "Продолжить с {{provider}}",
10
+ "oidc-default": "Войти / Зарегистрироваться",
11
+ "oidc-client": "Продолжить с {{provider}}",
12
+ "basic-ed25519": "Войти с ключом",
13
+ "pk-supervisor": "Секретный ключ (оператор)",
14
+ "wallet-consumer": "Кошелёк OwlMeans ID",
15
+ "one-time-token": "Войти по коду из письма",
16
+ "fallback": "Продолжить с {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "Я прочитал(а) и принимаю {{terms}} и {{privacy}}.",
20
+ "terms": "Условия использования",
21
+ "privacy": "Политику конфиденциальности",
22
+ "cookies": "Политику файлов cookie",
23
+ "required": "Чтобы продолжить, подтвердите Условия использования и Политику конфиденциальности."
24
+ },
25
+ "consent": {
26
+ "required": "Вход сохраняет сессионный файл cookie. Примите необходимые файлы cookie, чтобы продолжить."
27
+ },
28
+ "credit": {
29
+ "powered": "Работает на OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Вход не завершён. Попробуйте ещё раз.",
33
+ "blocked": "Окно входа заблокировано. Нажмите на значок заблокированного всплывающего окна в адресной строке браузера, чтобы открыть его."
34
+ },
35
+ "orphaned": "Вход выполнен. Можете закрыть это окно и вернуться в приложение."
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "login": {
3
+ "title": "Вхід",
4
+ "subtitle": "Оберіть спосіб входу.",
5
+ "busy": "Відкриваємо вікно входу…",
6
+ "empty": "Для цього застосунку не налаштовано жодного способу входу.",
7
+ "method": {
8
+ "google": "Продовжити з Google",
9
+ "oidc": "Продовжити з {{provider}}",
10
+ "oidc-default": "Увійти / Зареєструватися",
11
+ "oidc-client": "Продовжити з {{provider}}",
12
+ "basic-ed25519": "Увійти з ключем",
13
+ "pk-supervisor": "Секретний ключ (оператор)",
14
+ "wallet-consumer": "Гаманець OwlMeans ID",
15
+ "one-time-token": "Увійти за кодом з листа",
16
+ "fallback": "Продовжити з {{method}}"
17
+ },
18
+ "terms": {
19
+ "agreement": "Я прочитав(-ла) і приймаю {{terms}} та {{privacy}}.",
20
+ "terms": "Умови користування",
21
+ "privacy": "Політику конфіденційності",
22
+ "cookies": "Політику файлів cookie",
23
+ "required": "Щоб продовжити, підтвердьте Умови користування та Політику конфіденційності."
24
+ },
25
+ "consent": {
26
+ "required": "Вхід зберігає сеансовий файл cookie. Прийміть необхідні файли cookie, щоб продовжити."
27
+ },
28
+ "credit": {
29
+ "powered": "Працює на OwlMeans"
30
+ },
31
+ "error": {
32
+ "failed": "Вхід не завершено. Спробуйте ще раз.",
33
+ "blocked": "Вікно входу заблоковано. Натисніть значок заблокованого спливаючого вікна в адресному рядку браузера, щоб відкрити його."
34
+ },
35
+ "orphaned": "Вхід виконано. Можете закрити це вікно й повернутися до застосунку."
36
+ }
37
+ }
@@ -0,0 +1,28 @@
1
+ import { addI18nLib } from '@owlmeans/i18n'
2
+
3
+ import en from './i18n/en.json' with { type: 'json' }
4
+ import pl from './i18n/pl.json' with { type: 'json' }
5
+ import ru from './i18n/ru.json' with { type: 'json' }
6
+ import be from './i18n/be.json' with { type: 'json' }
7
+ import uk from './i18n/uk.json' with { type: 'json' }
8
+ import es from './i18n/es.json' with { type: 'json' }
9
+ import de from './i18n/de.json' with { type: 'json' }
10
+ import fr from './i18n/fr.json' with { type: 'json' }
11
+
12
+ /**
13
+ * The sign-in screen's copy, registered into the `auth` library resource.
14
+ *
15
+ * `_addI18n` PUSHES rather than replaces, so this coexists with `@owlmeans/web-client`'s own
16
+ * `auth` registration (which owns `dispatcher.*` and `surrogate.*`) and the two merge by tier and
17
+ * priority. Registering here rather than in a UI package is what lets the plain fallback screen
18
+ * and every styled one read the same keys — so the seven-language rule holds on every path a user
19
+ * can actually reach, not only the pretty one.
20
+ */
21
+ addI18nLib('en', 'auth', en)
22
+ addI18nLib('pl', 'auth', pl)
23
+ addI18nLib('ru', 'auth', ru)
24
+ addI18nLib('be', 'auth', be)
25
+ addI18nLib('uk', 'auth', uk)
26
+ addI18nLib('es', 'auth', es)
27
+ addI18nLib('de', 'auth', de)
28
+ addI18nLib('fr', 'auth', fr)
@@ -0,0 +1,15 @@
1
+ import './i18n.js'
2
+
3
+ export * from './consts.js'
4
+ export * from './types.js'
5
+ export * from './env.js'
6
+ export * from './adopt.js'
7
+ export * from './methods.js'
8
+ export * from './flow.js'
9
+ export * from './resume.js'
10
+ export * from './terms.js'
11
+ export * from './credit.js'
12
+ export * from './surrogate.js'
13
+ export * from './screen.js'
14
+ export * from './service.js'
15
+ export * from './hook.js'