fastmcp 4.16.14 → 4.17.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/FastMCP.cjs +3 -3
- package/dist/FastMCP.d.cts +3 -2
- package/dist/FastMCP.d.ts +3 -2
- package/dist/FastMCP.js +2 -2
- package/dist/{OAuthProvider-Bvt5a7yr.d.cts → OAuthProvider-Dy1PbWAT.d.cts} +50 -1
- package/dist/{OAuthProvider-Bvt5a7yr.d.ts → OAuthProvider-Dy1PbWAT.d.ts} +50 -1
- package/dist/auth/index.cjs +2 -2
- package/dist/auth/index.d.cts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-YZWUEW3A.cjs → chunk-E3HXGE2O.cjs} +270 -24
- package/dist/chunk-E3HXGE2O.cjs.map +1 -0
- package/dist/{chunk-IUDWO3A2.js → chunk-KWRV7CHJ.js} +261 -15
- package/dist/chunk-KWRV7CHJ.js.map +1 -0
- package/dist/{chunk-KEGPQRWF.cjs → chunk-SYZRGVQX.cjs} +1 -1
- package/dist/chunk-SYZRGVQX.cjs.map +1 -0
- package/dist/{chunk-GABSX3WB.js → chunk-UODI5E6U.js} +1 -1
- package/dist/chunk-UODI5E6U.js.map +1 -0
- package/dist/examples/custom-routes.cjs +3 -3
- package/dist/examples/custom-routes.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GABSX3WB.js.map +0 -1
- package/dist/chunk-IUDWO3A2.js.map +0 -1
- package/dist/chunk-KEGPQRWF.cjs.map +0 -1
- package/dist/chunk-YZWUEW3A.cjs.map +0 -1
package/dist/FastMCP.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSYZRGVQXcjs = require('./chunk-SYZRGVQX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var _chunkKEGPQRWFcjs = require('./chunk-KEGPQRWF.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkE3HXGE2Ocjs = require('./chunk-E3HXGE2O.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -49,5 +49,5 @@ var _chunkYZWUEW3Acjs = require('./chunk-YZWUEW3A.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
exports.AuthProvider =
|
|
52
|
+
exports.AuthProvider = _chunkE3HXGE2Ocjs.AuthProvider; exports.AzureProvider = _chunkE3HXGE2Ocjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkSYZRGVQXcjs.DiscoveryDocumentCache; exports.FastMCP = _chunkSYZRGVQXcjs.FastMCP; exports.FastMCPError = _chunkSYZRGVQXcjs.FastMCPError; exports.FastMCPSession = _chunkSYZRGVQXcjs.FastMCPSession; exports.GitHubProvider = _chunkE3HXGE2Ocjs.GitHubProvider; exports.GoogleProvider = _chunkE3HXGE2Ocjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkSYZRGVQXcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkE3HXGE2Ocjs.OAuthProvider; exports.ServerState = _chunkSYZRGVQXcjs.ServerState; exports.SessionError = _chunkSYZRGVQXcjs.SessionError; exports.UnexpectedStateError = _chunkSYZRGVQXcjs.UnexpectedStateError; exports.UserError = _chunkSYZRGVQXcjs.UserError; exports.audioContent = _chunkSYZRGVQXcjs.audioContent; exports.getAuthSession = _chunkE3HXGE2Ocjs.getAuthSession; exports.imageContent = _chunkSYZRGVQXcjs.imageContent; exports.jsonSchemaAdapter = _chunkSYZRGVQXcjs.jsonSchemaAdapter; exports.requireAll = _chunkE3HXGE2Ocjs.requireAll; exports.requireAny = _chunkE3HXGE2Ocjs.requireAny; exports.requireAuth = _chunkE3HXGE2Ocjs.requireAuth; exports.requireRole = _chunkE3HXGE2Ocjs.requireRole; exports.requireScopes = _chunkE3HXGE2Ocjs.requireScopes;
|
|
53
53
|
//# sourceMappingURL=FastMCP.cjs.map
|
package/dist/FastMCP.d.cts
CHANGED
|
@@ -12,8 +12,8 @@ import { CorsOptions } from 'mcp-proxy';
|
|
|
12
12
|
export { CorsOptions } from 'mcp-proxy';
|
|
13
13
|
import { StrictEventEmitter } from 'strict-event-emitter-types';
|
|
14
14
|
import { z } from 'zod';
|
|
15
|
-
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-
|
|
16
|
-
export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-
|
|
15
|
+
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-Dy1PbWAT.cjs';
|
|
16
|
+
export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-Dy1PbWAT.cjs';
|
|
17
17
|
import 'node:http';
|
|
18
18
|
|
|
19
19
|
declare class DiscoveryDocumentCache {
|
|
@@ -504,6 +504,7 @@ type ServerOptions<T extends FastMCPSessionAuth> = {
|
|
|
504
504
|
*/
|
|
505
505
|
authorizationServer?: {
|
|
506
506
|
authorizationEndpoint: string;
|
|
507
|
+
clientIdMetadataDocumentSupported?: boolean;
|
|
507
508
|
codeChallengeMethodsSupported?: string[];
|
|
508
509
|
dpopSigningAlgValuesSupported?: string[];
|
|
509
510
|
grantTypesSupported?: string[];
|
package/dist/FastMCP.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { CorsOptions } from 'mcp-proxy';
|
|
|
12
12
|
export { CorsOptions } from 'mcp-proxy';
|
|
13
13
|
import { StrictEventEmitter } from 'strict-event-emitter-types';
|
|
14
14
|
import { z } from 'zod';
|
|
15
|
-
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-
|
|
16
|
-
export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-
|
|
15
|
+
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-Dy1PbWAT.js';
|
|
16
|
+
export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-Dy1PbWAT.js';
|
|
17
17
|
import 'node:http';
|
|
18
18
|
|
|
19
19
|
declare class DiscoveryDocumentCache {
|
|
@@ -504,6 +504,7 @@ type ServerOptions<T extends FastMCPSessionAuth> = {
|
|
|
504
504
|
*/
|
|
505
505
|
authorizationServer?: {
|
|
506
506
|
authorizationEndpoint: string;
|
|
507
|
+
clientIdMetadataDocumentSupported?: boolean;
|
|
507
508
|
codeChallengeMethodsSupported?: string[];
|
|
508
509
|
dpopSigningAlgValuesSupported?: string[];
|
|
509
510
|
grantTypesSupported?: string[];
|
package/dist/FastMCP.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
audioContent,
|
|
12
12
|
imageContent,
|
|
13
13
|
jsonSchemaAdapter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UODI5E6U.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthProvider,
|
|
17
17
|
AzureProvider,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
requireAuth,
|
|
25
25
|
requireRole,
|
|
26
26
|
requireScopes
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KWRV7CHJ.js";
|
|
28
28
|
export {
|
|
29
29
|
AuthProvider,
|
|
30
30
|
AzureProvider,
|
|
@@ -238,6 +238,17 @@ interface OAuthProxyConfig {
|
|
|
238
238
|
* Default: true (enabled with default settings)
|
|
239
239
|
*/
|
|
240
240
|
customClaimsPassthrough?: boolean | CustomClaimsPassthroughConfig;
|
|
241
|
+
/**
|
|
242
|
+
* Accept Client ID Metadata Documents (CIMD) as an alternative to Dynamic
|
|
243
|
+
* Client Registration (default: false).
|
|
244
|
+
*
|
|
245
|
+
* When enabled, an unregistered `client_id` that is an HTTPS URL is
|
|
246
|
+
* resolved by fetching it as a CIMD document (see `resolveCimdClient` in
|
|
247
|
+
* `utils/cimd.ts` for validation details) and advertised via
|
|
248
|
+
* `client_id_metadata_document_supported` in the AS metadata. See the MCP
|
|
249
|
+
* authorization spec's CIMD mechanism (SEP-991).
|
|
250
|
+
*/
|
|
251
|
+
enableCimd?: boolean;
|
|
241
252
|
/** Enable token swap pattern (default: true) - issues short-lived JWTs instead of passing through upstream tokens */
|
|
242
253
|
enableTokenSwap?: boolean;
|
|
243
254
|
/** Encryption key for token storage (default: auto-generated). Set to false to disable encryption. */
|
|
@@ -331,12 +342,25 @@ interface ProxyDCRClient {
|
|
|
331
342
|
clientId: string;
|
|
332
343
|
/** Proxy-issued client secret (not the upstream provider's client_secret) */
|
|
333
344
|
clientSecret?: string;
|
|
345
|
+
/**
|
|
346
|
+
* When set, this is a cached resolution of a live document (CIMD) rather
|
|
347
|
+
* than a permanent registration: past this instant the copy is dropped and
|
|
348
|
+
* the document is fetched again.
|
|
349
|
+
*/
|
|
350
|
+
expiresAt?: Date;
|
|
334
351
|
/** Client metadata from registration request */
|
|
335
352
|
metadata?: DCRClientMetadata;
|
|
336
353
|
/** All redirect URIs registered by this client */
|
|
337
354
|
redirectUris: string[];
|
|
338
355
|
/** Client registration timestamp */
|
|
339
356
|
registeredAt: Date;
|
|
357
|
+
/**
|
|
358
|
+
* How this client came to be known, when that changes the rules applied to
|
|
359
|
+
* it. `"cimd"` marks a public client whose identity is a URL anyone can
|
|
360
|
+
* name and which holds no secret, so the proxy requires S256 PKCE from it.
|
|
361
|
+
* Absent for a Dynamic Client Registration.
|
|
362
|
+
*/
|
|
363
|
+
source?: "cimd";
|
|
340
364
|
}
|
|
341
365
|
/**
|
|
342
366
|
* OAuth refresh token request
|
|
@@ -480,9 +504,13 @@ declare class OAuthProxy {
|
|
|
480
504
|
private ownedTokenStorage;
|
|
481
505
|
/**
|
|
482
506
|
* Keyed by proxy-issued client_id for authorize/token-exchange lookups and
|
|
483
|
-
* for the defence-in-depth callback checks. A registration never changes
|
|
507
|
+
* for the defence-in-depth callback checks. A DCR registration never changes
|
|
484
508
|
* after it is written, so caching it locally cannot go stale; it is also
|
|
485
509
|
* persisted, so another instance can hydrate it.
|
|
510
|
+
*
|
|
511
|
+
* A CIMD client is not a registration but a snapshot of a document that can
|
|
512
|
+
* change under us, so it is cached with an `expiresAt` and re-resolved once
|
|
513
|
+
* that passes.
|
|
486
514
|
*/
|
|
487
515
|
private registeredClientsByClientId;
|
|
488
516
|
private stateStore;
|
|
@@ -509,6 +537,7 @@ declare class OAuthProxy {
|
|
|
509
537
|
*/
|
|
510
538
|
getAuthorizationServerMetadata(): {
|
|
511
539
|
authorizationEndpoint: string;
|
|
540
|
+
clientIdMetadataDocumentSupported?: boolean;
|
|
512
541
|
codeChallengeMethodsSupported?: string[];
|
|
513
542
|
dpopSigningAlgValuesSupported?: string[];
|
|
514
543
|
grantTypesSupported?: string[];
|
|
@@ -614,6 +643,15 @@ declare class OAuthProxy {
|
|
|
614
643
|
* Issue swapped tokens for refresh flow
|
|
615
644
|
*/
|
|
616
645
|
private issueSwappedTokensForRefresh;
|
|
646
|
+
/**
|
|
647
|
+
* Defence in depth for the callback and consent-denial redirects: the
|
|
648
|
+
* transaction's stored callback URL must still be registered for its client.
|
|
649
|
+
*
|
|
650
|
+
* Resolution goes through {@link resolveClient}, so a CIMD registration whose
|
|
651
|
+
* cached copy lapsed mid-flow is re-fetched rather than mistaken for one that
|
|
652
|
+
* was revoked.
|
|
653
|
+
*/
|
|
654
|
+
private isTransactionCallbackRegistered;
|
|
617
655
|
/**
|
|
618
656
|
* Match URI against pattern (supports wildcards)
|
|
619
657
|
*/
|
|
@@ -631,6 +669,17 @@ declare class OAuthProxy {
|
|
|
631
669
|
* Refresh upstream tokens with provider
|
|
632
670
|
*/
|
|
633
671
|
private refreshUpstreamTokens;
|
|
672
|
+
/**
|
|
673
|
+
* Resolve the client behind a `client_id`: a stored registration if there is
|
|
674
|
+
* one, otherwise — when CIMD is enabled — the client's metadata document.
|
|
675
|
+
*
|
|
676
|
+
* A resolved CIMD client is cached like a DCR registration but carries the
|
|
677
|
+
* `expiresAt` the resolver stamped on it, so the store drops it once it
|
|
678
|
+
* lapses and the next call re-fetches the document. Every lookup goes
|
|
679
|
+
* through here, so a lapse always means "re-resolve", never "unknown
|
|
680
|
+
* client" mid-flow.
|
|
681
|
+
*/
|
|
682
|
+
private resolveClient;
|
|
634
683
|
/**
|
|
635
684
|
* Put a claimed refresh-token mapping back after a rotation failed, keeping
|
|
636
685
|
* whatever lifetime it had left.
|
|
@@ -238,6 +238,17 @@ interface OAuthProxyConfig {
|
|
|
238
238
|
* Default: true (enabled with default settings)
|
|
239
239
|
*/
|
|
240
240
|
customClaimsPassthrough?: boolean | CustomClaimsPassthroughConfig;
|
|
241
|
+
/**
|
|
242
|
+
* Accept Client ID Metadata Documents (CIMD) as an alternative to Dynamic
|
|
243
|
+
* Client Registration (default: false).
|
|
244
|
+
*
|
|
245
|
+
* When enabled, an unregistered `client_id` that is an HTTPS URL is
|
|
246
|
+
* resolved by fetching it as a CIMD document (see `resolveCimdClient` in
|
|
247
|
+
* `utils/cimd.ts` for validation details) and advertised via
|
|
248
|
+
* `client_id_metadata_document_supported` in the AS metadata. See the MCP
|
|
249
|
+
* authorization spec's CIMD mechanism (SEP-991).
|
|
250
|
+
*/
|
|
251
|
+
enableCimd?: boolean;
|
|
241
252
|
/** Enable token swap pattern (default: true) - issues short-lived JWTs instead of passing through upstream tokens */
|
|
242
253
|
enableTokenSwap?: boolean;
|
|
243
254
|
/** Encryption key for token storage (default: auto-generated). Set to false to disable encryption. */
|
|
@@ -331,12 +342,25 @@ interface ProxyDCRClient {
|
|
|
331
342
|
clientId: string;
|
|
332
343
|
/** Proxy-issued client secret (not the upstream provider's client_secret) */
|
|
333
344
|
clientSecret?: string;
|
|
345
|
+
/**
|
|
346
|
+
* When set, this is a cached resolution of a live document (CIMD) rather
|
|
347
|
+
* than a permanent registration: past this instant the copy is dropped and
|
|
348
|
+
* the document is fetched again.
|
|
349
|
+
*/
|
|
350
|
+
expiresAt?: Date;
|
|
334
351
|
/** Client metadata from registration request */
|
|
335
352
|
metadata?: DCRClientMetadata;
|
|
336
353
|
/** All redirect URIs registered by this client */
|
|
337
354
|
redirectUris: string[];
|
|
338
355
|
/** Client registration timestamp */
|
|
339
356
|
registeredAt: Date;
|
|
357
|
+
/**
|
|
358
|
+
* How this client came to be known, when that changes the rules applied to
|
|
359
|
+
* it. `"cimd"` marks a public client whose identity is a URL anyone can
|
|
360
|
+
* name and which holds no secret, so the proxy requires S256 PKCE from it.
|
|
361
|
+
* Absent for a Dynamic Client Registration.
|
|
362
|
+
*/
|
|
363
|
+
source?: "cimd";
|
|
340
364
|
}
|
|
341
365
|
/**
|
|
342
366
|
* OAuth refresh token request
|
|
@@ -480,9 +504,13 @@ declare class OAuthProxy {
|
|
|
480
504
|
private ownedTokenStorage;
|
|
481
505
|
/**
|
|
482
506
|
* Keyed by proxy-issued client_id for authorize/token-exchange lookups and
|
|
483
|
-
* for the defence-in-depth callback checks. A registration never changes
|
|
507
|
+
* for the defence-in-depth callback checks. A DCR registration never changes
|
|
484
508
|
* after it is written, so caching it locally cannot go stale; it is also
|
|
485
509
|
* persisted, so another instance can hydrate it.
|
|
510
|
+
*
|
|
511
|
+
* A CIMD client is not a registration but a snapshot of a document that can
|
|
512
|
+
* change under us, so it is cached with an `expiresAt` and re-resolved once
|
|
513
|
+
* that passes.
|
|
486
514
|
*/
|
|
487
515
|
private registeredClientsByClientId;
|
|
488
516
|
private stateStore;
|
|
@@ -509,6 +537,7 @@ declare class OAuthProxy {
|
|
|
509
537
|
*/
|
|
510
538
|
getAuthorizationServerMetadata(): {
|
|
511
539
|
authorizationEndpoint: string;
|
|
540
|
+
clientIdMetadataDocumentSupported?: boolean;
|
|
512
541
|
codeChallengeMethodsSupported?: string[];
|
|
513
542
|
dpopSigningAlgValuesSupported?: string[];
|
|
514
543
|
grantTypesSupported?: string[];
|
|
@@ -614,6 +643,15 @@ declare class OAuthProxy {
|
|
|
614
643
|
* Issue swapped tokens for refresh flow
|
|
615
644
|
*/
|
|
616
645
|
private issueSwappedTokensForRefresh;
|
|
646
|
+
/**
|
|
647
|
+
* Defence in depth for the callback and consent-denial redirects: the
|
|
648
|
+
* transaction's stored callback URL must still be registered for its client.
|
|
649
|
+
*
|
|
650
|
+
* Resolution goes through {@link resolveClient}, so a CIMD registration whose
|
|
651
|
+
* cached copy lapsed mid-flow is re-fetched rather than mistaken for one that
|
|
652
|
+
* was revoked.
|
|
653
|
+
*/
|
|
654
|
+
private isTransactionCallbackRegistered;
|
|
617
655
|
/**
|
|
618
656
|
* Match URI against pattern (supports wildcards)
|
|
619
657
|
*/
|
|
@@ -631,6 +669,17 @@ declare class OAuthProxy {
|
|
|
631
669
|
* Refresh upstream tokens with provider
|
|
632
670
|
*/
|
|
633
671
|
private refreshUpstreamTokens;
|
|
672
|
+
/**
|
|
673
|
+
* Resolve the client behind a `client_id`: a stored registration if there is
|
|
674
|
+
* one, otherwise — when CIMD is enabled — the client's metadata document.
|
|
675
|
+
*
|
|
676
|
+
* A resolved CIMD client is cached like a DCR registration but carries the
|
|
677
|
+
* `expiresAt` the resolver stamped on it, so the store drops it once it
|
|
678
|
+
* lapses and the next call re-fetches the document. Every lookup goes
|
|
679
|
+
* through here, so a lapse always means "re-resolve", never "unknown
|
|
680
|
+
* client" mid-flow.
|
|
681
|
+
*/
|
|
682
|
+
private resolveClient;
|
|
634
683
|
/**
|
|
635
684
|
* Put a claimed refresh-token mapping back after a rotation failed, keeping
|
|
636
685
|
* whatever lifetime it had left.
|
package/dist/auth/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkE3HXGE2Ocjs = require('../chunk-E3HXGE2O.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -51,5 +51,5 @@ var _chunkYZWUEW3Acjs = require('../chunk-YZWUEW3A.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.AuthProvider =
|
|
54
|
+
exports.AuthProvider = _chunkE3HXGE2Ocjs.AuthProvider; exports.AzureProvider = _chunkE3HXGE2Ocjs.AzureProvider; exports.ConsentManager = _chunkE3HXGE2Ocjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkE3HXGE2Ocjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkE3HXGE2Ocjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkE3HXGE2Ocjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkE3HXGE2Ocjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkE3HXGE2Ocjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkE3HXGE2Ocjs.DiskStore; exports.EncryptedTokenStorage = _chunkE3HXGE2Ocjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkE3HXGE2Ocjs.GitHubProvider; exports.GoogleProvider = _chunkE3HXGE2Ocjs.GoogleProvider; exports.JWKSVerifier = _chunkE3HXGE2Ocjs.JWKSVerifier; exports.JWTIssuer = _chunkE3HXGE2Ocjs.JWTIssuer; exports.MemoryTokenStorage = _chunkE3HXGE2Ocjs.MemoryTokenStorage; exports.OAuthProvider = _chunkE3HXGE2Ocjs.OAuthProvider; exports.OAuthProxy = _chunkE3HXGE2Ocjs.OAuthProxy; exports.OAuthProxyError = _chunkE3HXGE2Ocjs.OAuthProxyError; exports.PKCEUtils = _chunkE3HXGE2Ocjs.PKCEUtils; exports.getAuthSession = _chunkE3HXGE2Ocjs.getAuthSession; exports.requireAll = _chunkE3HXGE2Ocjs.requireAll; exports.requireAny = _chunkE3HXGE2Ocjs.requireAny; exports.requireAuth = _chunkE3HXGE2Ocjs.requireAuth; exports.requireRole = _chunkE3HXGE2Ocjs.requireRole; exports.requireScopes = _chunkE3HXGE2Ocjs.requireScopes;
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
package/dist/auth/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-
|
|
2
|
-
export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-
|
|
1
|
+
import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-Dy1PbWAT.cjs';
|
|
2
|
+
export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-Dy1PbWAT.cjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-
|
|
2
|
-
export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-
|
|
1
|
+
import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-Dy1PbWAT.js';
|
|
2
|
+
export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-Dy1PbWAT.js';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
|
|
5
5
|
/**
|