@rharkor/caching-for-turbo 2.4.2 → 2.5.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 +6 -2
- package/dist/cli/136.index.js +760 -574
- package/dist/cli/136.index.js.map +1 -1
- package/dist/cli/360.index.js +8 -7
- package/dist/cli/360.index.js.map +1 -1
- package/dist/cli/443.index.js +424 -309
- package/dist/cli/443.index.js.map +1 -1
- package/dist/cli/566.index.js +43 -41
- package/dist/cli/566.index.js.map +1 -1
- package/dist/cli/605.index.js +20 -21
- package/dist/cli/605.index.js.map +1 -1
- package/dist/cli/762.index.js +403 -278
- package/dist/cli/762.index.js.map +1 -1
- package/dist/cli/869.index.js +29 -27
- package/dist/cli/869.index.js.map +1 -1
- package/dist/cli/956.index.js +39 -5
- package/dist/cli/956.index.js.map +1 -1
- package/dist/cli/998.index.js +430 -300
- package/dist/cli/998.index.js.map +1 -1
- package/dist/cli/index.js +10090 -5091
- package/dist/cli/licenses.txt +0 -1233
- package/dist/cli/sourcemap-register.cjs +1 -1
- package/package.json +2 -2
package/dist/cli/443.index.js
CHANGED
|
@@ -2,41 +2,24 @@ export const id = 443;
|
|
|
2
2
|
export const ids = [443];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 8396:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
|
-
var __webpack_unused_export__;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var middlewareHostHeader = __webpack_require__(52590);
|
|
12
|
-
var middlewareLogger = __webpack_require__(85242);
|
|
13
|
-
var middlewareRecursionDetection = __webpack_require__(81568);
|
|
14
|
-
var middlewareUserAgent = __webpack_require__(32959);
|
|
15
|
-
var core = __webpack_require__(90402);
|
|
16
|
-
var client = __webpack_require__(92658);
|
|
17
|
-
var config = __webpack_require__(47291);
|
|
18
|
-
var endpoints = __webpack_require__(62085);
|
|
19
|
-
var protocols = __webpack_require__(93422);
|
|
20
|
-
var retry = __webpack_require__(23609);
|
|
21
|
-
var schema = __webpack_require__(26890);
|
|
22
|
-
var httpAuthSchemes = __webpack_require__(97523);
|
|
23
|
-
var client$1 = __webpack_require__(5152);
|
|
24
|
-
var utilUserAgentNode = __webpack_require__(51656);
|
|
25
|
-
var serde = __webpack_require__(92430);
|
|
26
|
-
var nodeHttpHandler = __webpack_require__(61279);
|
|
27
|
-
var protocols$1 = __webpack_require__(37288);
|
|
28
|
-
var utilEndpoints = __webpack_require__(83068);
|
|
29
|
-
var regionConfigResolver = __webpack_require__(36463);
|
|
30
8
|
|
|
9
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
|
11
|
+
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
12
|
+
const util_middleware_1 = __webpack_require__(76324);
|
|
31
13
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
32
14
|
return {
|
|
33
|
-
operation:
|
|
34
|
-
region: (await
|
|
15
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
16
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
35
17
|
(() => {
|
|
36
18
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
37
19
|
})(),
|
|
38
20
|
};
|
|
39
21
|
};
|
|
22
|
+
exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
|
40
23
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
41
24
|
return {
|
|
42
25
|
schemeId: "aws.auth#sigv4",
|
|
@@ -61,7 +44,7 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
|
61
44
|
const options = [];
|
|
62
45
|
switch (authParameters.operation) {
|
|
63
46
|
case "CreateToken": {
|
|
64
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
47
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
65
48
|
break;
|
|
66
49
|
}
|
|
67
50
|
default: {
|
|
@@ -70,31 +53,25 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
|
70
53
|
}
|
|
71
54
|
return options;
|
|
72
55
|
};
|
|
56
|
+
exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
|
73
57
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
74
|
-
const config_0 =
|
|
58
|
+
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
75
59
|
return Object.assign(config_0, {
|
|
76
|
-
authSchemePreference:
|
|
60
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
77
61
|
});
|
|
78
62
|
};
|
|
63
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
79
64
|
|
|
80
|
-
const resolveClientEndpointParameters = (options) => {
|
|
81
|
-
return Object.assign(options, {
|
|
82
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
83
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
84
|
-
defaultSigningName: "sso-oauth",
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
const commonParams = {
|
|
88
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
89
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
90
|
-
Region: { type: "builtInParams", name: "region" },
|
|
91
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
92
|
-
};
|
|
93
65
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
66
|
+
/***/ }),
|
|
67
|
+
|
|
68
|
+
/***/ 40855:
|
|
69
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
70
|
+
|
|
97
71
|
|
|
72
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73
|
+
exports.bdd = void 0;
|
|
74
|
+
const util_endpoints_1 = __webpack_require__(79674);
|
|
98
75
|
const k = "ref";
|
|
99
76
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
100
77
|
const _data = {
|
|
@@ -170,28 +147,242 @@ const nodes = new Int32Array([
|
|
|
170
147
|
r + 2,
|
|
171
148
|
r + 3,
|
|
172
149
|
]);
|
|
173
|
-
|
|
150
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
/***/ }),
|
|
174
154
|
|
|
175
|
-
|
|
155
|
+
/***/ 90546:
|
|
156
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
160
|
+
exports.defaultEndpointResolver = void 0;
|
|
161
|
+
const util_endpoints_1 = __webpack_require__(83068);
|
|
162
|
+
const util_endpoints_2 = __webpack_require__(79674);
|
|
163
|
+
const bdd_1 = __webpack_require__(40855);
|
|
164
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
176
165
|
size: 50,
|
|
177
166
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
178
167
|
});
|
|
179
168
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
180
|
-
return cache.get(endpointParams, () =>
|
|
169
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
181
170
|
endpointParams: endpointParams,
|
|
182
171
|
logger: context.logger,
|
|
183
172
|
}));
|
|
184
173
|
};
|
|
185
|
-
|
|
174
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
175
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/***/ }),
|
|
179
|
+
|
|
180
|
+
/***/ 89443:
|
|
181
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
var middlewareHostHeader = __webpack_require__(52590);
|
|
186
|
+
var middlewareLogger = __webpack_require__(85242);
|
|
187
|
+
var middlewareRecursionDetection = __webpack_require__(81568);
|
|
188
|
+
var middlewareUserAgent = __webpack_require__(32959);
|
|
189
|
+
var configResolver = __webpack_require__(39316);
|
|
190
|
+
var core = __webpack_require__(90402);
|
|
191
|
+
var schema = __webpack_require__(26890);
|
|
192
|
+
var middlewareContentLength = __webpack_require__(47212);
|
|
193
|
+
var middlewareEndpoint = __webpack_require__(40099);
|
|
194
|
+
var middlewareRetry = __webpack_require__(19618);
|
|
195
|
+
var smithyClient = __webpack_require__(61411);
|
|
196
|
+
var httpAuthSchemeProvider = __webpack_require__(8396);
|
|
197
|
+
var runtimeConfig = __webpack_require__(16901);
|
|
198
|
+
var regionConfigResolver = __webpack_require__(36463);
|
|
199
|
+
var protocolHttp = __webpack_require__(72356);
|
|
200
|
+
var schemas_0 = __webpack_require__(7143);
|
|
201
|
+
var errors = __webpack_require__(55843);
|
|
202
|
+
var SSOOIDCServiceException = __webpack_require__(93952);
|
|
203
|
+
|
|
204
|
+
const resolveClientEndpointParameters = (options) => {
|
|
205
|
+
return Object.assign(options, {
|
|
206
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
207
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
208
|
+
defaultSigningName: "sso-oauth",
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
const commonParams = {
|
|
212
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
213
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
214
|
+
Region: { type: "builtInParams", name: "region" },
|
|
215
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
219
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
220
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
221
|
+
let _credentials = runtimeConfig.credentials;
|
|
222
|
+
return {
|
|
223
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
224
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
225
|
+
if (index === -1) {
|
|
226
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
httpAuthSchemes() {
|
|
233
|
+
return _httpAuthSchemes;
|
|
234
|
+
},
|
|
235
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
236
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
237
|
+
},
|
|
238
|
+
httpAuthSchemeProvider() {
|
|
239
|
+
return _httpAuthSchemeProvider;
|
|
240
|
+
},
|
|
241
|
+
setCredentials(credentials) {
|
|
242
|
+
_credentials = credentials;
|
|
243
|
+
},
|
|
244
|
+
credentials() {
|
|
245
|
+
return _credentials;
|
|
246
|
+
},
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
250
|
+
return {
|
|
251
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
252
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
253
|
+
credentials: config.credentials(),
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
258
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
259
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
260
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
class SSOOIDCClient extends smithyClient.Client {
|
|
264
|
+
config;
|
|
265
|
+
constructor(...[configuration]) {
|
|
266
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
267
|
+
super(_config_0);
|
|
268
|
+
this.initConfig = _config_0;
|
|
269
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
270
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
271
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
272
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
273
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
274
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
275
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
276
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
277
|
+
this.config = _config_8;
|
|
278
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
279
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
280
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
281
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
282
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
283
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
284
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
285
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
286
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
287
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
288
|
+
"aws.auth#sigv4": config.credentials,
|
|
289
|
+
}),
|
|
290
|
+
}));
|
|
291
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
292
|
+
}
|
|
293
|
+
destroy() {
|
|
294
|
+
super.destroy();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
class CreateTokenCommand extends smithyClient.Command
|
|
299
|
+
.classBuilder()
|
|
300
|
+
.ep(commonParams)
|
|
301
|
+
.m(function (Command, cs, config, o) {
|
|
302
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
303
|
+
})
|
|
304
|
+
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
305
|
+
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
306
|
+
.sc(schemas_0.CreateToken$)
|
|
307
|
+
.build() {
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const commands = {
|
|
311
|
+
CreateTokenCommand,
|
|
312
|
+
};
|
|
313
|
+
class SSOOIDC extends SSOOIDCClient {
|
|
314
|
+
}
|
|
315
|
+
smithyClient.createAggregatedClient(commands, SSOOIDC);
|
|
316
|
+
|
|
317
|
+
const AccessDeniedExceptionReason = {
|
|
318
|
+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
319
|
+
};
|
|
320
|
+
const InvalidRequestExceptionReason = {
|
|
321
|
+
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
322
|
+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
323
|
+
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
324
|
+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
325
|
+
};
|
|
186
326
|
|
|
187
|
-
|
|
327
|
+
exports.$Command = smithyClient.Command;
|
|
328
|
+
exports.__Client = smithyClient.Client;
|
|
329
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;
|
|
330
|
+
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
331
|
+
exports.CreateTokenCommand = CreateTokenCommand;
|
|
332
|
+
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
333
|
+
exports.SSOOIDC = SSOOIDC;
|
|
334
|
+
exports.SSOOIDCClient = SSOOIDCClient;
|
|
335
|
+
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
336
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
337
|
+
Object.defineProperty(exports, '__proto__', {
|
|
338
|
+
enumerable: true,
|
|
339
|
+
value: schemas_0['__proto__']
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
343
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
344
|
+
});
|
|
345
|
+
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
346
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
347
|
+
Object.defineProperty(exports, '__proto__', {
|
|
348
|
+
enumerable: true,
|
|
349
|
+
value: errors['__proto__']
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
Object.keys(errors).forEach(function (k) {
|
|
353
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
/***/ }),
|
|
358
|
+
|
|
359
|
+
/***/ 93952:
|
|
360
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
364
|
+
exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
|
|
365
|
+
const smithy_client_1 = __webpack_require__(61411);
|
|
366
|
+
Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
|
|
367
|
+
class SSOOIDCServiceException extends smithy_client_1.ServiceException {
|
|
188
368
|
constructor(options) {
|
|
189
369
|
super(options);
|
|
190
370
|
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
191
371
|
}
|
|
192
372
|
}
|
|
373
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
193
374
|
|
|
194
|
-
|
|
375
|
+
|
|
376
|
+
/***/ }),
|
|
377
|
+
|
|
378
|
+
/***/ 55843:
|
|
379
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383
|
+
exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
|
|
384
|
+
const SSOOIDCServiceException_1 = __webpack_require__(93952);
|
|
385
|
+
class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
195
386
|
name = "AccessDeniedException";
|
|
196
387
|
$fault = "client";
|
|
197
388
|
error;
|
|
@@ -209,7 +400,8 @@ class AccessDeniedException extends SSOOIDCServiceException {
|
|
|
209
400
|
this.error_description = opts.error_description;
|
|
210
401
|
}
|
|
211
402
|
}
|
|
212
|
-
|
|
403
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
404
|
+
class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
213
405
|
name = "AuthorizationPendingException";
|
|
214
406
|
$fault = "client";
|
|
215
407
|
error;
|
|
@@ -225,7 +417,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
|
225
417
|
this.error_description = opts.error_description;
|
|
226
418
|
}
|
|
227
419
|
}
|
|
228
|
-
|
|
420
|
+
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
421
|
+
class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
229
422
|
name = "ExpiredTokenException";
|
|
230
423
|
$fault = "client";
|
|
231
424
|
error;
|
|
@@ -241,7 +434,8 @@ class ExpiredTokenException extends SSOOIDCServiceException {
|
|
|
241
434
|
this.error_description = opts.error_description;
|
|
242
435
|
}
|
|
243
436
|
}
|
|
244
|
-
|
|
437
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
438
|
+
class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
245
439
|
name = "InternalServerException";
|
|
246
440
|
$fault = "server";
|
|
247
441
|
error;
|
|
@@ -257,7 +451,8 @@ class InternalServerException extends SSOOIDCServiceException {
|
|
|
257
451
|
this.error_description = opts.error_description;
|
|
258
452
|
}
|
|
259
453
|
}
|
|
260
|
-
|
|
454
|
+
exports.InternalServerException = InternalServerException;
|
|
455
|
+
class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
261
456
|
name = "InvalidClientException";
|
|
262
457
|
$fault = "client";
|
|
263
458
|
error;
|
|
@@ -273,7 +468,8 @@ class InvalidClientException extends SSOOIDCServiceException {
|
|
|
273
468
|
this.error_description = opts.error_description;
|
|
274
469
|
}
|
|
275
470
|
}
|
|
276
|
-
|
|
471
|
+
exports.InvalidClientException = InvalidClientException;
|
|
472
|
+
class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
277
473
|
name = "InvalidGrantException";
|
|
278
474
|
$fault = "client";
|
|
279
475
|
error;
|
|
@@ -289,7 +485,8 @@ class InvalidGrantException extends SSOOIDCServiceException {
|
|
|
289
485
|
this.error_description = opts.error_description;
|
|
290
486
|
}
|
|
291
487
|
}
|
|
292
|
-
|
|
488
|
+
exports.InvalidGrantException = InvalidGrantException;
|
|
489
|
+
class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
293
490
|
name = "InvalidRequestException";
|
|
294
491
|
$fault = "client";
|
|
295
492
|
error;
|
|
@@ -307,7 +504,8 @@ class InvalidRequestException extends SSOOIDCServiceException {
|
|
|
307
504
|
this.error_description = opts.error_description;
|
|
308
505
|
}
|
|
309
506
|
}
|
|
310
|
-
|
|
507
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
508
|
+
class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
311
509
|
name = "InvalidScopeException";
|
|
312
510
|
$fault = "client";
|
|
313
511
|
error;
|
|
@@ -323,7 +521,8 @@ class InvalidScopeException extends SSOOIDCServiceException {
|
|
|
323
521
|
this.error_description = opts.error_description;
|
|
324
522
|
}
|
|
325
523
|
}
|
|
326
|
-
|
|
524
|
+
exports.InvalidScopeException = InvalidScopeException;
|
|
525
|
+
class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
327
526
|
name = "SlowDownException";
|
|
328
527
|
$fault = "client";
|
|
329
528
|
error;
|
|
@@ -339,7 +538,8 @@ class SlowDownException extends SSOOIDCServiceException {
|
|
|
339
538
|
this.error_description = opts.error_description;
|
|
340
539
|
}
|
|
341
540
|
}
|
|
342
|
-
|
|
541
|
+
exports.SlowDownException = SlowDownException;
|
|
542
|
+
class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
343
543
|
name = "UnauthorizedClientException";
|
|
344
544
|
$fault = "client";
|
|
345
545
|
error;
|
|
@@ -355,7 +555,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
|
355
555
|
this.error_description = opts.error_description;
|
|
356
556
|
}
|
|
357
557
|
}
|
|
358
|
-
|
|
558
|
+
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
559
|
+
class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
359
560
|
name = "UnsupportedGrantTypeException";
|
|
360
561
|
$fault = "client";
|
|
361
562
|
error;
|
|
@@ -371,7 +572,134 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
|
371
572
|
this.error_description = opts.error_description;
|
|
372
573
|
}
|
|
373
574
|
}
|
|
575
|
+
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
576
|
+
|
|
374
577
|
|
|
578
|
+
/***/ }),
|
|
579
|
+
|
|
580
|
+
/***/ 16901:
|
|
581
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
585
|
+
exports.getRuntimeConfig = void 0;
|
|
586
|
+
const tslib_1 = __webpack_require__(61860);
|
|
587
|
+
const package_json_1 = tslib_1.__importDefault(__webpack_require__(39955));
|
|
588
|
+
const client_1 = __webpack_require__(5152);
|
|
589
|
+
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
590
|
+
const util_user_agent_node_1 = __webpack_require__(51656);
|
|
591
|
+
const config_resolver_1 = __webpack_require__(39316);
|
|
592
|
+
const hash_node_1 = __webpack_require__(5092);
|
|
593
|
+
const middleware_retry_1 = __webpack_require__(19618);
|
|
594
|
+
const node_config_provider_1 = __webpack_require__(55704);
|
|
595
|
+
const node_http_handler_1 = __webpack_require__(61279);
|
|
596
|
+
const smithy_client_1 = __webpack_require__(61411);
|
|
597
|
+
const util_body_length_node_1 = __webpack_require__(13638);
|
|
598
|
+
const util_defaults_mode_node_1 = __webpack_require__(15435);
|
|
599
|
+
const util_retry_1 = __webpack_require__(15518);
|
|
600
|
+
const runtimeConfig_shared_1 = __webpack_require__(1546);
|
|
601
|
+
const getRuntimeConfig = (config) => {
|
|
602
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
603
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
604
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
605
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
606
|
+
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
607
|
+
const loaderConfig = {
|
|
608
|
+
profile: config?.profile,
|
|
609
|
+
logger: clientSharedValues.logger,
|
|
610
|
+
};
|
|
611
|
+
return {
|
|
612
|
+
...clientSharedValues,
|
|
613
|
+
...config,
|
|
614
|
+
runtime: "node",
|
|
615
|
+
defaultsMode,
|
|
616
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
617
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
618
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
619
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
620
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
621
|
+
region: config?.region ??
|
|
622
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
623
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
624
|
+
retryMode: config?.retryMode ??
|
|
625
|
+
(0, node_config_provider_1.loadConfig)({
|
|
626
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
627
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
628
|
+
}, config),
|
|
629
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
630
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
631
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
632
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
633
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
/***/ }),
|
|
640
|
+
|
|
641
|
+
/***/ 1546:
|
|
642
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
646
|
+
exports.getRuntimeConfig = void 0;
|
|
647
|
+
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
648
|
+
const protocols_1 = __webpack_require__(37288);
|
|
649
|
+
const core_1 = __webpack_require__(90402);
|
|
650
|
+
const smithy_client_1 = __webpack_require__(61411);
|
|
651
|
+
const url_parser_1 = __webpack_require__(14494);
|
|
652
|
+
const util_base64_1 = __webpack_require__(68385);
|
|
653
|
+
const util_utf8_1 = __webpack_require__(71577);
|
|
654
|
+
const httpAuthSchemeProvider_1 = __webpack_require__(8396);
|
|
655
|
+
const endpointResolver_1 = __webpack_require__(90546);
|
|
656
|
+
const schemas_0_1 = __webpack_require__(7143);
|
|
657
|
+
const getRuntimeConfig = (config) => {
|
|
658
|
+
return {
|
|
659
|
+
apiVersion: "2019-06-10",
|
|
660
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
661
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
662
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
663
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
664
|
+
extensions: config?.extensions ?? [],
|
|
665
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
|
666
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
667
|
+
{
|
|
668
|
+
schemeId: "aws.auth#sigv4",
|
|
669
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
670
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
schemeId: "smithy.api#noAuth",
|
|
674
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
675
|
+
signer: new core_1.NoAuthSigner(),
|
|
676
|
+
},
|
|
677
|
+
],
|
|
678
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
679
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
680
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
681
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
682
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
683
|
+
version: "2019-06-10",
|
|
684
|
+
serviceTarget: "AWSSSOOIDCService",
|
|
685
|
+
},
|
|
686
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
687
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
688
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
689
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/***/ }),
|
|
696
|
+
|
|
697
|
+
/***/ 7143:
|
|
698
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
702
|
+
exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
|
|
375
703
|
const _ADE = "AccessDeniedException";
|
|
376
704
|
const _APE = "AuthorizationPendingException";
|
|
377
705
|
const _AT = "AccessToken";
|
|
@@ -413,11 +741,14 @@ const _sc = "scope";
|
|
|
413
741
|
const _se = "server";
|
|
414
742
|
const _tT = "tokenType";
|
|
415
743
|
const n0 = "com.amazonaws.ssooidc";
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
744
|
+
const schema_1 = __webpack_require__(26890);
|
|
745
|
+
const errors_1 = __webpack_require__(55843);
|
|
746
|
+
const SSOOIDCServiceException_1 = __webpack_require__(93952);
|
|
747
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
748
|
+
exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
749
|
+
_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
|
|
750
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
751
|
+
exports.AccessDeniedException$ = [
|
|
421
752
|
-3,
|
|
422
753
|
n0,
|
|
423
754
|
_ADE,
|
|
@@ -425,8 +756,8 @@ var AccessDeniedException$ = [
|
|
|
425
756
|
[_e, _r, _ed],
|
|
426
757
|
[0, 0, 0],
|
|
427
758
|
];
|
|
428
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
429
|
-
|
|
759
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
760
|
+
exports.AuthorizationPendingException$ = [
|
|
430
761
|
-3,
|
|
431
762
|
n0,
|
|
432
763
|
_APE,
|
|
@@ -434,16 +765,16 @@ var AuthorizationPendingException$ = [
|
|
|
434
765
|
[_e, _ed],
|
|
435
766
|
[0, 0],
|
|
436
767
|
];
|
|
437
|
-
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
438
|
-
|
|
439
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
440
|
-
|
|
441
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
442
|
-
|
|
443
|
-
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
444
|
-
|
|
445
|
-
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
446
|
-
|
|
768
|
+
n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
|
|
769
|
+
exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
770
|
+
n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
|
|
771
|
+
exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
772
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
773
|
+
exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
774
|
+
n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
|
|
775
|
+
exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
776
|
+
n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
|
|
777
|
+
exports.InvalidRequestException$ = [
|
|
447
778
|
-3,
|
|
448
779
|
n0,
|
|
449
780
|
_IRE,
|
|
@@ -451,12 +782,12 @@ var InvalidRequestException$ = [
|
|
|
451
782
|
[_e, _r, _ed],
|
|
452
783
|
[0, 0, 0],
|
|
453
784
|
];
|
|
454
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
455
|
-
|
|
456
|
-
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
457
|
-
|
|
458
|
-
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
459
|
-
|
|
785
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
786
|
+
exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
787
|
+
n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
|
|
788
|
+
exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
789
|
+
n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
|
|
790
|
+
exports.UnauthorizedClientException$ = [
|
|
460
791
|
-3,
|
|
461
792
|
n0,
|
|
462
793
|
_UCE,
|
|
@@ -464,8 +795,8 @@ var UnauthorizedClientException$ = [
|
|
|
464
795
|
[_e, _ed],
|
|
465
796
|
[0, 0],
|
|
466
797
|
];
|
|
467
|
-
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
468
|
-
|
|
798
|
+
n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
|
|
799
|
+
exports.UnsupportedGrantTypeException$ = [
|
|
469
800
|
-3,
|
|
470
801
|
n0,
|
|
471
802
|
_UGTE,
|
|
@@ -473,14 +804,14 @@ var UnsupportedGrantTypeException$ = [
|
|
|
473
804
|
[_e, _ed],
|
|
474
805
|
[0, 0],
|
|
475
806
|
];
|
|
476
|
-
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
477
|
-
|
|
807
|
+
n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
|
|
808
|
+
exports.errorTypeRegistries = [_s_registry, n0_registry];
|
|
478
809
|
var AccessToken = [0, n0, _AT, 8, 0];
|
|
479
810
|
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
480
811
|
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
481
812
|
var IdToken = [0, n0, _IT, 8, 0];
|
|
482
813
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
483
|
-
|
|
814
|
+
exports.CreateTokenRequest$ = [
|
|
484
815
|
3,
|
|
485
816
|
n0,
|
|
486
817
|
_CTR,
|
|
@@ -489,7 +820,7 @@ var CreateTokenRequest$ = [
|
|
|
489
820
|
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
490
821
|
3,
|
|
491
822
|
];
|
|
492
|
-
|
|
823
|
+
exports.CreateTokenResponse$ = [
|
|
493
824
|
3,
|
|
494
825
|
n0,
|
|
495
826
|
_CTRr,
|
|
@@ -497,232 +828,16 @@ var CreateTokenResponse$ = [
|
|
|
497
828
|
[_aT, _tT, _eI, _rT, _iT],
|
|
498
829
|
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
499
830
|
];
|
|
500
|
-
var
|
|
831
|
+
var Scopes = (/* unused pure expression or super */ null && (64 | 0));
|
|
832
|
+
exports.CreateToken$ = [
|
|
501
833
|
9,
|
|
502
834
|
n0,
|
|
503
835
|
_CT,
|
|
504
836
|
{ [_h]: ["POST", "/token", 200] },
|
|
505
|
-
() => CreateTokenRequest$,
|
|
506
|
-
() => CreateTokenResponse$,
|
|
837
|
+
() => exports.CreateTokenRequest$,
|
|
838
|
+
() => exports.CreateTokenResponse$,
|
|
507
839
|
];
|
|
508
840
|
|
|
509
|
-
const getRuntimeConfig$1 = (config) => {
|
|
510
|
-
return {
|
|
511
|
-
apiVersion: "2019-06-10",
|
|
512
|
-
base64Decoder: config?.base64Decoder ?? serde.fromBase64,
|
|
513
|
-
base64Encoder: config?.base64Encoder ?? serde.toBase64,
|
|
514
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
515
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
516
|
-
extensions: config?.extensions ?? [],
|
|
517
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
518
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
519
|
-
{
|
|
520
|
-
schemeId: "aws.auth#sigv4",
|
|
521
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
522
|
-
signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
schemeId: "smithy.api#noAuth",
|
|
526
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
527
|
-
signer: new core.NoAuthSigner(),
|
|
528
|
-
},
|
|
529
|
-
],
|
|
530
|
-
logger: config?.logger ?? new client.NoOpLogger(),
|
|
531
|
-
protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol,
|
|
532
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
533
|
-
defaultNamespace: "com.amazonaws.ssooidc",
|
|
534
|
-
errorTypeRegistries,
|
|
535
|
-
version: "2019-06-10",
|
|
536
|
-
serviceTarget: "AWSSSOOIDCService",
|
|
537
|
-
},
|
|
538
|
-
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
539
|
-
urlParser: config?.urlParser ?? protocols.parseUrl,
|
|
540
|
-
utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
|
|
541
|
-
utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
const getRuntimeConfig = (config$1) => {
|
|
546
|
-
client.emitWarningIfUnsupportedVersion(process.version);
|
|
547
|
-
const defaultsMode = config.resolveDefaultsModeConfig(config$1);
|
|
548
|
-
const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
|
|
549
|
-
const clientSharedValues = getRuntimeConfig$1(config$1);
|
|
550
|
-
client$1.emitWarningIfUnsupportedVersion(process.version);
|
|
551
|
-
const loaderConfig = {
|
|
552
|
-
profile: config$1?.profile,
|
|
553
|
-
logger: clientSharedValues.logger,
|
|
554
|
-
};
|
|
555
|
-
return {
|
|
556
|
-
...clientSharedValues,
|
|
557
|
-
...config$1,
|
|
558
|
-
runtime: "node",
|
|
559
|
-
defaultsMode,
|
|
560
|
-
authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
561
|
-
bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
|
|
562
|
-
defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??
|
|
563
|
-
utilUserAgentNode.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
564
|
-
maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
|
|
565
|
-
region: config$1?.region ??
|
|
566
|
-
config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
567
|
-
requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
|
|
568
|
-
retryMode: config$1?.retryMode ??
|
|
569
|
-
config.loadConfig({
|
|
570
|
-
...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
571
|
-
default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
|
|
572
|
-
}, config$1),
|
|
573
|
-
sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
|
|
574
|
-
streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
|
|
575
|
-
useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
576
|
-
useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
577
|
-
userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(utilUserAgentNode.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
578
|
-
};
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
582
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
583
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
584
|
-
let _credentials = runtimeConfig.credentials;
|
|
585
|
-
return {
|
|
586
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
587
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
588
|
-
if (index === -1) {
|
|
589
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
httpAuthSchemes() {
|
|
596
|
-
return _httpAuthSchemes;
|
|
597
|
-
},
|
|
598
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
599
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
600
|
-
},
|
|
601
|
-
httpAuthSchemeProvider() {
|
|
602
|
-
return _httpAuthSchemeProvider;
|
|
603
|
-
},
|
|
604
|
-
setCredentials(credentials) {
|
|
605
|
-
_credentials = credentials;
|
|
606
|
-
},
|
|
607
|
-
credentials() {
|
|
608
|
-
return _credentials;
|
|
609
|
-
},
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
613
|
-
return {
|
|
614
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
615
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
616
|
-
credentials: config.credentials(),
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
621
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
622
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
623
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
class SSOOIDCClient extends client.Client {
|
|
627
|
-
config;
|
|
628
|
-
constructor(...[configuration]) {
|
|
629
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
630
|
-
super(_config_0);
|
|
631
|
-
this.initConfig = _config_0;
|
|
632
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
633
|
-
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
634
|
-
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
635
|
-
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
636
|
-
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
637
|
-
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
638
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
639
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
640
|
-
this.config = _config_8;
|
|
641
|
-
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
642
|
-
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
643
|
-
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
644
|
-
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
645
|
-
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
646
|
-
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
647
|
-
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
648
|
-
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
649
|
-
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
650
|
-
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
651
|
-
"aws.auth#sigv4": config.credentials,
|
|
652
|
-
}),
|
|
653
|
-
}));
|
|
654
|
-
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
655
|
-
}
|
|
656
|
-
destroy() {
|
|
657
|
-
super.destroy();
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
class CreateTokenCommand extends client.Command
|
|
662
|
-
.classBuilder()
|
|
663
|
-
.ep(commonParams)
|
|
664
|
-
.m(function (Command, cs, config, o) {
|
|
665
|
-
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
666
|
-
})
|
|
667
|
-
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
668
|
-
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
669
|
-
.sc(CreateToken$)
|
|
670
|
-
.build() {
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
const commands = {
|
|
674
|
-
CreateTokenCommand,
|
|
675
|
-
};
|
|
676
|
-
class SSOOIDC extends SSOOIDCClient {
|
|
677
|
-
}
|
|
678
|
-
client.createAggregatedClient(commands, SSOOIDC);
|
|
679
|
-
|
|
680
|
-
const AccessDeniedExceptionReason = {
|
|
681
|
-
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
682
|
-
};
|
|
683
|
-
const InvalidRequestExceptionReason = {
|
|
684
|
-
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
685
|
-
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
686
|
-
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
687
|
-
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
__webpack_unused_export__ = client.Command;
|
|
691
|
-
__webpack_unused_export__ = client.Client;
|
|
692
|
-
__webpack_unused_export__ = AccessDeniedException;
|
|
693
|
-
__webpack_unused_export__ = AccessDeniedException$;
|
|
694
|
-
__webpack_unused_export__ = AccessDeniedExceptionReason;
|
|
695
|
-
__webpack_unused_export__ = AuthorizationPendingException;
|
|
696
|
-
__webpack_unused_export__ = AuthorizationPendingException$;
|
|
697
|
-
__webpack_unused_export__ = CreateToken$;
|
|
698
|
-
exports.CreateTokenCommand = CreateTokenCommand;
|
|
699
|
-
__webpack_unused_export__ = CreateTokenRequest$;
|
|
700
|
-
__webpack_unused_export__ = CreateTokenResponse$;
|
|
701
|
-
__webpack_unused_export__ = ExpiredTokenException;
|
|
702
|
-
__webpack_unused_export__ = ExpiredTokenException$;
|
|
703
|
-
__webpack_unused_export__ = InternalServerException;
|
|
704
|
-
__webpack_unused_export__ = InternalServerException$;
|
|
705
|
-
__webpack_unused_export__ = InvalidClientException;
|
|
706
|
-
__webpack_unused_export__ = InvalidClientException$;
|
|
707
|
-
__webpack_unused_export__ = InvalidGrantException;
|
|
708
|
-
__webpack_unused_export__ = InvalidGrantException$;
|
|
709
|
-
__webpack_unused_export__ = InvalidRequestException;
|
|
710
|
-
__webpack_unused_export__ = InvalidRequestException$;
|
|
711
|
-
__webpack_unused_export__ = InvalidRequestExceptionReason;
|
|
712
|
-
__webpack_unused_export__ = InvalidScopeException;
|
|
713
|
-
__webpack_unused_export__ = InvalidScopeException$;
|
|
714
|
-
__webpack_unused_export__ = SSOOIDC;
|
|
715
|
-
exports.SSOOIDCClient = SSOOIDCClient;
|
|
716
|
-
__webpack_unused_export__ = SSOOIDCServiceException;
|
|
717
|
-
__webpack_unused_export__ = SSOOIDCServiceException$;
|
|
718
|
-
__webpack_unused_export__ = SlowDownException;
|
|
719
|
-
__webpack_unused_export__ = SlowDownException$;
|
|
720
|
-
__webpack_unused_export__ = UnauthorizedClientException;
|
|
721
|
-
__webpack_unused_export__ = UnauthorizedClientException$;
|
|
722
|
-
__webpack_unused_export__ = UnsupportedGrantTypeException;
|
|
723
|
-
__webpack_unused_export__ = UnsupportedGrantTypeException$;
|
|
724
|
-
__webpack_unused_export__ = errorTypeRegistries;
|
|
725
|
-
|
|
726
841
|
|
|
727
842
|
/***/ })
|
|
728
843
|
|