@emilgroup/tenant-sdk-node 1.39.1-beta.23 → 1.39.1-beta.25
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/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/ssoconnection-api.ts +431 -0
- package/dist/api/ssoconnection-api.d.ts +234 -0
- package/dist/api/ssoconnection-api.js +377 -0
- package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-admin-tenant-request-dto.js +5 -0
- package/dist/models/create-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-tenant-request-dto.js +5 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/oidc-sso-details-update-dto.d.ts +36 -0
- package/dist/models/oidc-sso-details-update-dto.js +15 -0
- package/dist/models/update-sso-connection-body-dto.d.ts +39 -0
- package/dist/models/update-sso-connection-body-dto.js +15 -0
- package/dist/models/update-sso-connection-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-response-class.js +15 -0
- package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-connection-status-body-dto.js +15 -0
- package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-status-response-class.js +15 -0
- package/models/create-admin-tenant-request-dto.ts +14 -0
- package/models/create-tenant-request-dto.ts +14 -0
- package/models/index.ts +5 -0
- package/models/oidc-sso-details-update-dto.ts +42 -0
- package/models/update-sso-connection-body-dto.ts +45 -0
- package/models/update-sso-connection-response-class.ts +31 -0
- package/models/update-sso-connection-status-body-dto.ts +30 -0
- package/models/update-sso-connection-status-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -118,6 +118,7 @@ models/list-user-group-members-response-class.ts
|
|
|
118
118
|
models/list-user-groups-response-class.ts
|
|
119
119
|
models/list-users-response-class.ts
|
|
120
120
|
models/oidc-sso-details-input-dto.ts
|
|
121
|
+
models/oidc-sso-details-update-dto.ts
|
|
121
122
|
models/org-invitation-class.ts
|
|
122
123
|
models/org-invitation-response-class.ts
|
|
123
124
|
models/organization-class.ts
|
|
@@ -163,6 +164,10 @@ models/update-organization-request-dto-rest.ts
|
|
|
163
164
|
models/update-organization-response-class.ts
|
|
164
165
|
models/update-report-schedule-request-dto.ts
|
|
165
166
|
models/update-report-schedule-response-class.ts
|
|
167
|
+
models/update-sso-connection-body-dto.ts
|
|
168
|
+
models/update-sso-connection-response-class.ts
|
|
169
|
+
models/update-sso-connection-status-body-dto.ts
|
|
170
|
+
models/update-sso-connection-status-response-class.ts
|
|
166
171
|
models/update-user-group-request-dto.ts
|
|
167
172
|
models/update-user-group-response-class.ts
|
|
168
173
|
models/user-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/tenant-sdk-node@1.39.1-beta.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.39.1-beta.25 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.25
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/ssoconnection-api.ts
CHANGED
|
@@ -25,7 +25,17 @@ import { CreateSsoConnectionRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateSsoConnectionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { GetSsoConnectionResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateSsoConnectionBodyDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateSsoConnectionResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateSsoConnectionStatusBodyDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdateSsoConnectionStatusResponseClass } from '../models';
|
|
29
39
|
// URLSearchParams not necessarily used
|
|
30
40
|
// @ts-ignore
|
|
31
41
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -83,6 +93,92 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
83
93
|
options: localVarRequestOptions,
|
|
84
94
|
};
|
|
85
95
|
},
|
|
96
|
+
/**
|
|
97
|
+
* Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
|
|
98
|
+
* @summary Delete the tenant\'s SSO connection
|
|
99
|
+
* @param {string} code Connection code.
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
deleteSsoConnection: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'code' is not null or undefined
|
|
106
|
+
assertParamExists('deleteSsoConnection', 'code', code)
|
|
107
|
+
const localVarPath = `/tenantservice/v1/sso-connection/{code}`
|
|
108
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
let baseAccessToken;
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
baseAccessToken = configuration.accessToken;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
119
|
+
const localVarHeaderParameter = {} as any;
|
|
120
|
+
const localVarQueryParameter = {} as any;
|
|
121
|
+
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
|
+
|
|
126
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
url: toPathString(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
|
|
143
|
+
* @summary Read the tenant\'s current SSO connection
|
|
144
|
+
* @param {string} [authorization] Bearer Token
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
getCurrentSsoConnection: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
149
|
+
const localVarPath = `/tenantservice/v1/sso-connection/current`;
|
|
150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
|
+
let baseOptions;
|
|
153
|
+
let baseAccessToken;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
baseAccessToken = configuration.accessToken;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
160
|
+
const localVarHeaderParameter = {} as any;
|
|
161
|
+
const localVarQueryParameter = {} as any;
|
|
162
|
+
|
|
163
|
+
// authentication bearer required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
|
+
|
|
167
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
url: toPathString(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
86
182
|
/**
|
|
87
183
|
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
88
184
|
* @summary Read the tenant\'s SSO connection
|
|
@@ -123,6 +219,108 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
123
219
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
220
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
221
|
|
|
222
|
+
return {
|
|
223
|
+
url: toPathString(localVarUrlObj),
|
|
224
|
+
options: localVarRequestOptions,
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
|
|
229
|
+
* @summary Edit the tenant\'s SSO connection
|
|
230
|
+
* @param {string} code Connection code.
|
|
231
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
232
|
+
* @param {string} [authorization] Bearer Token
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
updateSsoConnection: async (code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
237
|
+
// verify required parameter 'code' is not null or undefined
|
|
238
|
+
assertParamExists('updateSsoConnection', 'code', code)
|
|
239
|
+
// verify required parameter 'updateSsoConnectionBodyDto' is not null or undefined
|
|
240
|
+
assertParamExists('updateSsoConnection', 'updateSsoConnectionBodyDto', updateSsoConnectionBodyDto)
|
|
241
|
+
const localVarPath = `/tenantservice/v1/sso-connection/{code}`
|
|
242
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
let baseAccessToken;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
baseAccessToken = configuration.accessToken;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
253
|
+
const localVarHeaderParameter = {} as any;
|
|
254
|
+
const localVarQueryParameter = {} as any;
|
|
255
|
+
|
|
256
|
+
// authentication bearer required
|
|
257
|
+
// http bearer authentication required
|
|
258
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
259
|
+
|
|
260
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
261
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
267
|
+
|
|
268
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
271
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionBodyDto, localVarRequestOptions, configuration)
|
|
272
|
+
|
|
273
|
+
return {
|
|
274
|
+
url: toPathString(localVarUrlObj),
|
|
275
|
+
options: localVarRequestOptions,
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
280
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
281
|
+
* @param {string} code Connection code.
|
|
282
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
283
|
+
* @param {string} [authorization] Bearer Token
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
updateSsoConnectionStatus: async (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
288
|
+
// verify required parameter 'code' is not null or undefined
|
|
289
|
+
assertParamExists('updateSsoConnectionStatus', 'code', code)
|
|
290
|
+
// verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
|
|
291
|
+
assertParamExists('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto)
|
|
292
|
+
const localVarPath = `/tenantservice/v1/sso-connection/{code}`
|
|
293
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
294
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
296
|
+
let baseOptions;
|
|
297
|
+
let baseAccessToken;
|
|
298
|
+
if (configuration) {
|
|
299
|
+
baseOptions = configuration.baseOptions;
|
|
300
|
+
baseAccessToken = configuration.accessToken;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
304
|
+
const localVarHeaderParameter = {} as any;
|
|
305
|
+
const localVarQueryParameter = {} as any;
|
|
306
|
+
|
|
307
|
+
// authentication bearer required
|
|
308
|
+
// http bearer authentication required
|
|
309
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
310
|
+
|
|
311
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
312
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
318
|
+
|
|
319
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
322
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration)
|
|
323
|
+
|
|
126
324
|
return {
|
|
127
325
|
url: toPathString(localVarUrlObj),
|
|
128
326
|
options: localVarRequestOptions,
|
|
@@ -150,6 +348,29 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
|
|
|
150
348
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createSsoConnection(createSsoConnectionRequestDto, authorization, options);
|
|
151
349
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
152
350
|
},
|
|
351
|
+
/**
|
|
352
|
+
* Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
|
|
353
|
+
* @summary Delete the tenant\'s SSO connection
|
|
354
|
+
* @param {string} code Connection code.
|
|
355
|
+
* @param {string} [authorization] Bearer Token
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
async deleteSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSsoConnection(code, authorization, options);
|
|
361
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
|
+
},
|
|
363
|
+
/**
|
|
364
|
+
* Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
|
|
365
|
+
* @summary Read the tenant\'s current SSO connection
|
|
366
|
+
* @param {string} [authorization] Bearer Token
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
async getCurrentSsoConnection(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>> {
|
|
371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentSsoConnection(authorization, options);
|
|
372
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
|
+
},
|
|
153
374
|
/**
|
|
154
375
|
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
155
376
|
* @summary Read the tenant\'s SSO connection
|
|
@@ -162,6 +383,32 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
|
|
|
162
383
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoConnection(code, authorization, options);
|
|
163
384
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
385
|
},
|
|
386
|
+
/**
|
|
387
|
+
* Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
|
|
388
|
+
* @summary Edit the tenant\'s SSO connection
|
|
389
|
+
* @param {string} code Connection code.
|
|
390
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
391
|
+
* @param {string} [authorization] Bearer Token
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
async updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionResponseClass>> {
|
|
396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options);
|
|
397
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
401
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
402
|
+
* @param {string} code Connection code.
|
|
403
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
404
|
+
* @param {string} [authorization] Bearer Token
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
async updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>> {
|
|
409
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options);
|
|
410
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
411
|
+
},
|
|
165
412
|
}
|
|
166
413
|
};
|
|
167
414
|
|
|
@@ -183,6 +430,27 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
|
|
|
183
430
|
createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSsoConnectionResponseClass> {
|
|
184
431
|
return localVarFp.createSsoConnection(createSsoConnectionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
185
432
|
},
|
|
433
|
+
/**
|
|
434
|
+
* Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
|
|
435
|
+
* @summary Delete the tenant\'s SSO connection
|
|
436
|
+
* @param {string} code Connection code.
|
|
437
|
+
* @param {string} [authorization] Bearer Token
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
deleteSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
442
|
+
return localVarFp.deleteSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
|
|
446
|
+
* @summary Read the tenant\'s current SSO connection
|
|
447
|
+
* @param {string} [authorization] Bearer Token
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
getCurrentSsoConnection(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
|
|
452
|
+
return localVarFp.getCurrentSsoConnection(authorization, options).then((request) => request(axios, basePath));
|
|
453
|
+
},
|
|
186
454
|
/**
|
|
187
455
|
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
188
456
|
* @summary Read the tenant\'s SSO connection
|
|
@@ -194,6 +462,30 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
|
|
|
194
462
|
getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
|
|
195
463
|
return localVarFp.getSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
|
|
196
464
|
},
|
|
465
|
+
/**
|
|
466
|
+
* Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
|
|
467
|
+
* @summary Edit the tenant\'s SSO connection
|
|
468
|
+
* @param {string} code Connection code.
|
|
469
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
470
|
+
* @param {string} [authorization] Bearer Token
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionResponseClass> {
|
|
475
|
+
return localVarFp.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
479
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
480
|
+
* @param {string} code Connection code.
|
|
481
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
482
|
+
* @param {string} [authorization] Bearer Token
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass> {
|
|
487
|
+
return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
488
|
+
},
|
|
197
489
|
};
|
|
198
490
|
};
|
|
199
491
|
|
|
@@ -218,6 +510,41 @@ export interface SSOConnectionApiCreateSsoConnectionRequest {
|
|
|
218
510
|
readonly authorization?: string
|
|
219
511
|
}
|
|
220
512
|
|
|
513
|
+
/**
|
|
514
|
+
* Request parameters for deleteSsoConnection operation in SSOConnectionApi.
|
|
515
|
+
* @export
|
|
516
|
+
* @interface SSOConnectionApiDeleteSsoConnectionRequest
|
|
517
|
+
*/
|
|
518
|
+
export interface SSOConnectionApiDeleteSsoConnectionRequest {
|
|
519
|
+
/**
|
|
520
|
+
* Connection code.
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof SSOConnectionApiDeleteSsoConnection
|
|
523
|
+
*/
|
|
524
|
+
readonly code: string
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Bearer Token
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof SSOConnectionApiDeleteSsoConnection
|
|
530
|
+
*/
|
|
531
|
+
readonly authorization?: string
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Request parameters for getCurrentSsoConnection operation in SSOConnectionApi.
|
|
536
|
+
* @export
|
|
537
|
+
* @interface SSOConnectionApiGetCurrentSsoConnectionRequest
|
|
538
|
+
*/
|
|
539
|
+
export interface SSOConnectionApiGetCurrentSsoConnectionRequest {
|
|
540
|
+
/**
|
|
541
|
+
* Bearer Token
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof SSOConnectionApiGetCurrentSsoConnection
|
|
544
|
+
*/
|
|
545
|
+
readonly authorization?: string
|
|
546
|
+
}
|
|
547
|
+
|
|
221
548
|
/**
|
|
222
549
|
* Request parameters for getSsoConnection operation in SSOConnectionApi.
|
|
223
550
|
* @export
|
|
@@ -239,6 +566,62 @@ export interface SSOConnectionApiGetSsoConnectionRequest {
|
|
|
239
566
|
readonly authorization?: string
|
|
240
567
|
}
|
|
241
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Request parameters for updateSsoConnection operation in SSOConnectionApi.
|
|
571
|
+
* @export
|
|
572
|
+
* @interface SSOConnectionApiUpdateSsoConnectionRequest
|
|
573
|
+
*/
|
|
574
|
+
export interface SSOConnectionApiUpdateSsoConnectionRequest {
|
|
575
|
+
/**
|
|
576
|
+
* Connection code.
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof SSOConnectionApiUpdateSsoConnection
|
|
579
|
+
*/
|
|
580
|
+
readonly code: string
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @type {UpdateSsoConnectionBodyDto}
|
|
585
|
+
* @memberof SSOConnectionApiUpdateSsoConnection
|
|
586
|
+
*/
|
|
587
|
+
readonly updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Bearer Token
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof SSOConnectionApiUpdateSsoConnection
|
|
593
|
+
*/
|
|
594
|
+
readonly authorization?: string
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
|
|
599
|
+
* @export
|
|
600
|
+
* @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
|
|
601
|
+
*/
|
|
602
|
+
export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
|
|
603
|
+
/**
|
|
604
|
+
* Connection code.
|
|
605
|
+
* @type {string}
|
|
606
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
607
|
+
*/
|
|
608
|
+
readonly code: string
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @type {UpdateSsoConnectionStatusBodyDto}
|
|
613
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
614
|
+
*/
|
|
615
|
+
readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Bearer Token
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
621
|
+
*/
|
|
622
|
+
readonly authorization?: string
|
|
623
|
+
}
|
|
624
|
+
|
|
242
625
|
/**
|
|
243
626
|
* SSOConnectionApi - object-oriented interface
|
|
244
627
|
* @export
|
|
@@ -258,6 +641,30 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
258
641
|
return SSOConnectionApiFp(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
259
642
|
}
|
|
260
643
|
|
|
644
|
+
/**
|
|
645
|
+
* Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
|
|
646
|
+
* @summary Delete the tenant\'s SSO connection
|
|
647
|
+
* @param {SSOConnectionApiDeleteSsoConnectionRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof SSOConnectionApi
|
|
651
|
+
*/
|
|
652
|
+
public deleteSsoConnection(requestParameters: SSOConnectionApiDeleteSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return SSOConnectionApiFp(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
|
|
658
|
+
* @summary Read the tenant\'s current SSO connection
|
|
659
|
+
* @param {SSOConnectionApiGetCurrentSsoConnectionRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof SSOConnectionApi
|
|
663
|
+
*/
|
|
664
|
+
public getCurrentSsoConnection(requestParameters: SSOConnectionApiGetCurrentSsoConnectionRequest = {}, options?: AxiosRequestConfig) {
|
|
665
|
+
return SSOConnectionApiFp(this.configuration).getCurrentSsoConnection(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
}
|
|
667
|
+
|
|
261
668
|
/**
|
|
262
669
|
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
263
670
|
* @summary Read the tenant\'s SSO connection
|
|
@@ -269,4 +676,28 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
269
676
|
public getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
270
677
|
return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
271
678
|
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
|
|
682
|
+
* @summary Edit the tenant\'s SSO connection
|
|
683
|
+
* @param {SSOConnectionApiUpdateSsoConnectionRequest} requestParameters Request parameters.
|
|
684
|
+
* @param {*} [options] Override http request option.
|
|
685
|
+
* @throws {RequiredError}
|
|
686
|
+
* @memberof SSOConnectionApi
|
|
687
|
+
*/
|
|
688
|
+
public updateSsoConnection(requestParameters: SSOConnectionApiUpdateSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
689
|
+
return SSOConnectionApiFp(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
694
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
695
|
+
* @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
* @memberof SSOConnectionApi
|
|
699
|
+
*/
|
|
700
|
+
public updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig) {
|
|
701
|
+
return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
702
|
+
}
|
|
272
703
|
}
|