@frontmcp/auth 0.12.1 → 1.0.0-beta.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/cimd/cimd.cache.d.ts +0 -5
- package/cimd/cimd.cache.d.ts.map +1 -1
- package/cimd/index.d.ts +1 -2
- package/cimd/index.d.ts.map +1 -1
- package/consent/index.d.ts +2 -1
- package/consent/index.d.ts.map +1 -1
- package/detection/auth-provider-detection.d.ts +4 -2
- package/detection/auth-provider-detection.d.ts.map +1 -1
- package/esm/index.mjs +673 -768
- package/esm/package.json +4 -4
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +745 -858
- package/jwks/index.d.ts +1 -12
- package/jwks/index.d.ts.map +1 -1
- package/jwks/jwks.service.d.ts +1 -6
- package/jwks/jwks.service.d.ts.map +1 -1
- package/jwks/jwks.types.d.ts +0 -7
- package/jwks/jwks.types.d.ts.map +1 -1
- package/machine-id/machine-id.d.ts.map +1 -1
- package/options/app-auth.schema.d.ts +29 -37
- package/options/app-auth.schema.d.ts.map +1 -1
- package/options/index.d.ts +6 -6
- package/options/index.d.ts.map +1 -1
- package/options/interfaces.d.ts +72 -32
- package/options/interfaces.d.ts.map +1 -1
- package/options/orchestrated.schema.d.ts +54 -56
- package/options/orchestrated.schema.d.ts.map +1 -1
- package/options/schema.d.ts +30 -38
- package/options/schema.d.ts.map +1 -1
- package/options/shared.schemas.d.ts +61 -9
- package/options/shared.schemas.d.ts.map +1 -1
- package/options/transparent.schema.d.ts +15 -15
- package/options/typecheck.d.ts.map +1 -1
- package/options/utils.d.ts +16 -7
- package/options/utils.d.ts.map +1 -1
- package/package.json +4 -4
- package/session/session-crypto.d.ts.map +1 -1
- package/session/session.transport.d.ts +3 -4
- package/session/session.transport.d.ts.map +1 -1
- package/session/utils/session-crypto.utils.d.ts.map +1 -1
- package/jwks/dev-key-persistence.d.ts +0 -70
- package/jwks/dev-key-persistence.d.ts.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export declare class TransportIdGenerator {
|
|
2
2
|
/**
|
|
3
3
|
* Create a transport session ID.
|
|
4
|
-
*
|
|
4
|
+
* Generates JWT-style IDs for distributed session support.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
7
|
-
* @returns A JWT-style transport session ID (UUID without dashes)
|
|
6
|
+
* @returns A transport session ID (UUID without dashes)
|
|
8
7
|
*/
|
|
9
|
-
static createId(
|
|
8
|
+
static createId(): string;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=session.transport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.transport.d.ts","sourceRoot":"","sources":["../../src/session/session.transport.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAC/B
|
|
1
|
+
{"version":3,"file":"session.transport.d.ts","sourceRoot":"","sources":["../../src/session/session.transport.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAC/B;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,IAAI,MAAM;CAG1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-crypto.utils.d.ts","sourceRoot":"","sources":["../../../src/session/utils/session-crypto.utils.ts"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AACH,wBAAgB,MAAM,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"session-crypto.utils.d.ts","sourceRoot":"","sources":["../../../src/session/utils/session-crypto.utils.ts"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAoBnC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAS7D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAMtD;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
/**
|
|
3
|
-
* Data structure for persisted development keys
|
|
4
|
-
* @deprecated Use `AsymmetricKeyData` from `@frontmcp/utils` instead.
|
|
5
|
-
*/
|
|
6
|
-
export interface DevKeyData {
|
|
7
|
-
/** Key ID (kid) */
|
|
8
|
-
kid: string;
|
|
9
|
-
/** Private key in JWK format (portable) */
|
|
10
|
-
privateKey: JsonWebKey;
|
|
11
|
-
/** Public JWKS for verification */
|
|
12
|
-
publicJwk: JSONWebKeySet;
|
|
13
|
-
/** Key creation timestamp (ms) */
|
|
14
|
-
createdAt: number;
|
|
15
|
-
/** Algorithm used */
|
|
16
|
-
alg: 'RS256' | 'ES256';
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Options for dev key persistence
|
|
20
|
-
*/
|
|
21
|
-
export interface DevKeyPersistenceOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Path to store dev keys
|
|
24
|
-
* @default '.frontmcp/dev-keys.json'
|
|
25
|
-
*/
|
|
26
|
-
keyPath?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Enable persistence in production (NOT RECOMMENDED)
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
forceEnable?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if dev key persistence is enabled based on environment and options
|
|
35
|
-
* @deprecated Use `createKeyPersistence` from `@frontmcp/utils` instead.
|
|
36
|
-
*/
|
|
37
|
-
export declare function isDevKeyPersistenceEnabled(options?: DevKeyPersistenceOptions): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Resolve the key file path
|
|
40
|
-
* @deprecated Use `createKeyPersistence` from `@frontmcp/utils` instead.
|
|
41
|
-
*/
|
|
42
|
-
export declare function resolveKeyPath(options?: DevKeyPersistenceOptions): string;
|
|
43
|
-
/**
|
|
44
|
-
* Load persisted dev key from file
|
|
45
|
-
*
|
|
46
|
-
* @param options - Persistence options
|
|
47
|
-
* @returns The loaded key data or null if not found/invalid
|
|
48
|
-
* @deprecated Use `createKeyPersistence` from `@frontmcp/utils` and call `getAsymmetric(kid)` instead.
|
|
49
|
-
*/
|
|
50
|
-
export declare function loadDevKey(options?: DevKeyPersistenceOptions): Promise<DevKeyData | null>;
|
|
51
|
-
/**
|
|
52
|
-
* Save dev key to file
|
|
53
|
-
*
|
|
54
|
-
* Uses atomic write (temp file + rename) to prevent corruption.
|
|
55
|
-
* Sets file permissions to 0o600 (owner read/write only) for security.
|
|
56
|
-
*
|
|
57
|
-
* @param keyData - Key data to persist
|
|
58
|
-
* @param options - Persistence options
|
|
59
|
-
* @returns true if save succeeded, false otherwise
|
|
60
|
-
* @deprecated Use `createKeyPersistence` from `@frontmcp/utils` and call `set(asymmetricKeyData)` instead.
|
|
61
|
-
*/
|
|
62
|
-
export declare function saveDevKey(keyData: DevKeyData, options?: DevKeyPersistenceOptions): Promise<boolean>;
|
|
63
|
-
/**
|
|
64
|
-
* Delete persisted dev key
|
|
65
|
-
*
|
|
66
|
-
* @param options - Persistence options
|
|
67
|
-
* @deprecated Use `createKeyPersistence` from `@frontmcp/utils` and call `delete(kid)` instead.
|
|
68
|
-
*/
|
|
69
|
-
export declare function deleteDevKey(options?: DevKeyPersistenceOptions): Promise<void>;
|
|
70
|
-
//# sourceMappingURL=dev-key-persistence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-key-persistence.d.ts","sourceRoot":"","sources":["../../src/jwks/dev-key-persistence.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAIrC;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE,aAAa,CAAC;IACzB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA2GD;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAUtF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAUzE;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CA6B/F;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,CAgC1G;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWpF"}
|