@owlmeans/client-auth 0.1.18-rc.2 → 0.1.18-rc.21
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.
- package/README.md +6 -6
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/client-auth/SKILL.md +134 -21
- package/build/components/dispatcher/component.js +1 -1
- package/build/components/dispatcher/component.js.map +1 -1
- package/build/{modules.d.ts → entrypoints.d.ts} +2 -2
- package/build/entrypoints.d.ts.map +1 -0
- package/build/{modules.js → entrypoints.js} +3 -3
- package/build/entrypoints.js.map +1 -0
- package/build/helper.js +1 -1
- package/build/helper.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/login/adopt.d.ts +24 -0
- package/build/login/adopt.d.ts.map +1 -0
- package/build/login/adopt.js +28 -0
- package/build/login/adopt.js.map +1 -0
- package/build/login/consts.d.ts +57 -0
- package/build/login/consts.d.ts.map +1 -0
- package/build/login/consts.js +57 -0
- package/build/login/consts.js.map +1 -0
- package/build/login/credit.d.ts +24 -0
- package/build/login/credit.d.ts.map +1 -0
- package/build/login/credit.js +58 -0
- package/build/login/credit.js.map +1 -0
- package/build/login/env.d.ts +32 -0
- package/build/login/env.d.ts.map +1 -0
- package/build/login/env.js +84 -0
- package/build/login/env.js.map +1 -0
- package/build/login/flow.d.ts +20 -0
- package/build/login/flow.d.ts.map +1 -0
- package/build/login/flow.js +39 -0
- package/build/login/flow.js.map +1 -0
- package/build/login/hook.d.ts +37 -0
- package/build/login/hook.d.ts.map +1 -0
- package/build/login/hook.js +72 -0
- package/build/login/hook.js.map +1 -0
- package/build/login/i18n/be.json +37 -0
- package/build/login/i18n/de.json +37 -0
- package/build/login/i18n/en.json +37 -0
- package/build/login/i18n/es.json +37 -0
- package/build/login/i18n/pl.json +37 -0
- package/build/login/i18n/ru.json +37 -0
- package/build/login/i18n/uk.json +37 -0
- package/build/login/i18n.d.ts +2 -0
- package/build/login/i18n.d.ts.map +1 -0
- package/build/login/i18n.js +25 -0
- package/build/login/i18n.js.map +1 -0
- package/build/login/index.d.ts +15 -0
- package/build/login/index.d.ts.map +1 -0
- package/build/login/index.js +15 -0
- package/build/login/index.js.map +1 -0
- package/build/login/methods.d.ts +25 -0
- package/build/login/methods.d.ts.map +1 -0
- package/build/login/methods.js +97 -0
- package/build/login/methods.js.map +1 -0
- package/build/login/resume.d.ts +30 -0
- package/build/login/resume.d.ts.map +1 -0
- package/build/login/resume.js +55 -0
- package/build/login/resume.js.map +1 -0
- package/build/login/screen.d.ts +17 -0
- package/build/login/screen.d.ts.map +1 -0
- package/build/login/screen.js +76 -0
- package/build/login/screen.js.map +1 -0
- package/build/login/service.d.ts +31 -0
- package/build/login/service.d.ts.map +1 -0
- package/build/login/service.js +137 -0
- package/build/login/service.js.map +1 -0
- package/build/login/surrogate.d.ts +20 -0
- package/build/login/surrogate.d.ts.map +1 -0
- package/build/login/surrogate.js +33 -0
- package/build/login/surrogate.js.map +1 -0
- package/build/login/terms.d.ts +20 -0
- package/build/login/terms.d.ts.map +1 -0
- package/build/login/terms.js +0 -0
- package/build/login/terms.js.map +1 -0
- package/build/login/types.d.ts +236 -0
- package/build/login/types.d.ts.map +1 -0
- package/build/login/types.js +23 -0
- package/build/login/types.js.map +1 -0
- package/build/manager/components/authentication/control.js +3 -3
- package/build/manager/components/authentication/control.js.map +1 -1
- package/build/manager/components/authentication/types.d.ts +2 -2
- package/build/manager/components/authentication/types.d.ts.map +1 -1
- package/build/manager/components/tunnel-consumer.js +2 -2
- package/build/manager/components/tunnel-consumer.js.map +1 -1
- package/build/manager/entrypoints.d.ts +2 -0
- package/build/manager/entrypoints.d.ts.map +1 -0
- package/build/manager/{modules.js → entrypoints.js} +4 -4
- package/build/manager/entrypoints.js.map +1 -0
- package/build/manager/plugins/basic-ed25519.d.ts.map +1 -1
- package/build/manager/plugins/basic-ed25519.js +5 -0
- package/build/manager/plugins/basic-ed25519.js.map +1 -1
- package/build/manager/plugins/exports.d.ts +2 -0
- package/build/manager/plugins/exports.d.ts.map +1 -1
- package/build/manager/plugins/exports.js +2 -0
- package/build/manager/plugins/exports.js.map +1 -1
- package/build/manager/plugins/index.d.ts +1 -5
- package/build/manager/plugins/index.d.ts.map +1 -1
- package/build/manager/plugins/index.js +9 -1
- package/build/manager/plugins/index.js.map +1 -1
- package/build/manager/plugins/methods.d.ts +6 -0
- package/build/manager/plugins/methods.d.ts.map +1 -0
- package/build/manager/plugins/methods.js +65 -0
- package/build/manager/plugins/methods.js.map +1 -0
- package/build/manager/plugins/re-captcha.d.ts.map +1 -1
- package/build/manager/plugins/re-captcha.js +5 -0
- package/build/manager/plugins/re-captcha.js.map +1 -1
- package/build/manager/plugins/registry.d.ts +20 -0
- package/build/manager/plugins/registry.d.ts.map +1 -0
- package/build/manager/plugins/registry.js +19 -0
- package/build/manager/plugins/registry.js.map +1 -0
- package/build/manager/plugins/tunnel-consumer.d.ts.map +1 -1
- package/build/manager/plugins/tunnel-consumer.js +4 -0
- package/build/manager/plugins/tunnel-consumer.js.map +1 -1
- package/build/manager/plugins/types.d.ts +53 -0
- package/build/manager/plugins/types.d.ts.map +1 -1
- package/build/service.js +1 -1
- package/build/service.js.map +1 -1
- package/package.json +36 -27
- package/src/components/dispatcher/component.tsx +1 -1
- package/src/{modules.ts → entrypoints.ts} +2 -2
- package/src/helper.ts +1 -1
- package/src/index.ts +1 -1
- package/src/login/adopt.ts +31 -0
- package/src/login/consts.ts +70 -0
- package/src/login/credit.ts +75 -0
- package/src/login/env.ts +86 -0
- package/src/login/flow.ts +44 -0
- package/src/login/hook.ts +80 -0
- package/src/login/i18n/be.json +37 -0
- package/src/login/i18n/de.json +37 -0
- package/src/login/i18n/en.json +37 -0
- package/src/login/i18n/es.json +37 -0
- package/src/login/i18n/pl.json +37 -0
- package/src/login/i18n/ru.json +37 -0
- package/src/login/i18n/uk.json +37 -0
- package/src/login/i18n.ts +26 -0
- package/src/login/index.ts +15 -0
- package/src/login/methods.ts +113 -0
- package/src/login/resume.ts +56 -0
- package/src/login/screen.tsx +136 -0
- package/src/login/service.ts +181 -0
- package/src/login/surrogate.ts +45 -0
- package/src/login/terms.ts +0 -0
- package/src/login/types.ts +258 -0
- package/src/manager/README.md +1 -1
- package/src/manager/components/authentication/control.ts +3 -3
- package/src/manager/components/authentication/types.ts +2 -2
- package/src/manager/components/tunnel-consumer.tsx +2 -2
- package/src/manager/{modules.ts → entrypoints.ts} +3 -3
- package/src/manager/plugins/basic-ed25519.tsx +7 -0
- package/src/manager/plugins/exports.ts +2 -0
- package/src/manager/plugins/index.ts +10 -4
- package/src/manager/plugins/methods.ts +74 -0
- package/src/manager/plugins/re-captcha.tsx +7 -0
- package/src/manager/plugins/registry.ts +26 -0
- package/src/manager/plugins/tunnel-consumer.tsx +6 -0
- package/src/manager/plugins/types.ts +54 -0
- package/src/service.ts +1 -1
- package/tests/context.ts +1 -2
- package/tests/login.spec.ts +313 -0
- package/build/.gitkeep +0 -0
- package/build/manager/modules.d.ts +0 -2
- package/build/manager/modules.d.ts.map +0 -1
- package/build/manager/modules.js.map +0 -1
- package/build/modules.d.ts.map +0 -1
- package/build/modules.js.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The years one notice covers.
|
|
3
|
+
*
|
|
4
|
+
* A range only while the first year is genuinely in the past — an app configured with the current
|
|
5
|
+
* year, or with a year a skewed clock puts in the future, still gets a well-formed notice rather
|
|
6
|
+
* than `© 2026–2026` or a range that runs backwards.
|
|
7
|
+
*/
|
|
8
|
+
const years = (since, now) => since != null && since > 0 && since < now ? `${since}–${now}` : `${now}`;
|
|
9
|
+
/**
|
|
10
|
+
* A configured value that was actually SET.
|
|
11
|
+
*
|
|
12
|
+
* Empty is how a build-time default spells "unset", and this config is filled from environment
|
|
13
|
+
* variables a platform delivers — `BRANDING_ORGANIZATION: meta.brandingOrganization ?? ''` is the
|
|
14
|
+
* shape of every one of them. `??` does not fall through an empty string, so an undelivered
|
|
15
|
+
* organization used to win the fallback chain and compose a line ending in a bare dash.
|
|
16
|
+
*/
|
|
17
|
+
const set = (value) => value != null && value.trim() !== '' ? value : null;
|
|
18
|
+
/**
|
|
19
|
+
* What the bottom of the sign-in screen says.
|
|
20
|
+
*
|
|
21
|
+
* It is a copyright notice, so it is composed as one: `© <year> <holder>`. That is the whole
|
|
22
|
+
* reason `copyright` defaults to on — the name on its own reads as a caption, and an application
|
|
23
|
+
* that means to assert a copyright would have had to write the mark and the year into a literal
|
|
24
|
+
* `line` to get one.
|
|
25
|
+
*
|
|
26
|
+
* The organization falls back to its slug because an organization record carries no readable name
|
|
27
|
+
* — so "no name" is the ordinary case, not an error, and a screen that rendered an empty line for
|
|
28
|
+
* it would be worse than one that renders the slug.
|
|
29
|
+
*
|
|
30
|
+
* `line` replaces everything when an app supplies it: a product with its own legal wording should
|
|
31
|
+
* not have to defeat a composition rule to use it.
|
|
32
|
+
*/
|
|
33
|
+
export const resolveCredit = (cfg, brand, service) => {
|
|
34
|
+
const poweredBy = cfg?.poweredBy ?? true;
|
|
35
|
+
const literal = set(cfg?.line);
|
|
36
|
+
if (literal != null) {
|
|
37
|
+
return { poweredBy, line: literal };
|
|
38
|
+
}
|
|
39
|
+
const product = set(cfg?.product) ?? set(brand?.name) ?? set(service);
|
|
40
|
+
const organization = set(cfg?.organization) ?? set(brand?.organization)
|
|
41
|
+
?? set(cfg?.entity) ?? set(brand?.entity);
|
|
42
|
+
// Whoever the notice names. A product with no organization behind it holds its own copyright,
|
|
43
|
+
// which is why this falls through to the product rather than dropping the notice.
|
|
44
|
+
const holder = set(cfg?.holder) ?? organization ?? product;
|
|
45
|
+
const wording = typeof cfg?.copyright === 'string' ? set(cfg.copyright) : null;
|
|
46
|
+
const notice = cfg?.copyright === false || holder == null
|
|
47
|
+
? organization
|
|
48
|
+
: wording ?? `© ${years(cfg?.since, new Date().getFullYear())} ${holder}`;
|
|
49
|
+
// The product is named beside the notice only when it is not already the thing being claimed —
|
|
50
|
+
// "OwlMeans — © 2026 OwlMeans" says the name twice and neither time usefully.
|
|
51
|
+
return {
|
|
52
|
+
poweredBy,
|
|
53
|
+
line: product != null && notice != null && product !== holder
|
|
54
|
+
? `${product} — ${notice}`
|
|
55
|
+
: notice ?? product,
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=credit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit.js","sourceRoot":"","sources":["../../src/login/credit.ts"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,MAAM,KAAK,GAAG,CAAC,KAAyB,EAAE,GAAW,EAAU,EAAE,CAC/D,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAA;AAE1E;;;;;;;GAOG;AACH,MAAM,GAAG,GAAG,CAAC,KAAqB,EAAiB,EAAE,CACnD,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;AAErD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,GAAuB,EAAE,KAAqB,EAAE,OAAgB,EAChD,EAAE;IAClB,MAAM,SAAS,GAAG,GAAG,EAAE,SAAS,IAAI,IAAI,CAAA;IACxC,MAAM,OAAO,GAAG,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC9B,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IACrC,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAA;IACrE,MAAM,YAAY,GAAG,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC;WAClE,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;IAE3C,8FAA8F;IAC9F,kFAAkF;IAClF,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,YAAY,IAAI,OAAO,CAAA;IAC1D,MAAM,OAAO,GAAG,OAAO,GAAG,EAAE,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC9E,MAAM,MAAM,GAAG,GAAG,EAAE,SAAS,KAAK,KAAK,IAAI,MAAM,IAAI,IAAI;QACvD,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,OAAO,IAAI,KAAK,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,MAAM,EAAE,CAAA;IAE3E,+FAA+F;IAC/F,8EAA8E;IAC9E,OAAO;QACL,SAAS;QACT,IAAI,EAAE,OAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,OAAO,KAAK,MAAM;YAC3D,CAAC,CAAC,GAAG,OAAO,MAAM,MAAM,EAAE;YAC1B,CAAC,CAAC,MAAM,IAAI,OAAO;KACtB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { LoginEnv } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this document is embedded in a frame.
|
|
4
|
+
*
|
|
5
|
+
* Reading `window.top` across origins throws, and that throw is itself the answer: a `top` that
|
|
6
|
+
* differs and a `top` that cannot be reached both mean "framed".
|
|
7
|
+
*/
|
|
8
|
+
export declare const isEmbedded: () => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Record that this window is the surrogate login window, while that is still knowable.
|
|
11
|
+
*
|
|
12
|
+
* Must run on the surrogate's **first** load, before the flow navigates to the provider:
|
|
13
|
+
* `window.name` is the only evidence at that point, and browsers clear it as soon as a top-level
|
|
14
|
+
* context goes cross-origin — so by the time the provider redirects back, the name is gone and
|
|
15
|
+
* this window would look like an ordinary tab.
|
|
16
|
+
*
|
|
17
|
+
* Idempotent, and a no-op in every window that is not the surrogate.
|
|
18
|
+
*/
|
|
19
|
+
export declare const markSurrogate: () => void;
|
|
20
|
+
/** Whether this document is the surrogate login window. */
|
|
21
|
+
export declare const isSurrogate: () => boolean;
|
|
22
|
+
/** Forget the surrogate marker — called once its token has been handed back. */
|
|
23
|
+
export declare const clearSurrogate: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Default login environment.
|
|
26
|
+
*
|
|
27
|
+
* The single source of environment truth for cascade selection — a plugin's `match` reads this
|
|
28
|
+
* and never probes `window` itself, so a non-DOM host can drive the same plugins by supplying its
|
|
29
|
+
* own descriptor.
|
|
30
|
+
*/
|
|
31
|
+
export declare const defaultLoginEnv: () => LoginEnv;
|
|
32
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/login/env.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,QAAO,OAM7B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,QAAO,IAUhC,CAAA;AAED,2DAA2D;AAC3D,eAAO,MAAM,WAAW,QAAO,OAY9B,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,cAAc,QAAO,IAOjC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,QAAO,QAclC,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { LOGIN_SURROGATE_MARKER, LOGIN_SURROGATE_NAME } from './consts.js';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this document is embedded in a frame.
|
|
4
|
+
*
|
|
5
|
+
* Reading `window.top` across origins throws, and that throw is itself the answer: a `top` that
|
|
6
|
+
* differs and a `top` that cannot be reached both mean "framed".
|
|
7
|
+
*/
|
|
8
|
+
export const isEmbedded = () => {
|
|
9
|
+
try {
|
|
10
|
+
return window.self !== window.top;
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Record that this window is the surrogate login window, while that is still knowable.
|
|
18
|
+
*
|
|
19
|
+
* Must run on the surrogate's **first** load, before the flow navigates to the provider:
|
|
20
|
+
* `window.name` is the only evidence at that point, and browsers clear it as soon as a top-level
|
|
21
|
+
* context goes cross-origin — so by the time the provider redirects back, the name is gone and
|
|
22
|
+
* this window would look like an ordinary tab.
|
|
23
|
+
*
|
|
24
|
+
* Idempotent, and a no-op in every window that is not the surrogate.
|
|
25
|
+
*/
|
|
26
|
+
export const markSurrogate = () => {
|
|
27
|
+
if (typeof window === 'undefined' || window.name !== LOGIN_SURROGATE_NAME) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
window.sessionStorage.setItem(LOGIN_SURROGATE_MARKER, '1');
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
// Storage can be unavailable (private modes, blocked cookies). The `window.name` check still
|
|
35
|
+
// covers the case where nothing cross-origin happened in between.
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
/** Whether this document is the surrogate login window. */
|
|
39
|
+
export const isSurrogate = () => {
|
|
40
|
+
if (typeof window === 'undefined') {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (window.name === LOGIN_SURROGATE_NAME) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
return window.sessionStorage.getItem(LOGIN_SURROGATE_MARKER) === '1';
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/** Forget the surrogate marker — called once its token has been handed back. */
|
|
54
|
+
export const clearSurrogate = () => {
|
|
55
|
+
if (typeof window === 'undefined') {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
window.sessionStorage.removeItem(LOGIN_SURROGATE_MARKER);
|
|
60
|
+
}
|
|
61
|
+
catch { /* nothing to clean up if storage was never available */ }
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Default login environment.
|
|
65
|
+
*
|
|
66
|
+
* The single source of environment truth for cascade selection — a plugin's `match` reads this
|
|
67
|
+
* and never probes `window` itself, so a non-DOM host can drive the same plugins by supplying its
|
|
68
|
+
* own descriptor.
|
|
69
|
+
*/
|
|
70
|
+
export const defaultLoginEnv = () => {
|
|
71
|
+
const hasWindow = typeof window !== 'undefined';
|
|
72
|
+
if (!hasWindow) {
|
|
73
|
+
return { hasWindow, embedded: false, surrogate: false, hasOpener: false };
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
hasWindow,
|
|
77
|
+
embedded: isEmbedded(),
|
|
78
|
+
surrogate: isSurrogate(),
|
|
79
|
+
// `Cross-Origin-Opener-Policy: same-origin` from the provider severs this permanently, which
|
|
80
|
+
// is why it is observed rather than assumed from "we were opened by someone".
|
|
81
|
+
hasOpener: window.opener != null,
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/login/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAG1E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAY,EAAE;IACtC,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,GAAG,CAAA;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAS,EAAE;IACtC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI,KAAK,oBAAoB,EAAE,CAAC;QAC1E,OAAM;IACR,CAAC;IACD,IAAI,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAA;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,6FAA6F;QAC7F,kEAAkE;IACpE,CAAC;AACH,CAAC,CAAA;AAED,2DAA2D;AAC3D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAY,EAAE;IACvC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,oBAAoB,EAAE,CAAC;QACzC,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,GAAG,CAAA;IACtE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC,CAAA;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAS,EAAE;IACvC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAM;IACR,CAAC;IACD,IAAI,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAC1D,CAAC;IAAC,MAAM,CAAC,CAAC,wDAAwD,CAAC,CAAC;AACtE,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAa,EAAE;IAC5C,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;IAC/C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;IAC3E,CAAC;IAED,OAAO;QACL,SAAS;QACT,QAAQ,EAAE,UAAU,EAAE;QACtB,SAAS,EAAE,WAAW,EAAE;QACxB,6FAA6F;QAC7F,8EAA8E;QAC9E,SAAS,EAAE,MAAM,CAAC,MAAM,IAAI,IAAI;KACjC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FlowModel } from '@owlmeans/flow';
|
|
2
|
+
/**
|
|
3
|
+
* Bring a freshly booted standard OIDC flow to the step an authorization request can be made from.
|
|
4
|
+
*
|
|
5
|
+
* `stdOidcFlow` starts at `Dispatch`, but `OidcAuthService.authenticate` refuses any state that is
|
|
6
|
+
* not `Ephemeral` and returns null — so an application whose flow was only booted can ask for an
|
|
7
|
+
* authorization URL all day and be told nothing, forever. The dispatcher in this package has always
|
|
8
|
+
* done this transition inline; a relying party that replaces that dispatcher (`web-oidc-rp`,
|
|
9
|
+
* `mui-oidc-rp`) inherited the requirement without the code, which is what left a sign-in button
|
|
10
|
+
* that reported no error and did nothing at all.
|
|
11
|
+
*
|
|
12
|
+
* `Ephemeral` is the branch for an application that is its OWN authority — its flow configuration
|
|
13
|
+
* maps the auth service to a placeholder, which is exactly the generated-application case. An app
|
|
14
|
+
* federated with a real auth service keeps its target and is left alone.
|
|
15
|
+
*
|
|
16
|
+
* Idempotent, and safe to call on every attempt: a flow already past `Dispatch`, or one that is
|
|
17
|
+
* not the standard OIDC flow at all, is returned untouched.
|
|
18
|
+
*/
|
|
19
|
+
export declare const enterOidcAuthorization: (model: FlowModel) => FlowModel;
|
|
20
|
+
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/login/flow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,UAAW,SAAS,KAAG,SAsBzD,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FLOW_PLACEHOLDER, OidcAuthStep, STD_OIDC_FLOW } from '@owlmeans/flow';
|
|
2
|
+
import { DEFAULT_ENTITY } from '../consts.js';
|
|
3
|
+
/**
|
|
4
|
+
* Bring a freshly booted standard OIDC flow to the step an authorization request can be made from.
|
|
5
|
+
*
|
|
6
|
+
* `stdOidcFlow` starts at `Dispatch`, but `OidcAuthService.authenticate` refuses any state that is
|
|
7
|
+
* not `Ephemeral` and returns null — so an application whose flow was only booted can ask for an
|
|
8
|
+
* authorization URL all day and be told nothing, forever. The dispatcher in this package has always
|
|
9
|
+
* done this transition inline; a relying party that replaces that dispatcher (`web-oidc-rp`,
|
|
10
|
+
* `mui-oidc-rp`) inherited the requirement without the code, which is what left a sign-in button
|
|
11
|
+
* that reported no error and did nothing at all.
|
|
12
|
+
*
|
|
13
|
+
* `Ephemeral` is the branch for an application that is its OWN authority — its flow configuration
|
|
14
|
+
* maps the auth service to a placeholder, which is exactly the generated-application case. An app
|
|
15
|
+
* federated with a real auth service keeps its target and is left alone.
|
|
16
|
+
*
|
|
17
|
+
* Idempotent, and safe to call on every attempt: a flow already past `Dispatch`, or one that is
|
|
18
|
+
* not the standard OIDC flow at all, is returned untouched.
|
|
19
|
+
*/
|
|
20
|
+
export const enterOidcAuthorization = (model) => {
|
|
21
|
+
const state = model.state();
|
|
22
|
+
if (state.flow !== STD_OIDC_FLOW || state.step !== OidcAuthStep.Dispatch) {
|
|
23
|
+
return model;
|
|
24
|
+
}
|
|
25
|
+
const target = model.step().service;
|
|
26
|
+
if (state.service == null || state.service === '') {
|
|
27
|
+
model.target(target);
|
|
28
|
+
}
|
|
29
|
+
// The entity travels to this app's own backend, which resolves its default provider by `def`
|
|
30
|
+
// alone. It still has to BE there: the init endpoint rejects a body without one.
|
|
31
|
+
if (state.entityId == null) {
|
|
32
|
+
model.entity(DEFAULT_ENTITY);
|
|
33
|
+
}
|
|
34
|
+
if (target === FLOW_PLACEHOLDER) {
|
|
35
|
+
model.transit(OidcAuthStep.Ephemeral, true);
|
|
36
|
+
}
|
|
37
|
+
return model;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/login/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAgB,EAAa,EAAE;IACpE,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAA;IAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY,CAAC,QAAQ,EAAE,CAAC;QACzE,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAA;IACnC,IAAI,KAAK,CAAC,OAAO,IAAI,IAAI,IAAI,KAAK,CAAC,OAAO,KAAK,EAAE,EAAE,CAAC;QAClD,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACtB,CAAC;IAED,6FAA6F;IAC7F,iFAAiF;IACjF,IAAI,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;QAC3B,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,MAAM,KAAK,gBAAgB,EAAE,CAAC;QAChC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Wiring for a "Log in" control: where it points, and what it does when clicked.
|
|
4
|
+
*
|
|
5
|
+
* The caller renders one control and attaches one handler — which browsing context the flow can
|
|
6
|
+
* actually complete in is the login service's problem, not the app's. An ordinary tab redirects;
|
|
7
|
+
* an app embedded in a frame runs the flow one window up, because the provider refuses to be
|
|
8
|
+
* framed and its cookies are third-party there.
|
|
9
|
+
*
|
|
10
|
+
* The returned handler is deliberately NOT async and awaits nothing before delegating: a window
|
|
11
|
+
* opened after the user gesture has finished being handled is eaten by the popup blocker.
|
|
12
|
+
*
|
|
13
|
+
* The dispatcher entrypoint is resolved INSIDE the hook, never at module scope. Module bodies run
|
|
14
|
+
* while the app is still being imported, before `registerEntrypoints` has put anything on the
|
|
15
|
+
* context, and a top-level lookup throws `Entrypoint dispatcher not found` — which escapes during
|
|
16
|
+
* import, takes the whole render down, and paints an empty page with no component at fault.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useLogin: (target?: string) => readonly [string, (event?: MouseEvent) => void];
|
|
19
|
+
/**
|
|
20
|
+
* Wiring for a "Log out" control.
|
|
21
|
+
*
|
|
22
|
+
* One control, one handler, no decision — the mirror of {@link useLogin}. Where the session has to
|
|
23
|
+
* be ended (here, or one window up in a surrogate whose storage partition this document cannot
|
|
24
|
+
* reach) is the login plugin's call.
|
|
25
|
+
*
|
|
26
|
+
* NOT async, and nothing is awaited before delegating: logging out of a framed application opens a
|
|
27
|
+
* window, and a window opened after the gesture has finished being handled is eaten by the popup
|
|
28
|
+
* blocker. The surrogate entrypoint is resolved INSIDE the hook for the same reason `useLogin`
|
|
29
|
+
* resolves the dispatcher there.
|
|
30
|
+
*
|
|
31
|
+
* The return shape stays a bare handler rather than `useLogin`'s tuple: a logout control has no
|
|
32
|
+
* address to point at, and every generated application carries a copy of a component that writes
|
|
33
|
+
* `const onLogOut = useLogout()`. `(event?: MouseEvent) => void` is assignable to `() => void`, so
|
|
34
|
+
* `onClick={onLogOut}` keeps compiling everywhere.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useLogout: (target?: string) => ((event?: MouseEvent) => void);
|
|
37
|
+
//# sourceMappingURL=hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUvC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,YAAa,MAAM,KAAG,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAmBxF,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS,YAAa,MAAM,KAAG,CAAC,CAAC,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAcxE,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { useContext, useNavigate } from '@owlmeans/client';
|
|
3
|
+
import { DISPATCHER } from '@owlmeans/auth';
|
|
4
|
+
import { LoginIntent } from './types.js';
|
|
5
|
+
import { LOGIN_SERVICE } from './consts.js';
|
|
6
|
+
import { surrogatePath } from './surrogate.js';
|
|
7
|
+
/**
|
|
8
|
+
* Wiring for a "Log in" control: where it points, and what it does when clicked.
|
|
9
|
+
*
|
|
10
|
+
* The caller renders one control and attaches one handler — which browsing context the flow can
|
|
11
|
+
* actually complete in is the login service's problem, not the app's. An ordinary tab redirects;
|
|
12
|
+
* an app embedded in a frame runs the flow one window up, because the provider refuses to be
|
|
13
|
+
* framed and its cookies are third-party there.
|
|
14
|
+
*
|
|
15
|
+
* The returned handler is deliberately NOT async and awaits nothing before delegating: a window
|
|
16
|
+
* opened after the user gesture has finished being handled is eaten by the popup blocker.
|
|
17
|
+
*
|
|
18
|
+
* The dispatcher entrypoint is resolved INSIDE the hook, never at module scope. Module bodies run
|
|
19
|
+
* while the app is still being imported, before `registerEntrypoints` has put anything on the
|
|
20
|
+
* context, and a top-level lookup throws `Entrypoint dispatcher not found` — which escapes during
|
|
21
|
+
* import, takes the whole render down, and paints an empty page with no component at fault.
|
|
22
|
+
*/
|
|
23
|
+
export const useLogin = (target) => {
|
|
24
|
+
const context = useContext();
|
|
25
|
+
const nav = useNavigate();
|
|
26
|
+
const dispatcher = context.entrypoint(DISPATCHER);
|
|
27
|
+
const path = dispatcher.path();
|
|
28
|
+
const onLogin = useCallback((event) => {
|
|
29
|
+
event?.preventDefault();
|
|
30
|
+
const login = context.service(LOGIN_SERVICE);
|
|
31
|
+
void login.begin({
|
|
32
|
+
url: path,
|
|
33
|
+
target,
|
|
34
|
+
// Only a component may call `useNavigate`, so the in-app continuation is handed to the
|
|
35
|
+
// plugin rather than reinvented by it.
|
|
36
|
+
navigate: () => { nav.go(target ?? DISPATCHER); },
|
|
37
|
+
});
|
|
38
|
+
}, [context, path, target]);
|
|
39
|
+
return [path, onLogin];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Wiring for a "Log out" control.
|
|
43
|
+
*
|
|
44
|
+
* One control, one handler, no decision — the mirror of {@link useLogin}. Where the session has to
|
|
45
|
+
* be ended (here, or one window up in a surrogate whose storage partition this document cannot
|
|
46
|
+
* reach) is the login plugin's call.
|
|
47
|
+
*
|
|
48
|
+
* NOT async, and nothing is awaited before delegating: logging out of a framed application opens a
|
|
49
|
+
* window, and a window opened after the gesture has finished being handled is eaten by the popup
|
|
50
|
+
* blocker. The surrogate entrypoint is resolved INSIDE the hook for the same reason `useLogin`
|
|
51
|
+
* resolves the dispatcher there.
|
|
52
|
+
*
|
|
53
|
+
* The return shape stays a bare handler rather than `useLogin`'s tuple: a logout control has no
|
|
54
|
+
* address to point at, and every generated application carries a copy of a component that writes
|
|
55
|
+
* `const onLogOut = useLogout()`. `(event?: MouseEvent) => void` is assignable to `() => void`, so
|
|
56
|
+
* `onClick={onLogOut}` keeps compiling everywhere.
|
|
57
|
+
*/
|
|
58
|
+
export const useLogout = (target) => {
|
|
59
|
+
const context = useContext();
|
|
60
|
+
const nav = useNavigate();
|
|
61
|
+
const path = surrogatePath(context, { intent: LoginIntent.Logout });
|
|
62
|
+
return useCallback((event) => {
|
|
63
|
+
event?.preventDefault();
|
|
64
|
+
const login = context.service(LOGIN_SERVICE);
|
|
65
|
+
void login.logout({
|
|
66
|
+
// An application whose entrypoint list predates the surrogate route logs out in place.
|
|
67
|
+
url: path ?? '',
|
|
68
|
+
...(target != null ? { navigate: () => { nav.go(target); } } : {}),
|
|
69
|
+
});
|
|
70
|
+
}, [context, path, target]);
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAe,EAAmD,EAAE;IAC3F,MAAM,OAAO,GAAG,UAAU,EAA8B,CAAA;IACxD,MAAM,GAAG,GAAG,WAAW,EAAE,CAAA;IACzB,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAmB,UAAU,CAAC,CAAA;IACnE,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,CAAA;IAE9B,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,KAAkB,EAAE,EAAE;QACjD,KAAK,EAAE,cAAc,EAAE,CAAA;QACvB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAe,aAAa,CAAC,CAAA;QAC1D,KAAK,KAAK,CAAC,KAAK,CAAC;YACf,GAAG,EAAE,IAAI;YACT,MAAM;YACN,uFAAuF;YACvF,uCAAuC;YACvC,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,UAAU,CAAC,CAAA,CAAC,CAAC;SACjD,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IAE3B,OAAO,CAAC,IAAI,EAAE,OAAO,CAAU,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAe,EAAkC,EAAE;IAC3E,MAAM,OAAO,GAAG,UAAU,EAA8B,CAAA;IACxD,MAAM,GAAG,GAAG,WAAW,EAAE,CAAA;IACzB,MAAM,IAAI,GAAG,aAAa,CAAC,OAAkC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAA;IAE9F,OAAO,WAAW,CAAC,CAAC,KAAkB,EAAE,EAAE;QACxC,KAAK,EAAE,cAAc,EAAE,CAAA;QACvB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAe,aAAa,CAAC,CAAA;QAC1D,KAAK,KAAK,CAAC,MAAM,CAAC;YAChB,uFAAuF;YACvF,GAAG,EAAE,IAAI,IAAI,EAAE;YACf,GAAG,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClE,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;AAC7B,CAAC,CAAA"}
|
|
@@ -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. Erlauben Sie Pop-ups für diese Website und versuchen Sie es erneut."
|
|
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. Allow pop-ups for this site and try again."
|
|
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. Permite las ventanas emergentes para este sitio e inténtalo de nuevo."
|
|
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": "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. Zezwól na wyskakujące okienka dla tej witryny i spróbuj ponownie."
|
|
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
|
+
}
|