@alicloud/eiam20211201 2.17.5 → 2.17.6
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/dist/client.js +1 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCredentialProviderRequest.d.ts +43 -14
- package/dist/models/CreateCredentialProviderRequest.js +14 -0
- package/dist/models/CreateCredentialProviderRequest.js.map +1 -1
- package/dist/models/GetCredentialProviderResponseBody.d.ts +51 -15
- package/dist/models/GetCredentialProviderResponseBody.js +16 -0
- package/dist/models/GetCredentialProviderResponseBody.js.map +1 -1
- package/dist/models/ListCredentialProvidersRequest.d.ts +0 -3
- package/dist/models/ListCredentialProvidersRequest.js.map +1 -1
- package/dist/models/ListCredentialProvidersResponseBody.d.ts +51 -28
- package/dist/models/ListCredentialProvidersResponseBody.js +16 -0
- package/dist/models/ListCredentialProvidersResponseBody.js.map +1 -1
- package/dist/models/UpdateCredentialProviderRequest.d.ts +39 -6
- package/dist/models/UpdateCredentialProviderRequest.js +14 -0
- package/dist/models/UpdateCredentialProviderRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -0
- package/src/models/CreateCredentialProviderRequest.ts +57 -14
- package/src/models/GetCredentialProviderResponseBody.ts +67 -15
- package/src/models/ListCredentialProvidersRequest.ts +0 -3
- package/src/models/ListCredentialProvidersResponseBody.ts +67 -28
- package/src/models/UpdateCredentialProviderRequest.ts +53 -6
|
@@ -10,7 +10,7 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
10
10
|
allowedTokenIssuers?: string[];
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Specifies whether to enable the JWT-derived short token capability.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* false
|
|
@@ -26,7 +26,7 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
26
26
|
expiration?: number;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
*
|
|
29
|
+
* Specifies whether to enable JWT expiration cleanup.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* true
|
|
@@ -85,24 +85,58 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
85
85
|
export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialProviderConfigOAuthProviderConfig extends $dara.Model {
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* The
|
|
88
|
+
* The endpoint URL used to guide users through authorization. Conditionally required: this parameter is required when AuthorizationFlow is set to user_federation and ProviderVendor is set to custom. For preset vendors, this value can be automatically populated through DiscoveryUrl.
|
|
89
|
+
*/
|
|
90
|
+
authorizationEndpoint?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The OAuth authorization flow type. Valid values:
|
|
94
|
+
* - m2m: machine-to-machine (2LO, Client Credentials).
|
|
95
|
+
* - user_federation: user federation (3LO, Authorization Code).
|
|
96
|
+
*/
|
|
97
|
+
authorizationFlow?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The client_id in the OAuth protocol.
|
|
89
101
|
*
|
|
90
102
|
* @example
|
|
91
103
|
* client_id_example_xxx
|
|
92
104
|
*/
|
|
93
105
|
clientId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The URL of the discovery document used to automatically obtain OAuth endpoint configurations. Conditionally optional: used when AuthorizationFlow is set to user_federation. If DiscoveryUrl is not provided, you must manually configure fields such as TokenEndpoint and AuthorizationEndpoint.
|
|
109
|
+
*/
|
|
110
|
+
discoveryUrl?: string;
|
|
111
|
+
issuer?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* The method used to generate the PKCE code_challenge. Default value: s256.
|
|
115
|
+
*/
|
|
116
|
+
pkceChallengeMethod?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* Specifies whether to use the PKCE extension to enhance security. We recommend that you always enable this feature.
|
|
120
|
+
*/
|
|
121
|
+
pkceEnabled?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The preset vendor or custom configuration. Optional. Default value: custom.
|
|
125
|
+
*/
|
|
126
|
+
providerVendor?: string;
|
|
94
127
|
/**
|
|
95
128
|
* @remarks
|
|
96
129
|
* The scope in the OAuth protocol, which specifies the permission scope.
|
|
97
130
|
*
|
|
98
|
-
* > The Scope configuration of the OAuth credential provider serves as the default value. If the scope parameter is not specified when calling the DeveloperAPI to obtain an OAuth access token, the Scope configuration of the credential provider is used for token issuance.
|
|
99
|
-
*
|
|
100
|
-
* >Notice: Multiple Scope values are separated by spaces.
|
|
101
|
-
*
|
|
102
131
|
* @example
|
|
103
132
|
* example:test_01 example:test_02
|
|
104
133
|
*/
|
|
105
134
|
scope?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @remarks
|
|
137
|
+
* The redirect URI automatically generated by the system when the credential provider is created. Configure this value as the redirect_uri in the OAuth provider.
|
|
138
|
+
*/
|
|
139
|
+
systemRedirectUri?: string;
|
|
106
140
|
/**
|
|
107
141
|
* @remarks
|
|
108
142
|
* The token endpoint of the OAuth protocol.
|
|
@@ -113,16 +147,32 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
113
147
|
tokenEndpoint?: string;
|
|
114
148
|
static names(): { [key: string]: string } {
|
|
115
149
|
return {
|
|
150
|
+
authorizationEndpoint: 'AuthorizationEndpoint',
|
|
151
|
+
authorizationFlow: 'AuthorizationFlow',
|
|
116
152
|
clientId: 'ClientId',
|
|
153
|
+
discoveryUrl: 'DiscoveryUrl',
|
|
154
|
+
issuer: 'Issuer',
|
|
155
|
+
pkceChallengeMethod: 'PkceChallengeMethod',
|
|
156
|
+
pkceEnabled: 'PkceEnabled',
|
|
157
|
+
providerVendor: 'ProviderVendor',
|
|
117
158
|
scope: 'Scope',
|
|
159
|
+
systemRedirectUri: 'SystemRedirectUri',
|
|
118
160
|
tokenEndpoint: 'TokenEndpoint',
|
|
119
161
|
};
|
|
120
162
|
}
|
|
121
163
|
|
|
122
164
|
static types(): { [key: string]: any } {
|
|
123
165
|
return {
|
|
166
|
+
authorizationEndpoint: 'string',
|
|
167
|
+
authorizationFlow: 'string',
|
|
124
168
|
clientId: 'string',
|
|
169
|
+
discoveryUrl: 'string',
|
|
170
|
+
issuer: 'string',
|
|
171
|
+
pkceChallengeMethod: 'string',
|
|
172
|
+
pkceEnabled: 'boolean',
|
|
173
|
+
providerVendor: 'string',
|
|
125
174
|
scope: 'string',
|
|
175
|
+
systemRedirectUri: 'string',
|
|
126
176
|
tokenEndpoint: 'string',
|
|
127
177
|
};
|
|
128
178
|
}
|
|
@@ -139,19 +189,17 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
139
189
|
export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialProviderConfig extends $dara.Model {
|
|
140
190
|
/**
|
|
141
191
|
* @remarks
|
|
142
|
-
* The configuration of the JWT credential provider.
|
|
192
|
+
* The configuration of the JWT-type credential provider.
|
|
143
193
|
*/
|
|
144
194
|
jwtProviderConfig?: ListCredentialProvidersResponseBodyCredentialProvidersCredentialProviderConfigJwtProviderConfig;
|
|
145
195
|
/**
|
|
146
196
|
* @remarks
|
|
147
|
-
* The configuration of the OAuth credential provider.
|
|
197
|
+
* The configuration of the OAuth-type credential provider.
|
|
148
198
|
*/
|
|
149
199
|
OAuthProviderConfig?: ListCredentialProvidersResponseBodyCredentialProvidersCredentialProviderConfigOAuthProviderConfig;
|
|
150
200
|
/**
|
|
151
201
|
* @remarks
|
|
152
|
-
* The list of credential IDs that correspond to the sensitive
|
|
153
|
-
*
|
|
154
|
-
* > The system securely stores the sensitive configuration of the credential provider as credentials.
|
|
202
|
+
* The list of credential IDs that correspond to the sensitive configurations of the credential provider.
|
|
155
203
|
*/
|
|
156
204
|
providerCredentialIds?: string[];
|
|
157
205
|
static names(): { [key: string]: string } {
|
|
@@ -191,7 +239,7 @@ export class ListCredentialProvidersResponseBodyCredentialProvidersCredentialPro
|
|
|
191
239
|
export class ListCredentialProvidersResponseBodyCredentialProviders extends $dara.Model {
|
|
192
240
|
/**
|
|
193
241
|
* @remarks
|
|
194
|
-
* The
|
|
242
|
+
* The time when the credential provider was created. The value is a UNIX timestamp in milliseconds.
|
|
195
243
|
*
|
|
196
244
|
* @example
|
|
197
245
|
* 1649830225000
|
|
@@ -199,16 +247,13 @@ export class ListCredentialProvidersResponseBodyCredentialProviders extends $dar
|
|
|
199
247
|
createTime?: number;
|
|
200
248
|
/**
|
|
201
249
|
* @remarks
|
|
202
|
-
* The credential provider
|
|
250
|
+
* The configuration of the credential provider.
|
|
203
251
|
*/
|
|
204
252
|
credentialProviderConfig?: ListCredentialProvidersResponseBodyCredentialProvidersCredentialProviderConfig;
|
|
205
253
|
/**
|
|
206
254
|
* @remarks
|
|
207
255
|
* The creation type of the credential provider. Valid values:
|
|
208
256
|
*
|
|
209
|
-
* - system_init: Created by the system.
|
|
210
|
-
* - user_custom: Created by the user.
|
|
211
|
-
*
|
|
212
257
|
* @example
|
|
213
258
|
* user_custom
|
|
214
259
|
*/
|
|
@@ -223,7 +268,7 @@ export class ListCredentialProvidersResponseBodyCredentialProviders extends $dar
|
|
|
223
268
|
credentialProviderId?: string;
|
|
224
269
|
/**
|
|
225
270
|
* @remarks
|
|
226
|
-
* The credential provider
|
|
271
|
+
* The business identifier of the credential provider.
|
|
227
272
|
*
|
|
228
273
|
* @example
|
|
229
274
|
* test_example_identifier
|
|
@@ -231,7 +276,7 @@ export class ListCredentialProvidersResponseBodyCredentialProviders extends $dar
|
|
|
231
276
|
credentialProviderIdentifier?: string;
|
|
232
277
|
/**
|
|
233
278
|
* @remarks
|
|
234
|
-
* The credential provider
|
|
279
|
+
* The name of the credential provider.
|
|
235
280
|
*
|
|
236
281
|
* @example
|
|
237
282
|
* test_example_name
|
|
@@ -241,16 +286,13 @@ export class ListCredentialProvidersResponseBodyCredentialProviders extends $dar
|
|
|
241
286
|
* @remarks
|
|
242
287
|
* The credential provider type. Valid values:
|
|
243
288
|
*
|
|
244
|
-
* - oauth: OAuth credential provider.
|
|
245
|
-
* - jwt: JWT credential provider.
|
|
246
|
-
*
|
|
247
289
|
* @example
|
|
248
290
|
* oauth
|
|
249
291
|
*/
|
|
250
292
|
credentialProviderType?: string;
|
|
251
293
|
/**
|
|
252
294
|
* @remarks
|
|
253
|
-
* The description.
|
|
295
|
+
* The description of the credential provider.
|
|
254
296
|
*
|
|
255
297
|
* @example
|
|
256
298
|
* This is an example description
|
|
@@ -268,16 +310,13 @@ export class ListCredentialProvidersResponseBodyCredentialProviders extends $dar
|
|
|
268
310
|
* @remarks
|
|
269
311
|
* The credential provider status. Valid values:
|
|
270
312
|
*
|
|
271
|
-
* - enabled: Enabled.
|
|
272
|
-
* - disabled: Disabled.
|
|
273
|
-
*
|
|
274
313
|
* @example
|
|
275
314
|
* enabled
|
|
276
315
|
*/
|
|
277
316
|
status?: string;
|
|
278
317
|
/**
|
|
279
318
|
* @remarks
|
|
280
|
-
* The
|
|
319
|
+
* The time when the credential provider was last updated. The value is a UNIX timestamp in milliseconds.
|
|
281
320
|
*
|
|
282
321
|
* @example
|
|
283
322
|
* 1649830225000
|
|
@@ -343,7 +382,7 @@ export class ListCredentialProvidersResponseBody extends $dara.Model {
|
|
|
343
382
|
maxResults?: number;
|
|
344
383
|
/**
|
|
345
384
|
* @remarks
|
|
346
|
-
* The pagination token returned
|
|
385
|
+
* The pagination token returned in this call.
|
|
347
386
|
*
|
|
348
387
|
* @example
|
|
349
388
|
* NTxxxexample
|
|
@@ -9,12 +9,12 @@ export class UpdateCredentialProviderRequestCredentialProviderConfigJwtProviderC
|
|
|
9
9
|
*
|
|
10
10
|
* > The list cannot contain more than 200 entries.
|
|
11
11
|
*
|
|
12
|
-
* >Notice: To clear the issuer list, pass an empty list or an empty string.
|
|
12
|
+
* >Notice: To clear the issuer list, pass an empty list or an empty string when calling the API.
|
|
13
13
|
*/
|
|
14
14
|
allowedTokenIssuers?: string[];
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* Specifies whether to enable the JWT derived short token
|
|
17
|
+
* Specifies whether to enable the JWT derived short token capability.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* false
|
|
@@ -69,7 +69,19 @@ export class UpdateCredentialProviderRequestCredentialProviderConfigJwtProviderC
|
|
|
69
69
|
export class UpdateCredentialProviderRequestCredentialProviderConfigOAuthProviderConfig extends $dara.Model {
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The
|
|
72
|
+
* The endpoint URL used to guide users through authorization. Conditionally required: this parameter is required when AuthorizationFlow is set to user_federation and ProviderVendor is set to custom. For preset vendors, this value can be automatically populated through DiscoveryUrl.
|
|
73
|
+
*/
|
|
74
|
+
authorizationEndpoint?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The OAuth authorization flow type. Valid values:
|
|
78
|
+
* - m2m: Machine-to-machine (2LO, Client Credentials).
|
|
79
|
+
* - user_federation: User federation (3LO, Authorization Code).
|
|
80
|
+
*/
|
|
81
|
+
authorizationFlow?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The client_secret in the OAuth protocol.
|
|
73
85
|
*
|
|
74
86
|
* > The value cannot exceed 1024 characters in length.
|
|
75
87
|
*
|
|
@@ -77,15 +89,36 @@ export class UpdateCredentialProviderRequestCredentialProviderConfigOAuthProvide
|
|
|
77
89
|
* client_secret_example_xxx
|
|
78
90
|
*/
|
|
79
91
|
clientSecret?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* The Discovery document URL used to automatically retrieve OAuth endpoint configurations. Conditionally optional: this parameter is used when AuthorizationFlow is set to user_federation. If DiscoveryUrl is not provided, you must manually configure fields such as TokenEndpoint and AuthorizationEndpoint.
|
|
95
|
+
*/
|
|
96
|
+
discoveryUrl?: string;
|
|
97
|
+
issuer?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The PKCE code_challenge generation method. Default value: s256.
|
|
101
|
+
*/
|
|
102
|
+
pkceChallengeMethod?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* Specifies whether to use the PKCE extension for enhanced security. We recommend that you always enable this feature.
|
|
106
|
+
*/
|
|
107
|
+
pkceEnabled?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* The preset vendor or custom configuration. This parameter is optional. Default value: custom.
|
|
111
|
+
*/
|
|
112
|
+
providerVendor?: string;
|
|
80
113
|
/**
|
|
81
114
|
* @remarks
|
|
82
115
|
* The scope in the OAuth protocol, which specifies the permission scope.
|
|
83
116
|
*
|
|
84
|
-
* > The Scope configuration
|
|
117
|
+
* > The Scope configuration on the OAuth credential provider serves as a fallback value. If the scope parameter is not specified when calling the DeveloperAPI to obtain an OAuth Access Token, the Scope configuration on the credential provider is used for token issuance.
|
|
85
118
|
*
|
|
86
119
|
* >Notice: Separate multiple Scope values with spaces. To clear the Scope configuration, pass an empty string.
|
|
87
120
|
*
|
|
88
|
-
* Restrictions
|
|
121
|
+
* Restrictions for each individual Scope value:
|
|
89
122
|
* 1. Allowed characters: lowercase letters, digits, and special characters `|/:_-.`
|
|
90
123
|
* 2. Must contain at least one lowercase letter or digit.
|
|
91
124
|
* 3. Must start with a special character `.`, a lowercase letter, or a digit.
|
|
@@ -107,7 +140,14 @@ export class UpdateCredentialProviderRequestCredentialProviderConfigOAuthProvide
|
|
|
107
140
|
tokenEndpoint?: string;
|
|
108
141
|
static names(): { [key: string]: string } {
|
|
109
142
|
return {
|
|
143
|
+
authorizationEndpoint: 'AuthorizationEndpoint',
|
|
144
|
+
authorizationFlow: 'AuthorizationFlow',
|
|
110
145
|
clientSecret: 'ClientSecret',
|
|
146
|
+
discoveryUrl: 'DiscoveryUrl',
|
|
147
|
+
issuer: 'Issuer',
|
|
148
|
+
pkceChallengeMethod: 'PkceChallengeMethod',
|
|
149
|
+
pkceEnabled: 'PkceEnabled',
|
|
150
|
+
providerVendor: 'ProviderVendor',
|
|
111
151
|
scope: 'Scope',
|
|
112
152
|
tokenEndpoint: 'TokenEndpoint',
|
|
113
153
|
};
|
|
@@ -115,7 +155,14 @@ export class UpdateCredentialProviderRequestCredentialProviderConfigOAuthProvide
|
|
|
115
155
|
|
|
116
156
|
static types(): { [key: string]: any } {
|
|
117
157
|
return {
|
|
158
|
+
authorizationEndpoint: 'string',
|
|
159
|
+
authorizationFlow: 'string',
|
|
118
160
|
clientSecret: 'string',
|
|
161
|
+
discoveryUrl: 'string',
|
|
162
|
+
issuer: 'string',
|
|
163
|
+
pkceChallengeMethod: 'string',
|
|
164
|
+
pkceEnabled: 'boolean',
|
|
165
|
+
providerVendor: 'string',
|
|
119
166
|
scope: 'string',
|
|
120
167
|
tokenEndpoint: 'string',
|
|
121
168
|
};
|
|
@@ -175,7 +222,7 @@ export class UpdateCredentialProviderRequest extends $dara.Model {
|
|
|
175
222
|
* @remarks
|
|
176
223
|
* The idempotency token that ensures the idempotence of the request.
|
|
177
224
|
*
|
|
178
|
-
* Generate a unique parameter value from your client to ensure
|
|
225
|
+
* Generate a unique parameter value from your client to ensure uniqueness across different requests. ClientToken supports only ASCII characters and cannot exceed 64 characters in length. For more information, see References: [How to ensure idempotence](https://www.alibabacloud.com/help/zh/ecs/developer-reference/how-to-ensure-idempotence).
|
|
179
226
|
*
|
|
180
227
|
* This parameter is required.
|
|
181
228
|
*
|