authhero 4.117.0 → 4.118.0
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/dist/authhero.cjs +7 -7
- package/dist/authhero.mjs +69 -29
- package/dist/stats.html +1 -1
- package/package.json +3 -3
package/dist/authhero.mjs
CHANGED
|
@@ -6163,7 +6163,7 @@ var YF = (e, t) => {
|
|
|
6163
6163
|
const r = nj(t, n, i);
|
|
6164
6164
|
e.header("Set-Cookie", r, { append: !0 });
|
|
6165
6165
|
};
|
|
6166
|
-
const Dl = "
|
|
6166
|
+
const Dl = "mp1hv7d5", dx = { common: { alertListTitle: "Upozornění", backText: "Vrátit se zpět", cancelText: "Zrušit", closeText: "Zavřít", contactSupportText: "Potřebujete pomoc?", continueText: "Pokračovat", copyrightText: "© ${currentYear} ${companyName}", errorText: "Něco se pokazilo. Zkuste to prosím znovu.", hidePasswordText: "Skrýt heslo", loadingText: "Načítání...", orText: "nebo", privacyPolicyText: "Zásady ochrany osobních údajů", showPasswordText: "Zobrazit heslo", termsOfServiceText: "Podmínky služby", termsShortText: "Podmínky", tryAgainText: "Zkusit znovu" } }, ux = { consent: { buttonText: "Přijmout", cancelButtonText: "Zamítnout", description: "${clientName} žádá o přístup k vašemu účtu", pageTitle: "Autorizace | ${clientName}", scopesTitle: "Tímto povolíte ${clientName}:", title: "Autorizovat ${clientName}" } }, px = { invitation: { acceptButtonText: "Přijmout pozvánku", description: "${inviterName} vás pozval(a), abyste se připojili k ${organizationName} na ${clientName}", pageTitle: "Pozvánka | ${clientName}", title: "Byli jste pozváni" } }, fx = { login: { alertListTitle: "Upozornění", buttonText: "Pokračovat", description: "Přihlaste se k ${clientName}.", editEmailText: "Upravit", emailPlaceholder: "E-mailová adresa", enterACodeBtn: "Přihlásit se kódem", federatedConnectionButtonText: "Pokračovat s ${connectionName}", footerLinkText: "Zaregistrujte se", footerText: "Nemáte účet?", forgotPasswordText: "Zapomněli jste heslo?", hidePasswordText: "Skrýt heslo", invalidEmail: "Neplatný e-mail", invalidIdentifier: "Neplatný e-mail nebo uživatelské jméno", invitationDescription: "Přihlaste se pro přijetí pozvánky od ${inviterName} k připojení k ${companyName} na ${clientName}.", invitationTitle: "Byli jste pozváni!", logoAltText: "${companyName}", "no-email": "Zadejte prosím e-mailovou adresu", "no-password": "Heslo je povinné", pageTitle: "Přihlášení | ${clientName}", passwordLoginNotAvailable: "Přihlášení heslem není k dispozici", passwordPlaceholder: "Heslo", phonePlaceholder: "Telefonní číslo", separatorText: "nebo", sessionExpired: "Platnost vaší relace vypršela. Zkuste to prosím znovu.", showPasswordText: "Zobrazit heslo", signupActionLinkText: "${footerLinkText}", signupActionText: "${footerText}", title: "Vítejte", tooManyFailedLogins: "Příliš mnoho neúspěšných pokusů o přihlášení. Zkuste to prosím později.", unverifiedEmail: "Před přihlášením prosím ověřte svou e-mailovou adresu", userAccountDoesNotExist: "Uživatelský účet neexistuje", usernamePlaceholder: "Uživatelské jméno nebo e-mailová adresa", usernameTooLong: "Uživatelské jméno musí mít nejvýše ${max} znaků", usernameTooShort: "Uživatelské jméno musí mít alespoň ${min} znaků", wrongCredentials: "Nesprávné uživatelské jméno nebo heslo", passkeyButtonText: "Přihlásit se pomocí passkey" } }, hx = { mfa: { backupCodeText: "Použít záložní kód", description: "Zvolte metodu ověření", pageTitle: "Vícefaktorové ověření | ${clientName}", title: "Ověřte svou identitu" } }, gx = { "passkey-enrollment-nudge": { title: "Zabezpečte svůj účet pomocí passkey", description: "Passkey používají biometrii nebo PIN vašeho zařízení k rychlejšímu a bezpečnějšímu přihlášení.", enrollButtonText: "Nastavit passkey", snoozeButtonText: "Možná později", optOutLinkText: "Nezobrazovat znovu", pageTitle: "Nastavení Passkey | ${clientName}" }, "passkey-enrollment": { title: "Vytvořte svůj passkey", description: "Postupujte podle pokynů prohlížeče a vytvořte passkey pro tento účet.", errorMessage: "Vytvoření passkey se nezdařilo. Zkuste to prosím znovu.", cancelLinkText: "Prozatím přeskočit", retryButtonText: "Zkusit znovu", enrollmentComplete: "Váš passkey byl úspěšně nastaven. Tuto stránku můžete zavřít.", pageTitle: "Vytvoření Passkey | ${clientName}" }, "passkey-challenge": { title: "Přihlásit se pomocí passkey", description: "Postupujte podle pokynů prohlížeče k ověření vaší identity.", errorMessage: "Ověření pomocí passkey selhalo. Zkuste to prosím znovu.", cancelLinkText: "Zpět na přihlášení", retryButtonText: "Zkusit znovu", pageTitle: "Přihlášení pomocí passkey | ${clientName}" } }, mx = { organizations: { description: "Vyberte, ke které organizaci se chcete přihlásit", pageTitle: "Výběr organizace | ${clientName}", searchPlaceholder: "Hledat organizace", title: "Vyberte svou organizaci" } }, yx = { signup: { buttonText: "Pokračovat", confirmPasswordPlaceholder: "Potvrzení hesla", description: "Zaregistrujte se a pokračujte", "email-already-exists": "Tento e-mail je již zaregistrován", emailPlaceholder: "E-mailová adresa", federatedConnectionButtonText: "Pokračovat s ${connectionName}", hidePasswordText: "Skrýt heslo", "invalid-email-format": "Neplatný e-mail", loginActionLinkText: "Přihlásit se", loginActionText: "Už máte účet?", "no-email": "Zadejte prosím e-mailovou adresu", "no-password": "Heslo je povinné", "no-username": "Uživatelské jméno je povinné", pageTitle: "Registrace | ${clientName}", passwordPlaceholder: "Heslo", passwordsDidntMatch: "Hesla se neshodují", phonePlaceholder: "Telefonní číslo", privacyPolicyLinkText: "Zásady ochrany osobních údajů", separatorText: "nebo", sessionExpired: "Platnost vaší relace vypršela. Zkuste to prosím znovu.", showPasswordText: "Zobrazit heslo", termsOfServiceLinkText: "Podmínky služby", termsText: "Registrací souhlasíte s našimi", title: "Vytvořte svůj účet", "username-already-exists": "Toto uživatelské jméno je již obsazeno", usernamePlaceholder: "Uživatelské jméno", verifyEmailText: "Zkontrolujte prosím svůj e-mail pro ověření účtu" } }, _x = { status: { continueButtonText: "Pokračovat", errorTitle: "Chyba", pageTitle: "Stav | ${clientName}", successTitle: "Hotovo", title: "Stav" } }, ij = {
|
|
6167
6167
|
common: dx,
|
|
6168
6168
|
consent: ux,
|
|
6169
6169
|
"device-flow": { "device-flow": { buttonText: "Pokračovat", codePlaceholder: "Zadejte kód", description: "Zadejte kód zobrazený na vašem zařízení", "expired-code": "Platnost kódu vypršela", "invalid-code": "Zadaný kód je neplatný", pageTitle: "Aktivace zařízení | ${clientName}", title: "Aktivujte své zařízení" } },
|
|
@@ -10979,7 +10979,7 @@ function ti(e, t) {
|
|
|
10979
10979
|
return t ? `https://${t}/` : e.OAUTH_API_URL || e.ISSUER;
|
|
10980
10980
|
}
|
|
10981
10981
|
function Jt(e, t) {
|
|
10982
|
-
return t.options?.callback_url ?? `${ti(e.env)}callback`;
|
|
10982
|
+
return t.options?.callback_url ?? `${ti(e.env, e.var.custom_domain)}login/callback`;
|
|
10983
10983
|
}
|
|
10984
10984
|
const Sd = {
|
|
10985
10985
|
[J.APPLE]: NO,
|
|
@@ -22604,7 +22604,7 @@ const UD = new le().openapi(
|
|
|
22604
22604
|
},
|
|
22605
22605
|
security: [
|
|
22606
22606
|
{
|
|
22607
|
-
Bearer: ["read:
|
|
22607
|
+
Bearer: ["read:signing_keys", "auth:read"]
|
|
22608
22608
|
}
|
|
22609
22609
|
],
|
|
22610
22610
|
responses: {
|
|
@@ -22643,7 +22643,7 @@ const UD = new le().openapi(
|
|
|
22643
22643
|
},
|
|
22644
22644
|
security: [
|
|
22645
22645
|
{
|
|
22646
|
-
Bearer: ["read:
|
|
22646
|
+
Bearer: ["read:signing_keys", "auth:read"]
|
|
22647
22647
|
}
|
|
22648
22648
|
],
|
|
22649
22649
|
responses: {
|
|
@@ -22679,7 +22679,7 @@ const UD = new le().openapi(
|
|
|
22679
22679
|
},
|
|
22680
22680
|
security: [
|
|
22681
22681
|
{
|
|
22682
|
-
Bearer: ["create:
|
|
22682
|
+
Bearer: ["create:signing_keys", "auth:write"]
|
|
22683
22683
|
}
|
|
22684
22684
|
],
|
|
22685
22685
|
responses: {
|
|
@@ -22734,7 +22734,7 @@ const UD = new le().openapi(
|
|
|
22734
22734
|
},
|
|
22735
22735
|
security: [
|
|
22736
22736
|
{
|
|
22737
|
-
Bearer: ["update:
|
|
22737
|
+
Bearer: ["update:signing_keys", "auth:write"]
|
|
22738
22738
|
}
|
|
22739
22739
|
],
|
|
22740
22740
|
responses: {
|
|
@@ -27974,10 +27974,19 @@ async function RL(e, t, n, i) {
|
|
|
27974
27974
|
);
|
|
27975
27975
|
} catch (a) {
|
|
27976
27976
|
const c = e.var.tenant_id || e.req.header("tenant-id");
|
|
27977
|
-
|
|
27978
|
-
|
|
27979
|
-
|
|
27980
|
-
|
|
27977
|
+
if (c) {
|
|
27978
|
+
const l = a instanceof Error ? a.message : String(a);
|
|
27979
|
+
B(e, c, {
|
|
27980
|
+
type: R.FAILED_HOOK,
|
|
27981
|
+
description: `Code hook ${o.hook_id} threw: ${l}`,
|
|
27982
|
+
details: {
|
|
27983
|
+
hook_id: o.hook_id,
|
|
27984
|
+
code_id: o.code_id,
|
|
27985
|
+
trigger_id: "credentials-exchange",
|
|
27986
|
+
error: l
|
|
27987
|
+
}
|
|
27988
|
+
});
|
|
27989
|
+
}
|
|
27981
27990
|
}
|
|
27982
27991
|
}
|
|
27983
27992
|
function j_(e, t, n, i) {
|
|
@@ -32427,9 +32436,11 @@ function AU(e, t) {
|
|
|
32427
32436
|
} catch (d) {
|
|
32428
32437
|
if (d instanceof P)
|
|
32429
32438
|
throw d;
|
|
32439
|
+
const u = d instanceof Error ? d.message : String(d);
|
|
32430
32440
|
B(e, n, {
|
|
32431
32441
|
type: R.FAILED_SIGNUP,
|
|
32432
|
-
description:
|
|
32442
|
+
description: `Pre user registration hook failed: ${u}`,
|
|
32443
|
+
details: { error: u }
|
|
32433
32444
|
});
|
|
32434
32445
|
}
|
|
32435
32446
|
{
|
|
@@ -32468,9 +32479,16 @@ function AU(e, t) {
|
|
|
32468
32479
|
} catch (f) {
|
|
32469
32480
|
if (f instanceof P)
|
|
32470
32481
|
throw f;
|
|
32482
|
+
const h = f instanceof Error ? f.message : String(f);
|
|
32471
32483
|
B(e, n, {
|
|
32472
32484
|
type: R.FAILED_SIGNUP,
|
|
32473
|
-
description: `Pre user registration code hook ${p.hook_id} failed
|
|
32485
|
+
description: `Pre user registration code hook ${p.hook_id} failed: ${h}`,
|
|
32486
|
+
details: {
|
|
32487
|
+
hook_id: p.hook_id,
|
|
32488
|
+
code_id: p.code_id,
|
|
32489
|
+
trigger_id: "pre-user-registration",
|
|
32490
|
+
error: h
|
|
32491
|
+
}
|
|
32474
32492
|
});
|
|
32475
32493
|
}
|
|
32476
32494
|
}
|
|
@@ -32498,10 +32516,12 @@ function AU(e, t) {
|
|
|
32498
32516
|
token: cs(e, n)
|
|
32499
32517
|
}
|
|
32500
32518
|
);
|
|
32501
|
-
} catch {
|
|
32519
|
+
} catch (d) {
|
|
32520
|
+
const u = d instanceof Error ? d.message : String(d);
|
|
32502
32521
|
B(e, n, {
|
|
32503
32522
|
type: R.FAILED_SIGNUP,
|
|
32504
|
-
description:
|
|
32523
|
+
description: `Post user registration hook failed: ${u}`,
|
|
32524
|
+
details: { error: u }
|
|
32505
32525
|
});
|
|
32506
32526
|
}
|
|
32507
32527
|
{
|
|
@@ -32524,10 +32544,17 @@ function AU(e, t) {
|
|
|
32524
32544
|
"post-user-registration",
|
|
32525
32545
|
{ user: {} }
|
|
32526
32546
|
);
|
|
32527
|
-
} catch {
|
|
32547
|
+
} catch (h) {
|
|
32548
|
+
const g = h instanceof Error ? h.message : String(h);
|
|
32528
32549
|
B(e, n, {
|
|
32529
32550
|
type: R.FAILED_SIGNUP,
|
|
32530
|
-
description: `Post user registration code hook ${f.hook_id} failed
|
|
32551
|
+
description: `Post user registration code hook ${f.hook_id} failed: ${g}`,
|
|
32552
|
+
details: {
|
|
32553
|
+
hook_id: f.hook_id,
|
|
32554
|
+
code_id: f.code_id,
|
|
32555
|
+
trigger_id: "post-user-registration",
|
|
32556
|
+
error: g
|
|
32557
|
+
}
|
|
32531
32558
|
});
|
|
32532
32559
|
}
|
|
32533
32560
|
const p = d.filter(
|
|
@@ -32542,10 +32569,16 @@ function AU(e, t) {
|
|
|
32542
32569
|
c,
|
|
32543
32570
|
f.metadata
|
|
32544
32571
|
);
|
|
32545
|
-
} catch {
|
|
32572
|
+
} catch (h) {
|
|
32573
|
+
const g = h instanceof Error ? h.message : String(h);
|
|
32546
32574
|
B(e, n, {
|
|
32547
32575
|
type: R.FAILED_SIGNUP,
|
|
32548
|
-
description: `Post user registration template hook ${f.template_id} failed
|
|
32576
|
+
description: `Post user registration template hook ${f.template_id} failed: ${g}`,
|
|
32577
|
+
details: {
|
|
32578
|
+
template_id: f.template_id,
|
|
32579
|
+
trigger_id: "post-user-registration",
|
|
32580
|
+
error: g
|
|
32581
|
+
}
|
|
32549
32582
|
});
|
|
32550
32583
|
}
|
|
32551
32584
|
}
|
|
@@ -33343,10 +33376,16 @@ async function aI(e, t, n, i, r, o) {
|
|
|
33343
33376
|
i,
|
|
33344
33377
|
h.metadata
|
|
33345
33378
|
);
|
|
33346
|
-
} catch {
|
|
33379
|
+
} catch (g) {
|
|
33380
|
+
const m = g instanceof Error ? g.message : String(g);
|
|
33347
33381
|
B(e, n, {
|
|
33348
33382
|
type: R.FAILED_HOOK,
|
|
33349
|
-
description: `Failed to execute template hook
|
|
33383
|
+
description: `Failed to execute template hook ${h.template_id}: ${m}`,
|
|
33384
|
+
details: {
|
|
33385
|
+
template_id: h.template_id,
|
|
33386
|
+
trigger_id: "post-user-login",
|
|
33387
|
+
error: m
|
|
33388
|
+
}
|
|
33350
33389
|
});
|
|
33351
33390
|
}
|
|
33352
33391
|
const p = d.filter(
|
|
@@ -33373,10 +33412,17 @@ async function aI(e, t, n, i, r, o) {
|
|
|
33373
33412
|
"post-user-login",
|
|
33374
33413
|
{}
|
|
33375
33414
|
);
|
|
33376
|
-
} catch {
|
|
33415
|
+
} catch (g) {
|
|
33416
|
+
const m = g instanceof Error ? g.message : String(g);
|
|
33377
33417
|
B(e, n, {
|
|
33378
33418
|
type: R.FAILED_HOOK,
|
|
33379
|
-
description: `Failed to execute code hook
|
|
33419
|
+
description: `Failed to execute code hook ${h.hook_id}: ${m}`,
|
|
33420
|
+
details: {
|
|
33421
|
+
hook_id: h.hook_id,
|
|
33422
|
+
code_id: h.code_id,
|
|
33423
|
+
trigger_id: "post-user-login",
|
|
33424
|
+
error: m
|
|
33425
|
+
}
|
|
33380
33426
|
});
|
|
33381
33427
|
}
|
|
33382
33428
|
const f = d.filter((h) => h.enabled && $U(h));
|
|
@@ -64014,9 +64060,7 @@ async function Vv(e, t) {
|
|
|
64014
64060
|
}
|
|
64015
64061
|
}
|
|
64016
64062
|
function nee(e, t) {
|
|
64017
|
-
const { connections: n } = e, i = n.filter(
|
|
64018
|
-
(l) => l.strategy !== J.EMAIL && l.strategy !== J.SMS && l.strategy !== J.USERNAME_PASSWORD
|
|
64019
|
-
);
|
|
64063
|
+
const { connections: n } = e, i = n.filter((l) => !(l.strategy === J.EMAIL || l.strategy === J.SMS || l.strategy === J.USERNAME_PASSWORD || l.options?.domain_aliases?.length && l.show_as_button !== !0));
|
|
64020
64064
|
if (i.length === 0)
|
|
64021
64065
|
return [];
|
|
64022
64066
|
const r = i.map((l) => {
|
|
@@ -78836,10 +78880,6 @@ class mCe {
|
|
|
78836
78880
|
}
|
|
78837
78881
|
async execute(t) {
|
|
78838
78882
|
const n = Date.now();
|
|
78839
|
-
if (t.timeoutMs !== void 0 || t.cpuLimitMs !== void 0)
|
|
78840
|
-
throw new Error(
|
|
78841
|
-
"Cloudflare executor does not support timeoutMs/cpuLimitMs"
|
|
78842
|
-
);
|
|
78843
78883
|
try {
|
|
78844
78884
|
const i = cEe(t.code), r = {
|
|
78845
78885
|
compatibilityDate: this.compatibilityDate,
|