@aws-sdk/client-sso-oidc 3.474.0 → 3.477.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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_StartDeviceAuthorizationCommand = exports.de_RegisterClientCommand = exports.de_CreateTokenWithIAMCommand = exports.de_CreateTokenCommand = exports.se_StartDeviceAuthorizationCommand = exports.se_RegisterClientCommand = exports.se_CreateTokenWithIAMCommand = exports.se_CreateTokenCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
|
|
8
8
|
const se_CreateTokenCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/token");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
clientId: [],
|
|
@@ -22,25 +22,18 @@ const se_CreateTokenCommand = async (input, context) => {
|
|
|
22
22
|
refreshToken: [],
|
|
23
23
|
scope: (_) => (0, smithy_client_1._json)(_),
|
|
24
24
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
hostname,
|
|
28
|
-
port,
|
|
29
|
-
method: "POST",
|
|
30
|
-
headers,
|
|
31
|
-
path: resolvedPath,
|
|
32
|
-
body,
|
|
33
|
-
});
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
34
27
|
};
|
|
35
28
|
exports.se_CreateTokenCommand = se_CreateTokenCommand;
|
|
36
29
|
const se_CreateTokenWithIAMCommand = async (input, context) => {
|
|
37
|
-
const
|
|
30
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
31
|
const headers = {
|
|
39
32
|
"content-type": "application/json",
|
|
40
33
|
};
|
|
41
|
-
|
|
34
|
+
b.bp("/token");
|
|
42
35
|
const query = (0, smithy_client_1.map)({
|
|
43
|
-
|
|
36
|
+
[_ai]: [, "t"],
|
|
44
37
|
});
|
|
45
38
|
let body;
|
|
46
39
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -55,62 +48,40 @@ const se_CreateTokenWithIAMCommand = async (input, context) => {
|
|
|
55
48
|
subjectToken: [],
|
|
56
49
|
subjectTokenType: [],
|
|
57
50
|
}));
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
hostname,
|
|
61
|
-
port,
|
|
62
|
-
method: "POST",
|
|
63
|
-
headers,
|
|
64
|
-
path: resolvedPath,
|
|
65
|
-
query,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
51
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
52
|
+
return b.build();
|
|
68
53
|
};
|
|
69
54
|
exports.se_CreateTokenWithIAMCommand = se_CreateTokenWithIAMCommand;
|
|
70
55
|
const se_RegisterClientCommand = async (input, context) => {
|
|
71
|
-
const
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
72
57
|
const headers = {
|
|
73
58
|
"content-type": "application/json",
|
|
74
59
|
};
|
|
75
|
-
|
|
60
|
+
b.bp("/client/register");
|
|
76
61
|
let body;
|
|
77
62
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
78
63
|
clientName: [],
|
|
79
64
|
clientType: [],
|
|
80
65
|
scopes: (_) => (0, smithy_client_1._json)(_),
|
|
81
66
|
}));
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
hostname,
|
|
85
|
-
port,
|
|
86
|
-
method: "POST",
|
|
87
|
-
headers,
|
|
88
|
-
path: resolvedPath,
|
|
89
|
-
body,
|
|
90
|
-
});
|
|
67
|
+
b.m("POST").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
91
69
|
};
|
|
92
70
|
exports.se_RegisterClientCommand = se_RegisterClientCommand;
|
|
93
71
|
const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
94
|
-
const
|
|
72
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
95
73
|
const headers = {
|
|
96
74
|
"content-type": "application/json",
|
|
97
75
|
};
|
|
98
|
-
|
|
76
|
+
b.bp("/device_authorization");
|
|
99
77
|
let body;
|
|
100
78
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
101
79
|
clientId: [],
|
|
102
80
|
clientSecret: [],
|
|
103
81
|
startUrl: [],
|
|
104
82
|
}));
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
hostname,
|
|
108
|
-
port,
|
|
109
|
-
method: "POST",
|
|
110
|
-
headers,
|
|
111
|
-
path: resolvedPath,
|
|
112
|
-
body,
|
|
113
|
-
});
|
|
83
|
+
b.m("POST").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
114
85
|
};
|
|
115
86
|
exports.se_StartDeviceAuthorizationCommand = se_StartDeviceAuthorizationCommand;
|
|
116
87
|
const de_CreateTokenCommand = async (output, context) => {
|
|
@@ -550,6 +521,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
550
521
|
value !== "" &&
|
|
551
522
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
552
523
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
524
|
+
const _ai = "aws_iam";
|
|
553
525
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
554
526
|
if (encoded.length) {
|
|
555
527
|
return JSON.parse(encoded);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRequestException, InvalidRequestRegionException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
|
4
4
|
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
|
5
5
|
export const se_CreateTokenCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/token");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
clientId: [],
|
|
@@ -19,24 +19,17 @@ export const se_CreateTokenCommand = async (input, context) => {
|
|
|
19
19
|
refreshToken: [],
|
|
20
20
|
scope: (_) => _json(_),
|
|
21
21
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
22
|
+
b.m("POST").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
31
24
|
};
|
|
32
25
|
export const se_CreateTokenWithIAMCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = rb(input, context);
|
|
34
27
|
const headers = {
|
|
35
28
|
"content-type": "application/json",
|
|
36
29
|
};
|
|
37
|
-
|
|
30
|
+
b.bp("/token");
|
|
38
31
|
const query = map({
|
|
39
|
-
|
|
32
|
+
[_ai]: [, "t"],
|
|
40
33
|
});
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify(take(input, {
|
|
@@ -51,60 +44,38 @@ export const se_CreateTokenWithIAMCommand = async (input, context) => {
|
|
|
51
44
|
subjectToken: [],
|
|
52
45
|
subjectTokenType: [],
|
|
53
46
|
}));
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
hostname,
|
|
57
|
-
port,
|
|
58
|
-
method: "POST",
|
|
59
|
-
headers,
|
|
60
|
-
path: resolvedPath,
|
|
61
|
-
query,
|
|
62
|
-
body,
|
|
63
|
-
});
|
|
47
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
48
|
+
return b.build();
|
|
64
49
|
};
|
|
65
50
|
export const se_RegisterClientCommand = async (input, context) => {
|
|
66
|
-
const
|
|
51
|
+
const b = rb(input, context);
|
|
67
52
|
const headers = {
|
|
68
53
|
"content-type": "application/json",
|
|
69
54
|
};
|
|
70
|
-
|
|
55
|
+
b.bp("/client/register");
|
|
71
56
|
let body;
|
|
72
57
|
body = JSON.stringify(take(input, {
|
|
73
58
|
clientName: [],
|
|
74
59
|
clientType: [],
|
|
75
60
|
scopes: (_) => _json(_),
|
|
76
61
|
}));
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
hostname,
|
|
80
|
-
port,
|
|
81
|
-
method: "POST",
|
|
82
|
-
headers,
|
|
83
|
-
path: resolvedPath,
|
|
84
|
-
body,
|
|
85
|
-
});
|
|
62
|
+
b.m("POST").h(headers).b(body);
|
|
63
|
+
return b.build();
|
|
86
64
|
};
|
|
87
65
|
export const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
88
|
-
const
|
|
66
|
+
const b = rb(input, context);
|
|
89
67
|
const headers = {
|
|
90
68
|
"content-type": "application/json",
|
|
91
69
|
};
|
|
92
|
-
|
|
70
|
+
b.bp("/device_authorization");
|
|
93
71
|
let body;
|
|
94
72
|
body = JSON.stringify(take(input, {
|
|
95
73
|
clientId: [],
|
|
96
74
|
clientSecret: [],
|
|
97
75
|
startUrl: [],
|
|
98
76
|
}));
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "POST",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
77
|
+
b.m("POST").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
108
79
|
};
|
|
109
80
|
export const de_CreateTokenCommand = async (output, context) => {
|
|
110
81
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -539,6 +510,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
539
510
|
value !== "" &&
|
|
540
511
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
541
512
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
513
|
+
const _ai = "aws_iam";
|
|
542
514
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
543
515
|
if (encoded.length) {
|
|
544
516
|
return JSON.parse(encoded);
|
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.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|