authhero 9.11.0 → 9.11.1

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.mjs CHANGED
@@ -9063,7 +9063,7 @@ var nie = (e, t) => {
9063
9063
  }, jd = (e, t, n, r) => {
9064
9064
  let i = sie(t, n, r);
9065
9065
  e.header("Set-Cookie", i, { append: !0 });
9066
- }, Md = "mtigong3", cie = /* @__PURE__ */ p({
9066
+ }, Md = "mtj2lb3k", cie = /* @__PURE__ */ p({
9067
9067
  common: () => Nd,
9068
9068
  consent: () => Pd,
9069
9069
  default: () => lie,
@@ -28207,11 +28207,12 @@ var tle = co({ clients: r.array(Ot) }), nle = r.object({
28207
28207
  service_token: BA.filter((e) => e !== "azp"),
28208
28208
  client_service_token: [...BA]
28209
28209
  };
28210
- function Ole(e, t) {
28211
- return Dle[t].includes(e);
28210
+ function Ole(e, t, n = {}) {
28211
+ return e === "azp" && n.allowAzpOverride ? !1 : Dle[t].includes(e);
28212
28212
  }
28213
28213
  function VA(e, t, n, r) {
28214
- return Ole(t, r.kind) ? (kle(t, r), !1) : (e[t] = n, !0);
28214
+ let i = r.ctx?.env?.unsafeAllowAzpCustomClaim === !0;
28215
+ return Ole(t, r.kind, { allowAzpOverride: i }) ? (kle(t, r), !1) : (e[t] = n, !0);
28215
28216
  }
28216
28217
  function HA(e, t) {
28217
28218
  if (!e) return;
@@ -51725,7 +51726,7 @@ function tV(e) {
51725
51726
  return async (t, n) => (t.env ||= {}, !t.env.data && e.dataAdapter && (t.env.data = e.dataAdapter), e.hooks && (t.env.hooks = {
51726
51727
  ...e.hooks,
51727
51728
  ...t.env.hooks || {}
51728
- }), e.samlSigner && (t.env.samlSigner = e.samlSigner), e.poweredByLogo && (t.env.poweredByLogo = e.poweredByLogo), t.env.codeExecutor == null && e.codeExecutor && (t.env.codeExecutor = e.codeExecutor), e.webhookInvoker && (t.env.webhookInvoker = e.webhookInvoker), e.tenantUpgrade && (t.env.tenantUpgrade = e.tenantUpgrade), e.usersImportMaxBytes !== void 0 && (t.env.usersImportMaxBytes = e.usersImportMaxBytes), e.usersImportMaxConcurrentJobs !== void 0 && (t.env.usersImportMaxConcurrentJobs = e.usersImportMaxConcurrentJobs), e.tenantOperationExecutor && (t.env.tenantOperationExecutor = e.tenantOperationExecutor), e.outbox && (t.env.outbox = e.outbox), e.userLinkingMode && (t.env.userLinkingMode = e.userLinkingMode), e.usernamePasswordProvider && (t.env.usernamePasswordProvider = e.usernamePasswordProvider), e.signingKeyMode && (t.env.signingKeyMode = e.signingKeyMode), n());
51729
+ }), e.samlSigner && (t.env.samlSigner = e.samlSigner), e.poweredByLogo && (t.env.poweredByLogo = e.poweredByLogo), t.env.codeExecutor == null && e.codeExecutor && (t.env.codeExecutor = e.codeExecutor), e.webhookInvoker && (t.env.webhookInvoker = e.webhookInvoker), e.tenantUpgrade && (t.env.tenantUpgrade = e.tenantUpgrade), e.usersImportMaxBytes !== void 0 && (t.env.usersImportMaxBytes = e.usersImportMaxBytes), e.usersImportMaxConcurrentJobs !== void 0 && (t.env.usersImportMaxConcurrentJobs = e.usersImportMaxConcurrentJobs), e.unsafeAllowAzpCustomClaim !== void 0 && (t.env.unsafeAllowAzpCustomClaim = e.unsafeAllowAzpCustomClaim), e.tenantOperationExecutor && (t.env.tenantOperationExecutor = e.tenantOperationExecutor), e.outbox && (t.env.outbox = e.outbox), e.userLinkingMode && (t.env.userLinkingMode = e.userLinkingMode), e.usernamePasswordProvider && (t.env.usernamePasswordProvider = e.usernamePasswordProvider), e.signingKeyMode && (t.env.signingKeyMode = e.signingKeyMode), n());
51729
51730
  }
51730
51731
  //#endregion
51731
51732
  //#region src/middlewares/tenant.ts