@aws-sdk/client-cognito-identity-provider 3.956.0 → 3.958.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 +1 -124
- package/dist-cjs/auth/httpAuthSchemeProvider.js +195 -132
- package/dist-cjs/index.js +1739 -2436
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +195 -132
- package/dist-es/pagination/index.js +2 -2
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +1737 -2434
- package/dist-types/pagination/index.d.ts +2 -2
- package/dist-types/ts3.4/pagination/index.d.ts +2 -2
- package/package.json +13 -13
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider = defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider;
|
|
@@ -36,134 +35,198 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
36
35
|
const defaultCognitoIdentityProviderHttpAuthSchemeProvider = (authParameters) => {
|
|
37
36
|
const options = [];
|
|
38
37
|
switch (authParameters.operation) {
|
|
39
|
-
case "AssociateSoftwareToken":
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
case "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
case "
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
case "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
case "
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
case "
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
case "
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
case "
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
case "
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
case "
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
case "
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
38
|
+
case "AssociateSoftwareToken":
|
|
39
|
+
{
|
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
;
|
|
44
|
+
case "ChangePassword":
|
|
45
|
+
{
|
|
46
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
;
|
|
50
|
+
case "CompleteWebAuthnRegistration":
|
|
51
|
+
{
|
|
52
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
;
|
|
56
|
+
case "ConfirmDevice":
|
|
57
|
+
{
|
|
58
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
;
|
|
62
|
+
case "ConfirmForgotPassword":
|
|
63
|
+
{
|
|
64
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
;
|
|
68
|
+
case "ConfirmSignUp":
|
|
69
|
+
{
|
|
70
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
;
|
|
74
|
+
case "DeleteUser":
|
|
75
|
+
{
|
|
76
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
;
|
|
80
|
+
case "DeleteUserAttributes":
|
|
81
|
+
{
|
|
82
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
;
|
|
86
|
+
case "DeleteWebAuthnCredential":
|
|
87
|
+
{
|
|
88
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
;
|
|
92
|
+
case "ForgetDevice":
|
|
93
|
+
{
|
|
94
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
;
|
|
98
|
+
case "ForgotPassword":
|
|
99
|
+
{
|
|
100
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
;
|
|
104
|
+
case "GetDevice":
|
|
105
|
+
{
|
|
106
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
;
|
|
110
|
+
case "GetTokensFromRefreshToken":
|
|
111
|
+
{
|
|
112
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
;
|
|
116
|
+
case "GetUser":
|
|
117
|
+
{
|
|
118
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
;
|
|
122
|
+
case "GetUserAttributeVerificationCode":
|
|
123
|
+
{
|
|
124
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
;
|
|
128
|
+
case "GetUserAuthFactors":
|
|
129
|
+
{
|
|
130
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
;
|
|
134
|
+
case "GlobalSignOut":
|
|
135
|
+
{
|
|
136
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
;
|
|
140
|
+
case "InitiateAuth":
|
|
141
|
+
{
|
|
142
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
;
|
|
146
|
+
case "ListDevices":
|
|
147
|
+
{
|
|
148
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
;
|
|
152
|
+
case "ListWebAuthnCredentials":
|
|
153
|
+
{
|
|
154
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
;
|
|
158
|
+
case "ResendConfirmationCode":
|
|
159
|
+
{
|
|
160
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
;
|
|
164
|
+
case "RespondToAuthChallenge":
|
|
165
|
+
{
|
|
166
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
;
|
|
170
|
+
case "RevokeToken":
|
|
171
|
+
{
|
|
172
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
;
|
|
176
|
+
case "SetUserMFAPreference":
|
|
177
|
+
{
|
|
178
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
;
|
|
182
|
+
case "SetUserSettings":
|
|
183
|
+
{
|
|
184
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
;
|
|
188
|
+
case "SignUp":
|
|
189
|
+
{
|
|
190
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
;
|
|
194
|
+
case "StartWebAuthnRegistration":
|
|
195
|
+
{
|
|
196
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
;
|
|
200
|
+
case "UpdateAuthEventFeedback":
|
|
201
|
+
{
|
|
202
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
;
|
|
206
|
+
case "UpdateDeviceStatus":
|
|
207
|
+
{
|
|
208
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
;
|
|
212
|
+
case "UpdateUserAttributes":
|
|
213
|
+
{
|
|
214
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
;
|
|
218
|
+
case "VerifySoftwareToken":
|
|
219
|
+
{
|
|
220
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
;
|
|
224
|
+
case "VerifyUserAttribute":
|
|
225
|
+
{
|
|
226
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
;
|
|
167
230
|
default: {
|
|
168
231
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
169
232
|
}
|