@_mustachio/openauth 0.11.0 → 0.13.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/esm/adapters/d1/index.js +18 -9
- package/dist/esm/adapters/d1/migrations.js +7 -2
- package/dist/esm/adapters/d1/session-store.js +39 -0
- package/dist/esm/adapters/d1/session.js +2 -2
- package/dist/esm/adapters/durable-object/index.js +4 -0
- package/dist/esm/adapters/durable-object/session-store.js +42 -0
- package/dist/esm/adapters/dynamo/index.js +24 -7
- package/dist/esm/adapters/dynamo/session-store.js +49 -0
- package/dist/esm/adapters/kms/index.js +6 -2
- package/dist/esm/adapters/kv/index.js +6 -2
- package/dist/esm/adapters/memory/index.js +24 -7
- package/dist/esm/adapters/memory/session-store.js +23 -0
- package/dist/esm/adapters/postgres/executor.js +2 -2
- package/dist/esm/adapters/postgres/index.js +33 -10
- package/dist/esm/adapters/postgres/migrations.js +8 -2
- package/dist/esm/adapters/postgres/session-store.js +42 -0
- package/dist/esm/client.js +27 -27
- package/dist/esm/domain/authorize.js +2 -2
- package/dist/esm/domain/callback.js +121 -7
- package/dist/esm/domain/client-auth.js +2 -2
- package/dist/esm/domain/crypto.js +14 -14
- package/dist/esm/domain/discovery.js +2 -2
- package/dist/esm/domain/dpop.js +4 -4
- package/dist/esm/domain/id-token.js +5 -5
- package/dist/esm/domain/jwt.js +4 -4
- package/dist/esm/domain/method-dispatch.js +27 -1
- package/dist/esm/domain/method-route.js +80 -1
- package/dist/esm/domain/par.js +2 -2
- package/dist/esm/domain/pkce.js +2 -2
- package/dist/esm/domain/revoke.js +2 -2
- package/dist/esm/domain/scim/discovery.js +206 -0
- package/dist/esm/domain/scim/filter.js +177 -0
- package/dist/esm/domain/scim/handle.js +338 -0
- package/dist/esm/domain/scim/patch.js +568 -0
- package/dist/esm/domain/scim/resource.js +256 -0
- package/dist/esm/domain/state-envelope.js +2 -2
- package/dist/esm/domain/token.js +5 -5
- package/dist/esm/error.js +8 -8
- package/dist/esm/http/cookies.js +19 -2
- package/dist/esm/http/errors.js +4 -4
- package/dist/esm/http/handlers/authorize.js +3 -19
- package/dist/esm/http/handlers/callback.js +7 -1
- package/dist/esm/http/handlers/metadata.js +2 -2
- package/dist/esm/http/handlers/method-route.js +47 -2
- package/dist/esm/http/handlers/revocation.js +2 -2
- package/dist/esm/http/handlers/scim.js +59 -0
- package/dist/esm/http/middleware/tenant.js +31 -6
- package/dist/esm/http/router.js +3 -0
- package/dist/esm/http/schemas/authorize.js +2 -2
- package/dist/esm/http/schemas/revocation.js +2 -2
- package/dist/esm/http/schemas/token.js +7 -7
- package/dist/esm/index.js +34 -32
- package/dist/esm/methods/oauth2-factory.js +2 -2
- package/dist/esm/methods/password-hash.js +2 -2
- package/dist/esm/methods/providers/index.js +30 -14
- package/dist/esm/methods/saml-sp/acs.js +232 -0
- package/dist/esm/methods/saml-sp/attributes.js +77 -0
- package/dist/esm/methods/saml-sp/authnrequest.js +63 -0
- package/dist/esm/methods/saml-sp/cache-provider.js +33 -0
- package/dist/esm/methods/saml-sp/cert-rotation.js +13 -0
- package/dist/esm/methods/saml-sp/factory.js +81 -0
- package/dist/esm/methods/saml-sp/index.js +7 -0
- package/dist/esm/methods/saml-sp/metadata.js +71 -0
- package/dist/esm/methods/saml-sp/method.js +29 -0
- package/dist/esm/methods/saml-sp/parse-idp-metadata.js +102 -0
- package/dist/esm/methods/saml-sp/saml-instance.js +59 -0
- package/dist/esm/methods/saml-sp/slo-initiate.js +84 -0
- package/dist/esm/methods/saml-sp/sls.js +154 -0
- package/dist/esm/methods/saml-sp/types.js +0 -0
- package/dist/esm/ports/scim-directory.js +0 -0
- package/dist/esm/types/error.js +5 -0
- package/dist/esm/types/result.js +3 -3
- package/dist/esm/types/scim.js +0 -0
- package/dist/esm/ui/forms.js +3 -3
- package/dist/esm/ui/index.js +8 -5
- package/dist/esm/ui/picker.js +2 -2
- package/dist/types/adapters/d1/migrations.d.ts.map +1 -1
- package/dist/types/adapters/d1/session-store.d.ts +3 -0
- package/dist/types/adapters/d1/session-store.d.ts.map +1 -1
- package/dist/types/adapters/durable-object/session-store.d.ts +3 -0
- package/dist/types/adapters/durable-object/session-store.d.ts.map +1 -1
- package/dist/types/adapters/dynamo/session-store.d.ts +3 -0
- package/dist/types/adapters/dynamo/session-store.d.ts.map +1 -1
- package/dist/types/adapters/memory/session-store.d.ts +3 -0
- package/dist/types/adapters/memory/session-store.d.ts.map +1 -1
- package/dist/types/adapters/postgres/migrations.d.ts +1 -1
- package/dist/types/adapters/postgres/migrations.d.ts.map +1 -1
- package/dist/types/adapters/postgres/session-store.d.ts +3 -0
- package/dist/types/adapters/postgres/session-store.d.ts.map +1 -1
- package/dist/types/domain/callback.d.ts +16 -1
- package/dist/types/domain/callback.d.ts.map +1 -1
- package/dist/types/domain/method-dispatch.d.ts.map +1 -1
- package/dist/types/domain/method-route.d.ts +57 -1
- package/dist/types/domain/method-route.d.ts.map +1 -1
- package/dist/types/domain/scim/discovery.d.ts +11 -0
- package/dist/types/domain/scim/discovery.d.ts.map +1 -0
- package/dist/types/domain/scim/filter.d.ts +51 -0
- package/dist/types/domain/scim/filter.d.ts.map +1 -0
- package/dist/types/domain/scim/handle.d.ts +35 -0
- package/dist/types/domain/scim/handle.d.ts.map +1 -0
- package/dist/types/domain/scim/patch.d.ts +73 -0
- package/dist/types/domain/scim/patch.d.ts.map +1 -0
- package/dist/types/domain/scim/resource.d.ts +56 -0
- package/dist/types/domain/scim/resource.d.ts.map +1 -0
- package/dist/types/http/context.d.ts +6 -1
- package/dist/types/http/context.d.ts.map +1 -1
- package/dist/types/http/cookies.d.ts +9 -1
- package/dist/types/http/cookies.d.ts.map +1 -1
- package/dist/types/http/handlers/callback.d.ts.map +1 -1
- package/dist/types/http/handlers/method-route.d.ts.map +1 -1
- package/dist/types/http/handlers/scim.d.ts +3 -0
- package/dist/types/http/handlers/scim.d.ts.map +1 -0
- package/dist/types/http/middleware/tenant.d.ts.map +1 -1
- package/dist/types/http/router.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/methods/saml-sp/acs.d.ts +4 -0
- package/dist/types/methods/saml-sp/acs.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/attributes.d.ts +45 -0
- package/dist/types/methods/saml-sp/attributes.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/authnrequest.d.ts +4 -0
- package/dist/types/methods/saml-sp/authnrequest.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/cache-provider.d.ts +38 -0
- package/dist/types/methods/saml-sp/cache-provider.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/cert-rotation.d.ts +23 -0
- package/dist/types/methods/saml-sp/cert-rotation.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/factory.d.ts +920 -0
- package/dist/types/methods/saml-sp/factory.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/index.d.ts +24 -0
- package/dist/types/methods/saml-sp/index.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/metadata.d.ts +50 -0
- package/dist/types/methods/saml-sp/metadata.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/method.d.ts +17 -0
- package/dist/types/methods/saml-sp/method.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/parse-idp-metadata.d.ts +4 -0
- package/dist/types/methods/saml-sp/parse-idp-metadata.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/saml-instance.d.ts +93 -0
- package/dist/types/methods/saml-sp/saml-instance.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/slo-initiate.d.ts +4 -0
- package/dist/types/methods/saml-sp/slo-initiate.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/sls.d.ts +4 -0
- package/dist/types/methods/saml-sp/sls.d.ts.map +1 -0
- package/dist/types/methods/saml-sp/types.d.ts +299 -0
- package/dist/types/methods/saml-sp/types.d.ts.map +1 -0
- package/dist/types/ports/audit-log.d.ts +18 -5
- package/dist/types/ports/audit-log.d.ts.map +1 -1
- package/dist/types/ports/scim-directory.d.ts +104 -0
- package/dist/types/ports/scim-directory.d.ts.map +1 -0
- package/dist/types/ports/session-store.d.ts +23 -0
- package/dist/types/ports/session-store.d.ts.map +1 -1
- package/dist/types/types/error.d.ts +5 -0
- package/dist/types/types/error.d.ts.map +1 -1
- package/dist/types/types/idp.d.ts +83 -0
- package/dist/types/types/idp.d.ts.map +1 -1
- package/dist/types/types/method.d.ts +109 -0
- package/dist/types/types/method.d.ts.map +1 -1
- package/dist/types/types/scim.d.ts +269 -0
- package/dist/types/types/scim.d.ts.map +1 -0
- package/dist/types/types/tenant.d.ts +10 -0
- package/dist/types/types/tenant.d.ts.map +1 -1
- package/package.json +9 -1
- package/src/adapters/d1/migrations.ts +5 -0
- package/src/adapters/d1/session-store.ts +68 -0
- package/src/adapters/durable-object/session-store.ts +61 -0
- package/src/adapters/dynamo/session-store.ts +63 -0
- package/src/adapters/memory/session-store.ts +39 -0
- package/src/adapters/postgres/migrations.ts +6 -0
- package/src/adapters/postgres/session-store.ts +69 -0
- package/src/domain/callback.ts +215 -7
- package/src/domain/method-dispatch.ts +53 -1
- package/src/domain/method-route.ts +190 -1
- package/src/domain/scim/discovery.ts +262 -0
- package/src/domain/scim/filter.ts +295 -0
- package/src/domain/scim/handle.ts +597 -0
- package/src/domain/scim/patch.ts +807 -0
- package/src/domain/scim/resource.ts +358 -0
- package/src/http/context.ts +9 -0
- package/src/http/cookies.ts +19 -1
- package/src/http/handlers/authorize.ts +2 -22
- package/src/http/handlers/callback.ts +9 -1
- package/src/http/handlers/method-route.ts +72 -2
- package/src/http/handlers/scim.ts +107 -0
- package/src/http/middleware/tenant.ts +47 -1
- package/src/http/router.ts +9 -0
- package/src/index.ts +23 -0
- package/src/methods/saml-sp/acs.ts +449 -0
- package/src/methods/saml-sp/attributes.ts +146 -0
- package/src/methods/saml-sp/authnrequest.ts +129 -0
- package/src/methods/saml-sp/cache-provider.ts +76 -0
- package/src/methods/saml-sp/cert-rotation.ts +34 -0
- package/src/methods/saml-sp/factory.ts +139 -0
- package/src/methods/saml-sp/index.ts +34 -0
- package/src/methods/saml-sp/metadata.ts +215 -0
- package/src/methods/saml-sp/method.ts +65 -0
- package/src/methods/saml-sp/parse-idp-metadata.ts +158 -0
- package/src/methods/saml-sp/saml-instance.ts +210 -0
- package/src/methods/saml-sp/slo-initiate.ts +180 -0
- package/src/methods/saml-sp/sls.ts +307 -0
- package/src/methods/saml-sp/types.ts +298 -0
- package/src/ports/CONSISTENCY.md +52 -24
- package/src/ports/audit-log.ts +18 -5
- package/src/ports/scim-directory.ts +166 -0
- package/src/ports/session-store.ts +24 -0
- package/src/types/error.ts +11 -0
- package/src/types/idp.ts +86 -0
- package/src/types/method.ts +110 -0
- package/src/types/scim.ts +280 -0
- package/src/types/tenant.ts +10 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AA4C1E,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDrB,CAAA;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAC3C,gBAAgB,EAChB,WAAW,EACX,YAAY,CAUb,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@_mustachio/openauth/methods/saml-sp` — SAML 2.0 Service Provider
|
|
3
|
+
* method family.
|
|
4
|
+
*
|
|
5
|
+
* **Node-only.** This entry depends transitively on
|
|
6
|
+
* `@node-saml/node-saml` and `xml-crypto`, which require `node:crypto`
|
|
7
|
+
* and the `@xmldom/xmldom` DOM. Cloudflare Workers, browsers, and
|
|
8
|
+
* other edge runtimes cannot load this module; use the root
|
|
9
|
+
* `@_mustachio/openauth` entry (OIDC / OAuth methods) on those
|
|
10
|
+
* platforms.
|
|
11
|
+
*
|
|
12
|
+
* The library's root entry is verified edge-clean by
|
|
13
|
+
* `test/types/public-api-no-thirdparty-leaks.test.ts` and the
|
|
14
|
+
* complementary `saml-sp-no-thirdparty-leaks.test.ts` — neither this
|
|
15
|
+
* subpath's third-party deps nor its public types are reachable from
|
|
16
|
+
* `@_mustachio/openauth`.
|
|
17
|
+
*
|
|
18
|
+
* See `docs/plans/claude/saml-sp-plan.md` for the architectural
|
|
19
|
+
* decisions backing this surface (SAML-AD1–AD7) and the phase plan.
|
|
20
|
+
*/
|
|
21
|
+
export { samlSpFactory } from "./factory";
|
|
22
|
+
export { parseSamlIdpMetadata } from "./parse-idp-metadata";
|
|
23
|
+
export type { SamlAttributeMapping, SamlAttributeRef, SamlIdpConfig, SamlIdpInitiatedConfig, SamlIdpSigningCert, SamlNameIdFormat, SamlSpConfig, SamlSpProperties, SamlSpState, } from "./types";
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE3D,YAAY,EACV,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,WAAW,GACZ,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MethodContext, MethodResult } from "../../types/method";
|
|
2
|
+
import type { SamlNameIdFormat, SamlSpConfig, SamlSpProperties, SamlSpState } from "./types";
|
|
3
|
+
export type SpMetadataInput = {
|
|
4
|
+
spEntityId: string;
|
|
5
|
+
acsUrl: string;
|
|
6
|
+
/**
|
|
7
|
+
* The SP's own Single Logout Service URL (`/m/<methodId>/sls`).
|
|
8
|
+
* Present ⇒ front-channel SLO is served, so the metadata advertises
|
|
9
|
+
* `SingleLogoutService` for both bindings we accept. Same
|
|
10
|
+
* advertise-only-what-we-serve invariant as the ACS / signing cert.
|
|
11
|
+
*/
|
|
12
|
+
slsUrl?: string;
|
|
13
|
+
nameIdFormat?: SamlNameIdFormat;
|
|
14
|
+
/**
|
|
15
|
+
* SP signing cert (PEM). Present ⇒ we sign AuthnRequests, so the
|
|
16
|
+
* metadata advertises `AuthnRequestsSigned="true"` and a
|
|
17
|
+
* `KeyDescriptor use="signing"`. Keeping this in lockstep with the
|
|
18
|
+
* runtime (the same `config.signingKey.certPem` that actually signs)
|
|
19
|
+
* is the same anti-drift invariant as the entityID/ACS.
|
|
20
|
+
*/
|
|
21
|
+
signingCertPem?: string;
|
|
22
|
+
/**
|
|
23
|
+
* SP encryption cert (PEM). Present ⇒ the connection accepts
|
|
24
|
+
* encrypted assertions, so the metadata advertises a
|
|
25
|
+
* `KeyDescriptor use="encryption"` (the cert the IdP encrypts to —
|
|
26
|
+
* `config.decryptionKey.certPem`). Same anti-drift / advertise-only-
|
|
27
|
+
* what-we-serve invariant as the signing cert.
|
|
28
|
+
*/
|
|
29
|
+
encryptionCertPem?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether we actually require a signed `<saml:Assertion>`
|
|
32
|
+
* (`config.requireSignedAssertion`, default `true`). Published as
|
|
33
|
+
* `WantAssertionsSigned` — same advertise-only-what-we-serve
|
|
34
|
+
* invariant as the certs: a connection relying on a signed
|
|
35
|
+
* `<Response>` instead must not claim otherwise in its metadata.
|
|
36
|
+
*/
|
|
37
|
+
wantAssertionsSigned?: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Pure SP metadata builder. Mirrors `parseSamlIdpMetadata`'s purity so
|
|
41
|
+
* it is trivially unit-testable and reusable.
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildSpMetadataXml(input: SpMetadataInput): string;
|
|
44
|
+
/**
|
|
45
|
+
* `GET /metadata` route handler. Anonymous (declared in the method's
|
|
46
|
+
* `publicRoutes`): `ctx.flow` / `ctx.methodState` are null; everything
|
|
47
|
+
* comes from `ctx.tenant` + `ctx.dispatch` + captured config.
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildSpMetadata(ctx: MethodContext<SamlSpState>, methodId: string, config: SamlSpConfig): Promise<MethodResult<SamlSpProperties, SamlSpState>>;
|
|
50
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/metadata.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGrE,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACZ,MAAM,SAAS,CAAA;AAqBhB,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,CAAA;AAUD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAkDjE;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,aAAa,CAAC,WAAW,CAAC,EAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAkDtD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `buildSamlSpMethod` — assembles the `AuthMethod` for a SAML SP
|
|
3
|
+
* instance. Mirrors `buildOauth2Method`: data + handler functions, no
|
|
4
|
+
* framework imports beyond `types/`.
|
|
5
|
+
*
|
|
6
|
+
* Routes:
|
|
7
|
+
* - `GET /authorize` → SP-initiated AuthnRequest redirect (implemented).
|
|
8
|
+
* - `GET /callback` → ACS verification gauntlet (next increment).
|
|
9
|
+
*
|
|
10
|
+
* The framework's universal callback (`/cb/<methodId>`, both GET and
|
|
11
|
+
* POST) always dispatches the `"GET /callback"` route key, so the ACS
|
|
12
|
+
* lives there rather than at a bespoke `/acs` sub-path.
|
|
13
|
+
*/
|
|
14
|
+
import type { AuthMethod } from "../../types/method";
|
|
15
|
+
import type { SamlSpConfig, SamlSpProperties, SamlSpState } from "./types";
|
|
16
|
+
export declare function buildSamlSpMethod(id: string, kind: string, config: SamlSpConfig): AuthMethod<SamlSpProperties, SamlSpState>;
|
|
17
|
+
//# sourceMappingURL=method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/method.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,oBAAoB,CAAA;AAOnE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1E,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,GACnB,UAAU,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAsC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-idp-metadata.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/parse-idp-metadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAMhD,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,SAAS,CAAA;AA8C9D,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAyFvE"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Construct a `@node-saml/node-saml` `SAML` instance from validated
|
|
3
|
+
* `SamlSpConfig` plus the per-request binding context (SP entityID +
|
|
4
|
+
* ACS URL, both derived at dispatch time per SAML-AD5).
|
|
5
|
+
*
|
|
6
|
+
* CJS interop: node-saml is CommonJS-only. Per the SAML house-style
|
|
7
|
+
* note, default-import then destructure rather than relying on the
|
|
8
|
+
* named-export heuristic.
|
|
9
|
+
*/
|
|
10
|
+
import nodeSaml from "@node-saml/node-saml";
|
|
11
|
+
import type { MethodScratch } from "../../types/method";
|
|
12
|
+
import type { SamlNameIdFormat, SamlSpConfig } from "./types";
|
|
13
|
+
declare const SAML: typeof nodeSaml.SAML;
|
|
14
|
+
type SamlInstance = InstanceType<typeof SAML>;
|
|
15
|
+
/** Standard SAML 2.0 NameID format URNs. */
|
|
16
|
+
export declare const NAME_ID_FORMAT_URN: Record<SamlNameIdFormat, string>;
|
|
17
|
+
export type SamlBindingContext = {
|
|
18
|
+
/** SP entityID — `<issuerUrl>/<tenantId>/<methodId>` (SAML-AD5). */
|
|
19
|
+
spEntityId: string;
|
|
20
|
+
/** ACS URL — the framework's `/cb/<methodId>` universal callback. */
|
|
21
|
+
acsUrl: string;
|
|
22
|
+
/** Per-request scratch backing the `InResponseTo` cache. */
|
|
23
|
+
scratch: MethodScratch;
|
|
24
|
+
/**
|
|
25
|
+
* IdP-initiated mode. An unsolicited Response has no `InResponseTo`
|
|
26
|
+
* (there was no AuthnRequest), so `validateInResponseTo` must be
|
|
27
|
+
* `ifPresent` rather than `always` — otherwise node-saml throws
|
|
28
|
+
* "InResponseTo is missing". Signature / Issuer / Audience /
|
|
29
|
+
* Conditions are still fully enforced; assertion-ID replay dedup is
|
|
30
|
+
* layered on top by the caller (node-saml does not dedup unsolicited
|
|
31
|
+
* assertion IDs). Default `false` ⇒ SP-initiated, `always`
|
|
32
|
+
* (unchanged).
|
|
33
|
+
*/
|
|
34
|
+
idpInitiated?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Logout-binding instance (the `/sls` + `/logout` paths). node-saml's
|
|
37
|
+
* `InResponseTo` machinery only reads the attribute off a `Response`
|
|
38
|
+
* root, never a `LogoutResponse`, so with the default `always` it
|
|
39
|
+
* throws "InResponseTo is missing" on every inbound `LogoutResponse`.
|
|
40
|
+
* Front-channel logout correlation is out of that scope — we
|
|
41
|
+
* replay-dedup the inbound `LogoutRequest @ID` via `methodScratch`
|
|
42
|
+
* instead — so logout instances use `never`. Overrides `idpInitiated`.
|
|
43
|
+
*/
|
|
44
|
+
logout?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Per-connection SP signing material (SAML-AD: O3 — decoupled from
|
|
47
|
+
* the OIDC `KeyStore`; the IdP pins this cert, rotation is an
|
|
48
|
+
* IdP-coordination event). Present ⇒ node-saml signs the outbound
|
|
49
|
+
* `AuthnRequest` (HTTP-Redirect binding) **and** outbound logout
|
|
50
|
+
* messages (`LogoutRequest` / `LogoutResponse`) with it.
|
|
51
|
+
*/
|
|
52
|
+
signing?: {
|
|
53
|
+
privateKeyPem: string;
|
|
54
|
+
certPem: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* IdP Single Logout endpoint (`SamlSpConfig.idp.sloUrl`). Destination
|
|
58
|
+
* for SP-emitted `LogoutResponse` (front-channel SLO, Phase 3) and
|
|
59
|
+
* SP-initiated `LogoutRequest`. Only needed on the `/sls` path; the
|
|
60
|
+
* SSO paths leave it unset.
|
|
61
|
+
*/
|
|
62
|
+
logoutUrl?: string;
|
|
63
|
+
/**
|
|
64
|
+
* SP decryption private key PEM (`SamlSpConfig.decryptionKey`),
|
|
65
|
+
* passed through to node-saml's `decryptionPvk`. Present ⇒ node-saml
|
|
66
|
+
* decrypts `<saml:EncryptedAssertion>` (the decrypted assertion's
|
|
67
|
+
* XML-DSig is still fully enforced). Set only when the connection
|
|
68
|
+
* opted into `allowEncryptedAssertions`; absent ⇒ an encrypted
|
|
69
|
+
* assertion is rejected.
|
|
70
|
+
*/
|
|
71
|
+
decryptionPvk?: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Derive the per-instance SP entityID. Stable across deploys for a
|
|
75
|
+
* given `(issuerUrl, tenantId, methodId)` triple so IdP-side trust
|
|
76
|
+
* config doesn't churn.
|
|
77
|
+
*/
|
|
78
|
+
export declare function deriveSpEntityId(issuerUrl: string, tenantId: string, methodId: string): string;
|
|
79
|
+
/**
|
|
80
|
+
* The SP entityID this connection actually presents — the configured
|
|
81
|
+
* override if the operator set one (to adopt an entityID that already
|
|
82
|
+
* exists at the IdP), else the derived default.
|
|
83
|
+
*
|
|
84
|
+
* **Every** consumer must go through this one function: the
|
|
85
|
+
* `AuthnRequest` issuer, `AudienceRestriction` validation, SP metadata,
|
|
86
|
+
* and logout messages all have to agree, or the IdP rejects us. That
|
|
87
|
+
* shared-resolution property is what the metadata anti-drift test
|
|
88
|
+
* guards.
|
|
89
|
+
*/
|
|
90
|
+
export declare function resolveSpEntityId(config: SamlSpConfig, issuerUrl: string, tenantId: string, methodId: string): string;
|
|
91
|
+
export declare function buildSamlInstance(config: SamlSpConfig, binding: SamlBindingContext, nowMs: number): SamlInstance;
|
|
92
|
+
export {};
|
|
93
|
+
//# sourceMappingURL=saml-instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saml-instance.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/saml-instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH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B,KAAK,EAAE,MAAM,GACZ,YAAY,CA8Ed"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MethodContext, MethodResult } from "../../types/method";
|
|
2
|
+
import type { SamlSpConfig, SamlSpProperties, SamlSpState } from "./types";
|
|
3
|
+
export declare function initiateSpLogout(ctx: MethodContext<SamlSpState>, methodId: string, config: SamlSpConfig): Promise<MethodResult<SamlSpProperties, SamlSpState>>;
|
|
4
|
+
//# sourceMappingURL=slo-initiate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slo-initiate.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/slo-initiate.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAOrE,OAAO,KAAK,EAEV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,aAAa,CAAC,WAAW,CAAC,EAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAmItD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MethodContext, MethodResult } from "../../types/method";
|
|
2
|
+
import type { SamlSpConfig, SamlSpProperties, SamlSpState } from "./types";
|
|
3
|
+
export declare function consumeSls(ctx: MethodContext<SamlSpState>, methodId: string, config: SamlSpConfig): Promise<MethodResult<SamlSpProperties, SamlSpState>>;
|
|
4
|
+
//# sourceMappingURL=sls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sls.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/sls.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmB1E,wBAAsB,UAAU,CAC9B,GAAG,EAAE,aAAa,CAAC,WAAW,CAAC,EAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAuPtD"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SAML SP — public types.
|
|
3
|
+
*
|
|
4
|
+
* These types are the locked contract for the SAML SP method family and
|
|
5
|
+
* are intentionally introduced ahead of the runtime implementation so
|
|
6
|
+
* downstream callers can import them today, and so the public-API
|
|
7
|
+
* leak guard
|
|
8
|
+
* (`test/types/saml-sp-no-thirdparty-leaks.test.ts`) can verify
|
|
9
|
+
* the shapes before any `@node-saml/*` or `xml-crypto` code lands.
|
|
10
|
+
*
|
|
11
|
+
* No third-party types appear here. `@node-saml/node-saml`'s `Profile`
|
|
12
|
+
* is mapped onto `SamlSpProperties` at the wrapper boundary; consumers
|
|
13
|
+
* never see node-saml's surface.
|
|
14
|
+
*
|
|
15
|
+
* See `docs/plans/claude/saml-sp-plan.md` for the architectural
|
|
16
|
+
* decisions (SAML-AD1–AD7) backing this shape.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Standard SAML 2.0 NameID formats we support.
|
|
20
|
+
*
|
|
21
|
+
* - `persistent` — opaque, stable per user/SP pair; preferred.
|
|
22
|
+
* - `transient` — opaque, single-session.
|
|
23
|
+
* - `emailAddress` — RFC 822 email; common with legacy IdPs.
|
|
24
|
+
* - `unspecified` — IdP picks; pass through verbatim.
|
|
25
|
+
*/
|
|
26
|
+
export type SamlNameIdFormat = "persistent" | "transient" | "emailAddress" | "unspecified";
|
|
27
|
+
/**
|
|
28
|
+
* One field's source. Either the assertion's NameID or a named
|
|
29
|
+
* attribute. `format` narrows attribute lookup when an IdP issues
|
|
30
|
+
* multiple attributes with the same `Name` but different `NameFormat`.
|
|
31
|
+
*/
|
|
32
|
+
export type SamlAttributeRef = {
|
|
33
|
+
source: "nameId";
|
|
34
|
+
} | {
|
|
35
|
+
source: "attribute";
|
|
36
|
+
name: string;
|
|
37
|
+
format?: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* How the SAML method translates a verified assertion into the
|
|
41
|
+
* `providerSubject` + per-claim fields that flow into the host's
|
|
42
|
+
* `success` callback. Mirrors the OIDC method's claim-mapping
|
|
43
|
+
* configuration — the host owns the final `SubjectClaim`; this map
|
|
44
|
+
* just normalises the SAML side.
|
|
45
|
+
*/
|
|
46
|
+
export type SamlAttributeMapping = {
|
|
47
|
+
/** Which attribute becomes `providerSubject`. Defaults to NameID. */
|
|
48
|
+
subject?: SamlAttributeRef;
|
|
49
|
+
email?: SamlAttributeRef;
|
|
50
|
+
/** SAML assertions are typically issued only after IdP-side verification. */
|
|
51
|
+
emailVerified?: {
|
|
52
|
+
source: "literal";
|
|
53
|
+
value: boolean;
|
|
54
|
+
};
|
|
55
|
+
name?: SamlAttributeRef;
|
|
56
|
+
/** Multi-valued — the mapper preserves array shape. */
|
|
57
|
+
groups?: SamlAttributeRef;
|
|
58
|
+
/** Pass-through map for additional claims hosts want surfaced. */
|
|
59
|
+
custom?: Record<string, SamlAttributeRef>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* A single PEM-encoded IdP signing certificate, optionally bounded by a
|
|
63
|
+
* validity window. The runtime verifier accepts any cert whose window
|
|
64
|
+
* covers `now` — supports overlapping hot rotation without re-deploys.
|
|
65
|
+
*/
|
|
66
|
+
export type SamlIdpSigningCert = {
|
|
67
|
+
pem: string;
|
|
68
|
+
/** Inclusive lower bound. Unix ms. Omit for no lower bound. */
|
|
69
|
+
notBefore?: number;
|
|
70
|
+
/** Exclusive upper bound. Unix ms. Omit for no upper bound. */
|
|
71
|
+
notAfter?: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Identity-Provider-side configuration the host paste/imports from the
|
|
75
|
+
* IdP's metadata XML (or uploads a metadata URL we fetch once). Stable
|
|
76
|
+
* across deploys — keyed by `(tenantId, methodId)` in `MethodStore`.
|
|
77
|
+
*/
|
|
78
|
+
export type SamlIdpConfig = {
|
|
79
|
+
entityId: string;
|
|
80
|
+
/** SSO endpoint URL. HTTP-Redirect binding is the default. */
|
|
81
|
+
ssoUrl: string;
|
|
82
|
+
/** Single Logout endpoint URL. Optional; Phase 3 deliverable. */
|
|
83
|
+
sloUrl?: string;
|
|
84
|
+
/** Preferred NameID format requested in `AuthnRequest`. */
|
|
85
|
+
nameIdFormat?: SamlNameIdFormat;
|
|
86
|
+
/** One or more IdP signing certs. ≥1 required. Hot-rotatable. */
|
|
87
|
+
signingCerts: ReadonlyArray<SamlIdpSigningCert>;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* IdP-initiated SSO binding. When set, the ACS endpoint accepts
|
|
91
|
+
* unsolicited SAML Responses (no `InResponseTo`) and synthesizes a
|
|
92
|
+
* flow record using these defaults so the existing
|
|
93
|
+
* `MethodResult.success` path can run end-to-end.
|
|
94
|
+
*
|
|
95
|
+
* Documented in plan SAML-AD7 — this is the one architectural carve-out
|
|
96
|
+
* SAML imposes on the framework. Omit to reject unsolicited Responses
|
|
97
|
+
* with `invalid_request` (the conservative default).
|
|
98
|
+
*/
|
|
99
|
+
export type SamlIdpInitiatedConfig = {
|
|
100
|
+
defaultClientId: string;
|
|
101
|
+
defaultRedirectUri: string;
|
|
102
|
+
defaultScopes?: string[];
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Tenant-supplied configuration for a SAML SP method instance.
|
|
106
|
+
* Validated by `samlSpFactory.configSchema` (Standard Schema v1).
|
|
107
|
+
*/
|
|
108
|
+
export type SamlSpConfig = {
|
|
109
|
+
idp: SamlIdpConfig;
|
|
110
|
+
attributeMapping: SamlAttributeMapping;
|
|
111
|
+
/** Whether to sign outbound `AuthnRequest`. Default `false`. */
|
|
112
|
+
signAuthnRequest?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Per-connection SP signing keypair (SAML-AD: O3). **Decoupled from
|
|
115
|
+
* the OIDC `KeyStore` on purpose** — the SP signing cert is pinned at
|
|
116
|
+
* the IdP and rotated as an IdP-coordination event, not on the OIDC
|
|
117
|
+
* token-key schedule; this also keeps the design KMS-agnostic.
|
|
118
|
+
* `privateKeyPem` signs the `AuthnRequest`; `certPem` is what the IdP
|
|
119
|
+
* pins and what SP metadata advertises. Required iff
|
|
120
|
+
* `signAuthnRequest` is `true`. Treat `privateKeyPem` as a secret:
|
|
121
|
+
* the host should encrypt the `MethodStore` at rest (or supply it via
|
|
122
|
+
* its own resolver) — same handling as any per-tenant credential.
|
|
123
|
+
*/
|
|
124
|
+
signingKey?: {
|
|
125
|
+
privateKeyPem: string;
|
|
126
|
+
certPem: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Accept `<saml:EncryptedAssertion>` responses. **Off by default** —
|
|
130
|
+
* a connection only opts in when its IdP is configured to encrypt.
|
|
131
|
+
* When `false`, an encrypted assertion is rejected (the SP advertises
|
|
132
|
+
* no decryption cert and node-saml has no `decryptionPvk`). Requires
|
|
133
|
+
* `decryptionKey` when `true` (enforced by `configSchema`).
|
|
134
|
+
*/
|
|
135
|
+
allowEncryptedAssertions?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Per-connection SP **decryption** keypair — the private half the IdP
|
|
138
|
+
* encrypts assertions to. Same SAML-AD O3 rationale as `signingKey`:
|
|
139
|
+
* decoupled from the OIDC `KeyStore` (the IdP pins the matching cert
|
|
140
|
+
* via SP metadata; rotation is an IdP-coordination event;
|
|
141
|
+
* KMS-agnostic). Required iff `allowEncryptedAssertions` is `true`.
|
|
142
|
+
* Treat `privateKeyPem` as a secret: the host should encrypt the
|
|
143
|
+
* `MethodStore` at rest (or supply it via its own resolver) — same
|
|
144
|
+
* handling as `signingKey.privateKeyPem` and any per-tenant
|
|
145
|
+
* credential. `certPem` is the matching X.509 cert the IdP encrypts
|
|
146
|
+
* to; SP metadata advertises it as a `use="encryption"`
|
|
147
|
+
* `KeyDescriptor` (same advertise-only-what-we-serve invariant as
|
|
148
|
+
* `signingKey`).
|
|
149
|
+
*/
|
|
150
|
+
decryptionKey?: {
|
|
151
|
+
privateKeyPem: string;
|
|
152
|
+
certPem: string;
|
|
153
|
+
};
|
|
154
|
+
idpInitiated?: SamlIdpInitiatedConfig;
|
|
155
|
+
/** Clock skew allowance for `NotBefore` / `NotOnOrAfter`. Seconds. */
|
|
156
|
+
clockSkewSeconds?: number;
|
|
157
|
+
/**
|
|
158
|
+
* Override the derived SP entityID.
|
|
159
|
+
*
|
|
160
|
+
* By default the entityID is derived as
|
|
161
|
+
* `<issuerUrl>/<tenantId>/<methodId>` (SAML-AD5) — stable, no config
|
|
162
|
+
* required, and guaranteed to match what SP metadata publishes. Set
|
|
163
|
+
* this **only** to adopt an entityID that already exists at the IdP,
|
|
164
|
+
* so an existing SAML app can be migrated without the customer
|
|
165
|
+
* editing their production SSO config.
|
|
166
|
+
*
|
|
167
|
+
* The override flows through every consumer at once — `AuthnRequest`
|
|
168
|
+
* issuer, `AudienceRestriction` validation, SP metadata, and logout
|
|
169
|
+
* messages — so the anti-drift invariant holds either way. Changing
|
|
170
|
+
* it on a live connection invalidates the IdP-side trust config;
|
|
171
|
+
* treat it as an IdP-coordination event.
|
|
172
|
+
*/
|
|
173
|
+
spEntityId?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Set `ForceAuthn="true"` on the outbound `AuthnRequest`, asking the
|
|
176
|
+
* IdP to re-authenticate the user even if it has a live session.
|
|
177
|
+
* Default `false`.
|
|
178
|
+
*
|
|
179
|
+
* Note that this is a *request*: SAML gives the IdP no obligation to
|
|
180
|
+
* honour it, and there is no way to verify from the Response that it
|
|
181
|
+
* did. Do not treat a successful assertion as proof of fresh
|
|
182
|
+
* authentication.
|
|
183
|
+
*/
|
|
184
|
+
forceAuthn?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Request specific authentication context classes (e.g. MFA) from
|
|
187
|
+
* the IdP via `<RequestedAuthnContext>`.
|
|
188
|
+
*
|
|
189
|
+
* **Omitted ⇒ no `RequestedAuthnContext` element is sent at all**,
|
|
190
|
+
* which lets the IdP apply its own sign-on policy. That is the right
|
|
191
|
+
* default for nearly every deployment: a `RequestedAuthnContext` the
|
|
192
|
+
* IdP cannot satisfy exactly is answered with `NoAuthnContext`
|
|
193
|
+
* instead of a login, and an MFA policy at the IdP is a common way
|
|
194
|
+
* to *not* satisfy `PasswordProtectedTransport` under
|
|
195
|
+
* `Comparison="exact"`.
|
|
196
|
+
*
|
|
197
|
+
* Set it only when the IdP has told you which class refs it honours.
|
|
198
|
+
* `comparison` maps to the `Comparison` attribute and defaults to
|
|
199
|
+
* `"exact"`; `"minimum"` is usually the safer choice when requesting
|
|
200
|
+
* MFA.
|
|
201
|
+
*
|
|
202
|
+
* Requesting a context does **not** verify one was used — read
|
|
203
|
+
* `SamlSpProperties.authnContextClassRef` for what the IdP actually
|
|
204
|
+
* asserted.
|
|
205
|
+
*/
|
|
206
|
+
requestedAuthnContext?: {
|
|
207
|
+
/** Full URNs, e.g. `urn:oasis:names:tc:SAML:2.0:ac:classes:MultiFactorAuthn`. */
|
|
208
|
+
classRefs: ReadonlyArray<string>;
|
|
209
|
+
comparison?: "exact" | "minimum" | "maximum" | "better";
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Require the `<saml:Assertion>` itself to carry a valid XML-DSig.
|
|
213
|
+
* **Defaults to `true` and should stay that way** — the identity,
|
|
214
|
+
* conditions, and audience all live inside the assertion, so signing
|
|
215
|
+
* it is what actually binds them.
|
|
216
|
+
*
|
|
217
|
+
* Set `false` only for an IdP that signs the outer `<Response>` and
|
|
218
|
+
* nothing else, and only together with `requireSignedResponse: true`.
|
|
219
|
+
* The schema refuses to let both be off.
|
|
220
|
+
*/
|
|
221
|
+
requireSignedAssertion?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Require the outer `<samlp:Response>` to carry a valid XML-DSig.
|
|
224
|
+
* Default `false` — requiring it is stricter than the Okta / Entra
|
|
225
|
+
* default and would reject the majority of real IdPs. Enable it for
|
|
226
|
+
* an IdP that signs the Response, either as defence in depth
|
|
227
|
+
* alongside a signed assertion or (with
|
|
228
|
+
* `requireSignedAssertion: false`) as the only signature on offer.
|
|
229
|
+
*/
|
|
230
|
+
requireSignedResponse?: boolean;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Method-private state stashed in `FlowRecord.methodState` for the
|
|
234
|
+
* duration of an SP-initiated flow.
|
|
235
|
+
*
|
|
236
|
+
* `InResponseTo` correlation is handled out-of-band by node-saml's
|
|
237
|
+
* `CacheProvider` (backed by `methodScratch`), so the outstanding
|
|
238
|
+
* request id does **not** live here — only the framework state
|
|
239
|
+
* envelope echoed as RelayState and the issuance timestamp.
|
|
240
|
+
*/
|
|
241
|
+
export type SamlSpState = {
|
|
242
|
+
relayState: string;
|
|
243
|
+
issuedAt: number;
|
|
244
|
+
/**
|
|
245
|
+
* SP entityID + ACS URL computed at AuthnRequest time, where the
|
|
246
|
+
* framework's dispatch context is available. The ACS dispatch has
|
|
247
|
+
* no dispatch context, so these are read back from here to validate
|
|
248
|
+
* the assertion's `AudienceRestriction` / `Recipient` against the
|
|
249
|
+
* exact values the IdP saw in the request.
|
|
250
|
+
*/
|
|
251
|
+
spEntityId: string;
|
|
252
|
+
acsUrl: string;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Properties handed to the host's `IdPOptions.success` callback on a
|
|
256
|
+
* successful SAML authentication. The host translates these into the
|
|
257
|
+
* final `SubjectClaim` it owns.
|
|
258
|
+
*
|
|
259
|
+
* `raw.responseXml` is provided as an escape hatch for hosts that want
|
|
260
|
+
* to inspect the verified Response themselves; the wrapper has already
|
|
261
|
+
* run the full signature gauntlet by the time these properties leave
|
|
262
|
+
* the method.
|
|
263
|
+
*/
|
|
264
|
+
export type SamlSpProperties = {
|
|
265
|
+
nameId: {
|
|
266
|
+
value: string;
|
|
267
|
+
format: SamlNameIdFormat;
|
|
268
|
+
};
|
|
269
|
+
attributes: Record<string, string | string[]>;
|
|
270
|
+
/** Used for Single Logout correlation (Phase 3). */
|
|
271
|
+
sessionIndex?: string;
|
|
272
|
+
/** Unix ms — the assertion's `AuthnInstant`. */
|
|
273
|
+
authnInstant: number;
|
|
274
|
+
/**
|
|
275
|
+
* Unix ms — the `AuthnStatement/@SessionNotOnOrAfter` the IdP
|
|
276
|
+
* asserted, when it supplied one. This is the IdP's own view of when
|
|
277
|
+
* its session for this user expires.
|
|
278
|
+
*
|
|
279
|
+
* The library does **not** act on it: token and session lifetimes are
|
|
280
|
+
* host policy, and this library owns no session. Hosts that want
|
|
281
|
+
* "when their IdP session ends, ours ends" should clamp their own
|
|
282
|
+
* session/token TTL to this value in the `success` callback.
|
|
283
|
+
*/
|
|
284
|
+
sessionNotOnOrAfter?: number;
|
|
285
|
+
/**
|
|
286
|
+
* The `AuthnContext/AuthnContextClassRef` the IdP actually asserted —
|
|
287
|
+
* i.e. how it says it authenticated the user. Absent when the
|
|
288
|
+
* assertion carries none.
|
|
289
|
+
*
|
|
290
|
+
* This is the value to check for step-up decisions ("was this really
|
|
291
|
+
* MFA?"). `SamlSpConfig.requestedAuthnContext` only *asks*; this is
|
|
292
|
+
* the answer, and the two can differ.
|
|
293
|
+
*/
|
|
294
|
+
authnContextClassRef?: string;
|
|
295
|
+
raw: {
|
|
296
|
+
responseXml: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/methods/saml-sp/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,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AAA;IAChB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAC7C,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAA;IACpB;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,GAAG,EAAE;QACH,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA"}
|
|
@@ -83,16 +83,29 @@ export type AuditEvent = {
|
|
|
83
83
|
family: string;
|
|
84
84
|
} | {
|
|
85
85
|
/**
|
|
86
|
-
* Emitted
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
86
|
+
* Emitted after a logout is processed. Two channels, discriminated
|
|
87
|
+
* by `via`:
|
|
88
|
+
*
|
|
89
|
+
* - `rp_initiated` (or absent — the default): `/end_session`
|
|
90
|
+
* (OIDC RP-Initiated Logout 1.0 §2), regardless of whether a
|
|
91
|
+
* `post_logout_redirect_uri` was supplied. `subjectId` present
|
|
92
|
+
* when an `id_token_hint` verified; absent otherwise.
|
|
93
|
+
* - `upstream_slo`: an upstream IdP notified us a federated
|
|
94
|
+
* session ended (SAML front-channel Single Logout). `methodId`
|
|
95
|
+
* / `methodKind` identify the federation connection;
|
|
96
|
+
* `subjectId` present only when the host's `onLogout` returned
|
|
97
|
+
* a subject to revoke.
|
|
98
|
+
*
|
|
99
|
+
* `via` is general (OIDC back-channel logout would reuse
|
|
100
|
+
* `upstream_slo`), not SAML-specific surface.
|
|
91
101
|
*/
|
|
92
102
|
kind: "session_logout";
|
|
93
103
|
tenantId: TenantId;
|
|
94
104
|
clientId?: string;
|
|
95
105
|
subjectId?: string;
|
|
106
|
+
via?: "rp_initiated" | "upstream_slo";
|
|
107
|
+
methodId?: string;
|
|
108
|
+
methodKind?: string;
|
|
96
109
|
} | {
|
|
97
110
|
/**
|
|
98
111
|
* Emitted when a DPoP proof's `jti` is presented within the replay
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../../src/ports/audit-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB;IACE,IAAI,EAAE,mBAAmB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACf,GACD;IACE,IAAI,EAAE,qBAAqB,CAAA;IAC3B,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAA;IACxB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAA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