@voltro/plugin-sso-saml 0.87.0 → 0.88.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/index.js CHANGED
@@ -8,7 +8,7 @@ import { FetchHttpClient as _ } from "effect/http";
8
8
  import { randomBytes as v } from "node:crypto";
9
9
  import { definePlugin as y, pluginInstanceName as b } from "@voltro/protocol";
10
10
  import { buildSetCookie as x, readCookie as S, signSession as C } from "@voltro/protocol/session";
11
- //#region src/index.ts
11
+ // src/index.ts
12
12
  var w = (e, t) => typeof e != "string" || e[0] !== "/" || /[\u0000-]/.test(e) ? t : e === "/" ? e : e[1] === "/" || e[1] === "\\" ? t : e, T = (e, t, n = "text/plain") => ({
13
13
  status: e,
14
14
  body: t,
@@ -226,5 +226,4 @@ var w = (e, t) => typeof e != "string" || e[0] !== "/" || /[\u0000-]/.test(e) ?
226
226
  })
227
227
  });
228
228
  };
229
- //#endregion
230
229
  export { s as LOGOUT_SESSION_TABLE, n as REPLAY_CACHE_TABLE, f as SamlMetadataFetchError, p as SamlMetadataParseError, c as dataStoreLogoutStore, r as dataStoreReplayCache, e as extractProfile, m as fetchIdpMetadata, l as memoryLogoutStore, i as memoryReplayCache, h as parseIdpMetadata, u as samlLogoutTable, d as samlLogoutTables, a as samlReplayTable, o as samlReplayTables, k as samlSsoPlugin, t as spMetadataXml };
@@ -1,5 +1,5 @@
1
1
  import { id as e, table as t, text as n } from "@voltro/database";
2
- //#region src/saml-cache.ts
2
+ // src/saml-cache.ts
3
3
  var r = "_voltro_saml_replay", i = t(r, {
4
4
  id: e({ prefix: "samlrq" }),
5
5
  requestId: n().unique(),
@@ -69,5 +69,4 @@ var r = "_voltro_saml_replay", i = t(r, {
69
69
  removeAsync: async (e) => e == null || !t.has(e) ? null : (t.delete(e), e)
70
70
  };
71
71
  };
72
- //#endregion
73
72
  export { r as REPLAY_CACHE_TABLE, s as dataStoreReplayCache, c as memoryReplayCache, i as samlReplayTable, a as samlReplayTables };
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/saml-errors.ts
2
+ // src/saml-errors.ts
3
3
  var t = class extends e.TaggedError()("SamlMetadataFetchError", {
4
4
  url: e.String,
5
5
  reason: e.String
@@ -7,5 +7,4 @@ var t = class extends e.TaggedError()("SamlMetadataFetchError", {
7
7
  url: e.String,
8
8
  reason: e.String
9
9
  }) {};
10
- //#endregion
11
10
  export { t as SamlMetadataFetchError, n as SamlMetadataParseError };
@@ -1,5 +1,5 @@
1
1
  import { id as e, table as t, text as n } from "@voltro/database";
2
- //#region src/saml-logout.ts
2
+ // src/saml-logout.ts
3
3
  var r = "_voltro_saml_logout", i = t(r, {
4
4
  id: e({ prefix: "samllo" }),
5
5
  sloKey: n().unique(),
@@ -75,5 +75,4 @@ var r = "_voltro_saml_logout", i = t(r, {
75
75
  }
76
76
  };
77
77
  };
78
- //#endregion
79
78
  export { r as LOGOUT_SESSION_TABLE, c as dataStoreLogoutStore, l as memoryLogoutStore, i as samlLogoutTable, a as samlLogoutTables };
@@ -1,7 +1,7 @@
1
1
  import { SamlMetadataFetchError as e, SamlMetadataParseError as t } from "./saml-errors.js";
2
2
  import { Effect as n } from "effect";
3
3
  import { HttpClient as r } from "effect/http";
4
- //#region src/saml-metadata.ts
4
+ // src/saml-metadata.ts
5
5
  var i = "urn:oasis:names:tc:SAML:2.0:metadata", a = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect", o = (e) => e.slice(e.indexOf(":") + 1), s = (e, t) => (RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`).exec(e) ?? RegExp(`\\b${t}\\s*=\\s*'([^']*)'`).exec(e))?.[1], c = (e, t) => {
6
6
  let n = [], r = /<([A-Za-z][\w.:-]*)\b([^>]*)>/g, i;
7
7
  for (; (i = r.exec(e)) !== null;) o(i[1]) === t && n.push(i[0]);
@@ -62,5 +62,4 @@ var i = "urn:oasis:names:tc:SAML:2.0:metadata", a = "urn:oasis:names:tc:SAML:2.0
62
62
  reason: "empty-body"
63
63
  }));
64
64
  });
65
- //#endregion
66
65
  export { f as fetchIdpMetadata, d as parseIdpMetadata };
package/dist/saml.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/saml.ts
1
+ // src/saml.ts
2
2
  var e = (e) => e.replace(/-----(BEGIN|END) CERTIFICATE-----/g, "").replace(/\s+/g, ""), t = (t) => {
3
3
  let r = t.signingCert ? `
4
4
  <KeyDescriptor use="signing">
@@ -30,5 +30,4 @@ var e = (e) => e.replace(/-----(BEGIN|END) CERTIFICATE-----/g, "").replace(/\s+/
30
30
  attributes: t
31
31
  };
32
32
  };
33
- //#endregion
34
33
  export { r as extractProfile, t as spMetadataXml };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-sso-saml",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Enterprise SAML 2.0 SSO — SP-initiated login, ACS assertion consumer, and SP metadata. Signature verification via @node-saml/node-saml (optional, lazy); the framework integration (routes, session minting, attribute mapping) is built in.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -33,14 +33,14 @@
33
33
  "node": ">=24.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@voltro/database": "0.87.0",
37
- "@voltro/protocol": "0.87.0"
36
+ "@voltro/database": "0.88.0",
37
+ "@voltro/protocol": "0.88.0"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@node-saml/node-saml": "^5.1.0"
40
+ "@node-saml/node-saml": "^5.2.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "effect": "4.0.1"
43
+ "effect": "4.1.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"