@zuplo/runtime 6.70.53 → 6.70.55
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/out/esm/{chunk-ORBTGJIA.js → chunk-IASCNBZZ.js} +76 -76
- package/out/esm/chunk-IASCNBZZ.js.map +1 -0
- package/out/esm/index.js +1 -1
- package/out/esm/mcp-gateway/index.js +12 -12
- package/out/esm/mcp-gateway/index.js.map +1 -1
- package/out/types/index.d.ts +32 -11
- package/out/types/mcp-gateway/index.d.ts +60 -112
- package/package.json +1 -1
- package/out/esm/browser-login-idp-QZEGTRKY.js +0 -26
- package/out/esm/browser-login-idp-QZEGTRKY.js.map +0 -1
- package/out/esm/chunk-ORBTGJIA.js.map +0 -1
- package/out/esm/chunk-WASXKKBJ.js +0 -26
- package/out/esm/chunk-WASXKKBJ.js.map +0 -1
- /package/out/esm/{chunk-ORBTGJIA.js.LEGAL.txt → chunk-IASCNBZZ.js.LEGAL.txt} +0 -0
package/out/types/index.d.ts
CHANGED
|
@@ -250,6 +250,7 @@ export declare interface AIGatewayOpenAIToAnthropicOutboundPolicyOptions {}
|
|
|
250
250
|
* @title AI Gateway Semantic Cache
|
|
251
251
|
* @product ai-gateway
|
|
252
252
|
* @hidden
|
|
253
|
+
* @requiresAI
|
|
253
254
|
* @param request - The ZuploRequest
|
|
254
255
|
* @param context - The ZuploContext
|
|
255
256
|
* @param options - The policy options set in policies.json
|
|
@@ -277,6 +278,7 @@ export declare interface AIGatewaySemanticCacheInboundPolicyOptions {}
|
|
|
277
278
|
* @title AI Gateway Semantic Cache
|
|
278
279
|
* @product ai-gateway
|
|
279
280
|
* @hidden
|
|
281
|
+
* @requiresAI
|
|
280
282
|
* @param response - The response from the upstream service
|
|
281
283
|
* @param request - The original request
|
|
282
284
|
* @param context - The ZuploContext
|
|
@@ -350,6 +352,7 @@ export declare function AIGatewayUsageTrackerPolicy(
|
|
|
350
352
|
* Akamai AI Firewall Inbound Policy
|
|
351
353
|
* @title Akamai AI Firewall
|
|
352
354
|
* @product ai-gateway
|
|
355
|
+
* @requiresAI
|
|
353
356
|
*
|
|
354
357
|
* This policy integrates with Akamai's AI Firewall service to detect
|
|
355
358
|
* and block malicious AI inputs and outputs. It's self-contained and
|
|
@@ -487,6 +490,7 @@ export declare interface AkamaiApiSecurityPluginOptions {
|
|
|
487
490
|
*
|
|
488
491
|
* @title Akamai Firewall for AI
|
|
489
492
|
* @public
|
|
493
|
+
* @requiresAI
|
|
490
494
|
* @param request - The ZuploRequest
|
|
491
495
|
* @param context - The ZuploContext
|
|
492
496
|
* @param options - The policy options set in policies.json
|
|
@@ -535,6 +539,7 @@ export declare interface AkamaiFirewallForAiInboundPolicyOptions {
|
|
|
535
539
|
*
|
|
536
540
|
* @title Akamai Firewall for AI
|
|
537
541
|
* @public
|
|
542
|
+
* @requiresAI
|
|
538
543
|
* @param response - The outgoing Response from the handler
|
|
539
544
|
* @param request - The original incoming Request
|
|
540
545
|
* @param context - The current context of the Request
|
|
@@ -6284,18 +6289,28 @@ declare const mcpOAuthRuntimeConfigSchema: z.ZodObject<
|
|
|
6284
6289
|
},
|
|
6285
6290
|
z.core.$strict
|
|
6286
6291
|
>;
|
|
6287
|
-
gateway: z.
|
|
6288
|
-
z.
|
|
6289
|
-
z.
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
z.core.$strict
|
|
6297
|
-
>
|
|
6292
|
+
gateway: z.ZodPipe<
|
|
6293
|
+
z.ZodDefault<
|
|
6294
|
+
z.ZodObject<
|
|
6295
|
+
{
|
|
6296
|
+
accessTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6297
|
+
refreshTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6298
|
+
cimdEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
6299
|
+
},
|
|
6300
|
+
z.core.$strict
|
|
6298
6301
|
>
|
|
6302
|
+
>,
|
|
6303
|
+
z.ZodTransform<
|
|
6304
|
+
{
|
|
6305
|
+
accessTokenTtlSeconds: number;
|
|
6306
|
+
refreshTokenTtlSeconds: number;
|
|
6307
|
+
downstreamCimdEnabled: boolean;
|
|
6308
|
+
},
|
|
6309
|
+
{
|
|
6310
|
+
accessTokenTtlSeconds: number;
|
|
6311
|
+
refreshTokenTtlSeconds: number;
|
|
6312
|
+
cimdEnabled: boolean;
|
|
6313
|
+
}
|
|
6299
6314
|
>
|
|
6300
6315
|
>;
|
|
6301
6316
|
},
|
|
@@ -6968,6 +6983,10 @@ export declare interface MonetizationInboundPolicyOptions {
|
|
|
6968
6983
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
|
|
6969
6984
|
*/
|
|
6970
6985
|
meterOnStatusCodes?: string | number[];
|
|
6986
|
+
/**
|
|
6987
|
+
* A list of entitlement keys that the subscription must have access to (hasAccess=true) for the request to be allowed. If any required entitlement is missing or does not have access, the request will be rejected with a 403 Forbidden.
|
|
6988
|
+
*/
|
|
6989
|
+
requiredEntitlements?: string[];
|
|
6971
6990
|
}
|
|
6972
6991
|
|
|
6973
6992
|
/**
|
|
@@ -8532,6 +8551,7 @@ export declare class ProblemResponseFormatter {
|
|
|
8532
8551
|
* @product mcp-gateway
|
|
8533
8552
|
* @public
|
|
8534
8553
|
* @enterprise
|
|
8554
|
+
* @requiresAI
|
|
8535
8555
|
* @param request - The ZuploRequest
|
|
8536
8556
|
* @param context - The ZuploContext
|
|
8537
8557
|
* @param options - The policy options set in policies.json
|
|
@@ -9661,6 +9681,7 @@ export declare interface SecretMaskingOutboundPolicyOptions {
|
|
|
9661
9681
|
* @product ai-gateway
|
|
9662
9682
|
* @beta
|
|
9663
9683
|
* @enterprise
|
|
9684
|
+
* @requiresAI
|
|
9664
9685
|
* @param request - The ZuploRequest
|
|
9665
9686
|
* @param context - The ZuploContext
|
|
9666
9687
|
* @param options - The policy options set in policies.json
|
|
@@ -1734,18 +1734,28 @@ declare const mcpOAuthRuntimeConfigSchema: z.ZodObject<
|
|
|
1734
1734
|
},
|
|
1735
1735
|
z.core.$strict
|
|
1736
1736
|
>;
|
|
1737
|
-
gateway: z.
|
|
1738
|
-
z.
|
|
1739
|
-
z.
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
z.core.$strict
|
|
1747
|
-
>
|
|
1737
|
+
gateway: z.ZodPipe<
|
|
1738
|
+
z.ZodDefault<
|
|
1739
|
+
z.ZodObject<
|
|
1740
|
+
{
|
|
1741
|
+
accessTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1742
|
+
refreshTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1743
|
+
cimdEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
1744
|
+
},
|
|
1745
|
+
z.core.$strict
|
|
1748
1746
|
>
|
|
1747
|
+
>,
|
|
1748
|
+
z.ZodTransform<
|
|
1749
|
+
{
|
|
1750
|
+
accessTokenTtlSeconds: number;
|
|
1751
|
+
refreshTokenTtlSeconds: number;
|
|
1752
|
+
downstreamCimdEnabled: boolean;
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
accessTokenTtlSeconds: number;
|
|
1756
|
+
refreshTokenTtlSeconds: number;
|
|
1757
|
+
cimdEnabled: boolean;
|
|
1758
|
+
}
|
|
1749
1759
|
>
|
|
1750
1760
|
>;
|
|
1751
1761
|
},
|
|
@@ -2038,22 +2048,7 @@ export declare interface McpTokenExchangeInboundPolicyOptions {
|
|
|
2038
2048
|
*/
|
|
2039
2049
|
scopeDelimiter?: string;
|
|
2040
2050
|
/**
|
|
2041
|
-
* OAuth client
|
|
2042
|
-
*/
|
|
2043
|
-
clientId?: string;
|
|
2044
|
-
/**
|
|
2045
|
-
* OAuth client secret (for OAuth modes with manual registration). Use `$env(VAR_NAME)` to source from an environment variable.
|
|
2046
|
-
*/
|
|
2047
|
-
clientSecret?: string;
|
|
2048
|
-
/**
|
|
2049
|
-
* Token endpoint authentication method (for OAuth modes with manual registration).
|
|
2050
|
-
*/
|
|
2051
|
-
tokenEndpointAuthMethod?:
|
|
2052
|
-
| "client_secret_basic"
|
|
2053
|
-
| "client_secret_post"
|
|
2054
|
-
| "none";
|
|
2055
|
-
/**
|
|
2056
|
-
* OAuth client registration mode. Defaults to `auto` (Dynamic Client Registration).
|
|
2051
|
+
* OAuth client registration mode. Defaults to `auto`, which uses Client ID Metadata Documents when the upstream advertises support and falls back to Dynamic Client Registration otherwise.
|
|
2057
2052
|
*/
|
|
2058
2053
|
clientRegistration?:
|
|
2059
2054
|
| {
|
|
@@ -3188,91 +3183,44 @@ declare const upstreamTokenExchangePolicyOptionsSchema: z.ZodObject<
|
|
|
3188
3183
|
"user-oauth": "user-oauth";
|
|
3189
3184
|
"shared-oauth": "shared-oauth";
|
|
3190
3185
|
}>;
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
z.core.$strict
|
|
3230
|
-
>;
|
|
3231
|
-
},
|
|
3232
|
-
z.core.$strict
|
|
3233
|
-
>,
|
|
3234
|
-
z.ZodObject<
|
|
3235
|
-
{
|
|
3236
|
-
mode: z.ZodLiteral<"user-oauth">;
|
|
3237
|
-
oauth: z.ZodObject<
|
|
3238
|
-
{
|
|
3239
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3240
|
-
scopeDelimiter: z.ZodDefault<z.ZodString>;
|
|
3241
|
-
clientRegistration: z.ZodDefault<
|
|
3242
|
-
z.ZodDiscriminatedUnion<
|
|
3243
|
-
[
|
|
3244
|
-
z.ZodObject<
|
|
3245
|
-
{
|
|
3246
|
-
mode: z.ZodLiteral<"auto">;
|
|
3247
|
-
},
|
|
3248
|
-
z.core.$strict
|
|
3249
|
-
>,
|
|
3250
|
-
z.ZodObject<
|
|
3251
|
-
{
|
|
3252
|
-
mode: z.ZodLiteral<"manual">;
|
|
3253
|
-
clientId: z.ZodString;
|
|
3254
|
-
clientSecret: z.ZodOptional<z.ZodString>;
|
|
3255
|
-
tokenEndpointAuthMethod: z.ZodDefault<
|
|
3256
|
-
z.ZodEnum<{
|
|
3257
|
-
none: "none";
|
|
3258
|
-
client_secret_basic: "client_secret_basic";
|
|
3259
|
-
client_secret_post: "client_secret_post";
|
|
3260
|
-
}>
|
|
3261
|
-
>;
|
|
3262
|
-
},
|
|
3263
|
-
z.core.$strict
|
|
3264
|
-
>,
|
|
3265
|
-
]
|
|
3266
|
-
>
|
|
3267
|
-
>;
|
|
3268
|
-
redirectPath: z.ZodString;
|
|
3269
|
-
},
|
|
3270
|
-
z.core.$strict
|
|
3271
|
-
>;
|
|
3272
|
-
},
|
|
3273
|
-
z.core.$strict
|
|
3274
|
-
>,
|
|
3275
|
-
]
|
|
3186
|
+
ownerMode: z.ZodEnum<{
|
|
3187
|
+
user: "user";
|
|
3188
|
+
shared: "shared";
|
|
3189
|
+
}>;
|
|
3190
|
+
authConfig: z.ZodObject<
|
|
3191
|
+
{
|
|
3192
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3193
|
+
scopeDelimiter: z.ZodDefault<z.ZodString>;
|
|
3194
|
+
clientRegistration: z.ZodDefault<
|
|
3195
|
+
z.ZodDiscriminatedUnion<
|
|
3196
|
+
[
|
|
3197
|
+
z.ZodObject<
|
|
3198
|
+
{
|
|
3199
|
+
mode: z.ZodLiteral<"auto">;
|
|
3200
|
+
},
|
|
3201
|
+
z.core.$strict
|
|
3202
|
+
>,
|
|
3203
|
+
z.ZodObject<
|
|
3204
|
+
{
|
|
3205
|
+
mode: z.ZodLiteral<"manual">;
|
|
3206
|
+
clientId: z.ZodString;
|
|
3207
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
tokenEndpointAuthMethod: z.ZodDefault<
|
|
3209
|
+
z.ZodEnum<{
|
|
3210
|
+
none: "none";
|
|
3211
|
+
client_secret_basic: "client_secret_basic";
|
|
3212
|
+
client_secret_post: "client_secret_post";
|
|
3213
|
+
}>
|
|
3214
|
+
>;
|
|
3215
|
+
},
|
|
3216
|
+
z.core.$strict
|
|
3217
|
+
>,
|
|
3218
|
+
]
|
|
3219
|
+
>
|
|
3220
|
+
>;
|
|
3221
|
+
redirectPath: z.ZodString;
|
|
3222
|
+
},
|
|
3223
|
+
z.core.$strict
|
|
3276
3224
|
>;
|
|
3277
3225
|
},
|
|
3278
3226
|
z.core.$strict
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Zuplo, Inc. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* This software and associated documentation files (the "Software") is intended to be used
|
|
6
|
-
* only by Zuplo customers solely to develop and test applications that will be deployed
|
|
7
|
-
* to Zuplo hosted services. You and others in your organization may use these files on your
|
|
8
|
-
* Development Devices solely for the above stated purpose.
|
|
9
|
-
*
|
|
10
|
-
* Outside of uses stated above, no license is granted for any other purpose including
|
|
11
|
-
* without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
12
|
-
* sublicense, host, and/or sell copies of the Software.
|
|
13
|
-
*
|
|
14
|
-
* The software may include third party components with separate legal notices or governed by
|
|
15
|
-
* other agreements, as described in licenses either embedded in or accompanying the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
18
|
-
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
-
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
20
|
-
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21
|
-
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
-
* DEALINGS IN THE SOFTWARE.
|
|
23
|
-
*--------------------------------------------------------------------------------------------*/
|
|
24
|
-
|
|
25
|
-
import{f as v,i as u}from"./chunk-WASXKKBJ.js";import{Gc as y,Hc as x,S as r,T as j,ec as h,fc as k,gc as l,jb as m,jc as b,kc as f}from"./chunk-ORBTGJIA.js";import"./chunk-JRXZBVXH.js";import"./chunk-4SACVMDH.js";import{a}from"./chunk-ZIKV2LUM.js";j();import{createRemoteJWKSet as C,errors as d,jwtVerify as T}from"jose";var I=r.object({id_token:r.string().min(1),token_type:r.string().min(1).optional(),expires_in:r.number().optional(),access_token:r.string().min(1).optional(),refresh_token:r.string().min(1).optional(),scope:r.string().min(1).optional()}),U=r.object({error:r.string().min(1).optional(),error_description:r.string().min(1).optional(),error_uri:r.string().min(1).optional()});function J(e){let t=U.safeParse(e);if(!t.success)return{};let n={};return t.data.error!==void 0&&(n.idpError=t.data.error),t.data.error_description!==void 0&&(n.idpErrorDescription=t.data.error_description.slice(0,256)),t.data.error_uri!==void 0&&(n.idpErrorUri=t.data.error_uri.slice(0,256)),n}a(J,"readIdpErrorFields");function M(e){return e instanceof d.JWTExpired?"expired":e instanceof d.JWTClaimValidationFailed?"claim":e instanceof d.JWSSignatureVerificationFailed?"signature":e instanceof d.JWKSNoMatchingKey?"jwks_no_match":e instanceof d.JWTInvalid?"invalid":e instanceof r.ZodError?"schema":"other"}a(M,"readJwtFailureKind");var P=r.object({sub:y,nonce:r.string().min(1)}).catchall(r.unknown()),p;function q(e){return e instanceof Error&&"cause"in e?e.cause:e}a(q,"readErrorCause");function H(e){if(e!==null&&typeof e=="object"&&"extensionMembers"in e)return e.extensionMembers?.gatewayCode}a(H,"readRuntimeGatewayCode");function L(){if(!p){let e=m();p=C(new URL(e.oidc.jwksUrl),{timeoutDuration:e.browserLogin.remoteTimeoutMs})}return p}a(L,"readFederatedJwks");async function Z(e){let t=m(),n=u("tokenUrl"),w=u("clientId"),E=u("clientSecret"),F=new URL("/oauth/callback",h(e.requestUrl,e.requestHeaders)).toString(),R=new URLSearchParams({grant_type:"authorization_code",code:e.code,redirect_uri:F,client_id:w,client_secret:E});try{let{response:i,json:s}=await v(n,{method:"POST",headers:{accept:"application/json","content-type":"application/x-www-form-urlencoded"},body:R},{maxResponseBytes:32768,problemCode:"browser_login_verification_failed",timeoutMs:t.browserLogin.remoteTimeoutMs,...e.context===void 0?{}:{context:e.context}});if(!i.ok){let o=J(s);throw e.context?.log.warn({event:"federated_token_exchange_failed",code:"provider_access_denied",idpHost:l(n),idpStatus:i.status,...o},"Federated browser login token exchange returned non-2xx from the identity provider"),f({code:"provider_access_denied",privateDetail:"Federated browser login token exchange failed.",cause:new Error(`IdP token exchange failed (status=${i.status}${o.idpError?` idp_error=${o.idpError}`:""}${o.idpErrorDescription?` idp_error_description=${o.idpErrorDescription}`:""})`)})}let S=I.parse(s),c;try{({payload:c}=await T(S.id_token,L(),{issuer:t.oidc.issuer,audience:w}))}catch(o){let _={};throw k(_,"error",o),e.context?.log.warn({event:"federated_id_token_verification_failed",code:"browser_login_verification_failed",failureKind:M(o),idpHost:l(n),expectedIssuer:t.oidc.issuer,..._},"Federated id_token failed jose verification"),o}if(c.nonce!==e.nonce)throw e.context?.log.warn({event:"federated_nonce_mismatch",code:"oauth_callback_mismatch",idpHost:l(n),nonceMissingFromIdToken:c.nonce===void 0},"Federated id_token nonce did not match the signed gateway state"),f("oauth_callback_mismatch","Federated browser login nonce did not match the signed gateway state.");let g=P.parse(c);return x({sub:g.sub,data:g},e.requestUrl)}catch(i){let s=b(i)??H(i);throw s!==void 0&&s!=="browser_login_verification_failed"?i:f("browser_login_verification_failed","Federated browser login callback could not be verified.",q(i))}}a(Z,"exchangeFederatedAuthorizationCode");export{Z as exchangeFederatedAuthorizationCode};
|
|
26
|
-
//# sourceMappingURL=browser-login-idp-QZEGTRKY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@zuplo/runtime/mcp-gateway/v2/downstream-oauth/browser-login-idp.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;yPAGAA,IADA,OAAS,sBAAAC,EAAoB,UAAUC,EAAY,aAAAC,MAAiB,OAqBpE,IAAMC,EAA+BC,EAAE,OAAO,CAC5C,SAAUA,EAAE,OAAO,EAAE,IAAI,CAAC,EAC1B,WAAYA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EACvC,WAAYA,EAAE,OAAO,EAAE,SAAS,EAChC,aAAcA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EACzC,cAAeA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EAC1C,MAAOA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,CACpC,CAAC,EACKC,EAAoCD,EAAE,OAAO,CACjD,MAAOA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EAClC,kBAAmBA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EAC9C,UAAWA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,CACxC,CAAC,EAED,SAASE,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CACF,EACF,OAASa,EAAa,CACpB,IAAMC,EAAuC,CAAC,EAC9C,MAAAC,EAAkBD,EAAc,QAASD,CAAW,EACpDhB,EAAM,SAAS,IAAI,KACjB,CACE,MAAO,yCACP,KAAM,oCACN,YAAab,EAAmB6B,CAAW,EAC3C,QAASL,EAASV,CAAQ,EAC1B,eAAgBL,EAAO,KAAK,OAC5B,GAAGqB,CACL,EACA,6CACF,EACMD,CACR,CAEA,GAAIF,EAAc,QAAUd,EAAM,MAChC,MAAAA,EAAM,SAAS,IAAI,KACjB,CACE,MAAO,2BACP,KAAM,0BACN,QAASW,EAASV,CAAQ,EAC1B,wBAAyBa,EAAc,QAAU,MACnD,EACA,iEACF,EACMF,EACJ,0BACA,uEACF,EAGF,IAAMO,EACJ7B,EAA6B,MAAMwB,CAAa,EAElD,OACEM,EACE,CACE,IAAKD,EAAoB,IACzB,KAAMA,CACR,EACAnB,EAAM,UACR,CAEJ,OAASZ,EAAO,CACd,IAAMiC,EACJC,EAAuBlC,CAAK,GAAKM,EAAuBN,CAAK,EAC/D,MACEiC,IAAgB,QAChBA,IAAgB,oCAEVjC,EAGFwB,EACJ,oCACA,0DACAnB,EAAeL,CAAK,CACtB,CACF,CACF,CA7IsBF,EAAAa,EAAA","names":["init_v4","createRemoteJWKSet","joseErrors","jwtVerify","federatedTokenResponseSchema","external_exports","federatedTokenErrorResponseSchema","readIdpErrorFields","json","parsed","fields","__name","readJwtFailureKind","error","joseErrors","federatedIdTokenClaimsSchema","subjectIdSchema","cachedFederatedJwks","readErrorCause","readRuntimeGatewayCode","readFederatedJwks","config","getGatewayOAuthConfig","createRemoteJWKSet","exchangeFederatedAuthorizationCode","input","tokenUrl","requireBrowserLoginField","clientId","clientSecret","callbackUrl","readGatewayOAuthIssuer","body","response","fetchIdentityProviderJson","idpFields","safeHost","createGatewayRuntimeError","payload","idTokenClaims","jwtVerify","verifyError","verifyFields","addErrorLogFields","parsedIdTokenClaims","parseGatewayRequestUser","problemCode","readGatewayProblemCode"]}
|