@aws-sdk/client-sso-oidc 3.190.0 → 3.196.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/SSOOIDCClient.js +10 -7
  3. package/dist-cjs/commands/CreateTokenCommand.js +10 -0
  4. package/dist-cjs/commands/RegisterClientCommand.js +10 -0
  5. package/dist-cjs/commands/StartDeviceAuthorizationCommand.js +10 -0
  6. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  7. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  8. package/dist-cjs/endpoint/ruleset.js +318 -0
  9. package/dist-cjs/runtimeConfig.shared.js +3 -3
  10. package/dist-es/SSOOIDCClient.js +11 -8
  11. package/dist-es/commands/CreateTokenCommand.js +10 -0
  12. package/dist-es/commands/RegisterClientCommand.js +10 -0
  13. package/dist-es/commands/StartDeviceAuthorizationCommand.js +10 -0
  14. package/dist-es/endpoint/EndpointParameters.js +8 -0
  15. package/dist-es/endpoint/endpointResolver.js +8 -0
  16. package/dist-es/endpoint/ruleset.js +315 -0
  17. package/dist-es/runtimeConfig.shared.js +2 -2
  18. package/dist-types/SSOOIDCClient.d.ts +6 -9
  19. package/dist-types/commands/CreateTokenCommand.d.ts +2 -0
  20. package/dist-types/commands/RegisterClientCommand.d.ts +2 -0
  21. package/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +2 -0
  22. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  23. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  24. package/dist-types/endpoint/ruleset.d.ts +2 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  26. package/dist-types/runtimeConfig.d.ts +4 -2
  27. package/dist-types/runtimeConfig.native.d.ts +4 -2
  28. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  29. package/dist-types/ts3.4/SSOOIDCClient.d.ts +15 -8
  30. package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +2 -0
  31. package/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +2 -0
  32. package/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +2 -0
  33. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  34. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  35. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  39. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  40. package/package.json +25 -23
  41. package/dist-cjs/endpoints.js +0 -322
  42. package/dist-es/endpoints.js +0 -318
  43. package/dist-types/endpoints.d.ts +0 -2
  44. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,318 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "ap-east-1": {
4
- variants: [
5
- {
6
- hostname: "oidc.ap-east-1.amazonaws.com",
7
- tags: [],
8
- },
9
- ],
10
- signingRegion: "ap-east-1",
11
- },
12
- "ap-northeast-1": {
13
- variants: [
14
- {
15
- hostname: "oidc.ap-northeast-1.amazonaws.com",
16
- tags: [],
17
- },
18
- ],
19
- signingRegion: "ap-northeast-1",
20
- },
21
- "ap-northeast-2": {
22
- variants: [
23
- {
24
- hostname: "oidc.ap-northeast-2.amazonaws.com",
25
- tags: [],
26
- },
27
- ],
28
- signingRegion: "ap-northeast-2",
29
- },
30
- "ap-northeast-3": {
31
- variants: [
32
- {
33
- hostname: "oidc.ap-northeast-3.amazonaws.com",
34
- tags: [],
35
- },
36
- ],
37
- signingRegion: "ap-northeast-3",
38
- },
39
- "ap-south-1": {
40
- variants: [
41
- {
42
- hostname: "oidc.ap-south-1.amazonaws.com",
43
- tags: [],
44
- },
45
- ],
46
- signingRegion: "ap-south-1",
47
- },
48
- "ap-southeast-1": {
49
- variants: [
50
- {
51
- hostname: "oidc.ap-southeast-1.amazonaws.com",
52
- tags: [],
53
- },
54
- ],
55
- signingRegion: "ap-southeast-1",
56
- },
57
- "ap-southeast-2": {
58
- variants: [
59
- {
60
- hostname: "oidc.ap-southeast-2.amazonaws.com",
61
- tags: [],
62
- },
63
- ],
64
- signingRegion: "ap-southeast-2",
65
- },
66
- "ca-central-1": {
67
- variants: [
68
- {
69
- hostname: "oidc.ca-central-1.amazonaws.com",
70
- tags: [],
71
- },
72
- ],
73
- signingRegion: "ca-central-1",
74
- },
75
- "eu-central-1": {
76
- variants: [
77
- {
78
- hostname: "oidc.eu-central-1.amazonaws.com",
79
- tags: [],
80
- },
81
- ],
82
- signingRegion: "eu-central-1",
83
- },
84
- "eu-north-1": {
85
- variants: [
86
- {
87
- hostname: "oidc.eu-north-1.amazonaws.com",
88
- tags: [],
89
- },
90
- ],
91
- signingRegion: "eu-north-1",
92
- },
93
- "eu-south-1": {
94
- variants: [
95
- {
96
- hostname: "oidc.eu-south-1.amazonaws.com",
97
- tags: [],
98
- },
99
- ],
100
- signingRegion: "eu-south-1",
101
- },
102
- "eu-west-1": {
103
- variants: [
104
- {
105
- hostname: "oidc.eu-west-1.amazonaws.com",
106
- tags: [],
107
- },
108
- ],
109
- signingRegion: "eu-west-1",
110
- },
111
- "eu-west-2": {
112
- variants: [
113
- {
114
- hostname: "oidc.eu-west-2.amazonaws.com",
115
- tags: [],
116
- },
117
- ],
118
- signingRegion: "eu-west-2",
119
- },
120
- "eu-west-3": {
121
- variants: [
122
- {
123
- hostname: "oidc.eu-west-3.amazonaws.com",
124
- tags: [],
125
- },
126
- ],
127
- signingRegion: "eu-west-3",
128
- },
129
- "me-south-1": {
130
- variants: [
131
- {
132
- hostname: "oidc.me-south-1.amazonaws.com",
133
- tags: [],
134
- },
135
- ],
136
- signingRegion: "me-south-1",
137
- },
138
- "sa-east-1": {
139
- variants: [
140
- {
141
- hostname: "oidc.sa-east-1.amazonaws.com",
142
- tags: [],
143
- },
144
- ],
145
- signingRegion: "sa-east-1",
146
- },
147
- "us-east-1": {
148
- variants: [
149
- {
150
- hostname: "oidc.us-east-1.amazonaws.com",
151
- tags: [],
152
- },
153
- ],
154
- signingRegion: "us-east-1",
155
- },
156
- "us-east-2": {
157
- variants: [
158
- {
159
- hostname: "oidc.us-east-2.amazonaws.com",
160
- tags: [],
161
- },
162
- ],
163
- signingRegion: "us-east-2",
164
- },
165
- "us-gov-east-1": {
166
- variants: [
167
- {
168
- hostname: "oidc.us-gov-east-1.amazonaws.com",
169
- tags: [],
170
- },
171
- ],
172
- signingRegion: "us-gov-east-1",
173
- },
174
- "us-gov-west-1": {
175
- variants: [
176
- {
177
- hostname: "oidc.us-gov-west-1.amazonaws.com",
178
- tags: [],
179
- },
180
- ],
181
- signingRegion: "us-gov-west-1",
182
- },
183
- "us-west-2": {
184
- variants: [
185
- {
186
- hostname: "oidc.us-west-2.amazonaws.com",
187
- tags: [],
188
- },
189
- ],
190
- signingRegion: "us-west-2",
191
- },
192
- };
193
- const partitionHash = {
194
- aws: {
195
- regions: [
196
- "af-south-1",
197
- "ap-east-1",
198
- "ap-northeast-1",
199
- "ap-northeast-2",
200
- "ap-northeast-3",
201
- "ap-south-1",
202
- "ap-southeast-1",
203
- "ap-southeast-2",
204
- "ap-southeast-3",
205
- "ca-central-1",
206
- "eu-central-1",
207
- "eu-north-1",
208
- "eu-south-1",
209
- "eu-west-1",
210
- "eu-west-2",
211
- "eu-west-3",
212
- "me-central-1",
213
- "me-south-1",
214
- "sa-east-1",
215
- "us-east-1",
216
- "us-east-2",
217
- "us-west-1",
218
- "us-west-2",
219
- ],
220
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
221
- variants: [
222
- {
223
- hostname: "oidc.{region}.amazonaws.com",
224
- tags: [],
225
- },
226
- {
227
- hostname: "oidc-fips.{region}.amazonaws.com",
228
- tags: ["fips"],
229
- },
230
- {
231
- hostname: "oidc-fips.{region}.api.aws",
232
- tags: ["dualstack", "fips"],
233
- },
234
- {
235
- hostname: "oidc.{region}.api.aws",
236
- tags: ["dualstack"],
237
- },
238
- ],
239
- },
240
- "aws-cn": {
241
- regions: ["cn-north-1", "cn-northwest-1"],
242
- regionRegex: "^cn\\-\\w+\\-\\d+$",
243
- variants: [
244
- {
245
- hostname: "oidc.{region}.amazonaws.com.cn",
246
- tags: [],
247
- },
248
- {
249
- hostname: "oidc-fips.{region}.amazonaws.com.cn",
250
- tags: ["fips"],
251
- },
252
- {
253
- hostname: "oidc-fips.{region}.api.amazonwebservices.com.cn",
254
- tags: ["dualstack", "fips"],
255
- },
256
- {
257
- hostname: "oidc.{region}.api.amazonwebservices.com.cn",
258
- tags: ["dualstack"],
259
- },
260
- ],
261
- },
262
- "aws-iso": {
263
- regions: ["us-iso-east-1", "us-iso-west-1"],
264
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
265
- variants: [
266
- {
267
- hostname: "oidc.{region}.c2s.ic.gov",
268
- tags: [],
269
- },
270
- {
271
- hostname: "oidc-fips.{region}.c2s.ic.gov",
272
- tags: ["fips"],
273
- },
274
- ],
275
- },
276
- "aws-iso-b": {
277
- regions: ["us-isob-east-1"],
278
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
279
- variants: [
280
- {
281
- hostname: "oidc.{region}.sc2s.sgov.gov",
282
- tags: [],
283
- },
284
- {
285
- hostname: "oidc-fips.{region}.sc2s.sgov.gov",
286
- tags: ["fips"],
287
- },
288
- ],
289
- },
290
- "aws-us-gov": {
291
- regions: ["us-gov-east-1", "us-gov-west-1"],
292
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
293
- variants: [
294
- {
295
- hostname: "oidc.{region}.amazonaws.com",
296
- tags: [],
297
- },
298
- {
299
- hostname: "oidc-fips.{region}.amazonaws.com",
300
- tags: ["fips"],
301
- },
302
- {
303
- hostname: "oidc-fips.{region}.api.aws",
304
- tags: ["dualstack", "fips"],
305
- },
306
- {
307
- hostname: "oidc.{region}.api.aws",
308
- tags: ["dualstack"],
309
- },
310
- ],
311
- },
312
- };
313
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
314
- ...options,
315
- signingService: "awsssooidc",
316
- regionHash,
317
- partitionHash,
318
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;