@vitemcp/server 1.8.7 → 1.9.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/README.md +15 -8
- package/dist/{OAuthProvider-COBBSCMI.d.cts → OAuthProvider-DvW1SyKx.d.cts} +11 -0
- package/dist/{OAuthProvider-COBBSCMI.d.ts → OAuthProvider-DvW1SyKx.d.ts} +11 -0
- package/dist/ViteMCP.cjs +3 -3
- package/dist/ViteMCP.d.cts +5 -4
- package/dist/ViteMCP.d.ts +5 -4
- package/dist/ViteMCP.js +2 -2
- 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-5KNSU2F3.js → chunk-HWSTK2ZH.js} +9 -1
- package/dist/{chunk-5KNSU2F3.js.map → chunk-HWSTK2ZH.js.map} +1 -1
- package/dist/{chunk-Y3GRHB77.cjs → chunk-KFOTRFZS.cjs} +9 -1
- package/dist/chunk-KFOTRFZS.cjs.map +1 -0
- package/dist/{chunk-WPEA62CU.js → chunk-UFLW3ODH.js} +147 -22
- package/dist/chunk-UFLW3ODH.js.map +1 -0
- package/dist/{chunk-4G36TFXD.cjs → chunk-UPZH53RX.cjs} +161 -36
- package/dist/chunk-UPZH53RX.cjs.map +1 -0
- package/dist/openapi/index.cjs +10 -10
- package/dist/openapi/index.d.cts +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +2 -2
- package/package.json +5 -1
- package/dist/chunk-4G36TFXD.cjs.map +0 -1
- package/dist/chunk-WPEA62CU.js.map +0 -1
- package/dist/chunk-Y3GRHB77.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -259,13 +259,14 @@ server.addTool({
|
|
|
259
259
|
|
|
260
260
|
Works for `outputSchema` too, and is advertised as written — as are Zod and
|
|
261
261
|
ArkType schemas, which emit their own JSON Schema. Anything else (Valibot, for
|
|
262
|
-
one) is converted
|
|
263
|
-
|
|
264
|
-
`
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
262
|
+
one) is converted to JSON Schema for `tools/list` only; arguments and results
|
|
263
|
+
are still validated by the library itself, so a `v.transform()` reaches
|
|
264
|
+
`execute` and a `v.check()` is enforced even though JSON Schema can express
|
|
265
|
+
neither. Converted input schemas get `additionalProperties: false` on every
|
|
266
|
+
object, except where a record or rest schema (`v.record()`,
|
|
267
|
+
`v.objectWithRest()`) describes the extra keys; converted output schemas are
|
|
268
|
+
left as they are. A tool whose schema cannot be converted at all is left out of
|
|
269
|
+
the server and reported through the logger.
|
|
269
270
|
|
|
270
271
|
Unlike the schema libraries above, a plain JSON Schema carries no TypeScript
|
|
271
272
|
types, so `execute` receives `unknown` arguments. Cast or narrow them yourself.
|
|
@@ -1511,7 +1512,8 @@ Tools can log messages to the client using the `log` object in the context objec
|
|
|
1511
1512
|
> setting `io.modelcontextprotocol/logLevel` in the request's `_meta`. The
|
|
1512
1513
|
> revision forbids servers from sending `notifications/message` for a request
|
|
1513
1514
|
> that did not opt in, so `log.*` is a no-op otherwise — that is expected
|
|
1514
|
-
> behaviour, not a bug.
|
|
1515
|
+
> behaviour, not a bug. The level is a floor: a request that asks for
|
|
1516
|
+
> `warning` receives `log.warn` and `log.error`, not `log.info` or `log.debug`.
|
|
1515
1517
|
>
|
|
1516
1518
|
> Logging is also deprecated as of 2026-07-28. For diagnostics that always
|
|
1517
1519
|
> reach you, write to `stderr` (stdio servers) or use OpenTelemetry; for
|
|
@@ -1583,6 +1585,11 @@ const server = new ViteMCP({
|
|
|
1583
1585
|
|
|
1584
1586
|
See `src/examples/custom-logger.ts` for examples with Winston, Pino, and file-based logging.
|
|
1585
1587
|
|
|
1588
|
+
With `transportType: "stdio"`, stdout carries the protocol itself, so the
|
|
1589
|
+
default logger writes every level to stderr there. A custom logger is used as
|
|
1590
|
+
given: make sure it stays off stdout too — unlike the example above, whose
|
|
1591
|
+
`console.log` and `console.info` write to it.
|
|
1592
|
+
|
|
1586
1593
|
### Errors
|
|
1587
1594
|
|
|
1588
1595
|
The errors that are meant to be shown to the user should be thrown as `UserError` instances:
|
|
@@ -801,10 +801,21 @@ interface AuthProviderConfig {
|
|
|
801
801
|
* SECURITY advisory before loosening this.
|
|
802
802
|
*/
|
|
803
803
|
allowedRedirectUriPatterns?: string[];
|
|
804
|
+
/**
|
|
805
|
+
* Accept PKCE `plain` as well as `S256` (default: false), for the rare
|
|
806
|
+
* client that cannot hash. See `OAuthProxyConfig.allowPlainPkce` first.
|
|
807
|
+
*/
|
|
808
|
+
allowPlainPkce?: boolean;
|
|
804
809
|
/** Base URL where the MCP server is accessible */
|
|
805
810
|
baseUrl: string;
|
|
806
811
|
/** OAuth client ID */
|
|
807
812
|
clientId: string;
|
|
813
|
+
/**
|
|
814
|
+
* Client ID Metadata Document support, on by default. Set `allowedDomains`
|
|
815
|
+
* to limit which hosts client metadata is fetched from, or `enabled: false`
|
|
816
|
+
* to turn it off.
|
|
817
|
+
*/
|
|
818
|
+
clientIdMetadata?: ClientIdMetadataOptions;
|
|
808
819
|
/** OAuth client secret */
|
|
809
820
|
clientSecret: string;
|
|
810
821
|
/** Require user consent screen (default: true) */
|
|
@@ -801,10 +801,21 @@ interface AuthProviderConfig {
|
|
|
801
801
|
* SECURITY advisory before loosening this.
|
|
802
802
|
*/
|
|
803
803
|
allowedRedirectUriPatterns?: string[];
|
|
804
|
+
/**
|
|
805
|
+
* Accept PKCE `plain` as well as `S256` (default: false), for the rare
|
|
806
|
+
* client that cannot hash. See `OAuthProxyConfig.allowPlainPkce` first.
|
|
807
|
+
*/
|
|
808
|
+
allowPlainPkce?: boolean;
|
|
804
809
|
/** Base URL where the MCP server is accessible */
|
|
805
810
|
baseUrl: string;
|
|
806
811
|
/** OAuth client ID */
|
|
807
812
|
clientId: string;
|
|
813
|
+
/**
|
|
814
|
+
* Client ID Metadata Document support, on by default. Set `allowedDomains`
|
|
815
|
+
* to limit which hosts client metadata is fetched from, or `enabled: false`
|
|
816
|
+
* to turn it off.
|
|
817
|
+
*/
|
|
818
|
+
clientIdMetadata?: ClientIdMetadataOptions;
|
|
808
819
|
/** OAuth client secret */
|
|
809
820
|
clientSecret: string;
|
|
810
821
|
/** Require user consent screen (default: true) */
|
package/dist/ViteMCP.cjs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUPZH53RXcjs = require('./chunk-UPZH53RX.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ var _chunk4G36TFXDcjs = require('./chunk-4G36TFXD.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkKFOTRFZScjs = require('./chunk-KFOTRFZS.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -51,5 +51,5 @@ var _chunkY3GRHB77cjs = require('./chunk-Y3GRHB77.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.AuthProvider =
|
|
54
|
+
exports.AuthProvider = _chunkKFOTRFZScjs.AuthProvider; exports.AzureProvider = _chunkKFOTRFZScjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkUPZH53RXcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunkKFOTRFZScjs.GitHubProvider; exports.GoogleProvider = _chunkKFOTRFZScjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkUPZH53RXcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkKFOTRFZScjs.OAuthProvider; exports.OAuthProxy = _chunkKFOTRFZScjs.OAuthProxy; exports.OAuthProxyError = _chunkKFOTRFZScjs.OAuthProxyError; exports.ServerState = _chunkUPZH53RXcjs.ServerState; exports.UnexpectedStateError = _chunkUPZH53RXcjs.UnexpectedStateError; exports.UserError = _chunkUPZH53RXcjs.UserError; exports.ViteMCP = _chunkUPZH53RXcjs.ViteMCP; exports.ViteMCPError = _chunkUPZH53RXcjs.ViteMCPError; exports.audioContent = _chunkUPZH53RXcjs.audioContent; exports.delay = _chunkUPZH53RXcjs.delay; exports.getAuthSession = _chunkKFOTRFZScjs.getAuthSession; exports.imageContent = _chunkUPZH53RXcjs.imageContent; exports.jsonSchemaAdapter = _chunkUPZH53RXcjs.jsonSchemaAdapter; exports.requireAll = _chunkKFOTRFZScjs.requireAll; exports.requireAny = _chunkKFOTRFZScjs.requireAny; exports.requireAuth = _chunkKFOTRFZScjs.requireAuth; exports.requireRole = _chunkKFOTRFZScjs.requireRole; exports.requireScopes = _chunkKFOTRFZScjs.requireScopes;
|
|
55
55
|
//# 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-DvW1SyKx.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-DvW1SyKx.cjs';
|
|
9
9
|
|
|
10
10
|
declare class DiscoveryDocumentCache {
|
|
11
11
|
#private;
|
|
@@ -207,7 +207,7 @@ type Context<T extends ViteMCPAuth> = {
|
|
|
207
207
|
/**
|
|
208
208
|
* Emits `notifications/message`. The spec forbids emitting these unless the
|
|
209
209
|
* request opted in via `_meta` log level, so these are dropped when the
|
|
210
|
-
* client did not ask for logs.
|
|
210
|
+
* client did not ask for logs, and below the level it asked for.
|
|
211
211
|
*/
|
|
212
212
|
log: {
|
|
213
213
|
debug: (message: string, data?: SerializableValue) => void;
|
|
@@ -461,7 +461,8 @@ declare class ViteMCP<T extends ViteMCPAuth = ViteMCPAuth> {
|
|
|
461
461
|
getApp(): Hono;
|
|
462
462
|
/**
|
|
463
463
|
* Publishes `notifications/resources/updated` for a URI to any subscription
|
|
464
|
-
* that opted in to it.
|
|
464
|
+
* that opted in to it and whose caller may read it. HTTP only: a stdio
|
|
465
|
+
* client is never reached.
|
|
465
466
|
*/
|
|
466
467
|
notifyResourceUpdated(uri: string): void;
|
|
467
468
|
removePrompt(name: string): void;
|
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-DvW1SyKx.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-DvW1SyKx.js';
|
|
9
9
|
|
|
10
10
|
declare class DiscoveryDocumentCache {
|
|
11
11
|
#private;
|
|
@@ -207,7 +207,7 @@ type Context<T extends ViteMCPAuth> = {
|
|
|
207
207
|
/**
|
|
208
208
|
* Emits `notifications/message`. The spec forbids emitting these unless the
|
|
209
209
|
* request opted in via `_meta` log level, so these are dropped when the
|
|
210
|
-
* client did not ask for logs.
|
|
210
|
+
* client did not ask for logs, and below the level it asked for.
|
|
211
211
|
*/
|
|
212
212
|
log: {
|
|
213
213
|
debug: (message: string, data?: SerializableValue) => void;
|
|
@@ -461,7 +461,8 @@ declare class ViteMCP<T extends ViteMCPAuth = ViteMCPAuth> {
|
|
|
461
461
|
getApp(): Hono;
|
|
462
462
|
/**
|
|
463
463
|
* Publishes `notifications/resources/updated` for a URI to any subscription
|
|
464
|
-
* that opted in to it.
|
|
464
|
+
* that opted in to it and whose caller may read it. HTTP only: a stdio
|
|
465
|
+
* client is never reached.
|
|
465
466
|
*/
|
|
466
467
|
notifyResourceUpdated(uri: string): void;
|
|
467
468
|
removePrompt(name: string): void;
|
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-UFLW3ODH.js";
|
|
14
14
|
import {
|
|
15
15
|
AuthProvider,
|
|
16
16
|
AzureProvider,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
requireAuth,
|
|
26
26
|
requireRole,
|
|
27
27
|
requireScopes
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HWSTK2ZH.js";
|
|
29
29
|
export {
|
|
30
30
|
AuthProvider,
|
|
31
31
|
AzureProvider,
|
package/dist/auth/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkKFOTRFZScjs = require('../chunk-KFOTRFZS.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -51,5 +51,5 @@ var _chunkY3GRHB77cjs = require('../chunk-Y3GRHB77.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.AuthProvider =
|
|
54
|
+
exports.AuthProvider = _chunkKFOTRFZScjs.AuthProvider; exports.AzureProvider = _chunkKFOTRFZScjs.AzureProvider; exports.ConsentManager = _chunkKFOTRFZScjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkKFOTRFZScjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkKFOTRFZScjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkKFOTRFZScjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkKFOTRFZScjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkKFOTRFZScjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkKFOTRFZScjs.DiskStore; exports.EncryptedTokenStorage = _chunkKFOTRFZScjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkKFOTRFZScjs.GitHubProvider; exports.GoogleProvider = _chunkKFOTRFZScjs.GoogleProvider; exports.JWKSVerifier = _chunkKFOTRFZScjs.JWKSVerifier; exports.JWTIssuer = _chunkKFOTRFZScjs.JWTIssuer; exports.MemoryTokenStorage = _chunkKFOTRFZScjs.MemoryTokenStorage; exports.OAuthProvider = _chunkKFOTRFZScjs.OAuthProvider; exports.OAuthProxy = _chunkKFOTRFZScjs.OAuthProxy; exports.OAuthProxyError = _chunkKFOTRFZScjs.OAuthProxyError; exports.PKCEUtils = _chunkKFOTRFZScjs.PKCEUtils; exports.getAuthSession = _chunkKFOTRFZScjs.getAuthSession; exports.requireAll = _chunkKFOTRFZScjs.requireAll; exports.requireAny = _chunkKFOTRFZScjs.requireAny; exports.requireAuth = _chunkKFOTRFZScjs.requireAuth; exports.requireRole = _chunkKFOTRFZScjs.requireRole; exports.requireScopes = _chunkKFOTRFZScjs.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-DvW1SyKx.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-DvW1SyKx.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-DvW1SyKx.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-DvW1SyKx.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Consent Management
|
package/dist/auth/index.js
CHANGED
|
@@ -2876,7 +2876,9 @@ var AzureProvider = class extends AuthProvider {
|
|
|
2876
2876
|
// they trust. A previous default of ["http://localhost:*", "https://*"]
|
|
2877
2877
|
// enabled CWE-601 open-redirect / code-theft via /oauth/authorize.
|
|
2878
2878
|
allowedRedirectUriPatterns: this.config.allowedRedirectUriPatterns,
|
|
2879
|
+
allowPlainPkce: this.config.allowPlainPkce,
|
|
2879
2880
|
baseUrl: this.config.baseUrl,
|
|
2881
|
+
clientIdMetadata: this.config.clientIdMetadata,
|
|
2880
2882
|
consentRequired: this.config.consentRequired ?? true,
|
|
2881
2883
|
encryptionKey: this.config.encryptionKey,
|
|
2882
2884
|
jwtSigningKey: this.config.jwtSigningKey,
|
|
@@ -2910,7 +2912,9 @@ var GitHubProvider = class extends AuthProvider {
|
|
|
2910
2912
|
// they trust. A previous default of ["http://localhost:*", "https://*"]
|
|
2911
2913
|
// enabled CWE-601 open-redirect / code-theft via /oauth/authorize.
|
|
2912
2914
|
allowedRedirectUriPatterns: this.config.allowedRedirectUriPatterns,
|
|
2915
|
+
allowPlainPkce: this.config.allowPlainPkce,
|
|
2913
2916
|
baseUrl: this.config.baseUrl,
|
|
2917
|
+
clientIdMetadata: this.config.clientIdMetadata,
|
|
2914
2918
|
consentRequired: this.config.consentRequired ?? true,
|
|
2915
2919
|
encryptionKey: this.config.encryptionKey,
|
|
2916
2920
|
jwtSigningKey: this.config.jwtSigningKey,
|
|
@@ -2944,7 +2948,9 @@ var GoogleProvider = class extends AuthProvider {
|
|
|
2944
2948
|
// they trust. A previous default of ["http://localhost:*", "https://*"]
|
|
2945
2949
|
// enabled CWE-601 open-redirect / code-theft via /oauth/authorize.
|
|
2946
2950
|
allowedRedirectUriPatterns: this.config.allowedRedirectUriPatterns,
|
|
2951
|
+
allowPlainPkce: this.config.allowPlainPkce,
|
|
2947
2952
|
baseUrl: this.config.baseUrl,
|
|
2953
|
+
clientIdMetadata: this.config.clientIdMetadata,
|
|
2948
2954
|
consentRequired: this.config.consentRequired ?? true,
|
|
2949
2955
|
encryptionKey: this.config.encryptionKey,
|
|
2950
2956
|
jwtSigningKey: this.config.jwtSigningKey,
|
|
@@ -2980,7 +2986,9 @@ var OAuthProvider = class extends AuthProvider {
|
|
|
2980
2986
|
// they trust. A previous default of ["http://localhost:*", "https://*"]
|
|
2981
2987
|
// enabled CWE-601 open-redirect / code-theft via /oauth/authorize.
|
|
2982
2988
|
allowedRedirectUriPatterns: this.config.allowedRedirectUriPatterns,
|
|
2989
|
+
allowPlainPkce: this.config.allowPlainPkce,
|
|
2983
2990
|
baseUrl: this.config.baseUrl,
|
|
2991
|
+
clientIdMetadata: this.config.clientIdMetadata,
|
|
2984
2992
|
consentRequired: this.config.consentRequired ?? true,
|
|
2985
2993
|
encryptionKey: this.config.encryptionKey,
|
|
2986
2994
|
jwtSigningKey: this.config.jwtSigningKey,
|
|
@@ -3373,4 +3381,4 @@ export {
|
|
|
3373
3381
|
DiskStore,
|
|
3374
3382
|
JWKSVerifier
|
|
3375
3383
|
};
|
|
3376
|
-
//# sourceMappingURL=chunk-
|
|
3384
|
+
//# sourceMappingURL=chunk-HWSTK2ZH.js.map
|