@aws-sdk/client-sso-oidc 3.121.0 → 3.130.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 +30 -0
- package/dist-cjs/endpoints.js +18 -0
- package/dist-cjs/protocols/Aws_restJson1.js +17 -16
- package/dist-es/endpoints.js +18 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -5
- package/package.json +23 -23
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update client endpoints as of 2022-07-11 ([65a0485](https://github.com/aws/aws-sdk-js-v3/commit/65a0485cef3786eda9bc4d3186fd68c2dc84c809))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
37
|
|
|
8
38
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
+
"ap-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "oidc.ap-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
signingRegion: "ap-east-1",
|
|
14
|
+
},
|
|
6
15
|
"ap-northeast-1": {
|
|
7
16
|
variants: [
|
|
8
17
|
{
|
|
@@ -120,6 +129,15 @@ const regionHash = {
|
|
|
120
129
|
],
|
|
121
130
|
signingRegion: "eu-west-3",
|
|
122
131
|
},
|
|
132
|
+
"me-south-1": {
|
|
133
|
+
variants: [
|
|
134
|
+
{
|
|
135
|
+
hostname: "oidc.me-south-1.amazonaws.com",
|
|
136
|
+
tags: [],
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
signingRegion: "me-south-1",
|
|
140
|
+
},
|
|
123
141
|
"sa-east-1": {
|
|
124
142
|
variants: [
|
|
125
143
|
{
|
|
@@ -13,15 +13,14 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/token";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.clientId
|
|
17
|
-
...(input.clientSecret
|
|
18
|
-
...(input.code
|
|
19
|
-
...(input.deviceCode
|
|
20
|
-
...(input.grantType
|
|
21
|
-
...(input.redirectUri
|
|
22
|
-
...(input.refreshToken
|
|
23
|
-
...(input.scope
|
|
24
|
-
input.scope !== null && { scope: serializeAws_restJson1Scopes(input.scope, context) }),
|
|
16
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
17
|
+
...(input.clientSecret != null && { clientSecret: input.clientSecret }),
|
|
18
|
+
...(input.code != null && { code: input.code }),
|
|
19
|
+
...(input.deviceCode != null && { deviceCode: input.deviceCode }),
|
|
20
|
+
...(input.grantType != null && { grantType: input.grantType }),
|
|
21
|
+
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
22
|
+
...(input.refreshToken != null && { refreshToken: input.refreshToken }),
|
|
23
|
+
...(input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) }),
|
|
25
24
|
});
|
|
26
25
|
return new protocol_http_1.HttpRequest({
|
|
27
26
|
protocol,
|
|
@@ -42,10 +41,9 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
42
41
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/client/register";
|
|
43
42
|
let body;
|
|
44
43
|
body = JSON.stringify({
|
|
45
|
-
...(input.clientName
|
|
46
|
-
...(input.clientType
|
|
47
|
-
...(input.scopes
|
|
48
|
-
input.scopes !== null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }),
|
|
44
|
+
...(input.clientName != null && { clientName: input.clientName }),
|
|
45
|
+
...(input.clientType != null && { clientType: input.clientType }),
|
|
46
|
+
...(input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }),
|
|
49
47
|
});
|
|
50
48
|
return new protocol_http_1.HttpRequest({
|
|
51
49
|
protocol,
|
|
@@ -66,9 +64,9 @@ const serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, cont
|
|
|
66
64
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/device_authorization";
|
|
67
65
|
let body;
|
|
68
66
|
body = JSON.stringify({
|
|
69
|
-
...(input.clientId
|
|
70
|
-
...(input.clientSecret
|
|
71
|
-
...(input.startUrl
|
|
67
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
68
|
+
...(input.clientSecret != null && { clientSecret: input.clientSecret }),
|
|
69
|
+
...(input.startUrl != null && { startUrl: input.startUrl }),
|
|
72
70
|
});
|
|
73
71
|
return new protocol_http_1.HttpRequest({
|
|
74
72
|
protocol,
|
|
@@ -523,6 +521,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
523
521
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
524
522
|
const sanitizeErrorCode = (rawValue) => {
|
|
525
523
|
let cleanValue = rawValue;
|
|
524
|
+
if (typeof cleanValue === "number") {
|
|
525
|
+
cleanValue = cleanValue.toString();
|
|
526
|
+
}
|
|
526
527
|
if (cleanValue.indexOf(":") >= 0) {
|
|
527
528
|
cleanValue = cleanValue.split(":")[0];
|
|
528
529
|
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
+
"ap-east-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "oidc.ap-east-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
signingRegion: "ap-east-1",
|
|
12
|
+
},
|
|
4
13
|
"ap-northeast-1": {
|
|
5
14
|
variants: [
|
|
6
15
|
{
|
|
@@ -118,6 +127,15 @@ var regionHash = {
|
|
|
118
127
|
],
|
|
119
128
|
signingRegion: "eu-west-3",
|
|
120
129
|
},
|
|
130
|
+
"me-south-1": {
|
|
131
|
+
variants: [
|
|
132
|
+
{
|
|
133
|
+
hostname: "oidc.me-south-1.amazonaws.com",
|
|
134
|
+
tags: [],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
signingRegion: "me-south-1",
|
|
138
|
+
},
|
|
121
139
|
"sa-east-1": {
|
|
122
140
|
variants: [
|
|
123
141
|
{
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1CreateTokenCommand = function (input, context)
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/token";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId
|
|
18
|
-
input.scope !== null && { scope: serializeAws_restJson1Scopes(input.scope, context) })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.code != null && { code: input.code })), (input.deviceCode != null && { deviceCode: input.deviceCode })), (input.grantType != null && { grantType: input.grantType })), (input.redirectUri != null && { redirectUri: input.redirectUri })), (input.refreshToken != null && { refreshToken: input.refreshToken })), (input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) })));
|
|
19
18
|
return [2, new __HttpRequest({
|
|
20
19
|
protocol: protocol,
|
|
21
20
|
hostname: hostname,
|
|
@@ -39,8 +38,7 @@ export var serializeAws_restJson1RegisterClientCommand = function (input, contex
|
|
|
39
38
|
"content-type": "application/json",
|
|
40
39
|
};
|
|
41
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/client/register";
|
|
42
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientName
|
|
43
|
-
input.scopes !== null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) })));
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientName != null && { clientName: input.clientName })), (input.clientType != null && { clientType: input.clientType })), (input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) })));
|
|
44
42
|
return [2, new __HttpRequest({
|
|
45
43
|
protocol: protocol,
|
|
46
44
|
hostname: hostname,
|
|
@@ -64,7 +62,7 @@ export var serializeAws_restJson1StartDeviceAuthorizationCommand = function (inp
|
|
|
64
62
|
"content-type": "application/json",
|
|
65
63
|
};
|
|
66
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/device_authorization";
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientId
|
|
65
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.startUrl != null && { startUrl: input.startUrl })));
|
|
68
66
|
return [2, new __HttpRequest({
|
|
69
67
|
protocol: protocol,
|
|
70
68
|
hostname: hostname,
|
|
@@ -600,6 +598,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
600
598
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
601
599
|
var sanitizeErrorCode = function (rawValue) {
|
|
602
600
|
var cleanValue = rawValue;
|
|
601
|
+
if (typeof cleanValue === "number") {
|
|
602
|
+
cleanValue = cleanValue.toString();
|
|
603
|
+
}
|
|
603
604
|
if (cleanValue.indexOf(":") >= 0) {
|
|
604
605
|
cleanValue = cleanValue.split(":")[0];
|
|
605
606
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,32 +18,32 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/config-resolver": "3.
|
|
22
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
23
|
-
"@aws-sdk/hash-node": "3.
|
|
24
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
25
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-retry": "3.
|
|
30
|
-
"@aws-sdk/middleware-serde": "3.
|
|
31
|
-
"@aws-sdk/middleware-stack": "3.
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
33
|
-
"@aws-sdk/node-config-provider": "3.
|
|
34
|
-
"@aws-sdk/node-http-handler": "3.
|
|
35
|
-
"@aws-sdk/protocol-http": "3.
|
|
36
|
-
"@aws-sdk/smithy-client": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
38
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
22
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
23
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
25
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
33
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
34
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
35
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
36
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
37
|
+
"@aws-sdk/types": "3.127.0",
|
|
38
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
39
39
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
40
40
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
41
41
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
42
42
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
43
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
44
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
45
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
46
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
44
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
46
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
47
47
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
48
48
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
49
49
|
"tslib": "^2.3.1"
|