@emilgroup/tenant-sdk-node 1.39.1-beta.4 → 1.39.1-beta.41
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 +32 -0
- package/README.md +2 -2
- package/api/ssoconnection-api.ts +793 -0
- package/api/ssoid-pgroups-api.ts +803 -0
- package/api/user-controller-rest-api.ts +4 -4
- package/api/users-api.ts +4 -4
- package/api.ts +4 -0
- package/dist/api/ssoconnection-api.d.ts +434 -0
- package/dist/api/ssoconnection-api.js +784 -0
- package/dist/api/ssoid-pgroups-api.d.ts +451 -0
- package/dist/api/ssoid-pgroups-api.js +739 -0
- package/dist/api/user-controller-rest-api.d.ts +4 -4
- package/dist/api/user-controller-rest-api.js +3 -3
- package/dist/api/users-api.d.ts +4 -4
- package/dist/api/users-api.js +3 -3
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -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-sso-connection-request-dto.d.ts +66 -0
- package/dist/models/create-sso-connection-request-dto.js +23 -0
- package/dist/models/create-sso-connection-response-class.d.ts +25 -0
- package/dist/models/create-sso-connection-response-class.js +15 -0
- package/dist/models/create-sso-idp-group-request-dto.d.ts +36 -0
- package/dist/models/create-sso-idp-group-request-dto.js +15 -0
- package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/create-sso-idp-group-response-class.js +15 -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/delete-by-code-response-class.d.ts +24 -0
- package/dist/models/delete-by-code-response-class.js +15 -0
- package/dist/models/get-sso-connection-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-response-class.js +15 -0
- package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-setup-response-class.js +15 -0
- package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/get-sso-idp-group-response-class.js +15 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +30 -0
- package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
- package/dist/models/list-sso-idp-groups-response-class.js +15 -0
- package/dist/models/oidc-sso-details-input-dto.d.ts +36 -0
- package/dist/models/oidc-sso-details-input-dto.js +15 -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/oidc-sso-setup-class.d.ts +31 -0
- package/dist/models/oidc-sso-setup-class.js +15 -0
- package/dist/models/saml-sso-details-dto.d.ts +24 -0
- package/dist/models/saml-sso-details-dto.js +15 -0
- package/dist/models/saml-sso-setup-class.d.ts +37 -0
- package/dist/models/saml-sso-setup-class.js +15 -0
- package/dist/models/shared-oidc-sso-details-class.d.ts +36 -0
- package/dist/models/shared-oidc-sso-details-class.js +15 -0
- package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
- package/dist/models/shared-saml-sso-details-class.js +15 -0
- package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
- package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
- package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
- package/dist/models/sso-attribute-mapping-dto.js +15 -0
- package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
- package/dist/models/sso-attribute-mapping-template-class.js +15 -0
- package/dist/models/sso-connection-class.d.ts +102 -0
- package/dist/models/sso-connection-class.js +23 -0
- package/dist/models/sso-connection-setup-class.d.ts +32 -0
- package/dist/models/sso-connection-setup-class.js +15 -0
- package/dist/models/sso-idp-group-class.d.ts +72 -0
- package/dist/models/sso-idp-group-class.js +15 -0
- package/dist/models/update-sso-connection-body-dto.d.ts +45 -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/dist/models/update-sso-idp-group-body-dto.d.ts +30 -0
- package/dist/models/update-sso-idp-group-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-response-class.js +15 -0
- package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
- package/dist/models/user-class.d.ts +7 -0
- package/models/create-admin-tenant-request-dto.ts +14 -0
- package/models/create-sso-connection-request-dto.ts +76 -0
- package/models/create-sso-connection-response-class.ts +31 -0
- package/models/create-sso-idp-group-request-dto.ts +42 -0
- package/models/create-sso-idp-group-response-class.ts +31 -0
- package/models/create-tenant-request-dto.ts +14 -0
- package/models/delete-by-code-response-class.ts +30 -0
- package/models/get-sso-connection-response-class.ts +31 -0
- package/models/get-sso-connection-setup-response-class.ts +31 -0
- package/models/get-sso-idp-group-response-class.ts +31 -0
- package/models/index.ts +30 -0
- package/models/list-sso-idp-groups-response-class.ts +49 -0
- package/models/oidc-sso-details-input-dto.ts +42 -0
- package/models/oidc-sso-details-update-dto.ts +42 -0
- package/models/oidc-sso-setup-class.ts +37 -0
- package/models/saml-sso-details-dto.ts +30 -0
- package/models/saml-sso-setup-class.ts +43 -0
- package/models/shared-oidc-sso-details-class.ts +42 -0
- package/models/shared-saml-sso-details-class.ts +30 -0
- package/models/shared-sso-attribute-mapping-class.ts +36 -0
- package/models/sso-attribute-mapping-dto.ts +36 -0
- package/models/sso-attribute-mapping-template-class.ts +42 -0
- package/models/sso-connection-class.ts +112 -0
- package/models/sso-connection-setup-class.ts +38 -0
- package/models/sso-idp-group-class.ts +78 -0
- package/models/update-sso-connection-body-dto.ts +51 -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/models/update-sso-idp-group-body-dto.ts +36 -0
- package/models/update-sso-idp-group-response-class.ts +31 -0
- package/models/update-sso-idp-group-status-body-dto.ts +30 -0
- package/models/update-sso-idp-group-status-response-class.ts +31 -0
- package/models/user-class.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Tenant Service
|
|
6
|
+
* The EMIL TenantService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.SSOConnectionApi = exports.SSOConnectionApiFactory = exports.SSOConnectionApiFp = exports.SSOConnectionApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* SSOConnectionApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var SSOConnectionApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
|
|
101
|
+
* @summary Create the tenant\'s SSO connection
|
|
102
|
+
* @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
createSsoConnection: function (createSsoConnectionRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
// verify required parameter 'createSsoConnectionRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createSsoConnection', 'createSsoConnectionRequestDto', createSsoConnectionRequestDto);
|
|
116
|
+
localVarPath = "/tenantservice/v1/sso-connection";
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSsoConnectionRequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return [2 /*return*/, {
|
|
141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* 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\"
|
|
150
|
+
* @summary Delete the tenant\'s SSO connection
|
|
151
|
+
* @param {string} code Connection code.
|
|
152
|
+
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
deleteSsoConnection: function (code, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'code' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('deleteSsoConnection', 'code', code);
|
|
165
|
+
localVarPath = "/tenantservice/v1/sso-connection/{code}"
|
|
166
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
baseAccessToken = configuration.accessToken;
|
|
171
|
+
}
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
+
localVarHeaderParameter = {};
|
|
174
|
+
localVarQueryParameter = {};
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
+
case 1:
|
|
179
|
+
// authentication bearer required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
+
}
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
return [2 /*return*/, {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* 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\"
|
|
198
|
+
* @summary Read the tenant\'s current SSO connection
|
|
199
|
+
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
getCurrentSsoConnection: function (authorization, options) {
|
|
204
|
+
if (options === void 0) { options = {}; }
|
|
205
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
switch (_a.label) {
|
|
209
|
+
case 0:
|
|
210
|
+
localVarPath = "/tenantservice/v1/sso-connection/current";
|
|
211
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
return [2 /*return*/, {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
242
|
+
* @summary Read the tenant\'s SSO connection
|
|
243
|
+
* @param {string} code Connection code.
|
|
244
|
+
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
getSsoConnection: function (code, authorization, options) {
|
|
249
|
+
if (options === void 0) { options = {}; }
|
|
250
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
251
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
252
|
+
return __generator(this, function (_a) {
|
|
253
|
+
switch (_a.label) {
|
|
254
|
+
case 0:
|
|
255
|
+
// verify required parameter 'code' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('getSsoConnection', 'code', code);
|
|
257
|
+
localVarPath = "/tenantservice/v1/sso-connection/{code}"
|
|
258
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
259
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
baseAccessToken = configuration.accessToken;
|
|
263
|
+
}
|
|
264
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
+
localVarHeaderParameter = {};
|
|
266
|
+
localVarQueryParameter = {};
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
270
|
+
case 1:
|
|
271
|
+
// authentication bearer required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
_a.sent();
|
|
274
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
275
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
276
|
+
}
|
|
277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
+
return [2 /*return*/, {
|
|
281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
}];
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
|
|
290
|
+
* @summary Read the values an SSO connection is created with
|
|
291
|
+
* @param {string} [authorization] Bearer Token
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
getSsoConnectionSetup: function (authorization, options) {
|
|
296
|
+
if (options === void 0) { options = {}; }
|
|
297
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
298
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
299
|
+
return __generator(this, function (_a) {
|
|
300
|
+
switch (_a.label) {
|
|
301
|
+
case 0:
|
|
302
|
+
localVarPath = "/tenantservice/v1/sso-connection";
|
|
303
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
304
|
+
if (configuration) {
|
|
305
|
+
baseOptions = configuration.baseOptions;
|
|
306
|
+
baseAccessToken = configuration.accessToken;
|
|
307
|
+
}
|
|
308
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
309
|
+
localVarHeaderParameter = {};
|
|
310
|
+
localVarQueryParameter = {};
|
|
311
|
+
// authentication bearer required
|
|
312
|
+
// http bearer authentication required
|
|
313
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
314
|
+
case 1:
|
|
315
|
+
// authentication bearer required
|
|
316
|
+
// http bearer authentication required
|
|
317
|
+
_a.sent();
|
|
318
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
319
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
320
|
+
}
|
|
321
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
322
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
324
|
+
return [2 /*return*/, {
|
|
325
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
326
|
+
options: localVarRequestOptions,
|
|
327
|
+
}];
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
|
|
334
|
+
* @summary Edit the tenant\'s SSO connection
|
|
335
|
+
* @param {string} code Connection code.
|
|
336
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
337
|
+
* @param {string} [authorization] Bearer Token
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
updateSsoConnection: function (code, updateSsoConnectionBodyDto, authorization, options) {
|
|
342
|
+
if (options === void 0) { options = {}; }
|
|
343
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
344
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
345
|
+
return __generator(this, function (_a) {
|
|
346
|
+
switch (_a.label) {
|
|
347
|
+
case 0:
|
|
348
|
+
// verify required parameter 'code' is not null or undefined
|
|
349
|
+
(0, common_1.assertParamExists)('updateSsoConnection', 'code', code);
|
|
350
|
+
// verify required parameter 'updateSsoConnectionBodyDto' is not null or undefined
|
|
351
|
+
(0, common_1.assertParamExists)('updateSsoConnection', 'updateSsoConnectionBodyDto', updateSsoConnectionBodyDto);
|
|
352
|
+
localVarPath = "/tenantservice/v1/sso-connection/{code}"
|
|
353
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
354
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
355
|
+
if (configuration) {
|
|
356
|
+
baseOptions = configuration.baseOptions;
|
|
357
|
+
baseAccessToken = configuration.accessToken;
|
|
358
|
+
}
|
|
359
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
360
|
+
localVarHeaderParameter = {};
|
|
361
|
+
localVarQueryParameter = {};
|
|
362
|
+
// authentication bearer required
|
|
363
|
+
// http bearer authentication required
|
|
364
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
365
|
+
case 1:
|
|
366
|
+
// authentication bearer required
|
|
367
|
+
// http bearer authentication required
|
|
368
|
+
_a.sent();
|
|
369
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
370
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
371
|
+
}
|
|
372
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSsoConnectionBodyDto, localVarRequestOptions, configuration);
|
|
377
|
+
return [2 /*return*/, {
|
|
378
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
379
|
+
options: localVarRequestOptions,
|
|
380
|
+
}];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
387
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
388
|
+
* @param {string} code Connection code.
|
|
389
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
390
|
+
* @param {string} [authorization] Bearer Token
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
395
|
+
if (options === void 0) { options = {}; }
|
|
396
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
397
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
398
|
+
return __generator(this, function (_a) {
|
|
399
|
+
switch (_a.label) {
|
|
400
|
+
case 0:
|
|
401
|
+
// verify required parameter 'code' is not null or undefined
|
|
402
|
+
(0, common_1.assertParamExists)('updateSsoConnectionStatus', 'code', code);
|
|
403
|
+
// verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
|
|
404
|
+
(0, common_1.assertParamExists)('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto);
|
|
405
|
+
localVarPath = "/tenantservice/v1/sso-connection/{code}"
|
|
406
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
407
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
408
|
+
if (configuration) {
|
|
409
|
+
baseOptions = configuration.baseOptions;
|
|
410
|
+
baseAccessToken = configuration.accessToken;
|
|
411
|
+
}
|
|
412
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
413
|
+
localVarHeaderParameter = {};
|
|
414
|
+
localVarQueryParameter = {};
|
|
415
|
+
// authentication bearer required
|
|
416
|
+
// http bearer authentication required
|
|
417
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
418
|
+
case 1:
|
|
419
|
+
// authentication bearer required
|
|
420
|
+
// http bearer authentication required
|
|
421
|
+
_a.sent();
|
|
422
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
423
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
424
|
+
}
|
|
425
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
426
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
427
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
429
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration);
|
|
430
|
+
return [2 /*return*/, {
|
|
431
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
432
|
+
options: localVarRequestOptions,
|
|
433
|
+
}];
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
exports.SSOConnectionApiAxiosParamCreator = SSOConnectionApiAxiosParamCreator;
|
|
441
|
+
/**
|
|
442
|
+
* SSOConnectionApi - functional programming interface
|
|
443
|
+
* @export
|
|
444
|
+
*/
|
|
445
|
+
var SSOConnectionApiFp = function (configuration) {
|
|
446
|
+
var localVarAxiosParamCreator = (0, exports.SSOConnectionApiAxiosParamCreator)(configuration);
|
|
447
|
+
return {
|
|
448
|
+
/**
|
|
449
|
+
* Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
|
|
450
|
+
* @summary Create the tenant\'s SSO connection
|
|
451
|
+
* @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
|
|
452
|
+
* @param {string} [authorization] Bearer Token
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
createSsoConnection: function (createSsoConnectionRequestDto, authorization, options) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
+
var localVarAxiosArgs;
|
|
459
|
+
return __generator(this, function (_a) {
|
|
460
|
+
switch (_a.label) {
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSsoConnection(createSsoConnectionRequestDto, authorization, options)];
|
|
462
|
+
case 1:
|
|
463
|
+
localVarAxiosArgs = _a.sent();
|
|
464
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* 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\"
|
|
471
|
+
* @summary Delete the tenant\'s SSO connection
|
|
472
|
+
* @param {string} code Connection code.
|
|
473
|
+
* @param {string} [authorization] Bearer Token
|
|
474
|
+
* @param {*} [options] Override http request option.
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
*/
|
|
477
|
+
deleteSsoConnection: function (code, authorization, options) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
479
|
+
var localVarAxiosArgs;
|
|
480
|
+
return __generator(this, function (_a) {
|
|
481
|
+
switch (_a.label) {
|
|
482
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSsoConnection(code, authorization, options)];
|
|
483
|
+
case 1:
|
|
484
|
+
localVarAxiosArgs = _a.sent();
|
|
485
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
* 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\"
|
|
492
|
+
* @summary Read the tenant\'s current SSO connection
|
|
493
|
+
* @param {string} [authorization] Bearer Token
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
getCurrentSsoConnection: function (authorization, options) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
499
|
+
var localVarAxiosArgs;
|
|
500
|
+
return __generator(this, function (_a) {
|
|
501
|
+
switch (_a.label) {
|
|
502
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentSsoConnection(authorization, options)];
|
|
503
|
+
case 1:
|
|
504
|
+
localVarAxiosArgs = _a.sent();
|
|
505
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
512
|
+
* @summary Read the tenant\'s SSO connection
|
|
513
|
+
* @param {string} code Connection code.
|
|
514
|
+
* @param {string} [authorization] Bearer Token
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getSsoConnection: function (code, authorization, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
+
var localVarAxiosArgs;
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
switch (_a.label) {
|
|
523
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSsoConnection(code, authorization, options)];
|
|
524
|
+
case 1:
|
|
525
|
+
localVarAxiosArgs = _a.sent();
|
|
526
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
|
|
533
|
+
* @summary Read the values an SSO connection is created with
|
|
534
|
+
* @param {string} [authorization] Bearer Token
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
getSsoConnectionSetup: function (authorization, options) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
540
|
+
var localVarAxiosArgs;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSsoConnectionSetup(authorization, options)];
|
|
544
|
+
case 1:
|
|
545
|
+
localVarAxiosArgs = _a.sent();
|
|
546
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
* Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
|
|
553
|
+
* @summary Edit the tenant\'s SSO connection
|
|
554
|
+
* @param {string} code Connection code.
|
|
555
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
556
|
+
* @param {string} [authorization] Bearer Token
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
updateSsoConnection: function (code, updateSsoConnectionBodyDto, authorization, options) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
562
|
+
var localVarAxiosArgs;
|
|
563
|
+
return __generator(this, function (_a) {
|
|
564
|
+
switch (_a.label) {
|
|
565
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options)];
|
|
566
|
+
case 1:
|
|
567
|
+
localVarAxiosArgs = _a.sent();
|
|
568
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
});
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
575
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
576
|
+
* @param {string} code Connection code.
|
|
577
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
578
|
+
* @param {string} [authorization] Bearer Token
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
583
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
584
|
+
var localVarAxiosArgs;
|
|
585
|
+
return __generator(this, function (_a) {
|
|
586
|
+
switch (_a.label) {
|
|
587
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options)];
|
|
588
|
+
case 1:
|
|
589
|
+
localVarAxiosArgs = _a.sent();
|
|
590
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
},
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
exports.SSOConnectionApiFp = SSOConnectionApiFp;
|
|
598
|
+
/**
|
|
599
|
+
* SSOConnectionApi - factory interface
|
|
600
|
+
* @export
|
|
601
|
+
*/
|
|
602
|
+
var SSOConnectionApiFactory = function (configuration, basePath, axios) {
|
|
603
|
+
var localVarFp = (0, exports.SSOConnectionApiFp)(configuration);
|
|
604
|
+
return {
|
|
605
|
+
/**
|
|
606
|
+
* Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
|
|
607
|
+
* @summary Create the tenant\'s SSO connection
|
|
608
|
+
* @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
|
|
609
|
+
* @param {string} [authorization] Bearer Token
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
createSsoConnection: function (createSsoConnectionRequestDto, authorization, options) {
|
|
614
|
+
return localVarFp.createSsoConnection(createSsoConnectionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
* 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\"
|
|
618
|
+
* @summary Delete the tenant\'s SSO connection
|
|
619
|
+
* @param {string} code Connection code.
|
|
620
|
+
* @param {string} [authorization] Bearer Token
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
deleteSsoConnection: function (code, authorization, options) {
|
|
625
|
+
return localVarFp.deleteSsoConnection(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
626
|
+
},
|
|
627
|
+
/**
|
|
628
|
+
* 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\"
|
|
629
|
+
* @summary Read the tenant\'s current SSO connection
|
|
630
|
+
* @param {string} [authorization] Bearer Token
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
getCurrentSsoConnection: function (authorization, options) {
|
|
635
|
+
return localVarFp.getCurrentSsoConnection(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
636
|
+
},
|
|
637
|
+
/**
|
|
638
|
+
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
639
|
+
* @summary Read the tenant\'s SSO connection
|
|
640
|
+
* @param {string} code Connection code.
|
|
641
|
+
* @param {string} [authorization] Bearer Token
|
|
642
|
+
* @param {*} [options] Override http request option.
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
getSsoConnection: function (code, authorization, options) {
|
|
646
|
+
return localVarFp.getSsoConnection(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
* Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
|
|
650
|
+
* @summary Read the values an SSO connection is created with
|
|
651
|
+
* @param {string} [authorization] Bearer Token
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
getSsoConnectionSetup: function (authorization, options) {
|
|
656
|
+
return localVarFp.getSsoConnectionSetup(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
* Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
|
|
660
|
+
* @summary Edit the tenant\'s SSO connection
|
|
661
|
+
* @param {string} code Connection code.
|
|
662
|
+
* @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
|
|
663
|
+
* @param {string} [authorization] Bearer Token
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
updateSsoConnection: function (code, updateSsoConnectionBodyDto, authorization, options) {
|
|
668
|
+
return localVarFp.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
672
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
673
|
+
* @param {string} code Connection code.
|
|
674
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
675
|
+
* @param {string} [authorization] Bearer Token
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
680
|
+
return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
681
|
+
},
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
exports.SSOConnectionApiFactory = SSOConnectionApiFactory;
|
|
685
|
+
/**
|
|
686
|
+
* SSOConnectionApi - object-oriented interface
|
|
687
|
+
* @export
|
|
688
|
+
* @class SSOConnectionApi
|
|
689
|
+
* @extends {BaseAPI}
|
|
690
|
+
*/
|
|
691
|
+
var SSOConnectionApi = /** @class */ (function (_super) {
|
|
692
|
+
__extends(SSOConnectionApi, _super);
|
|
693
|
+
function SSOConnectionApi() {
|
|
694
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
|
|
698
|
+
* @summary Create the tenant\'s SSO connection
|
|
699
|
+
* @param {SSOConnectionApiCreateSsoConnectionRequest} requestParameters Request parameters.
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
* @memberof SSOConnectionApi
|
|
703
|
+
*/
|
|
704
|
+
SSOConnectionApi.prototype.createSsoConnection = function (requestParameters, options) {
|
|
705
|
+
var _this = this;
|
|
706
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* 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\"
|
|
710
|
+
* @summary Delete the tenant\'s SSO connection
|
|
711
|
+
* @param {SSOConnectionApiDeleteSsoConnectionRequest} requestParameters Request parameters.
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
* @memberof SSOConnectionApi
|
|
715
|
+
*/
|
|
716
|
+
SSOConnectionApi.prototype.deleteSsoConnection = function (requestParameters, options) {
|
|
717
|
+
var _this = this;
|
|
718
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* 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\"
|
|
722
|
+
* @summary Read the tenant\'s current SSO connection
|
|
723
|
+
* @param {SSOConnectionApiGetCurrentSsoConnectionRequest} requestParameters Request parameters.
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
* @memberof SSOConnectionApi
|
|
727
|
+
*/
|
|
728
|
+
SSOConnectionApi.prototype.getCurrentSsoConnection = function (requestParameters, options) {
|
|
729
|
+
var _this = this;
|
|
730
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
731
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).getCurrentSsoConnection(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
|
|
735
|
+
* @summary Read the tenant\'s SSO connection
|
|
736
|
+
* @param {SSOConnectionApiGetSsoConnectionRequest} requestParameters Request parameters.
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
* @memberof SSOConnectionApi
|
|
740
|
+
*/
|
|
741
|
+
SSOConnectionApi.prototype.getSsoConnection = function (requestParameters, options) {
|
|
742
|
+
var _this = this;
|
|
743
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
744
|
+
};
|
|
745
|
+
/**
|
|
746
|
+
* Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
|
|
747
|
+
* @summary Read the values an SSO connection is created with
|
|
748
|
+
* @param {SSOConnectionApiGetSsoConnectionSetupRequest} requestParameters Request parameters.
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
* @memberof SSOConnectionApi
|
|
752
|
+
*/
|
|
753
|
+
SSOConnectionApi.prototype.getSsoConnectionSetup = function (requestParameters, options) {
|
|
754
|
+
var _this = this;
|
|
755
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
756
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).getSsoConnectionSetup(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
|
|
760
|
+
* @summary Edit the tenant\'s SSO connection
|
|
761
|
+
* @param {SSOConnectionApiUpdateSsoConnectionRequest} requestParameters Request parameters.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
* @memberof SSOConnectionApi
|
|
765
|
+
*/
|
|
766
|
+
SSOConnectionApi.prototype.updateSsoConnection = function (requestParameters, options) {
|
|
767
|
+
var _this = this;
|
|
768
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
769
|
+
};
|
|
770
|
+
/**
|
|
771
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
772
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
773
|
+
* @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
* @memberof SSOConnectionApi
|
|
777
|
+
*/
|
|
778
|
+
SSOConnectionApi.prototype.updateSsoConnectionStatus = function (requestParameters, options) {
|
|
779
|
+
var _this = this;
|
|
780
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
781
|
+
};
|
|
782
|
+
return SSOConnectionApi;
|
|
783
|
+
}(base_1.BaseAPI));
|
|
784
|
+
exports.SSOConnectionApi = SSOConnectionApi;
|