@zuplo/cli 6.70.41 → 6.70.43
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/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/eventemitter/index.d.ts +10 -8
- package/node_modules/@protobufjs/eventemitter/index.js +17 -7
- package/node_modules/@protobufjs/eventemitter/package.json +2 -2
- package/node_modules/@protobufjs/eventemitter/tests/index.js +39 -3
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/browser-login-idp-SQ4CJMPN.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/browser-login-idp-SQ4CJMPN.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-A6TMPOZH.js → chunk-J7JE2DD5.js} +52 -52
- package/node_modules/@zuplo/runtime/out/esm/chunk-J7JE2DD5.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-LU6CEICL.js +30 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-LU6CEICL.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +23 -3
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +164 -12
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/es-object-atoms/CHANGELOG.md +21 -14
- package/node_modules/es-object-atoms/isObject.d.ts +1 -1
- package/node_modules/es-object-atoms/package.json +6 -7
- package/node_modules/es-object-atoms/tsconfig.json +1 -0
- package/node_modules/hono/dist/adapter/deno/websocket.js +5 -1
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +5 -1
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +21 -1
- package/node_modules/hono/dist/cjs/utils/compress.js +1 -1
- package/node_modules/hono/dist/cjs/utils/mime.js +15 -17
- package/node_modules/hono/dist/middleware/compress/index.js +21 -1
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
- package/node_modules/hono/dist/types/middleware/compress/index.d.ts +2 -1
- package/node_modules/hono/dist/types/utils/mime.d.ts +11 -11
- package/node_modules/hono/dist/utils/compress.js +1 -1
- package/node_modules/hono/dist/utils/mime.js +15 -17
- package/node_modules/hono/package.json +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.js +127 -69
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +62 -25
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +148 -76
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/descriptor/index.js +7 -2
- package/node_modules/protobufjs/index.d.ts +12 -3
- package/node_modules/protobufjs/package.json +2 -2
- package/node_modules/protobufjs/src/converter.js +8 -5
- package/node_modules/protobufjs/src/encoder.js +8 -5
- package/node_modules/protobufjs/src/enum.js +2 -2
- package/node_modules/protobufjs/src/field.js +1 -1
- package/node_modules/protobufjs/src/namespace.js +2 -0
- package/node_modules/protobufjs/src/object.js +6 -6
- package/node_modules/protobufjs/src/parse.js +19 -5
- package/node_modules/protobufjs/src/root.js +14 -8
- package/node_modules/protobufjs/src/type.js +8 -5
- package/node_modules/protobufjs/src/util/minimal.js +32 -7
- package/node_modules/protobufjs/src/util/patterns.js +0 -1
- package/node_modules/protobufjs/src/util.js +4 -3
- package/node_modules/protobufjs/src/wrappers.js +11 -7
- package/node_modules/protobufjs/src/writer.js +11 -9
- package/node_modules/ws/lib/receiver.js +54 -0
- package/node_modules/ws/lib/websocket-server.js +8 -0
- package/node_modules/ws/lib/websocket.js +14 -0
- package/node_modules/ws/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/browser-login-idp-SD2N5PY4.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/browser-login-idp-SD2N5PY4.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-A6TMPOZH.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-DLCMRCIL.js +0 -30
- package/node_modules/@zuplo/runtime/out/esm/chunk-DLCMRCIL.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-A6TMPOZH.js.LEGAL.txt → chunk-J7JE2DD5.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.1.1](https://github.com/protobufjs/protobuf.js/compare/eventemitter-v1.1.0...eventemitter-v1.1.1) (2026-05-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Backport misc utility hardening ([#2280](https://github.com/protobufjs/protobuf.js/issues/2280)) ([8a45c13](https://github.com/protobufjs/protobuf.js/commit/8a45c13d22ec2d05ab1b7935fcb5331ea59a9cd0))
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export = EventEmitter;
|
|
2
2
|
|
|
3
|
+
type EventEmitterListener = (...args: any[]) => {};
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* Constructs a new event emitter instance.
|
|
5
7
|
* @classdesc A minimal event emitter.
|
|
@@ -19,25 +21,25 @@ declare class EventEmitter {
|
|
|
19
21
|
/**
|
|
20
22
|
* Registers an event listener.
|
|
21
23
|
* @param {string} evt Event name
|
|
22
|
-
* @param {
|
|
24
|
+
* @param {EventEmitterListener} fn Listener
|
|
23
25
|
* @param {*} [ctx] Listener context
|
|
24
|
-
* @returns {
|
|
26
|
+
* @returns {this} `this`
|
|
25
27
|
*/
|
|
26
|
-
on(evt: string, fn:
|
|
28
|
+
public on(evt: string, fn: EventEmitterListener, ctx?: any): EventEmitter;
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
31
|
* Removes an event listener or any matching listeners if arguments are omitted.
|
|
30
32
|
* @param {string} [evt] Event name. Removes all listeners if omitted.
|
|
31
|
-
* @param {
|
|
32
|
-
* @returns {
|
|
33
|
+
* @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
|
|
34
|
+
* @returns {this} `this`
|
|
33
35
|
*/
|
|
34
|
-
off(evt?: string, fn?:
|
|
36
|
+
public off(evt?: string, fn?: EventEmitterListener): EventEmitter;
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* Emits an event by calling its listeners with the specified arguments.
|
|
38
40
|
* @param {string} evt Event name
|
|
39
41
|
* @param {...*} args Arguments
|
|
40
|
-
* @returns {
|
|
42
|
+
* @returns {this} `this`
|
|
41
43
|
*/
|
|
42
|
-
emit(evt: string, ...args: any[]): EventEmitter;
|
|
44
|
+
public emit(evt: string, ...args: any[]): EventEmitter;
|
|
43
45
|
}
|
|
@@ -14,15 +14,23 @@ function EventEmitter() {
|
|
|
14
14
|
* @type {Object.<string,*>}
|
|
15
15
|
* @private
|
|
16
16
|
*/
|
|
17
|
-
this._listeners =
|
|
17
|
+
this._listeners = Object.create(null);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Event listener as used by {@link util.EventEmitter}.
|
|
22
|
+
* @typedef EventEmitterListener
|
|
23
|
+
* @type {function}
|
|
24
|
+
* @param {...*} args Arguments
|
|
25
|
+
* @returns {undefined}
|
|
26
|
+
*/
|
|
27
|
+
|
|
20
28
|
/**
|
|
21
29
|
* Registers an event listener.
|
|
22
30
|
* @param {string} evt Event name
|
|
23
|
-
* @param {
|
|
31
|
+
* @param {EventEmitterListener} fn Listener
|
|
24
32
|
* @param {*} [ctx] Listener context
|
|
25
|
-
* @returns {
|
|
33
|
+
* @returns {this} `this`
|
|
26
34
|
*/
|
|
27
35
|
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
28
36
|
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
@@ -35,17 +43,19 @@ EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
|
35
43
|
/**
|
|
36
44
|
* Removes an event listener or any matching listeners if arguments are omitted.
|
|
37
45
|
* @param {string} [evt] Event name. Removes all listeners if omitted.
|
|
38
|
-
* @param {
|
|
39
|
-
* @returns {
|
|
46
|
+
* @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
|
|
47
|
+
* @returns {this} `this`
|
|
40
48
|
*/
|
|
41
49
|
EventEmitter.prototype.off = function off(evt, fn) {
|
|
42
50
|
if (evt === undefined)
|
|
43
|
-
this._listeners =
|
|
51
|
+
this._listeners = Object.create(null);
|
|
44
52
|
else {
|
|
45
53
|
if (fn === undefined)
|
|
46
54
|
this._listeners[evt] = [];
|
|
47
55
|
else {
|
|
48
56
|
var listeners = this._listeners[evt];
|
|
57
|
+
if (!listeners)
|
|
58
|
+
return this;
|
|
49
59
|
for (var i = 0; i < listeners.length;)
|
|
50
60
|
if (listeners[i].fn === fn)
|
|
51
61
|
listeners.splice(i, 1);
|
|
@@ -60,7 +70,7 @@ EventEmitter.prototype.off = function off(evt, fn) {
|
|
|
60
70
|
* Emits an event by calling its listeners with the specified arguments.
|
|
61
71
|
* @param {string} evt Event name
|
|
62
72
|
* @param {...*} args Arguments
|
|
63
|
-
* @returns {
|
|
73
|
+
* @returns {this} `this`
|
|
64
74
|
*/
|
|
65
75
|
EventEmitter.prototype.emit = function emit(evt) {
|
|
66
76
|
var listeners = this._listeners[evt];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobufjs/eventemitter",
|
|
3
3
|
"description": "A minimal event emitter.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"types": "index.d.ts",
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"istanbul": "^0.4.5",
|
|
15
|
-
"tape": "^
|
|
15
|
+
"tape": "^5.0.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "tape tests/*.js",
|
|
@@ -8,6 +8,8 @@ tape.test("eventemitter", function(test) {
|
|
|
8
8
|
var fn;
|
|
9
9
|
var ctx = {};
|
|
10
10
|
|
|
11
|
+
test.equal(Object.getPrototypeOf(ee._listeners), null, "should not inherit listener lookup keys");
|
|
12
|
+
|
|
11
13
|
test.doesNotThrow(function() {
|
|
12
14
|
ee.emit("a", 1);
|
|
13
15
|
ee.off();
|
|
@@ -22,10 +24,12 @@ tape.test("eventemitter", function(test) {
|
|
|
22
24
|
ee.emit("a", 1);
|
|
23
25
|
|
|
24
26
|
ee.off("a");
|
|
25
|
-
test.same(ee._listeners,
|
|
27
|
+
test.same(Object.keys(ee._listeners), [ "a" ], "should keep the event key when calling off(evt)");
|
|
28
|
+
test.same(ee._listeners.a, [], "should remove all listeners of the respective event when calling off(evt)");
|
|
26
29
|
|
|
27
30
|
ee.off();
|
|
28
|
-
test.
|
|
31
|
+
test.equal(Object.getPrototypeOf(ee._listeners), null, "should keep the listener table isolated when just calling off()");
|
|
32
|
+
test.same(Object.keys(ee._listeners), [], "should remove all listeners when just calling off()");
|
|
29
33
|
|
|
30
34
|
ee.on("a", fn = function(arg1) {
|
|
31
35
|
test.equal(this, ctx, "should be called with this = ctx");
|
|
@@ -33,7 +37,8 @@ tape.test("eventemitter", function(test) {
|
|
|
33
37
|
}, ctx).emit("a", 1);
|
|
34
38
|
|
|
35
39
|
ee.off("a", fn);
|
|
36
|
-
test.same(ee._listeners,
|
|
40
|
+
test.same(Object.keys(ee._listeners), [ "a" ], "should keep the event key when calling off(evt, fn)");
|
|
41
|
+
test.same(ee._listeners.a, [], "should remove the exact listener when calling off(evt, fn)");
|
|
37
42
|
|
|
38
43
|
ee.on("a", function() {
|
|
39
44
|
test.equal(this, ee, "should be called with this = ee");
|
|
@@ -43,5 +48,36 @@ tape.test("eventemitter", function(test) {
|
|
|
43
48
|
ee.off("a", fn);
|
|
44
49
|
}, "should not throw if no such listener is found");
|
|
45
50
|
|
|
51
|
+
test.test(test.name + " - special event names", function(test) {
|
|
52
|
+
var ee = new EventEmitter();
|
|
53
|
+
var calls = 0;
|
|
54
|
+
|
|
55
|
+
test.doesNotThrow(function() {
|
|
56
|
+
ee.off("__proto__", function() {});
|
|
57
|
+
}, "should not throw when removing an absent special event listener");
|
|
58
|
+
|
|
59
|
+
ee.on("__proto__", function(arg) {
|
|
60
|
+
++calls;
|
|
61
|
+
test.equal(arg, 1, "should pass arguments for __proto__ events");
|
|
62
|
+
});
|
|
63
|
+
ee.on("constructor", function(arg) {
|
|
64
|
+
++calls;
|
|
65
|
+
test.equal(arg, 2, "should pass arguments for constructor events");
|
|
66
|
+
});
|
|
67
|
+
ee.emit("__proto__", 1);
|
|
68
|
+
ee.emit("constructor", 2);
|
|
69
|
+
|
|
70
|
+
test.equal(calls, 2, "should dispatch special event names");
|
|
71
|
+
test.equal(Object.getPrototypeOf(ee._listeners), null, "should keep the listener table isolated");
|
|
72
|
+
test.ok(Object.prototype.hasOwnProperty.call(ee._listeners, "__proto__"), "should store __proto__ as an own event key");
|
|
73
|
+
test.ok(Object.prototype.hasOwnProperty.call(ee._listeners, "constructor"), "should store constructor as an own event key");
|
|
74
|
+
|
|
75
|
+
ee.off("__proto__");
|
|
76
|
+
ee.off("constructor");
|
|
77
|
+
test.same(ee._listeners.__proto__, [], "should clear __proto__ listeners");
|
|
78
|
+
test.same(ee._listeners.constructor, [], "should clear constructor listeners");
|
|
79
|
+
test.end();
|
|
80
|
+
});
|
|
81
|
+
|
|
46
82
|
test.end();
|
|
47
83
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
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{Q as h,R as k,Ra as v,S as l,Ua as u,V as b,W as f,d as m,qa as y,ra as x}from"./chunk-LU6CEICL.js";import{ea as r,fa as j}from"./chunk-J7JE2DD5.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-SQ4CJMPN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@zuplo/runtime/mcp-gateway/v2/downstream-oauth/browser-login-idp.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;uPAGAA,IADA,OAAS,sBAAAC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AK,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"]}
|