@vitemcp/server 1.9.12 → 1.9.14
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-B78zmLtB.d.cts → OAuthProvider-CXNATtVg.d.cts} +22 -3
- package/dist/{OAuthProvider-B78zmLtB.d.ts → OAuthProvider-CXNATtVg.d.ts} +22 -3
- package/dist/ViteMCP.cjs +3 -3
- package/dist/ViteMCP.d.cts +2 -2
- package/dist/ViteMCP.d.ts +2 -2
- 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-WBP37JPX.js → chunk-2O5Y2H74.js} +3 -3
- package/dist/{chunk-WBP37JPX.js.map → chunk-2O5Y2H74.js.map} +1 -1
- package/dist/{chunk-7T5D57AM.cjs → chunk-7MAOWIMR.cjs} +4 -4
- package/dist/{chunk-7T5D57AM.cjs.map → chunk-7MAOWIMR.cjs.map} +1 -1
- package/dist/{chunk-NZ34AKP4.js → chunk-F37DGG7F.js} +42 -8
- package/dist/chunk-F37DGG7F.js.map +1 -0
- package/dist/{chunk-2X4JCSQQ.cjs → chunk-T7EJGNI3.cjs} +42 -8
- package/dist/chunk-T7EJGNI3.cjs.map +1 -0
- package/dist/openapi/index.cjs +99 -35
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/openapi/index.js +82 -18
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2X4JCSQQ.cjs.map +0 -1
- package/dist/chunk-NZ34AKP4.js.map +0 -1
|
@@ -60,6 +60,11 @@ interface ClientCode {
|
|
|
60
60
|
createdAt: Date;
|
|
61
61
|
/** Code expiration timestamp */
|
|
62
62
|
expiresAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
* The redirect URI the code was authorized for. Absent from a code stored by
|
|
65
|
+
* a version that did not record it, which is redeemed without the check.
|
|
66
|
+
*/
|
|
67
|
+
redirectUri?: string;
|
|
63
68
|
transactionId: string;
|
|
64
69
|
/** Upstream tokens obtained from provider */
|
|
65
70
|
upstreamTokens: UpstreamTokenSet;
|
|
@@ -205,7 +210,13 @@ interface OAuthProviderConfig {
|
|
|
205
210
|
* Configuration for the OAuth Proxy
|
|
206
211
|
*/
|
|
207
212
|
interface OAuthProxyConfig {
|
|
208
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* Lifetime in seconds of a swapped access token whose upstream token
|
|
215
|
+
* response carries no `expires_in`. A positive one takes precedence, so this
|
|
216
|
+
* does not shorten tokens from a provider that sets it. Without either, the
|
|
217
|
+
* default is 3600 when the upstream issued a refresh token, and 31536000
|
|
218
|
+
* (one year) when it did not.
|
|
219
|
+
*/
|
|
209
220
|
accessTokenTtl?: number;
|
|
210
221
|
/**
|
|
211
222
|
* Allow-list of redirect URI patterns accepted by Dynamic Client Registration.
|
|
@@ -451,7 +462,8 @@ interface TokenRequest {
|
|
|
451
462
|
code: string;
|
|
452
463
|
code_verifier?: string;
|
|
453
464
|
grant_type: "authorization_code";
|
|
454
|
-
|
|
465
|
+
/** Optional: OAuth 2.1 drops it from the token request. */
|
|
466
|
+
redirect_uri?: string;
|
|
455
467
|
}
|
|
456
468
|
/**
|
|
457
469
|
* OAuth token response
|
|
@@ -514,7 +526,7 @@ interface TokenVerifier {
|
|
|
514
526
|
*/
|
|
515
527
|
interface UpstreamTokenSet {
|
|
516
528
|
accessToken: string;
|
|
517
|
-
/** Token expiration in seconds */
|
|
529
|
+
/** Token expiration in seconds; 0 when the upstream did not say */
|
|
518
530
|
expiresIn: number;
|
|
519
531
|
/** ID token (for OIDC) */
|
|
520
532
|
idToken?: string;
|
|
@@ -607,6 +619,13 @@ declare class OAuthProxy {
|
|
|
607
619
|
tokenEndpointAuthSigningAlgValuesSupported?: string[];
|
|
608
620
|
uiLocalesSupported?: string[];
|
|
609
621
|
};
|
|
622
|
+
/**
|
|
623
|
+
* The path the upstream provider redirects back to: `redirectPath`, or
|
|
624
|
+
* `/oauth/callback` when none is set. The router serves the callback here
|
|
625
|
+
* and the proxy sends `{baseUrl}{path}` upstream as the `redirect_uri`, so
|
|
626
|
+
* both read it from this one place and cannot disagree.
|
|
627
|
+
*/
|
|
628
|
+
getRedirectPath(): string;
|
|
610
629
|
/**
|
|
611
630
|
* Handle OAuth callback from upstream provider
|
|
612
631
|
*/
|
|
@@ -60,6 +60,11 @@ interface ClientCode {
|
|
|
60
60
|
createdAt: Date;
|
|
61
61
|
/** Code expiration timestamp */
|
|
62
62
|
expiresAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
* The redirect URI the code was authorized for. Absent from a code stored by
|
|
65
|
+
* a version that did not record it, which is redeemed without the check.
|
|
66
|
+
*/
|
|
67
|
+
redirectUri?: string;
|
|
63
68
|
transactionId: string;
|
|
64
69
|
/** Upstream tokens obtained from provider */
|
|
65
70
|
upstreamTokens: UpstreamTokenSet;
|
|
@@ -205,7 +210,13 @@ interface OAuthProviderConfig {
|
|
|
205
210
|
* Configuration for the OAuth Proxy
|
|
206
211
|
*/
|
|
207
212
|
interface OAuthProxyConfig {
|
|
208
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* Lifetime in seconds of a swapped access token whose upstream token
|
|
215
|
+
* response carries no `expires_in`. A positive one takes precedence, so this
|
|
216
|
+
* does not shorten tokens from a provider that sets it. Without either, the
|
|
217
|
+
* default is 3600 when the upstream issued a refresh token, and 31536000
|
|
218
|
+
* (one year) when it did not.
|
|
219
|
+
*/
|
|
209
220
|
accessTokenTtl?: number;
|
|
210
221
|
/**
|
|
211
222
|
* Allow-list of redirect URI patterns accepted by Dynamic Client Registration.
|
|
@@ -451,7 +462,8 @@ interface TokenRequest {
|
|
|
451
462
|
code: string;
|
|
452
463
|
code_verifier?: string;
|
|
453
464
|
grant_type: "authorization_code";
|
|
454
|
-
|
|
465
|
+
/** Optional: OAuth 2.1 drops it from the token request. */
|
|
466
|
+
redirect_uri?: string;
|
|
455
467
|
}
|
|
456
468
|
/**
|
|
457
469
|
* OAuth token response
|
|
@@ -514,7 +526,7 @@ interface TokenVerifier {
|
|
|
514
526
|
*/
|
|
515
527
|
interface UpstreamTokenSet {
|
|
516
528
|
accessToken: string;
|
|
517
|
-
/** Token expiration in seconds */
|
|
529
|
+
/** Token expiration in seconds; 0 when the upstream did not say */
|
|
518
530
|
expiresIn: number;
|
|
519
531
|
/** ID token (for OIDC) */
|
|
520
532
|
idToken?: string;
|
|
@@ -607,6 +619,13 @@ declare class OAuthProxy {
|
|
|
607
619
|
tokenEndpointAuthSigningAlgValuesSupported?: string[];
|
|
608
620
|
uiLocalesSupported?: string[];
|
|
609
621
|
};
|
|
622
|
+
/**
|
|
623
|
+
* The path the upstream provider redirects back to: `redirectPath`, or
|
|
624
|
+
* `/oauth/callback` when none is set. The router serves the callback here
|
|
625
|
+
* and the proxy sends `{baseUrl}{path}` upstream as the `redirect_uri`, so
|
|
626
|
+
* both read it from this one place and cannot disagree.
|
|
627
|
+
*/
|
|
628
|
+
getRedirectPath(): string;
|
|
610
629
|
/**
|
|
611
630
|
* Handle OAuth callback from upstream provider
|
|
612
631
|
*/
|
package/dist/ViteMCP.cjs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7MAOWIMRcjs = require('./chunk-7MAOWIMR.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ var _chunk7T5D57AMcjs = require('./chunk-7T5D57AM.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkT7EJGNI3cjs = require('./chunk-T7EJGNI3.cjs');
|
|
29
29
|
require('./chunk-QPVEGWOL.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
@@ -52,5 +52,5 @@ require('./chunk-QPVEGWOL.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.AuthProvider =
|
|
55
|
+
exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.DiscoveryDocumentCache = _chunk7MAOWIMRcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunk7MAOWIMRcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.ServerState = _chunk7MAOWIMRcjs.ServerState; exports.UnexpectedStateError = _chunk7MAOWIMRcjs.UnexpectedStateError; exports.UserError = _chunk7MAOWIMRcjs.UserError; exports.ViteMCP = _chunk7MAOWIMRcjs.ViteMCP; exports.ViteMCPError = _chunk7MAOWIMRcjs.ViteMCPError; exports.audioContent = _chunk7MAOWIMRcjs.audioContent; exports.delay = _chunk7MAOWIMRcjs.delay; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.imageContent = _chunk7MAOWIMRcjs.imageContent; exports.jsonSchemaAdapter = _chunk7MAOWIMRcjs.jsonSchemaAdapter; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.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-CXNATtVg.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-CXNATtVg.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-CXNATtVg.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-CXNATtVg.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-2O5Y2H74.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-F37DGG7F.js";
|
|
29
29
|
import "./chunk-JMDI672G.js";
|
|
30
30
|
export {
|
|
31
31
|
AuthProvider,
|
package/dist/auth/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkT7EJGNI3cjs = require('../chunk-T7EJGNI3.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -51,5 +51,5 @@ var _chunk2X4JCSQQcjs = require('../chunk-2X4JCSQQ.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.AuthProvider =
|
|
54
|
+
exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.ConsentManager = _chunkT7EJGNI3cjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkT7EJGNI3cjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkT7EJGNI3cjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkT7EJGNI3cjs.DiskStore; exports.EncryptedTokenStorage = _chunkT7EJGNI3cjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.JWKSVerifier = _chunkT7EJGNI3cjs.JWKSVerifier; exports.JWTIssuer = _chunkT7EJGNI3cjs.JWTIssuer; exports.MemoryTokenStorage = _chunkT7EJGNI3cjs.MemoryTokenStorage; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.PKCEUtils = _chunkT7EJGNI3cjs.PKCEUtils; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.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-CXNATtVg.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-CXNATtVg.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-CXNATtVg.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-CXNATtVg.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Consent Management
|
package/dist/auth/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withoutTrailingSlash
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F37DGG7F.js";
|
|
4
4
|
import {
|
|
5
5
|
formatBytes,
|
|
6
6
|
ownKeysOnly,
|
|
@@ -244,7 +244,7 @@ var createOAuthRouter = (options) => {
|
|
|
244
244
|
return c.json(body, status, noStore);
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
app.get(`${basePath}
|
|
247
|
+
app.get(`${basePath}${proxy.getRedirectPath()}`, async (c) => {
|
|
248
248
|
try {
|
|
249
249
|
return await proxy.handleCallback(c.req.raw);
|
|
250
250
|
} catch (error) {
|
|
@@ -1688,4 +1688,4 @@ export {
|
|
|
1688
1688
|
ServerState,
|
|
1689
1689
|
ViteMCP
|
|
1690
1690
|
};
|
|
1691
|
-
//# sourceMappingURL=chunk-
|
|
1691
|
+
//# sourceMappingURL=chunk-2O5Y2H74.js.map
|