@vitemcp/server 1.10.1 → 1.10.3
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/{OAuthProvider-STkC4R2N.d.cts → OAuthProvider-DN--f3j1.d.cts} +35 -4
- package/dist/{OAuthProvider-STkC4R2N.d.ts → OAuthProvider-DN--f3j1.d.ts} +35 -4
- package/dist/ViteMCP.cjs +4 -4
- package/dist/ViteMCP.d.cts +2 -2
- package/dist/ViteMCP.d.ts +2 -2
- package/dist/ViteMCP.js +3 -3
- 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-3W6VP3KX.js → chunk-EJVIGLUY.js} +3 -3
- package/dist/{chunk-4LU4AXU4.cjs → chunk-IWNTAHGZ.cjs} +70 -17
- package/dist/chunk-IWNTAHGZ.cjs.map +1 -0
- package/dist/{chunk-NLBRDP5F.js → chunk-KRS3VHYI.js} +62 -9
- package/dist/chunk-KRS3VHYI.js.map +1 -0
- package/dist/{chunk-FSPSPB7Y.cjs → chunk-PH2BAR5I.cjs} +9 -9
- package/dist/{chunk-FSPSPB7Y.cjs.map → chunk-PH2BAR5I.cjs.map} +1 -1
- package/dist/{chunk-NZGRSB2D.cjs → chunk-R4RK2DR2.cjs} +147 -3
- package/dist/chunk-R4RK2DR2.cjs.map +1 -0
- package/dist/{chunk-BLXUZUZ4.js → chunk-YDEROYNS.js} +147 -3
- package/dist/chunk-YDEROYNS.js.map +1 -0
- package/dist/edge/index.cjs +6 -6
- package/dist/edge/index.js +1 -1
- package/dist/openapi/index.cjs +27 -19
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +3 -3
- package/dist/openapi/index.d.ts +3 -3
- package/dist/openapi/index.js +17 -9
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4LU4AXU4.cjs.map +0 -1
- package/dist/chunk-BLXUZUZ4.js.map +0 -1
- package/dist/chunk-NLBRDP5F.js.map +0 -1
- package/dist/chunk-NZGRSB2D.cjs.map +0 -1
- /package/dist/{chunk-3W6VP3KX.js.map → chunk-EJVIGLUY.js.map} +0 -0
|
@@ -311,7 +311,10 @@ interface OAuthProxyConfig {
|
|
|
311
311
|
scopes?: string[];
|
|
312
312
|
/** Custom token storage backend */
|
|
313
313
|
tokenStorage?: TokenStorage;
|
|
314
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* Verifies each access token the upstream issues, on code exchange and on
|
|
316
|
+
* refresh. A token it rejects is refused, and no tokens are issued for it.
|
|
317
|
+
*/
|
|
315
318
|
tokenVerifier?: TokenVerifier;
|
|
316
319
|
/** Transaction TTL in seconds (default: 600) */
|
|
317
320
|
transactionTtl?: number;
|
|
@@ -645,6 +648,19 @@ declare class OAuthProxy {
|
|
|
645
648
|
* Handle consent form submission
|
|
646
649
|
*/
|
|
647
650
|
handleConsent(request: Request): Promise<Response>;
|
|
651
|
+
/**
|
|
652
|
+
* What a ViteMCP access token stands for: the upstream tokens it maps to,
|
|
653
|
+
* and the custom claims it carries (see `customClaimsPassthrough`). `null`
|
|
654
|
+
* for any token `loadUpstreamTokens` refuses.
|
|
655
|
+
*
|
|
656
|
+
* One verification and one lookup give both. `authenticate` runs on every
|
|
657
|
+
* request, so loading the claims separately would verify the token and read
|
|
658
|
+
* its mapping again each time.
|
|
659
|
+
*/
|
|
660
|
+
loadAccessToken(vitemcpToken: string): Promise<{
|
|
661
|
+
claims?: Record<string, unknown>;
|
|
662
|
+
upstreamTokens: UpstreamTokenSet;
|
|
663
|
+
} | null>;
|
|
648
664
|
/**
|
|
649
665
|
* Load upstream tokens from a ViteMCP JWT
|
|
650
666
|
*/
|
|
@@ -929,6 +945,17 @@ declare class OAuthProxy {
|
|
|
929
945
|
* theft. Do not loosen the default beyond loopback addresses.
|
|
930
946
|
*/
|
|
931
947
|
private validateRedirectUri;
|
|
948
|
+
/**
|
|
949
|
+
* Runs the configured `tokenVerifier` over an access token the upstream has
|
|
950
|
+
* just issued, before it is stored or reaches a client. Accepted and never
|
|
951
|
+
* called, the option let through every token a server had set it to refuse.
|
|
952
|
+
*
|
|
953
|
+
* RFC 6749 names the refusal differently at each endpoint: `access_denied`
|
|
954
|
+
* for an authorization response (§4.1.2.1), `invalid_grant` for a token
|
|
955
|
+
* response (§5.2). The verifier's own reason is not passed on: it describes
|
|
956
|
+
* the token.
|
|
957
|
+
*/
|
|
958
|
+
private verifyUpstreamAccessToken;
|
|
932
959
|
}
|
|
933
960
|
declare class OAuthProxyError extends Error {
|
|
934
961
|
code: string;
|
|
@@ -1006,7 +1033,10 @@ interface GenericOAuthProviderConfig extends AuthProviderConfig {
|
|
|
1006
1033
|
interface OAuthSession {
|
|
1007
1034
|
/** The upstream OAuth access token */
|
|
1008
1035
|
accessToken: string;
|
|
1009
|
-
/**
|
|
1036
|
+
/**
|
|
1037
|
+
* Custom claims passed through from the upstream tokens (see
|
|
1038
|
+
* `customClaimsPassthrough`). Unset when there are none.
|
|
1039
|
+
*/
|
|
1010
1040
|
claims?: Record<string, unknown>;
|
|
1011
1041
|
/** Token expiration time (Unix timestamp in seconds) */
|
|
1012
1042
|
expiresAt?: number;
|
|
@@ -1083,10 +1113,11 @@ declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession
|
|
|
1083
1113
|
/** Create the underlying OAuthProxy with provider-specific configuration */
|
|
1084
1114
|
protected abstract createProxy(): OAuthProxy;
|
|
1085
1115
|
/**
|
|
1086
|
-
* Create a session object from upstream tokens
|
|
1116
|
+
* Create a session object from upstream tokens, and the custom claims the
|
|
1117
|
+
* caller's token carries.
|
|
1087
1118
|
* Override in subclasses to add provider-specific session data.
|
|
1088
1119
|
*/
|
|
1089
|
-
protected createSession(upstreamTokens: UpstreamTokenSet): TSession;
|
|
1120
|
+
protected createSession(upstreamTokens: UpstreamTokenSet, claims?: Record<string, unknown>): TSession;
|
|
1090
1121
|
/** Get the authorization endpoint for this provider */
|
|
1091
1122
|
protected abstract getAuthorizationEndpoint(): string;
|
|
1092
1123
|
/** Default scopes for this provider */
|
|
@@ -311,7 +311,10 @@ interface OAuthProxyConfig {
|
|
|
311
311
|
scopes?: string[];
|
|
312
312
|
/** Custom token storage backend */
|
|
313
313
|
tokenStorage?: TokenStorage;
|
|
314
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* Verifies each access token the upstream issues, on code exchange and on
|
|
316
|
+
* refresh. A token it rejects is refused, and no tokens are issued for it.
|
|
317
|
+
*/
|
|
315
318
|
tokenVerifier?: TokenVerifier;
|
|
316
319
|
/** Transaction TTL in seconds (default: 600) */
|
|
317
320
|
transactionTtl?: number;
|
|
@@ -645,6 +648,19 @@ declare class OAuthProxy {
|
|
|
645
648
|
* Handle consent form submission
|
|
646
649
|
*/
|
|
647
650
|
handleConsent(request: Request): Promise<Response>;
|
|
651
|
+
/**
|
|
652
|
+
* What a ViteMCP access token stands for: the upstream tokens it maps to,
|
|
653
|
+
* and the custom claims it carries (see `customClaimsPassthrough`). `null`
|
|
654
|
+
* for any token `loadUpstreamTokens` refuses.
|
|
655
|
+
*
|
|
656
|
+
* One verification and one lookup give both. `authenticate` runs on every
|
|
657
|
+
* request, so loading the claims separately would verify the token and read
|
|
658
|
+
* its mapping again each time.
|
|
659
|
+
*/
|
|
660
|
+
loadAccessToken(vitemcpToken: string): Promise<{
|
|
661
|
+
claims?: Record<string, unknown>;
|
|
662
|
+
upstreamTokens: UpstreamTokenSet;
|
|
663
|
+
} | null>;
|
|
648
664
|
/**
|
|
649
665
|
* Load upstream tokens from a ViteMCP JWT
|
|
650
666
|
*/
|
|
@@ -929,6 +945,17 @@ declare class OAuthProxy {
|
|
|
929
945
|
* theft. Do not loosen the default beyond loopback addresses.
|
|
930
946
|
*/
|
|
931
947
|
private validateRedirectUri;
|
|
948
|
+
/**
|
|
949
|
+
* Runs the configured `tokenVerifier` over an access token the upstream has
|
|
950
|
+
* just issued, before it is stored or reaches a client. Accepted and never
|
|
951
|
+
* called, the option let through every token a server had set it to refuse.
|
|
952
|
+
*
|
|
953
|
+
* RFC 6749 names the refusal differently at each endpoint: `access_denied`
|
|
954
|
+
* for an authorization response (§4.1.2.1), `invalid_grant` for a token
|
|
955
|
+
* response (§5.2). The verifier's own reason is not passed on: it describes
|
|
956
|
+
* the token.
|
|
957
|
+
*/
|
|
958
|
+
private verifyUpstreamAccessToken;
|
|
932
959
|
}
|
|
933
960
|
declare class OAuthProxyError extends Error {
|
|
934
961
|
code: string;
|
|
@@ -1006,7 +1033,10 @@ interface GenericOAuthProviderConfig extends AuthProviderConfig {
|
|
|
1006
1033
|
interface OAuthSession {
|
|
1007
1034
|
/** The upstream OAuth access token */
|
|
1008
1035
|
accessToken: string;
|
|
1009
|
-
/**
|
|
1036
|
+
/**
|
|
1037
|
+
* Custom claims passed through from the upstream tokens (see
|
|
1038
|
+
* `customClaimsPassthrough`). Unset when there are none.
|
|
1039
|
+
*/
|
|
1010
1040
|
claims?: Record<string, unknown>;
|
|
1011
1041
|
/** Token expiration time (Unix timestamp in seconds) */
|
|
1012
1042
|
expiresAt?: number;
|
|
@@ -1083,10 +1113,11 @@ declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession
|
|
|
1083
1113
|
/** Create the underlying OAuthProxy with provider-specific configuration */
|
|
1084
1114
|
protected abstract createProxy(): OAuthProxy;
|
|
1085
1115
|
/**
|
|
1086
|
-
* Create a session object from upstream tokens
|
|
1116
|
+
* Create a session object from upstream tokens, and the custom claims the
|
|
1117
|
+
* caller's token carries.
|
|
1087
1118
|
* Override in subclasses to add provider-specific session data.
|
|
1088
1119
|
*/
|
|
1089
|
-
protected createSession(upstreamTokens: UpstreamTokenSet): TSession;
|
|
1120
|
+
protected createSession(upstreamTokens: UpstreamTokenSet, claims?: Record<string, unknown>): TSession;
|
|
1090
1121
|
/** Get the authorization endpoint for this provider */
|
|
1091
1122
|
protected abstract getAuthorizationEndpoint(): string;
|
|
1092
1123
|
/** Default scopes for this provider */
|
package/dist/ViteMCP.cjs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPH2BAR5Icjs = require('./chunk-PH2BAR5I.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,8 +25,8 @@ var _chunkFSPSPB7Ycjs = require('./chunk-FSPSPB7Y.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
require('./chunk-
|
|
28
|
+
var _chunkIWNTAHGZcjs = require('./chunk-IWNTAHGZ.cjs');
|
|
29
|
+
require('./chunk-R4RK2DR2.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -52,5 +52,5 @@ require('./chunk-NZGRSB2D.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.AuthProvider =
|
|
55
|
+
exports.AuthProvider = _chunkIWNTAHGZcjs.AuthProvider; exports.AzureProvider = _chunkIWNTAHGZcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkPH2BAR5Icjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunkIWNTAHGZcjs.GitHubProvider; exports.GoogleProvider = _chunkIWNTAHGZcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkPH2BAR5Icjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkIWNTAHGZcjs.OAuthProvider; exports.OAuthProxy = _chunkIWNTAHGZcjs.OAuthProxy; exports.OAuthProxyError = _chunkIWNTAHGZcjs.OAuthProxyError; exports.ServerState = _chunkPH2BAR5Icjs.ServerState; exports.UnexpectedStateError = _chunkPH2BAR5Icjs.UnexpectedStateError; exports.UserError = _chunkPH2BAR5Icjs.UserError; exports.ViteMCP = _chunkPH2BAR5Icjs.ViteMCP; exports.ViteMCPError = _chunkPH2BAR5Icjs.ViteMCPError; exports.audioContent = _chunkPH2BAR5Icjs.audioContent; exports.delay = _chunkPH2BAR5Icjs.delay; exports.getAuthSession = _chunkIWNTAHGZcjs.getAuthSession; exports.imageContent = _chunkPH2BAR5Icjs.imageContent; exports.jsonSchemaAdapter = _chunkPH2BAR5Icjs.jsonSchemaAdapter; exports.requireAll = _chunkIWNTAHGZcjs.requireAll; exports.requireAny = _chunkIWNTAHGZcjs.requireAny; exports.requireAuth = _chunkIWNTAHGZcjs.requireAuth; exports.requireRole = _chunkIWNTAHGZcjs.requireRole; exports.requireScopes = _chunkIWNTAHGZcjs.requireScopes;
|
|
56
56
|
//# sourceMappingURL=ViteMCP.cjs.map
|
package/dist/ViteMCP.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
|
4
4
|
import { Hono } from 'hono';
|
|
5
5
|
import { cors } from 'hono/cors';
|
|
6
6
|
export { setTimeout as delay } from 'timers/promises';
|
|
7
|
-
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-
|
|
8
|
-
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, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-
|
|
7
|
+
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-DN--f3j1.cjs';
|
|
8
|
+
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, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-DN--f3j1.cjs';
|
|
9
9
|
|
|
10
10
|
declare class DiscoveryDocumentCache {
|
|
11
11
|
#private;
|
package/dist/ViteMCP.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
|
4
4
|
import { Hono } from 'hono';
|
|
5
5
|
import { cors } from 'hono/cors';
|
|
6
6
|
export { setTimeout as delay } from 'timers/promises';
|
|
7
|
-
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-
|
|
8
|
-
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, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-
|
|
7
|
+
import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-DN--f3j1.js';
|
|
8
|
+
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, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-DN--f3j1.js';
|
|
9
9
|
|
|
10
10
|
declare class DiscoveryDocumentCache {
|
|
11
11
|
#private;
|
package/dist/ViteMCP.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
delay,
|
|
11
11
|
imageContent,
|
|
12
12
|
jsonSchemaAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EJVIGLUY.js";
|
|
14
14
|
import {
|
|
15
15
|
AuthProvider,
|
|
16
16
|
AzureProvider,
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
requireAuth,
|
|
26
26
|
requireRole,
|
|
27
27
|
requireScopes
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-KRS3VHYI.js";
|
|
29
|
+
import "./chunk-YDEROYNS.js";
|
|
30
30
|
export {
|
|
31
31
|
AuthProvider,
|
|
32
32
|
AzureProvider,
|
package/dist/auth/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkIWNTAHGZcjs = require('../chunk-IWNTAHGZ.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -51,5 +51,5 @@ var _chunk4LU4AXU4cjs = require('../chunk-4LU4AXU4.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.AuthProvider =
|
|
54
|
+
exports.AuthProvider = _chunkIWNTAHGZcjs.AuthProvider; exports.AzureProvider = _chunkIWNTAHGZcjs.AzureProvider; exports.ConsentManager = _chunkIWNTAHGZcjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkIWNTAHGZcjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkIWNTAHGZcjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkIWNTAHGZcjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkIWNTAHGZcjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkIWNTAHGZcjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkIWNTAHGZcjs.DiskStore; exports.EncryptedTokenStorage = _chunkIWNTAHGZcjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkIWNTAHGZcjs.GitHubProvider; exports.GoogleProvider = _chunkIWNTAHGZcjs.GoogleProvider; exports.JWKSVerifier = _chunkIWNTAHGZcjs.JWKSVerifier; exports.JWTIssuer = _chunkIWNTAHGZcjs.JWTIssuer; exports.MemoryTokenStorage = _chunkIWNTAHGZcjs.MemoryTokenStorage; exports.OAuthProvider = _chunkIWNTAHGZcjs.OAuthProvider; exports.OAuthProxy = _chunkIWNTAHGZcjs.OAuthProxy; exports.OAuthProxyError = _chunkIWNTAHGZcjs.OAuthProxyError; exports.PKCEUtils = _chunkIWNTAHGZcjs.PKCEUtils; exports.getAuthSession = _chunkIWNTAHGZcjs.getAuthSession; exports.requireAll = _chunkIWNTAHGZcjs.requireAll; exports.requireAny = _chunkIWNTAHGZcjs.requireAny; exports.requireAuth = _chunkIWNTAHGZcjs.requireAuth; exports.requireRole = _chunkIWNTAHGZcjs.requireRole; exports.requireScopes = _chunkIWNTAHGZcjs.requireScopes;
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
package/dist/auth/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-
|
|
2
|
-
export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-
|
|
1
|
+
import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-DN--f3j1.cjs';
|
|
2
|
+
export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-DN--f3j1.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Consent Management
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-
|
|
2
|
-
export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-
|
|
1
|
+
import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-DN--f3j1.js';
|
|
2
|
+
export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-DN--f3j1.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Consent Management
|
package/dist/auth/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withoutTrailingSlash
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KRS3VHYI.js";
|
|
4
4
|
import {
|
|
5
5
|
formatBytes,
|
|
6
6
|
ownKeysOnly,
|
|
7
7
|
resolveMaxToolInputElements,
|
|
8
8
|
toSdkSchema,
|
|
9
9
|
valibotToJsonSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YDEROYNS.js";
|
|
11
11
|
|
|
12
12
|
// src/ViteMCP.ts
|
|
13
13
|
import {
|
|
@@ -1711,4 +1711,4 @@ export {
|
|
|
1711
1711
|
ServerState,
|
|
1712
1712
|
ViteMCP
|
|
1713
1713
|
};
|
|
1714
|
-
//# sourceMappingURL=chunk-
|
|
1714
|
+
//# sourceMappingURL=chunk-EJVIGLUY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7;// src/auth/helpers.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7;// src/auth/helpers.ts
|
|
2
2
|
function getAuthSession(session) {
|
|
3
3
|
if (!session) {
|
|
4
4
|
throw new Error("Session is not authenticated");
|
|
@@ -594,6 +594,17 @@ var ClaimsExtractor = (_class = class {
|
|
|
594
594
|
maxClaimValueSize: config.maxClaimValueSize || 2e3
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
+
/**
|
|
598
|
+
* The claims of a token this proxy issued that came from upstream: all but
|
|
599
|
+
* its own, which are the ones never copied from upstream. `null` when there
|
|
600
|
+
* are none — an opaque upstream token, or passthrough found nothing.
|
|
601
|
+
*/
|
|
602
|
+
customClaimsOf(tokenClaims) {
|
|
603
|
+
const custom = Object.entries(tokenClaims).filter(
|
|
604
|
+
([key]) => !this.PROTECTED_CLAIMS.has(key)
|
|
605
|
+
);
|
|
606
|
+
return custom.length > 0 ? Object.fromEntries(custom) : null;
|
|
607
|
+
}
|
|
597
608
|
/**
|
|
598
609
|
* Extract claims from a token (access token or ID token)
|
|
599
610
|
*/
|
|
@@ -1939,9 +1950,15 @@ var OAuthProxy = (_class4 = class {
|
|
|
1939
1950
|
return this.redirectToUpstream(approvedTransaction);
|
|
1940
1951
|
}
|
|
1941
1952
|
/**
|
|
1942
|
-
*
|
|
1953
|
+
* What a ViteMCP access token stands for: the upstream tokens it maps to,
|
|
1954
|
+
* and the custom claims it carries (see `customClaimsPassthrough`). `null`
|
|
1955
|
+
* for any token `loadUpstreamTokens` refuses.
|
|
1956
|
+
*
|
|
1957
|
+
* One verification and one lookup give both. `authenticate` runs on every
|
|
1958
|
+
* request, so loading the claims separately would verify the token and read
|
|
1959
|
+
* its mapping again each time.
|
|
1943
1960
|
*/
|
|
1944
|
-
async
|
|
1961
|
+
async loadAccessToken(vitemcpToken) {
|
|
1945
1962
|
if (!this.jwtIssuer) {
|
|
1946
1963
|
return null;
|
|
1947
1964
|
}
|
|
@@ -1961,7 +1978,17 @@ var OAuthProxy = (_class4 = class {
|
|
|
1961
1978
|
const upstreamTokens = await this.tokenStorage.get(
|
|
1962
1979
|
`upstream:${this.issuerNs}:${mapping.upstreamTokenKey}`
|
|
1963
1980
|
);
|
|
1964
|
-
|
|
1981
|
+
if (!upstreamTokens) {
|
|
1982
|
+
return null;
|
|
1983
|
+
}
|
|
1984
|
+
const claims = _optionalChain([this, 'access', _24 => _24.claimsExtractor, 'optionalAccess', _25 => _25.customClaimsOf, 'call', _26 => _26(result.claims)]);
|
|
1985
|
+
return { ...claims ? { claims } : {}, upstreamTokens };
|
|
1986
|
+
}
|
|
1987
|
+
/**
|
|
1988
|
+
* Load upstream tokens from a ViteMCP JWT
|
|
1989
|
+
*/
|
|
1990
|
+
async loadUpstreamTokens(vitemcpToken) {
|
|
1991
|
+
return await _asyncNullishCoalesce(await _asyncOptionalChain([(await this.loadAccessToken(vitemcpToken)), 'optionalAccess', async _27 => _27.upstreamTokens]), async () => ( null));
|
|
1965
1992
|
}
|
|
1966
1993
|
/**
|
|
1967
1994
|
* RFC 7591 Dynamic Client Registration
|
|
@@ -2212,6 +2239,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
2212
2239
|
throw new OAuthProxyError(errorCode, errorDescription);
|
|
2213
2240
|
}
|
|
2214
2241
|
const tokens = await this.parseTokenResponse(tokenResponse);
|
|
2242
|
+
await this.verifyUpstreamAccessToken(tokens.access_token, "access_denied");
|
|
2215
2243
|
return {
|
|
2216
2244
|
accessToken: tokens.access_token,
|
|
2217
2245
|
// 0 when the upstream did not say, so `accessTokenTtl` and the defaults
|
|
@@ -2234,7 +2262,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
2234
2262
|
throw new Error("JWT issuer not initialized");
|
|
2235
2263
|
}
|
|
2236
2264
|
const result = await this.jwtIssuer.verify(token);
|
|
2237
|
-
if (!result.valid || !_optionalChain([result, 'access',
|
|
2265
|
+
if (!result.valid || !_optionalChain([result, 'access', _28 => _28.claims, 'optionalAccess', _29 => _29.jti])) {
|
|
2238
2266
|
throw new Error("Failed to extract JTI from token");
|
|
2239
2267
|
}
|
|
2240
2268
|
return result.claims.jti;
|
|
@@ -2416,6 +2444,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
2416
2444
|
throw new OAuthProxyError(errorCode, errorDescription);
|
|
2417
2445
|
}
|
|
2418
2446
|
const tokens = await this.parseTokenResponse(tokenResponse);
|
|
2447
|
+
await this.verifyUpstreamAccessToken(tokens.access_token, "invalid_grant");
|
|
2419
2448
|
await this.savePassthroughRefreshBinding(
|
|
2420
2449
|
tokens.refresh_token || request2.refresh_token,
|
|
2421
2450
|
{
|
|
@@ -2828,7 +2857,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
2828
2857
|
try {
|
|
2829
2858
|
return JSON.parse(text);
|
|
2830
2859
|
} catch (cause) {
|
|
2831
|
-
const mediaType = _optionalChain([response, 'access',
|
|
2860
|
+
const mediaType = _optionalChain([response, 'access', _30 => _30.headers, 'access', _31 => _31.get, 'call', _32 => _32("content-type"), 'optionalAccess', _33 => _33.split, 'call', _34 => _34(";", 1), 'access', _35 => _35[0], 'optionalAccess', _36 => _36.trim, 'call', _37 => _37(), 'access', _38 => _38.toLowerCase, 'call', _39 => _39()]);
|
|
2832
2861
|
if (mediaType === "application/x-www-form-urlencoded") {
|
|
2833
2862
|
const params = new URLSearchParams(text);
|
|
2834
2863
|
const error = params.get("error");
|
|
@@ -2936,6 +2965,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
2936
2965
|
throw new OAuthProxyError(errorCode, errorDescription);
|
|
2937
2966
|
}
|
|
2938
2967
|
const tokens = await this.parseTokenResponse(tokenResponse);
|
|
2968
|
+
await this.verifyUpstreamAccessToken(tokens.access_token, "invalid_grant");
|
|
2939
2969
|
return {
|
|
2940
2970
|
accessToken: tokens.access_token,
|
|
2941
2971
|
// 0 when the upstream did not say, as on the code exchange.
|
|
@@ -3068,7 +3098,7 @@ var OAuthProxy = (_class4 = class {
|
|
|
3068
3098
|
this.cleanupInterval = setInterval(() => {
|
|
3069
3099
|
this.cleanup();
|
|
3070
3100
|
}, 6e4);
|
|
3071
|
-
_optionalChain([this, 'access',
|
|
3101
|
+
_optionalChain([this, 'access', _40 => _40.cleanupInterval, 'access', _41 => _41.unref, 'optionalCall', _42 => _42()]);
|
|
3072
3102
|
}
|
|
3073
3103
|
/**
|
|
3074
3104
|
* PKCE challenge methods this proxy accepts, advertised in the authorization
|
|
@@ -3138,6 +3168,25 @@ var OAuthProxy = (_class4 = class {
|
|
|
3138
3168
|
(pattern) => this.matchesPattern(url, pattern)
|
|
3139
3169
|
);
|
|
3140
3170
|
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Runs the configured `tokenVerifier` over an access token the upstream has
|
|
3173
|
+
* just issued, before it is stored or reaches a client. Accepted and never
|
|
3174
|
+
* called, the option let through every token a server had set it to refuse.
|
|
3175
|
+
*
|
|
3176
|
+
* RFC 6749 names the refusal differently at each endpoint: `access_denied`
|
|
3177
|
+
* for an authorization response (§4.1.2.1), `invalid_grant` for a token
|
|
3178
|
+
* response (§5.2). The verifier's own reason is not passed on: it describes
|
|
3179
|
+
* the token.
|
|
3180
|
+
*/
|
|
3181
|
+
async verifyUpstreamAccessToken(accessToken, errorCode) {
|
|
3182
|
+
const result = await _optionalChain([this, 'access', _43 => _43.config, 'access', _44 => _44.tokenVerifier, 'optionalAccess', _45 => _45.verify, 'call', _46 => _46(accessToken)]);
|
|
3183
|
+
if (result && !result.valid) {
|
|
3184
|
+
throw new OAuthProxyError(
|
|
3185
|
+
errorCode,
|
|
3186
|
+
"Upstream access token failed verification"
|
|
3187
|
+
);
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3141
3190
|
}, _class4);
|
|
3142
3191
|
var globComponent = (glob) => {
|
|
3143
3192
|
const source = glob.replace(/[.*+?^${}()|[\]\\]/g, (character) => {
|
|
@@ -3269,17 +3318,17 @@ var AuthProvider = (_class5 = class {
|
|
|
3269
3318
|
if (!request2) {
|
|
3270
3319
|
return void 0;
|
|
3271
3320
|
}
|
|
3272
|
-
const token = _optionalChain([/^bearer +(\S.*)$/i, 'access',
|
|
3321
|
+
const token = _optionalChain([/^bearer +(\S.*)$/i, 'access', _47 => _47.exec, 'call', _48 => _48(
|
|
3273
3322
|
_nullishCoalesce(request2.headers.get("authorization"), () => ( ""))
|
|
3274
|
-
), 'optionalAccess',
|
|
3323
|
+
), 'optionalAccess', _49 => _49[1]]);
|
|
3275
3324
|
if (!token) {
|
|
3276
3325
|
return void 0;
|
|
3277
3326
|
}
|
|
3278
|
-
const
|
|
3279
|
-
if (!
|
|
3327
|
+
const loaded = await this.proxy.loadAccessToken(token);
|
|
3328
|
+
if (!loaded) {
|
|
3280
3329
|
return void 0;
|
|
3281
3330
|
}
|
|
3282
|
-
return this.createSession(upstreamTokens);
|
|
3331
|
+
return this.createSession(loaded.upstreamTokens, loaded.claims);
|
|
3283
3332
|
}
|
|
3284
3333
|
/**
|
|
3285
3334
|
* Release the resources held by the proxy this provider built for itself.
|
|
@@ -3300,7 +3349,7 @@ var AuthProvider = (_class5 = class {
|
|
|
3300
3349
|
*/
|
|
3301
3350
|
destroy() {
|
|
3302
3351
|
this._destroyed = true;
|
|
3303
|
-
_optionalChain([this, 'access',
|
|
3352
|
+
_optionalChain([this, 'access', _50 => _50._proxy, 'optionalAccess', _51 => _51.destroy, 'call', _52 => _52()]);
|
|
3304
3353
|
this._proxy = void 0;
|
|
3305
3354
|
}
|
|
3306
3355
|
/**
|
|
@@ -3325,13 +3374,17 @@ var AuthProvider = (_class5 = class {
|
|
|
3325
3374
|
return this.proxy;
|
|
3326
3375
|
}
|
|
3327
3376
|
/**
|
|
3328
|
-
* Create a session object from upstream tokens
|
|
3377
|
+
* Create a session object from upstream tokens, and the custom claims the
|
|
3378
|
+
* caller's token carries.
|
|
3329
3379
|
* Override in subclasses to add provider-specific session data.
|
|
3330
3380
|
*/
|
|
3331
|
-
createSession(upstreamTokens) {
|
|
3381
|
+
createSession(upstreamTokens, claims) {
|
|
3332
3382
|
const issuedAt = new Date(upstreamTokens.issuedAt).getTime() || Date.now();
|
|
3333
3383
|
return {
|
|
3334
3384
|
accessToken: upstreamTokens.accessToken,
|
|
3385
|
+
// Typed and documented, and never set: a `canAccess` reading a role
|
|
3386
|
+
// from it, as the guide's own example does, refused everyone.
|
|
3387
|
+
...claims ? { claims } : {},
|
|
3335
3388
|
expiresAt: upstreamTokens.expiresIn ? Math.floor(issuedAt / 1e3) + upstreamTokens.expiresIn : void 0,
|
|
3336
3389
|
idToken: upstreamTokens.idToken,
|
|
3337
3390
|
refreshToken: upstreamTokens.refreshToken,
|
|
@@ -3516,7 +3569,7 @@ var DiskStore = (_class6 = class {
|
|
|
3516
3569
|
this.cleanupInterval = setInterval(() => {
|
|
3517
3570
|
void this.cleanup();
|
|
3518
3571
|
}, cleanupIntervalMs);
|
|
3519
|
-
_optionalChain([this, 'access',
|
|
3572
|
+
_optionalChain([this, 'access', _53 => _53.cleanupInterval, 'access', _54 => _54.unref, 'optionalCall', _55 => _55()]);
|
|
3520
3573
|
}
|
|
3521
3574
|
/**
|
|
3522
3575
|
* Clean up expired entries.
|
|
@@ -3919,4 +3972,4 @@ Original error: ${error.message}`
|
|
|
3919
3972
|
|
|
3920
3973
|
|
|
3921
3974
|
exports.withoutTrailingSlash = withoutTrailingSlash; exports.getAuthSession = getAuthSession; exports.requireAll = requireAll; exports.requireAny = requireAny; exports.requireAuth = requireAuth; exports.requireRole = requireRole; exports.requireScopes = requireScopes; exports.DEFAULT_ACCESS_TOKEN_TTL = DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_REFRESH_TOKEN_TTL = DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_AUTHORIZATION_CODE_TTL = DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_TRANSACTION_TTL = DEFAULT_TRANSACTION_TTL; exports.ConsentManager = ConsentManager; exports.JWTIssuer = JWTIssuer; exports.PKCEUtils = PKCEUtils; exports.EncryptedTokenStorage = EncryptedTokenStorage; exports.MemoryTokenStorage = MemoryTokenStorage; exports.OAuthProxy = OAuthProxy; exports.OAuthProxyError = OAuthProxyError; exports.AuthProvider = AuthProvider; exports.AzureProvider = AzureProvider; exports.GitHubProvider = GitHubProvider; exports.GoogleProvider = GoogleProvider; exports.OAuthProvider = OAuthProvider; exports.DiskStore = DiskStore; exports.JWKSVerifier = JWKSVerifier;
|
|
3922
|
-
//# sourceMappingURL=chunk-
|
|
3975
|
+
//# sourceMappingURL=chunk-IWNTAHGZ.cjs.map
|