@aws-sdk/client-sso-oidc 3.186.0 → 3.188.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/CHANGELOG.md +8 -0
- package/dist-es/SSOOIDC.js +14 -21
- package/dist-es/SSOOIDCClient.js +20 -26
- package/dist-es/commands/CreateTokenCommand.js +21 -28
- package/dist-es/commands/RegisterClientCommand.js +21 -28
- package/dist-es/commands/StartDeviceAuthorizationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSOOIDCServiceException.js +5 -10
- package/dist-es/models/models_0.js +174 -163
- package/dist-es/protocols/Aws_restJson1.js +454 -560
- package/dist-es/runtimeConfig.browser.js +25 -12
- package/dist-es/runtimeConfig.js +29 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
package/dist-es/SSOOIDC.js
CHANGED
|
@@ -1,55 +1,48 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateTokenCommand } from "./commands/CreateTokenCommand";
|
|
3
2
|
import { RegisterClientCommand, } from "./commands/RegisterClientCommand";
|
|
4
3
|
import { StartDeviceAuthorizationCommand, } from "./commands/StartDeviceAuthorizationCommand";
|
|
5
4
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
SSOOIDC.prototype.createToken = function (args, optionsOrCb, cb) {
|
|
12
|
-
var command = new CreateTokenCommand(args);
|
|
5
|
+
export class SSOOIDC extends SSOOIDCClient {
|
|
6
|
+
createToken(args, optionsOrCb, cb) {
|
|
7
|
+
const command = new CreateTokenCommand(args);
|
|
13
8
|
if (typeof optionsOrCb === "function") {
|
|
14
9
|
this.send(command, optionsOrCb);
|
|
15
10
|
}
|
|
16
11
|
else if (typeof cb === "function") {
|
|
17
12
|
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(
|
|
13
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
14
|
this.send(command, optionsOrCb || {}, cb);
|
|
20
15
|
}
|
|
21
16
|
else {
|
|
22
17
|
return this.send(command, optionsOrCb);
|
|
23
18
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
}
|
|
20
|
+
registerClient(args, optionsOrCb, cb) {
|
|
21
|
+
const command = new RegisterClientCommand(args);
|
|
27
22
|
if (typeof optionsOrCb === "function") {
|
|
28
23
|
this.send(command, optionsOrCb);
|
|
29
24
|
}
|
|
30
25
|
else if (typeof cb === "function") {
|
|
31
26
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(
|
|
27
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
28
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
29
|
}
|
|
35
30
|
else {
|
|
36
31
|
return this.send(command, optionsOrCb);
|
|
37
32
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
}
|
|
34
|
+
startDeviceAuthorization(args, optionsOrCb, cb) {
|
|
35
|
+
const command = new StartDeviceAuthorizationCommand(args);
|
|
41
36
|
if (typeof optionsOrCb === "function") {
|
|
42
37
|
this.send(command, optionsOrCb);
|
|
43
38
|
}
|
|
44
39
|
else if (typeof cb === "function") {
|
|
45
40
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(
|
|
41
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
42
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
43
|
}
|
|
49
44
|
else {
|
|
50
45
|
return this.send(command, optionsOrCb);
|
|
51
46
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}(SSOOIDCClient));
|
|
55
|
-
export { SSOOIDC };
|
|
47
|
+
}
|
|
48
|
+
}
|
package/dist-es/SSOOIDCClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,29 +7,24 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
8
7
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
8
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
9
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
29
|
-
return _this;
|
|
10
|
+
export class SSOOIDCClient extends __Client {
|
|
11
|
+
constructor(configuration) {
|
|
12
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
13
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
14
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
15
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
16
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
17
|
+
const _config_5 = resolveUserAgentConfig(_config_4);
|
|
18
|
+
super(_config_5);
|
|
19
|
+
this.config = _config_5;
|
|
20
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
21
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
22
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}(__Client));
|
|
36
|
-
export { SSOOIDCClient };
|
|
27
|
+
destroy() {
|
|
28
|
+
super.destroy();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateTokenCommand, serializeAws_restJson1CreateTokenCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateTokenCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOOIDCClient";
|
|
15
|
+
const commandName = "CreateTokenCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateTokenRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateTokenResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateTokenCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateTokenCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateTokenCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateTokenCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { RegisterClientRequestFilterSensitiveLog, RegisterClientResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1RegisterClientCommand, serializeAws_restJson1RegisterClientCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class RegisterClientCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOOIDCClient";
|
|
15
|
+
const commandName = "RegisterClientCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: RegisterClientRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: RegisterClientResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
RegisterClientCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1RegisterClientCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1RegisterClientCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { RegisterClientCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { StartDeviceAuthorizationRequestFilterSensitiveLog, StartDeviceAuthorizationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1StartDeviceAuthorizationCommand, serializeAws_restJson1StartDeviceAuthorizationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class StartDeviceAuthorizationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOOIDCClient";
|
|
15
|
+
const commandName = "StartDeviceAuthorizationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: StartDeviceAuthorizationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: StartDeviceAuthorizationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
StartDeviceAuthorizationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1StartDeviceAuthorizationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1StartDeviceAuthorizationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { StartDeviceAuthorizationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
"ap-east-1": {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -191,7 +190,7 @@ var regionHash = {
|
|
|
191
190
|
signingRegion: "us-west-2",
|
|
192
191
|
},
|
|
193
192
|
};
|
|
194
|
-
|
|
193
|
+
const partitionHash = {
|
|
195
194
|
aws: {
|
|
196
195
|
regions: [
|
|
197
196
|
"af-south-1",
|
|
@@ -311,8 +310,9 @@ var partitionHash = {
|
|
|
311
310
|
],
|
|
312
311
|
},
|
|
313
312
|
};
|
|
314
|
-
export
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
313
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
314
|
+
...options,
|
|
315
|
+
signingService: "awsssooidc",
|
|
316
|
+
regionHash,
|
|
317
|
+
partitionHash,
|
|
318
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, SSOOIDCServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class SSOOIDCServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { SSOOIDCServiceException };
|
|
7
|
+
}
|