@depup/aws-sdk__client-sso-oidc 3.1010.0-depup.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/LICENSE +201 -0
- package/README.md +39 -0
- package/changes.json +42 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +69 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +214 -0
- package/dist-cjs/models/SSOOIDCServiceException.js +12 -0
- package/dist-cjs/models/errors.js +250 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +53 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +49 -0
- package/dist-cjs/schemas/schemas_0.js +246 -0
- package/dist-es/SSOOIDC.js +15 -0
- package/dist-es/SSOOIDCClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +63 -0
- package/dist-es/commands/CreateTokenCommand.js +16 -0
- package/dist-es/commands/CreateTokenWithIAMCommand.js +16 -0
- package/dist-es/commands/RegisterClientCommand.js +16 -0
- package/dist-es/commands/StartDeviceAuthorizationCommand.js +16 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/dist-es/models/enums.js +9 -0
- package/dist-es/models/errors.js +233 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +48 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +45 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +243 -0
- package/dist-types/SSOOIDC.d.ts +76 -0
- package/dist-types/SSOOIDCClient.d.ts +229 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateTokenCommand.d.ts +176 -0
- package/dist-types/commands/CreateTokenWithIAMCommand.d.ts +272 -0
- package/dist-types/commands/RegisterClientCommand.d.ts +151 -0
- package/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +54 -0
- package/dist-types/models/SSOOIDCServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +25 -0
- package/dist-types/models/errors.d.ts +364 -0
- package/dist-types/models/models_0.d.ts +436 -0
- package/dist-types/runtimeConfig.browser.d.ts +63 -0
- package/dist-types/runtimeConfig.d.ts +63 -0
- package/dist-types/runtimeConfig.native.d.ts +62 -0
- package/dist-types/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +36 -0
- package/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/dist-types/ts3.4/SSOOIDCClient.d.ts +143 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/models/errors.d.ts +134 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +125 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +120 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +129 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +35 -0
- package/package.json +159 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidRedirectUriException = exports.InvalidClientMetadataException = exports.InvalidRequestRegionException = exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const SSOOIDCServiceException_1 = require("./SSOOIDCServiceException");
|
|
5
|
+
class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
error;
|
|
9
|
+
reason;
|
|
10
|
+
error_description;
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
super({
|
|
13
|
+
name: "AccessDeniedException",
|
|
14
|
+
$fault: "client",
|
|
15
|
+
...opts,
|
|
16
|
+
});
|
|
17
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.error = opts.error;
|
|
19
|
+
this.reason = opts.reason;
|
|
20
|
+
this.error_description = opts.error_description;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
24
|
+
class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
25
|
+
name = "AuthorizationPendingException";
|
|
26
|
+
$fault = "client";
|
|
27
|
+
error;
|
|
28
|
+
error_description;
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "AuthorizationPendingException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
36
|
+
this.error = opts.error;
|
|
37
|
+
this.error_description = opts.error_description;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
41
|
+
class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
42
|
+
name = "ExpiredTokenException";
|
|
43
|
+
$fault = "client";
|
|
44
|
+
error;
|
|
45
|
+
error_description;
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ExpiredTokenException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
53
|
+
this.error = opts.error;
|
|
54
|
+
this.error_description = opts.error_description;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
58
|
+
class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
59
|
+
name = "InternalServerException";
|
|
60
|
+
$fault = "server";
|
|
61
|
+
error;
|
|
62
|
+
error_description;
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "InternalServerException",
|
|
66
|
+
$fault: "server",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
70
|
+
this.error = opts.error;
|
|
71
|
+
this.error_description = opts.error_description;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.InternalServerException = InternalServerException;
|
|
75
|
+
class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
76
|
+
name = "InvalidClientException";
|
|
77
|
+
$fault = "client";
|
|
78
|
+
error;
|
|
79
|
+
error_description;
|
|
80
|
+
constructor(opts) {
|
|
81
|
+
super({
|
|
82
|
+
name: "InvalidClientException",
|
|
83
|
+
$fault: "client",
|
|
84
|
+
...opts,
|
|
85
|
+
});
|
|
86
|
+
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
87
|
+
this.error = opts.error;
|
|
88
|
+
this.error_description = opts.error_description;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.InvalidClientException = InvalidClientException;
|
|
92
|
+
class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
93
|
+
name = "InvalidGrantException";
|
|
94
|
+
$fault = "client";
|
|
95
|
+
error;
|
|
96
|
+
error_description;
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "InvalidGrantException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
104
|
+
this.error = opts.error;
|
|
105
|
+
this.error_description = opts.error_description;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.InvalidGrantException = InvalidGrantException;
|
|
109
|
+
class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
110
|
+
name = "InvalidRequestException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
error;
|
|
113
|
+
reason;
|
|
114
|
+
error_description;
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "InvalidRequestException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
122
|
+
this.error = opts.error;
|
|
123
|
+
this.reason = opts.reason;
|
|
124
|
+
this.error_description = opts.error_description;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
128
|
+
class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
129
|
+
name = "InvalidScopeException";
|
|
130
|
+
$fault = "client";
|
|
131
|
+
error;
|
|
132
|
+
error_description;
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "InvalidScopeException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
140
|
+
this.error = opts.error;
|
|
141
|
+
this.error_description = opts.error_description;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.InvalidScopeException = InvalidScopeException;
|
|
145
|
+
class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
146
|
+
name = "SlowDownException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
error;
|
|
149
|
+
error_description;
|
|
150
|
+
constructor(opts) {
|
|
151
|
+
super({
|
|
152
|
+
name: "SlowDownException",
|
|
153
|
+
$fault: "client",
|
|
154
|
+
...opts,
|
|
155
|
+
});
|
|
156
|
+
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
157
|
+
this.error = opts.error;
|
|
158
|
+
this.error_description = opts.error_description;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.SlowDownException = SlowDownException;
|
|
162
|
+
class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
163
|
+
name = "UnauthorizedClientException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
error;
|
|
166
|
+
error_description;
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "UnauthorizedClientException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
174
|
+
this.error = opts.error;
|
|
175
|
+
this.error_description = opts.error_description;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
179
|
+
class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
180
|
+
name = "UnsupportedGrantTypeException";
|
|
181
|
+
$fault = "client";
|
|
182
|
+
error;
|
|
183
|
+
error_description;
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "UnsupportedGrantTypeException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
191
|
+
this.error = opts.error;
|
|
192
|
+
this.error_description = opts.error_description;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
196
|
+
class InvalidRequestRegionException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
197
|
+
name = "InvalidRequestRegionException";
|
|
198
|
+
$fault = "client";
|
|
199
|
+
error;
|
|
200
|
+
error_description;
|
|
201
|
+
endpoint;
|
|
202
|
+
region;
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "InvalidRequestRegionException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
|
|
210
|
+
this.error = opts.error;
|
|
211
|
+
this.error_description = opts.error_description;
|
|
212
|
+
this.endpoint = opts.endpoint;
|
|
213
|
+
this.region = opts.region;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
exports.InvalidRequestRegionException = InvalidRequestRegionException;
|
|
217
|
+
class InvalidClientMetadataException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
218
|
+
name = "InvalidClientMetadataException";
|
|
219
|
+
$fault = "client";
|
|
220
|
+
error;
|
|
221
|
+
error_description;
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "InvalidClientMetadataException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
|
|
229
|
+
this.error = opts.error;
|
|
230
|
+
this.error_description = opts.error_description;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.InvalidClientMetadataException = InvalidClientMetadataException;
|
|
234
|
+
class InvalidRedirectUriException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
235
|
+
name = "InvalidRedirectUriException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
error;
|
|
238
|
+
error_description;
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "InvalidRedirectUriException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
|
|
246
|
+
this.error = opts.error;
|
|
247
|
+
this.error_description = opts.error_description;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
exports.InvalidRedirectUriException = InvalidRedirectUriException;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
14
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
30
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
32
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
33
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
34
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
16
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
17
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
18
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
|
+
const getRuntimeConfig = (config) => {
|
|
20
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
21
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
22
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
23
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
24
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
|
+
const loaderConfig = {
|
|
26
|
+
profile: config?.profile,
|
|
27
|
+
logger: clientSharedValues.logger,
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
...clientSharedValues,
|
|
31
|
+
...config,
|
|
32
|
+
runtime: "node",
|
|
33
|
+
defaultsMode,
|
|
34
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
38
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
40
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
41
|
+
retryMode: config?.retryMode ??
|
|
42
|
+
(0, node_config_provider_1.loadConfig)({
|
|
43
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
44
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
45
|
+
}, config),
|
|
46
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
47
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
48
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
9
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
10
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
14
|
+
const getRuntimeConfig = (config) => {
|
|
15
|
+
return {
|
|
16
|
+
apiVersion: "2019-06-10",
|
|
17
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
18
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
19
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
20
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
21
|
+
extensions: config?.extensions ?? [],
|
|
22
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
|
23
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
24
|
+
{
|
|
25
|
+
schemeId: "aws.auth#sigv4",
|
|
26
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
27
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
schemeId: "smithy.api#noAuth",
|
|
31
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
32
|
+
signer: new core_2.NoAuthSigner(),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
36
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
37
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
38
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
39
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
40
|
+
version: "2019-06-10",
|
|
41
|
+
serviceTarget: "AWSSSOOIDCService",
|
|
42
|
+
},
|
|
43
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
44
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartDeviceAuthorization$ = exports.RegisterClient$ = exports.CreateTokenWithIAM$ = exports.CreateToken$ = exports.StartDeviceAuthorizationResponse$ = exports.StartDeviceAuthorizationRequest$ = exports.RegisterClientResponse$ = exports.RegisterClientRequest$ = exports.CreateTokenWithIAMResponse$ = exports.CreateTokenWithIAMRequest$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.AwsAdditionalDetails$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestRegionException$ = exports.InvalidRequestException$ = exports.InvalidRedirectUriException$ = exports.InvalidGrantException$ = exports.InvalidClientMetadataException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
|
|
4
|
+
const _A = "Assertion";
|
|
5
|
+
const _AAD = "AwsAdditionalDetails";
|
|
6
|
+
const _ADE = "AccessDeniedException";
|
|
7
|
+
const _APE = "AuthorizationPendingException";
|
|
8
|
+
const _AT = "AccessToken";
|
|
9
|
+
const _CS = "ClientSecret";
|
|
10
|
+
const _CT = "CreateToken";
|
|
11
|
+
const _CTR = "CreateTokenRequest";
|
|
12
|
+
const _CTRr = "CreateTokenResponse";
|
|
13
|
+
const _CTWIAM = "CreateTokenWithIAM";
|
|
14
|
+
const _CTWIAMR = "CreateTokenWithIAMRequest";
|
|
15
|
+
const _CTWIAMRr = "CreateTokenWithIAMResponse";
|
|
16
|
+
const _CV = "CodeVerifier";
|
|
17
|
+
const _ETE = "ExpiredTokenException";
|
|
18
|
+
const _ICE = "InvalidClientException";
|
|
19
|
+
const _ICME = "InvalidClientMetadataException";
|
|
20
|
+
const _IGE = "InvalidGrantException";
|
|
21
|
+
const _IRE = "InvalidRequestException";
|
|
22
|
+
const _IRRE = "InvalidRequestRegionException";
|
|
23
|
+
const _IRUE = "InvalidRedirectUriException";
|
|
24
|
+
const _ISE = "InternalServerException";
|
|
25
|
+
const _ISEn = "InvalidScopeException";
|
|
26
|
+
const _IT = "IdToken";
|
|
27
|
+
const _RC = "RegisterClient";
|
|
28
|
+
const _RCR = "RegisterClientRequest";
|
|
29
|
+
const _RCRe = "RegisterClientResponse";
|
|
30
|
+
const _RT = "RefreshToken";
|
|
31
|
+
const _SDA = "StartDeviceAuthorization";
|
|
32
|
+
const _SDAR = "StartDeviceAuthorizationRequest";
|
|
33
|
+
const _SDARt = "StartDeviceAuthorizationResponse";
|
|
34
|
+
const _SDE = "SlowDownException";
|
|
35
|
+
const _ST = "SubjectToken";
|
|
36
|
+
const _UCE = "UnauthorizedClientException";
|
|
37
|
+
const _UGTE = "UnsupportedGrantTypeException";
|
|
38
|
+
const _a = "assertion";
|
|
39
|
+
const _aAD = "awsAdditionalDetails";
|
|
40
|
+
const _aE = "authorizationEndpoint";
|
|
41
|
+
const _aT = "accessToken";
|
|
42
|
+
const _c = "client";
|
|
43
|
+
const _cI = "clientId";
|
|
44
|
+
const _cIIA = "clientIdIssuedAt";
|
|
45
|
+
const _cN = "clientName";
|
|
46
|
+
const _cS = "clientSecret";
|
|
47
|
+
const _cSEA = "clientSecretExpiresAt";
|
|
48
|
+
const _cT = "clientType";
|
|
49
|
+
const _cV = "codeVerifier";
|
|
50
|
+
const _co = "code";
|
|
51
|
+
const _dC = "deviceCode";
|
|
52
|
+
const _e = "error";
|
|
53
|
+
const _eAA = "entitledApplicationArn";
|
|
54
|
+
const _eI = "expiresIn";
|
|
55
|
+
const _ed = "error_description";
|
|
56
|
+
const _en = "endpoint";
|
|
57
|
+
const _gT = "grantType";
|
|
58
|
+
const _gTr = "grantTypes";
|
|
59
|
+
const _h = "http";
|
|
60
|
+
const _hE = "httpError";
|
|
61
|
+
const _i = "interval";
|
|
62
|
+
const _iC = "identityContext";
|
|
63
|
+
const _iT = "idToken";
|
|
64
|
+
const _iTT = "issuedTokenType";
|
|
65
|
+
const _iU = "issuerUrl";
|
|
66
|
+
const _r = "reason";
|
|
67
|
+
const _rT = "refreshToken";
|
|
68
|
+
const _rTT = "requestedTokenType";
|
|
69
|
+
const _rU = "redirectUri";
|
|
70
|
+
const _rUe = "redirectUris";
|
|
71
|
+
const _re = "region";
|
|
72
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
73
|
+
const _sT = "subjectToken";
|
|
74
|
+
const _sTT = "subjectTokenType";
|
|
75
|
+
const _sU = "startUrl";
|
|
76
|
+
const _sc = "scope";
|
|
77
|
+
const _sco = "scopes";
|
|
78
|
+
const _se = "server";
|
|
79
|
+
const _tE = "tokenEndpoint";
|
|
80
|
+
const _tT = "tokenType";
|
|
81
|
+
const _uC = "userCode";
|
|
82
|
+
const _vU = "verificationUri";
|
|
83
|
+
const _vUC = "verificationUriComplete";
|
|
84
|
+
const n0 = "com.amazonaws.ssooidc";
|
|
85
|
+
const schema_1 = require("@smithy/core/schema");
|
|
86
|
+
const errors_1 = require("../models/errors");
|
|
87
|
+
const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
|
|
88
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
89
|
+
exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
90
|
+
_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
|
|
91
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
92
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
93
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
94
|
+
[_e, _r, _ed],
|
|
95
|
+
[0, 0, 0]
|
|
96
|
+
];
|
|
97
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
98
|
+
exports.AuthorizationPendingException$ = [-3, n0, _APE,
|
|
99
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
100
|
+
[_e, _ed],
|
|
101
|
+
[0, 0]
|
|
102
|
+
];
|
|
103
|
+
n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
|
|
104
|
+
exports.ExpiredTokenException$ = [-3, n0, _ETE,
|
|
105
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
106
|
+
[_e, _ed],
|
|
107
|
+
[0, 0]
|
|
108
|
+
];
|
|
109
|
+
n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
|
|
110
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
111
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
112
|
+
[_e, _ed],
|
|
113
|
+
[0, 0]
|
|
114
|
+
];
|
|
115
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
116
|
+
exports.InvalidClientException$ = [-3, n0, _ICE,
|
|
117
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
118
|
+
[_e, _ed],
|
|
119
|
+
[0, 0]
|
|
120
|
+
];
|
|
121
|
+
n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
|
|
122
|
+
exports.InvalidClientMetadataException$ = [-3, n0, _ICME,
|
|
123
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
124
|
+
[_e, _ed],
|
|
125
|
+
[0, 0]
|
|
126
|
+
];
|
|
127
|
+
n0_registry.registerError(exports.InvalidClientMetadataException$, errors_1.InvalidClientMetadataException);
|
|
128
|
+
exports.InvalidGrantException$ = [-3, n0, _IGE,
|
|
129
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
130
|
+
[_e, _ed],
|
|
131
|
+
[0, 0]
|
|
132
|
+
];
|
|
133
|
+
n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
|
|
134
|
+
exports.InvalidRedirectUriException$ = [-3, n0, _IRUE,
|
|
135
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
136
|
+
[_e, _ed],
|
|
137
|
+
[0, 0]
|
|
138
|
+
];
|
|
139
|
+
n0_registry.registerError(exports.InvalidRedirectUriException$, errors_1.InvalidRedirectUriException);
|
|
140
|
+
exports.InvalidRequestException$ = [-3, n0, _IRE,
|
|
141
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
142
|
+
[_e, _r, _ed],
|
|
143
|
+
[0, 0, 0]
|
|
144
|
+
];
|
|
145
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
146
|
+
exports.InvalidRequestRegionException$ = [-3, n0, _IRRE,
|
|
147
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
148
|
+
[_e, _ed, _en, _re],
|
|
149
|
+
[0, 0, 0, 0]
|
|
150
|
+
];
|
|
151
|
+
n0_registry.registerError(exports.InvalidRequestRegionException$, errors_1.InvalidRequestRegionException);
|
|
152
|
+
exports.InvalidScopeException$ = [-3, n0, _ISEn,
|
|
153
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
154
|
+
[_e, _ed],
|
|
155
|
+
[0, 0]
|
|
156
|
+
];
|
|
157
|
+
n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
|
|
158
|
+
exports.SlowDownException$ = [-3, n0, _SDE,
|
|
159
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
160
|
+
[_e, _ed],
|
|
161
|
+
[0, 0]
|
|
162
|
+
];
|
|
163
|
+
n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
|
|
164
|
+
exports.UnauthorizedClientException$ = [-3, n0, _UCE,
|
|
165
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
166
|
+
[_e, _ed],
|
|
167
|
+
[0, 0]
|
|
168
|
+
];
|
|
169
|
+
n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
|
|
170
|
+
exports.UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
|
|
171
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
172
|
+
[_e, _ed],
|
|
173
|
+
[0, 0]
|
|
174
|
+
];
|
|
175
|
+
n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
|
|
176
|
+
exports.errorTypeRegistries = [
|
|
177
|
+
_s_registry,
|
|
178
|
+
n0_registry,
|
|
179
|
+
];
|
|
180
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
181
|
+
var Assertion = [0, n0, _A, 8, 0];
|
|
182
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
183
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
184
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
185
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
186
|
+
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
187
|
+
exports.AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
188
|
+
0,
|
|
189
|
+
[_iC],
|
|
190
|
+
[0]
|
|
191
|
+
];
|
|
192
|
+
exports.CreateTokenRequest$ = [3, n0, _CTR,
|
|
193
|
+
0,
|
|
194
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
195
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3
|
|
196
|
+
];
|
|
197
|
+
exports.CreateTokenResponse$ = [3, n0, _CTRr,
|
|
198
|
+
0,
|
|
199
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
200
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
201
|
+
];
|
|
202
|
+
exports.CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
|
|
203
|
+
0,
|
|
204
|
+
[_cI, _gT, _co, _rT, _a, _sc, _rU, _sT, _sTT, _rTT, _cV],
|
|
205
|
+
[0, 0, 0, [() => RefreshToken, 0], [() => Assertion, 0], 64 | 0, 0, [() => SubjectToken, 0], 0, 0, [() => CodeVerifier, 0]], 2
|
|
206
|
+
];
|
|
207
|
+
exports.CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
|
|
208
|
+
0,
|
|
209
|
+
[_aT, _tT, _eI, _rT, _iT, _iTT, _sc, _aAD],
|
|
210
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => exports.AwsAdditionalDetails$]
|
|
211
|
+
];
|
|
212
|
+
exports.RegisterClientRequest$ = [3, n0, _RCR,
|
|
213
|
+
0,
|
|
214
|
+
[_cN, _cT, _sco, _rUe, _gTr, _iU, _eAA],
|
|
215
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0], 2
|
|
216
|
+
];
|
|
217
|
+
exports.RegisterClientResponse$ = [3, n0, _RCRe,
|
|
218
|
+
0,
|
|
219
|
+
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
220
|
+
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
221
|
+
];
|
|
222
|
+
exports.StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
|
|
223
|
+
0,
|
|
224
|
+
[_cI, _cS, _sU],
|
|
225
|
+
[0, [() => ClientSecret, 0], 0], 3
|
|
226
|
+
];
|
|
227
|
+
exports.StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
|
|
228
|
+
0,
|
|
229
|
+
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
230
|
+
[0, 0, 0, 0, 1, 1]
|
|
231
|
+
];
|
|
232
|
+
var GrantTypes = 64 | 0;
|
|
233
|
+
var RedirectUris = 64 | 0;
|
|
234
|
+
var Scopes = 64 | 0;
|
|
235
|
+
exports.CreateToken$ = [9, n0, _CT,
|
|
236
|
+
{ [_h]: ["POST", "/token", 200] }, () => exports.CreateTokenRequest$, () => exports.CreateTokenResponse$
|
|
237
|
+
];
|
|
238
|
+
exports.CreateTokenWithIAM$ = [9, n0, _CTWIAM,
|
|
239
|
+
{ [_h]: ["POST", "/token?aws_iam=t", 200] }, () => exports.CreateTokenWithIAMRequest$, () => exports.CreateTokenWithIAMResponse$
|
|
240
|
+
];
|
|
241
|
+
exports.RegisterClient$ = [9, n0, _RC,
|
|
242
|
+
{ [_h]: ["POST", "/client/register", 200] }, () => exports.RegisterClientRequest$, () => exports.RegisterClientResponse$
|
|
243
|
+
];
|
|
244
|
+
exports.StartDeviceAuthorization$ = [9, n0, _SDA,
|
|
245
|
+
{ [_h]: ["POST", "/device_authorization", 200] }, () => exports.StartDeviceAuthorizationRequest$, () => exports.StartDeviceAuthorizationResponse$
|
|
246
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { CreateTokenCommand } from "./commands/CreateTokenCommand";
|
|
3
|
+
import { CreateTokenWithIAMCommand, } from "./commands/CreateTokenWithIAMCommand";
|
|
4
|
+
import { RegisterClientCommand, } from "./commands/RegisterClientCommand";
|
|
5
|
+
import { StartDeviceAuthorizationCommand, } from "./commands/StartDeviceAuthorizationCommand";
|
|
6
|
+
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
7
|
+
const commands = {
|
|
8
|
+
CreateTokenCommand,
|
|
9
|
+
CreateTokenWithIAMCommand,
|
|
10
|
+
RegisterClientCommand,
|
|
11
|
+
StartDeviceAuthorizationCommand,
|
|
12
|
+
};
|
|
13
|
+
export class SSOOIDC extends SSOOIDCClient {
|
|
14
|
+
}
|
|
15
|
+
createAggregatedClient(commands, SSOOIDC);
|