tencentcloud-sdk-nodejs-intl-en 3.0.1149 → 3.0.1150
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/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/iap/index.js +3 -0
- package/tencentcloud/iap/v20240713/iap_client.js +111 -0
- package/tencentcloud/iap/v20240713/index.js +4 -0
- package/tencentcloud/iap/v20240713/models.js +558 -0
- package/tencentcloud/index.js +1 -0
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1150";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const ModifyIAPLoginSessionDurationRequest = models.ModifyIAPLoginSessionDurationRequest;
|
|
20
|
+
const DescribeIAPLoginSessionDurationRequest = models.DescribeIAPLoginSessionDurationRequest;
|
|
21
|
+
const CreateIAPUserOIDCConfigResponse = models.CreateIAPUserOIDCConfigResponse;
|
|
22
|
+
const CreateIAPUserOIDCConfigRequest = models.CreateIAPUserOIDCConfigRequest;
|
|
23
|
+
const DisableIAPUserSSOResponse = models.DisableIAPUserSSOResponse;
|
|
24
|
+
const DescribeIAPUserOIDCConfigRequest = models.DescribeIAPUserOIDCConfigRequest;
|
|
25
|
+
const ModifyIAPLoginSessionDurationResponse = models.ModifyIAPLoginSessionDurationResponse;
|
|
26
|
+
const DescribeIAPUserOIDCConfigResponse = models.DescribeIAPUserOIDCConfigResponse;
|
|
27
|
+
const UpdateIAPUserOIDCConfigResponse = models.UpdateIAPUserOIDCConfigResponse;
|
|
28
|
+
const UpdateIAPUserOIDCConfigRequest = models.UpdateIAPUserOIDCConfigRequest;
|
|
29
|
+
const DisableIAPUserSSORequest = models.DisableIAPUserSSORequest;
|
|
30
|
+
const DescribeIAPLoginSessionDurationResponse = models.DescribeIAPLoginSessionDurationResponse;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* iap client
|
|
35
|
+
* @class
|
|
36
|
+
*/
|
|
37
|
+
class IapClient extends AbstractClient {
|
|
38
|
+
|
|
39
|
+
constructor(credential, region, profile) {
|
|
40
|
+
super("iap.intl.tencentcloudapi.com", "2024-07-13", credential, region, profile);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* This API is used to modify a user OIDC configuration.
|
|
45
|
+
* @param {UpdateIAPUserOIDCConfigRequest} req
|
|
46
|
+
* @param {function(string, UpdateIAPUserOIDCConfigResponse):void} cb
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
UpdateIAPUserOIDCConfig(req, cb) {
|
|
50
|
+
let resp = new UpdateIAPUserOIDCConfigResponse();
|
|
51
|
+
this.request("UpdateIAPUserOIDCConfig", req, resp, cb);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* This API is used to query login session duration.
|
|
56
|
+
* @param {DescribeIAPLoginSessionDurationRequest} req
|
|
57
|
+
* @param {function(string, DescribeIAPLoginSessionDurationResponse):void} cb
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
DescribeIAPLoginSessionDuration(req, cb) {
|
|
61
|
+
let resp = new DescribeIAPLoginSessionDurationResponse();
|
|
62
|
+
this.request("DescribeIAPLoginSessionDuration", req, resp, cb);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* This API is used to query a user OIDC configuration.
|
|
67
|
+
* @param {DescribeIAPUserOIDCConfigRequest} req
|
|
68
|
+
* @param {function(string, DescribeIAPUserOIDCConfigResponse):void} cb
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
DescribeIAPUserOIDCConfig(req, cb) {
|
|
72
|
+
let resp = new DescribeIAPUserOIDCConfigResponse();
|
|
73
|
+
this.request("DescribeIAPUserOIDCConfig", req, resp, cb);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* This API is used to disable user SSO.
|
|
78
|
+
* @param {DisableIAPUserSSORequest} req
|
|
79
|
+
* @param {function(string, DisableIAPUserSSOResponse):void} cb
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
DisableIAPUserSSO(req, cb) {
|
|
83
|
+
let resp = new DisableIAPUserSSOResponse();
|
|
84
|
+
this.request("DisableIAPUserSSO", req, resp, cb);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* This API is used to create a user OIDC configuration. Only one user OIDC IdP can be created, and the user SAML SSO IdP will be automatically disabled after it is created.
|
|
89
|
+
* @param {CreateIAPUserOIDCConfigRequest} req
|
|
90
|
+
* @param {function(string, CreateIAPUserOIDCConfigResponse):void} cb
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
CreateIAPUserOIDCConfig(req, cb) {
|
|
94
|
+
let resp = new CreateIAPUserOIDCConfigResponse();
|
|
95
|
+
this.request("CreateIAPUserOIDCConfig", req, resp, cb);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* This API is used to modify login session duration.
|
|
100
|
+
* @param {ModifyIAPLoginSessionDurationRequest} req
|
|
101
|
+
* @param {function(string, ModifyIAPLoginSessionDurationResponse):void} cb
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
ModifyIAPLoginSessionDuration(req, cb) {
|
|
105
|
+
let resp = new ModifyIAPLoginSessionDurationResponse();
|
|
106
|
+
this.request("ModifyIAPLoginSessionDuration", req, resp, cb);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
module.exports = IapClient;
|
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ModifyIAPLoginSessionDuration request structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class ModifyIAPLoginSessionDurationRequest extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Login session duration.
|
|
29
|
+
* @type {number || null}
|
|
30
|
+
*/
|
|
31
|
+
this.Duration = null;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
deserialize(params) {
|
|
39
|
+
if (!params) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.Duration = 'Duration' in params ? params.Duration : null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* DescribeIAPLoginSessionDuration request structure.
|
|
49
|
+
* @class
|
|
50
|
+
*/
|
|
51
|
+
class DescribeIAPLoginSessionDurationRequest extends AbstractModel {
|
|
52
|
+
constructor(){
|
|
53
|
+
super();
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
deserialize(params) {
|
|
61
|
+
if (!params) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* CreateIAPUserOIDCConfig response structure.
|
|
70
|
+
* @class
|
|
71
|
+
*/
|
|
72
|
+
class CreateIAPUserOIDCConfigResponse extends AbstractModel {
|
|
73
|
+
constructor(){
|
|
74
|
+
super();
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
78
|
+
* @type {string || null}
|
|
79
|
+
*/
|
|
80
|
+
this.RequestId = null;
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
deserialize(params) {
|
|
88
|
+
if (!params) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* CreateIAPUserOIDCConfig request structure.
|
|
98
|
+
* @class
|
|
99
|
+
*/
|
|
100
|
+
class CreateIAPUserOIDCConfigRequest extends AbstractModel {
|
|
101
|
+
constructor(){
|
|
102
|
+
super();
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
106
|
+
* @type {string || null}
|
|
107
|
+
*/
|
|
108
|
+
this.IdentityUrl = null;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Client ID registered with the OpenID Connect IdP.
|
|
112
|
+
* @type {string || null}
|
|
113
|
+
*/
|
|
114
|
+
this.ClientId = null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
118
|
+
* @type {string || null}
|
|
119
|
+
*/
|
|
120
|
+
this.AuthorizationEndpoint = null;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Authorization response type, which is always id_token.
|
|
124
|
+
* @type {string || null}
|
|
125
|
+
*/
|
|
126
|
+
this.ResponseType = null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
130
|
+
* @type {string || null}
|
|
131
|
+
*/
|
|
132
|
+
this.ResponseMode = null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
136
|
+
* @type {string || null}
|
|
137
|
+
*/
|
|
138
|
+
this.MappingFiled = null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Signature public key, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
142
|
+
* @type {string || null}
|
|
143
|
+
*/
|
|
144
|
+
this.IdentityKey = null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Authorization information scope. Valid values: openid (default); email; profile.
|
|
148
|
+
* @type {Array.<string> || null}
|
|
149
|
+
*/
|
|
150
|
+
this.Scope = null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Description
|
|
154
|
+
* @type {string || null}
|
|
155
|
+
*/
|
|
156
|
+
this.Description = null;
|
|
157
|
+
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
deserialize(params) {
|
|
164
|
+
if (!params) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
this.IdentityUrl = 'IdentityUrl' in params ? params.IdentityUrl : null;
|
|
168
|
+
this.ClientId = 'ClientId' in params ? params.ClientId : null;
|
|
169
|
+
this.AuthorizationEndpoint = 'AuthorizationEndpoint' in params ? params.AuthorizationEndpoint : null;
|
|
170
|
+
this.ResponseType = 'ResponseType' in params ? params.ResponseType : null;
|
|
171
|
+
this.ResponseMode = 'ResponseMode' in params ? params.ResponseMode : null;
|
|
172
|
+
this.MappingFiled = 'MappingFiled' in params ? params.MappingFiled : null;
|
|
173
|
+
this.IdentityKey = 'IdentityKey' in params ? params.IdentityKey : null;
|
|
174
|
+
this.Scope = 'Scope' in params ? params.Scope : null;
|
|
175
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
176
|
+
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* DisableIAPUserSSO response structure.
|
|
182
|
+
* @class
|
|
183
|
+
*/
|
|
184
|
+
class DisableIAPUserSSOResponse extends AbstractModel {
|
|
185
|
+
constructor(){
|
|
186
|
+
super();
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
190
|
+
* @type {string || null}
|
|
191
|
+
*/
|
|
192
|
+
this.RequestId = null;
|
|
193
|
+
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @private
|
|
198
|
+
*/
|
|
199
|
+
deserialize(params) {
|
|
200
|
+
if (!params) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* DescribeIAPUserOIDCConfig request structure.
|
|
210
|
+
* @class
|
|
211
|
+
*/
|
|
212
|
+
class DescribeIAPUserOIDCConfigRequest extends AbstractModel {
|
|
213
|
+
constructor(){
|
|
214
|
+
super();
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @private
|
|
220
|
+
*/
|
|
221
|
+
deserialize(params) {
|
|
222
|
+
if (!params) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* ModifyIAPLoginSessionDuration response structure.
|
|
231
|
+
* @class
|
|
232
|
+
*/
|
|
233
|
+
class ModifyIAPLoginSessionDurationResponse extends AbstractModel {
|
|
234
|
+
constructor(){
|
|
235
|
+
super();
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
239
|
+
* @type {string || null}
|
|
240
|
+
*/
|
|
241
|
+
this.RequestId = null;
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @private
|
|
247
|
+
*/
|
|
248
|
+
deserialize(params) {
|
|
249
|
+
if (!params) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
253
|
+
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* DescribeIAPUserOIDCConfig response structure.
|
|
259
|
+
* @class
|
|
260
|
+
*/
|
|
261
|
+
class DescribeIAPUserOIDCConfigResponse extends AbstractModel {
|
|
262
|
+
constructor(){
|
|
263
|
+
super();
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* IdP type. 13: IAP user OIDC IdP.
|
|
267
|
+
* @type {number || null}
|
|
268
|
+
*/
|
|
269
|
+
this.ProviderType = null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* IdP URL.
|
|
273
|
+
* @type {string || null}
|
|
274
|
+
*/
|
|
275
|
+
this.IdentityUrl = null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Public key for signature.
|
|
279
|
+
* @type {string || null}
|
|
280
|
+
*/
|
|
281
|
+
this.IdentityKey = null;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Client ID.
|
|
285
|
+
* @type {string || null}
|
|
286
|
+
*/
|
|
287
|
+
this.ClientId = null;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Status. 0: Not set; 2: Disabled; 11: Enabled.
|
|
291
|
+
* @type {number || null}
|
|
292
|
+
*/
|
|
293
|
+
this.Status = null;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The verification fingerprint of the HTTPS CA certificate. English letters and digits are allowed, and each fingerprint is 40 characters long, with a maximum of 5 fingerprints.
|
|
297
|
+
* @type {Array.<string> || null}
|
|
298
|
+
*/
|
|
299
|
+
this.Fingerprints = null;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Whether to enable the automatic use of the OIDC signature public key. 1: Yes, 2: No (default).
|
|
303
|
+
* @type {number || null}
|
|
304
|
+
*/
|
|
305
|
+
this.EnableAutoPublicKey = null;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Authorization endpoint.
|
|
309
|
+
* @type {string || null}
|
|
310
|
+
*/
|
|
311
|
+
this.AuthorizationEndpoint = null;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Authorization scope.
|
|
315
|
+
* @type {Array.<string> || null}
|
|
316
|
+
*/
|
|
317
|
+
this.Scope = null;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Authorization response type.
|
|
321
|
+
* @type {string || null}
|
|
322
|
+
*/
|
|
323
|
+
this.ResponseType = null;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Authorization response mode.
|
|
327
|
+
* @type {string || null}
|
|
328
|
+
*/
|
|
329
|
+
this.ResponseMode = null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Mapping field name.
|
|
333
|
+
* @type {string || null}
|
|
334
|
+
*/
|
|
335
|
+
this.MappingFiled = null;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Description
|
|
339
|
+
* @type {string || null}
|
|
340
|
+
*/
|
|
341
|
+
this.Description = null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
345
|
+
* @type {string || null}
|
|
346
|
+
*/
|
|
347
|
+
this.RequestId = null;
|
|
348
|
+
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @private
|
|
353
|
+
*/
|
|
354
|
+
deserialize(params) {
|
|
355
|
+
if (!params) {
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
this.ProviderType = 'ProviderType' in params ? params.ProviderType : null;
|
|
359
|
+
this.IdentityUrl = 'IdentityUrl' in params ? params.IdentityUrl : null;
|
|
360
|
+
this.IdentityKey = 'IdentityKey' in params ? params.IdentityKey : null;
|
|
361
|
+
this.ClientId = 'ClientId' in params ? params.ClientId : null;
|
|
362
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
363
|
+
this.Fingerprints = 'Fingerprints' in params ? params.Fingerprints : null;
|
|
364
|
+
this.EnableAutoPublicKey = 'EnableAutoPublicKey' in params ? params.EnableAutoPublicKey : null;
|
|
365
|
+
this.AuthorizationEndpoint = 'AuthorizationEndpoint' in params ? params.AuthorizationEndpoint : null;
|
|
366
|
+
this.Scope = 'Scope' in params ? params.Scope : null;
|
|
367
|
+
this.ResponseType = 'ResponseType' in params ? params.ResponseType : null;
|
|
368
|
+
this.ResponseMode = 'ResponseMode' in params ? params.ResponseMode : null;
|
|
369
|
+
this.MappingFiled = 'MappingFiled' in params ? params.MappingFiled : null;
|
|
370
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
371
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
372
|
+
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* UpdateIAPUserOIDCConfig response structure.
|
|
378
|
+
* @class
|
|
379
|
+
*/
|
|
380
|
+
class UpdateIAPUserOIDCConfigResponse extends AbstractModel {
|
|
381
|
+
constructor(){
|
|
382
|
+
super();
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
386
|
+
* @type {string || null}
|
|
387
|
+
*/
|
|
388
|
+
this.RequestId = null;
|
|
389
|
+
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @private
|
|
394
|
+
*/
|
|
395
|
+
deserialize(params) {
|
|
396
|
+
if (!params) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
400
|
+
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* UpdateIAPUserOIDCConfig request structure.
|
|
406
|
+
* @class
|
|
407
|
+
*/
|
|
408
|
+
class UpdateIAPUserOIDCConfigRequest extends AbstractModel {
|
|
409
|
+
constructor(){
|
|
410
|
+
super();
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
414
|
+
* @type {string || null}
|
|
415
|
+
*/
|
|
416
|
+
this.IdentityUrl = null;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Client ID registered with the OpenID Connect IdP.
|
|
420
|
+
* @type {string || null}
|
|
421
|
+
*/
|
|
422
|
+
this.ClientId = null;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
426
|
+
* @type {string || null}
|
|
427
|
+
*/
|
|
428
|
+
this.AuthorizationEndpoint = null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Authorization response type, which is always id_token.
|
|
432
|
+
* @type {string || null}
|
|
433
|
+
*/
|
|
434
|
+
this.ResponseType = null;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
438
|
+
* @type {string || null}
|
|
439
|
+
*/
|
|
440
|
+
this.ResponseMode = null;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
444
|
+
* @type {string || null}
|
|
445
|
+
*/
|
|
446
|
+
this.MappingFiled = null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* RSA signature public key in the JWKS format, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
450
|
+
* @type {string || null}
|
|
451
|
+
*/
|
|
452
|
+
this.IdentityKey = null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Authorization information scope. Valid values: openid (default); email; profile.
|
|
456
|
+
* @type {Array.<string> || null}
|
|
457
|
+
*/
|
|
458
|
+
this.Scope = null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Description, with a length of 1 to 255 English or Chinese characters. It is empty by default.
|
|
462
|
+
* @type {string || null}
|
|
463
|
+
*/
|
|
464
|
+
this.Description = null;
|
|
465
|
+
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @private
|
|
470
|
+
*/
|
|
471
|
+
deserialize(params) {
|
|
472
|
+
if (!params) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
this.IdentityUrl = 'IdentityUrl' in params ? params.IdentityUrl : null;
|
|
476
|
+
this.ClientId = 'ClientId' in params ? params.ClientId : null;
|
|
477
|
+
this.AuthorizationEndpoint = 'AuthorizationEndpoint' in params ? params.AuthorizationEndpoint : null;
|
|
478
|
+
this.ResponseType = 'ResponseType' in params ? params.ResponseType : null;
|
|
479
|
+
this.ResponseMode = 'ResponseMode' in params ? params.ResponseMode : null;
|
|
480
|
+
this.MappingFiled = 'MappingFiled' in params ? params.MappingFiled : null;
|
|
481
|
+
this.IdentityKey = 'IdentityKey' in params ? params.IdentityKey : null;
|
|
482
|
+
this.Scope = 'Scope' in params ? params.Scope : null;
|
|
483
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
484
|
+
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* DisableIAPUserSSO request structure.
|
|
490
|
+
* @class
|
|
491
|
+
*/
|
|
492
|
+
class DisableIAPUserSSORequest extends AbstractModel {
|
|
493
|
+
constructor(){
|
|
494
|
+
super();
|
|
495
|
+
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @private
|
|
500
|
+
*/
|
|
501
|
+
deserialize(params) {
|
|
502
|
+
if (!params) {
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* DescribeIAPLoginSessionDuration response structure.
|
|
511
|
+
* @class
|
|
512
|
+
*/
|
|
513
|
+
class DescribeIAPLoginSessionDurationResponse extends AbstractModel {
|
|
514
|
+
constructor(){
|
|
515
|
+
super();
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Login session duration.
|
|
519
|
+
* @type {number || null}
|
|
520
|
+
*/
|
|
521
|
+
this.Duration = null;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
525
|
+
* @type {string || null}
|
|
526
|
+
*/
|
|
527
|
+
this.RequestId = null;
|
|
528
|
+
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @private
|
|
533
|
+
*/
|
|
534
|
+
deserialize(params) {
|
|
535
|
+
if (!params) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
this.Duration = 'Duration' in params ? params.Duration : null;
|
|
539
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
540
|
+
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
module.exports = {
|
|
545
|
+
ModifyIAPLoginSessionDurationRequest: ModifyIAPLoginSessionDurationRequest,
|
|
546
|
+
DescribeIAPLoginSessionDurationRequest: DescribeIAPLoginSessionDurationRequest,
|
|
547
|
+
CreateIAPUserOIDCConfigResponse: CreateIAPUserOIDCConfigResponse,
|
|
548
|
+
CreateIAPUserOIDCConfigRequest: CreateIAPUserOIDCConfigRequest,
|
|
549
|
+
DisableIAPUserSSOResponse: DisableIAPUserSSOResponse,
|
|
550
|
+
DescribeIAPUserOIDCConfigRequest: DescribeIAPUserOIDCConfigRequest,
|
|
551
|
+
ModifyIAPLoginSessionDurationResponse: ModifyIAPLoginSessionDurationResponse,
|
|
552
|
+
DescribeIAPUserOIDCConfigResponse: DescribeIAPUserOIDCConfigResponse,
|
|
553
|
+
UpdateIAPUserOIDCConfigResponse: UpdateIAPUserOIDCConfigResponse,
|
|
554
|
+
UpdateIAPUserOIDCConfigRequest: UpdateIAPUserOIDCConfigRequest,
|
|
555
|
+
DisableIAPUserSSORequest: DisableIAPUserSSORequest,
|
|
556
|
+
DescribeIAPLoginSessionDurationResponse: DescribeIAPLoginSessionDurationResponse,
|
|
557
|
+
|
|
558
|
+
}
|
package/tencentcloud/index.js
CHANGED