auth0-deploy-cli 7.23.1 → 7.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +1 -1
- package/.nyc_output/8e567803-9d23-4425-94d9-553dd5b55efa.json +1 -0
- package/.nyc_output/processinfo/1c20e021-55c2-4777-a321-713348b3bffd.json +1 -0
- package/.nyc_output/processinfo/{747e9b9b-46b5-4186-9626-5f44b7913b36.json → 8e567803-9d23-4425-94d9-553dd5b55efa.json} +1 -1
- package/.nyc_output/processinfo/ee6ea147-1148-4f46-bce7-6b2f9e0b1410.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +14 -1
- package/coverage/lcov-report/index.html +28 -28
- package/coverage/lcov.info +909 -842
- package/lib/context/directory/handlers/prompts.js +51 -11
- package/lib/context/directory/handlers/prompts.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/tools/auth0/handlers/connections.js +1 -5
- package/lib/tools/auth0/handlers/connections.js.map +1 -1
- package/lib/tools/auth0/handlers/prompts.d.ts +48 -3
- package/lib/tools/auth0/handlers/prompts.js +175 -21
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/auth0/handlers/scimHandler.d.ts +20 -33
- package/lib/tools/auth0/handlers/scimHandler.js +88 -153
- package/lib/tools/auth0/handlers/scimHandler.js.map +1 -1
- package/lib/tools/constants.d.ts +1 -0
- package/lib/tools/constants.js +1 -0
- package/lib/tools/constants.js.map +1 -1
- package/lib/tools/index.d.ts +1 -0
- package/lib/types.d.ts +6 -1
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +12 -0
- package/package.json +1 -1
- package/.nyc_output/747e9b9b-46b5-4186-9626-5f44b7913b36.json +0 -1
- package/.nyc_output/processinfo/049a2787-df3f-4b58-bae0-3cf3b50d1cc3.json +0 -1
- package/.nyc_output/processinfo/91928ebf-9b67-4586-9ed6-5290c652cdcf.json +0 -1
- /package/.nyc_output/{049a2787-df3f-4b58-bae0-3cf3b50d1cc3.json → 1c20e021-55c2-4777-a321-713348b3bffd.json} +0 -0
- /package/.nyc_output/{91928ebf-9b67-4586-9ed6-5290c652cdcf.json → ee6ea147-1148-4f46-bce7-6b2f9e0b1410.json} +0 -0
|
@@ -12,18 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const axios_1 = __importDefault(require("axios"));
|
|
16
15
|
const logger_1 = __importDefault(require("../../../logger"));
|
|
17
|
-
const utils_1 = require("../../utils");
|
|
18
16
|
/**
|
|
19
17
|
* The current version of this sdk use `node-auth0` v3. But `SCIM` features are not natively supported by v3.
|
|
20
18
|
* This is a workaround to make this SDK support SCIM without `node-auth0` upgrade.
|
|
21
19
|
*/
|
|
22
20
|
class ScimHandler {
|
|
23
|
-
constructor(config,
|
|
21
|
+
constructor(config, connectionsManager, poolClient) {
|
|
24
22
|
this.scimStrategies = ['samlp', 'oidc', 'okta', 'waad'];
|
|
25
|
-
this.updateQueue = [];
|
|
26
|
-
this.isExecuting = false;
|
|
27
23
|
this.scimScopes = { read: true, create: true, update: true, delete: true };
|
|
28
24
|
this.scopeMethodMap = {
|
|
29
25
|
get: 'read',
|
|
@@ -31,11 +27,10 @@ class ScimHandler {
|
|
|
31
27
|
patch: 'update',
|
|
32
28
|
delete: 'delete'
|
|
33
29
|
};
|
|
34
|
-
this.expectedChanges = 0;
|
|
35
|
-
this.completedChanges = 0;
|
|
36
30
|
this.config = config;
|
|
37
|
-
this.tokenProvider = tokenProvider;
|
|
38
31
|
this.connectionsManager = connectionsManager;
|
|
32
|
+
this.scimClient = connectionsManager === null || connectionsManager === void 0 ? void 0 : connectionsManager._getRestClient('/connections/:id/scim-configuration');
|
|
33
|
+
this.poolClient = poolClient;
|
|
39
34
|
this.idMap = new Map();
|
|
40
35
|
}
|
|
41
36
|
/**
|
|
@@ -46,7 +41,7 @@ class ScimHandler {
|
|
|
46
41
|
return this.scimStrategies.includes(strategy.toLowerCase());
|
|
47
42
|
}
|
|
48
43
|
/**
|
|
49
|
-
* Creates connection_id -> { strategy,
|
|
44
|
+
* Creates connection_id -> { strategy, scimConfiguration } map.
|
|
50
45
|
* Store only the SCIM ids available on the existing / remote config.
|
|
51
46
|
* Payload received on `create` and `update` methods has the property `strategy` stripped.
|
|
52
47
|
* So, we need this map to perform `create`, `update` or `delete` actions on SCIM.
|
|
@@ -55,20 +50,26 @@ class ScimHandler {
|
|
|
55
50
|
createIdMap(connections) {
|
|
56
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
52
|
this.idMap.clear();
|
|
58
|
-
for
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
53
|
+
logger_1.default.info('Reviewing connections for SCIM support. This may take a while...');
|
|
54
|
+
yield this.poolClient.addEachTask({
|
|
55
|
+
data: connections || [],
|
|
56
|
+
generator: (connection) => {
|
|
57
|
+
if (!this.scimScopes.read)
|
|
58
|
+
return Promise.resolve(null);
|
|
59
|
+
if (!this.isScimStrategy(connection.strategy))
|
|
60
|
+
return Promise.resolve(null);
|
|
61
|
+
this.idMap.set(connection.id, { strategy: connection.strategy });
|
|
62
|
+
return this.getScimConfiguration({ id: connection.id }).then((scimConfiguration) => {
|
|
63
|
+
if (scimConfiguration) {
|
|
64
|
+
const { mapping, user_id_attribute, connection_id } = scimConfiguration;
|
|
65
|
+
this.idMap.set(connection_id, Object.assign(Object.assign({}, this.idMap.get(connection_id)), { scimConfiguration: { mapping, user_id_attribute } }));
|
|
66
|
+
}
|
|
67
|
+
}).catch((error) => {
|
|
68
|
+
throw new Error(`Problem fetching SCIM configurations while running \"createIdMap\".\n${error}`);
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
})
|
|
72
|
+
.promise();
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
75
|
/**
|
|
@@ -81,94 +82,76 @@ class ScimHandler {
|
|
|
81
82
|
*/
|
|
82
83
|
applyScimConfiguration(connections) {
|
|
83
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
|
|
85
|
+
// If `this.idMap` is empty, it means we haven't created the idMap yet. Create it.
|
|
86
|
+
// If `this.scimScopes.read` is false, it means we don't have `read:scim_config` scope. Return connections as is.
|
|
87
|
+
if (this.idMap.size === 0) {
|
|
85
88
|
if (!this.scimScopes.read)
|
|
86
89
|
return connections;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
continue;
|
|
95
|
-
const { user_id_attribute, mapping } = scimConfiguration;
|
|
96
|
-
connection.scim_configuration = { user_id_attribute, mapping };
|
|
90
|
+
yield this.createIdMap(connections);
|
|
91
|
+
}
|
|
92
|
+
for (const connection of connections) {
|
|
93
|
+
const { scimConfiguration } = this.idMap.get(connection.id) || {};
|
|
94
|
+
if (scimConfiguration) {
|
|
95
|
+
connection.scim_configuration = scimConfiguration;
|
|
96
|
+
}
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
* Wrapper over scimClient methods.
|
|
102
|
+
*/
|
|
103
|
+
useScimClient(method, options) {
|
|
104
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
105
|
return yield this.withErrorHandling(() => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const accessToken = yield ((_a = this.tokenProvider) === null || _a === void 0 ? void 0 : _a.getAccessToken());
|
|
109
|
-
const headers = {
|
|
110
|
-
'Accept': 'application/json',
|
|
111
|
-
'Authorization': `Bearer ${accessToken}`
|
|
112
|
-
};
|
|
113
|
-
options = [...options, { headers }];
|
|
114
|
-
return yield axios_1.default[method](...options);
|
|
115
|
-
}), method, options[0]);
|
|
106
|
+
return yield this.scimClient[method](...options);
|
|
107
|
+
}), method, options[0].id);
|
|
116
108
|
});
|
|
117
109
|
}
|
|
118
110
|
/**
|
|
119
111
|
* Error handler wrapper.
|
|
120
112
|
*/
|
|
121
|
-
withErrorHandling(callback, method,
|
|
122
|
-
var _a, _b, _c, _d, _e;
|
|
113
|
+
withErrorHandling(callback, method, connectionId) {
|
|
123
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
115
|
try {
|
|
125
116
|
return yield callback();
|
|
126
117
|
}
|
|
127
118
|
catch (error) {
|
|
128
|
-
|
|
129
|
-
const regex = /api\/v2\/connections\/(.*?)\/scim-configuration/;
|
|
130
|
-
const match = url.match(regex);
|
|
131
|
-
const connectionId = match ? match[1] : null;
|
|
132
|
-
// Extract error data
|
|
133
|
-
const errorData = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
134
|
-
// Skip the connection if it returns 404. This can happen if `SCIM` is not enabled on a `SCIM` connection.
|
|
135
|
-
if ((errorData === null || errorData === void 0 ? void 0 : errorData.statusCode) === 404) {
|
|
136
|
-
const warningMessage = `SCIM configuration is not enabled on connection \"${connectionId}\".`;
|
|
137
|
-
logger_1.default.warn(warningMessage);
|
|
138
|
-
return { data: null };
|
|
139
|
-
}
|
|
140
|
-
;
|
|
141
|
-
// Skip the connection if it returns 403. Looks like "scim_config" permissions are not enabled on Management API.
|
|
142
|
-
if ((errorData === null || errorData === void 0 ? void 0 : errorData.statusCode) === 403) {
|
|
143
|
-
const scope = this.scopeMethodMap[method];
|
|
144
|
-
this.scimScopes[scope] = false;
|
|
145
|
-
const warningMessage = `Insufficient scope, "${scope}:scim_config". Looks like "scim_config" permissions are not enabled your application.`;
|
|
146
|
-
logger_1.default.warn(warningMessage);
|
|
147
|
-
return { data: null };
|
|
148
|
-
}
|
|
149
|
-
// Skip the connection if it returns 400. This can happen if `SCIM` configuration already exists on a `SCIM` connection.
|
|
150
|
-
// When `read:scim_config` is disabled and `create:scim_config` is enabled, we cannot check if `SCIM` configuration exists on a connection.
|
|
151
|
-
// So, it'll run into 400 error.
|
|
152
|
-
if ((errorData === null || errorData === void 0 ? void 0 : errorData.statusCode) === 400 && ((_b = errorData === null || errorData === void 0 ? void 0 : errorData.message) === null || _b === void 0 ? void 0 : _b.includes('already exists'))) {
|
|
153
|
-
const warningMessage = `SCIM configuration already exists on connection \"${connectionId}\".`;
|
|
154
|
-
logger_1.default.warn(warningMessage);
|
|
155
|
-
return { data: null };
|
|
156
|
-
}
|
|
157
|
-
const statusCode = (errorData === null || errorData === void 0 ? void 0 : errorData.statusCode) || ((_c = error === null || error === void 0 ? void 0 : error.response) === null || _c === void 0 ? void 0 : _c.status);
|
|
158
|
-
const errorCode = (errorData === null || errorData === void 0 ? void 0 : errorData.errorCode) || (errorData === null || errorData === void 0 ? void 0 : errorData.error) || ((_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.statusText);
|
|
159
|
-
const errorMessage = (errorData === null || errorData === void 0 ? void 0 : errorData.message) || ((_e = error === null || error === void 0 ? void 0 : error.response) === null || _e === void 0 ? void 0 : _e.statusText);
|
|
160
|
-
const message = `SCIM request failed with statusCode ${statusCode} (${errorCode}). ${errorMessage}.`;
|
|
161
|
-
logger_1.default.error(message);
|
|
162
|
-
throw error;
|
|
119
|
+
return this.handleExpectedErrors(error, method, connectionId);
|
|
163
120
|
}
|
|
164
121
|
});
|
|
165
122
|
}
|
|
166
123
|
/**
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
124
|
+
* Handle expected errors.
|
|
125
|
+
*/
|
|
126
|
+
handleExpectedErrors(error, method, connectionId) {
|
|
127
|
+
var _a;
|
|
128
|
+
// Skip the connection if it returns 404. This can happen if `SCIM` is not enabled on a `SCIM` connection.
|
|
129
|
+
if (error && error.statusCode === 404) {
|
|
130
|
+
logger_1.default.debug(`SCIM configuration is not enabled on connection \"${connectionId}\".`);
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
;
|
|
134
|
+
// Skip the connection if it returns 403. Looks like "scim_config" permissions are not enabled on Management API.
|
|
135
|
+
if (error && error.statusCode === 403) {
|
|
136
|
+
const scope = this.scopeMethodMap[method];
|
|
137
|
+
this.scimScopes[scope] = false;
|
|
138
|
+
const warningMessage = `Insufficient scope, \"${scope}:scim_config\". Required \"read:scim_config\", \"create:scim_config\", \"update:scim_config\" and \"delete:scim_config\".`;
|
|
139
|
+
const suggestionText = `If you are not using SCIM, you can keep these permissions disabled and ignore this warning.`;
|
|
140
|
+
logger_1.default.warn(`${warningMessage}\n${suggestionText}\n`);
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
// Skip the connection if it returns 400. This can happen if `SCIM` configuration already exists on a `SCIM` connection.
|
|
144
|
+
if (error && error.statusCode === 400 && ((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('already exists'))) {
|
|
145
|
+
logger_1.default.warn(`SCIM configuration already exists on connection \"${connectionId}\".`);
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
// Rate limiting errors should be mostly handled by `scimClient`. But, in the worst case scenario also we don;t want to break the pipeline.
|
|
149
|
+
if (error && error.statusCode === 429) {
|
|
150
|
+
logger_1.default.error(`The global rate limit has been exceeded, resulting in a ${error.statusCode} error. ${error.message}. Although this is an error, it is not blocking the pipeline.`);
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
logger_1.default.error(`SCIM request failed with status code ${error.statusCode}. ${error.message || error.toString()}.`);
|
|
154
|
+
throw error;
|
|
172
155
|
}
|
|
173
156
|
/**
|
|
174
157
|
* Creates a new `SCIM` configuration.
|
|
@@ -176,8 +159,7 @@ class ScimHandler {
|
|
|
176
159
|
createScimConfiguration({ id: connection_id }, { user_id_attribute, mapping }) {
|
|
177
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
178
161
|
logger_1.default.debug(`Creating SCIM configuration on connection ${connection_id}`);
|
|
179
|
-
|
|
180
|
-
return (yield this.scimHttpRequest('post', [url, { user_id_attribute, mapping }])).data;
|
|
162
|
+
return yield this.useScimClient('create', [{ id: connection_id }, { user_id_attribute, mapping }]);
|
|
181
163
|
});
|
|
182
164
|
}
|
|
183
165
|
/**
|
|
@@ -186,8 +168,7 @@ class ScimHandler {
|
|
|
186
168
|
getScimConfiguration({ id: connection_id }) {
|
|
187
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
170
|
logger_1.default.debug(`Getting SCIM configuration from connection ${connection_id}`);
|
|
189
|
-
|
|
190
|
-
return (yield this.scimHttpRequest('get', [url])).data;
|
|
171
|
+
return yield this.useScimClient('get', [{ id: connection_id }]);
|
|
191
172
|
});
|
|
192
173
|
}
|
|
193
174
|
/**
|
|
@@ -196,8 +177,7 @@ class ScimHandler {
|
|
|
196
177
|
updateScimConfiguration({ id: connection_id }, { user_id_attribute, mapping }) {
|
|
197
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
179
|
logger_1.default.debug(`Updating SCIM configuration on connection ${connection_id}`);
|
|
199
|
-
|
|
200
|
-
return (yield this.scimHttpRequest('patch', [url, { user_id_attribute, mapping }])).data;
|
|
180
|
+
return yield this.useScimClient('patch', [{ id: connection_id }, { user_id_attribute, mapping }]);
|
|
201
181
|
});
|
|
202
182
|
}
|
|
203
183
|
/**
|
|
@@ -206,8 +186,7 @@ class ScimHandler {
|
|
|
206
186
|
deleteScimConfiguration({ id: connection_id }) {
|
|
207
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
208
188
|
logger_1.default.debug(`Deleting SCIM configuration on connection ${connection_id}`);
|
|
209
|
-
|
|
210
|
-
return (yield this.scimHttpRequest('delete', [url])).data;
|
|
189
|
+
return yield this.useScimClient('delete', [{ id: connection_id }]);
|
|
211
190
|
});
|
|
212
191
|
}
|
|
213
192
|
updateOverride(requestParams, bodyParams) {
|
|
@@ -219,30 +198,29 @@ class ScimHandler {
|
|
|
219
198
|
// First, update `connections`.
|
|
220
199
|
const updated = yield this.connectionsManager.update(requestParams, bodyParams);
|
|
221
200
|
const idMapEntry = this.idMap.get(requestParams.id);
|
|
222
|
-
this.completedChanges++;
|
|
223
201
|
// Now, update `scim_configuration` inside the updated connection.
|
|
224
202
|
// If `scim_configuration` exists in both local and remote -> updateScimConfiguration(...)
|
|
225
203
|
// If `scim_configuration` exists in remote but local -> deleteScimConfiguration(...)
|
|
226
204
|
// If `scim_configuration` exists in local but remote -> createScimConfiguration(...)
|
|
227
|
-
if (idMapEntry === null || idMapEntry === void 0 ? void 0 : idMapEntry.
|
|
205
|
+
if (idMapEntry === null || idMapEntry === void 0 ? void 0 : idMapEntry.scimConfiguration) {
|
|
228
206
|
if (scimBodyParams) {
|
|
229
|
-
this.
|
|
207
|
+
if (this.scimScopes.update) {
|
|
208
|
+
yield this.updateScimConfiguration(requestParams, scimBodyParams);
|
|
209
|
+
}
|
|
230
210
|
}
|
|
231
211
|
else {
|
|
232
212
|
if (this.config('AUTH0_ALLOW_DELETE')) {
|
|
233
|
-
this.
|
|
213
|
+
if (this.scimScopes.delete) {
|
|
214
|
+
yield this.deleteScimConfiguration(requestParams);
|
|
215
|
+
}
|
|
234
216
|
}
|
|
235
217
|
else {
|
|
236
|
-
logger_1.default.warn(
|
|
218
|
+
logger_1.default.warn(`Skipping DELETE scim_configuration on \"${requestParams.id}\". Enable deletes by setting \"AUTH0_ALLOW_DELETE\" to true in your config.`);
|
|
237
219
|
}
|
|
238
220
|
}
|
|
239
221
|
}
|
|
240
|
-
else if (scimBodyParams) {
|
|
241
|
-
this.
|
|
242
|
-
}
|
|
243
|
-
// Execute the queue.
|
|
244
|
-
if (this.completedChanges >= this.expectedChanges) {
|
|
245
|
-
yield this.executeQueue();
|
|
222
|
+
else if (scimBodyParams && this.scimScopes.create) {
|
|
223
|
+
yield this.createScimConfiguration(requestParams, scimBodyParams);
|
|
246
224
|
}
|
|
247
225
|
// Return response from connections.update(...).
|
|
248
226
|
return updated;
|
|
@@ -256,57 +234,14 @@ class ScimHandler {
|
|
|
256
234
|
delete bodyParams.scim_configuration;
|
|
257
235
|
// First, create the new `connection`.
|
|
258
236
|
const created = yield this.connectionsManager.create(bodyParams);
|
|
259
|
-
this.
|
|
260
|
-
if (scimBodyParams) {
|
|
237
|
+
if (scimBodyParams && this.scimScopes.create) {
|
|
261
238
|
// Now, create the `scim_configuration` for newly created `connection`.
|
|
262
|
-
this.
|
|
263
|
-
}
|
|
264
|
-
// Execute the queue.
|
|
265
|
-
if (this.completedChanges >= this.expectedChanges) {
|
|
266
|
-
yield this.executeQueue();
|
|
239
|
+
yield this.createScimConfiguration({ id: created.id }, scimBodyParams);
|
|
267
240
|
}
|
|
268
241
|
// Return response from connections.create(...).
|
|
269
242
|
return created;
|
|
270
243
|
});
|
|
271
244
|
}
|
|
272
|
-
/**
|
|
273
|
-
* If we perform `connectionsManager.update` and `updateScimConfiguration` together, they may result in rate limit error.
|
|
274
|
-
* The reason is that both of them make API requests to the same `api/v2/connections` endpoint.
|
|
275
|
-
* We cannot control it with delay because both `updateOverride` and `createOverride` are async functions. And being called concurrently by `PromisePoolExecutor`.
|
|
276
|
-
* To avoid this, we are queuing the `SCIM` actions and executing them one by one separately, only after `connectionsManager.update` is completed.
|
|
277
|
-
*
|
|
278
|
-
* This is true for both `create` and `update` actions.
|
|
279
|
-
* @returns {Promise<void>}
|
|
280
|
-
*/
|
|
281
|
-
executeQueue() {
|
|
282
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
-
if (this.isExecuting)
|
|
284
|
-
return;
|
|
285
|
-
this.isExecuting = true;
|
|
286
|
-
while (this.updateQueue.length > 0) {
|
|
287
|
-
// Rate limit error handling
|
|
288
|
-
yield (0, utils_1.sleep)(250);
|
|
289
|
-
const { action, requestParams, scimBodyParams } = this.updateQueue.shift();
|
|
290
|
-
switch (action) {
|
|
291
|
-
case 'create':
|
|
292
|
-
if (this.scimScopes.create)
|
|
293
|
-
yield this.createScimConfiguration(requestParams, scimBodyParams);
|
|
294
|
-
break;
|
|
295
|
-
case 'update':
|
|
296
|
-
if (this.scimScopes.update)
|
|
297
|
-
yield this.updateScimConfiguration(requestParams, scimBodyParams);
|
|
298
|
-
break;
|
|
299
|
-
case 'delete':
|
|
300
|
-
if (this.scimScopes.delete)
|
|
301
|
-
yield this.deleteScimConfiguration(requestParams);
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
this.isExecuting = false;
|
|
306
|
-
this.expectedChanges = 0;
|
|
307
|
-
this.completedChanges = 0;
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
245
|
}
|
|
311
246
|
exports.default = ScimHandler;
|
|
312
247
|
//# sourceMappingURL=scimHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scimHandler.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/scimHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"scimHandler.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/scimHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,6DAAkC;AAqBlC;;;GAGG;AACH,MAAqB,WAAW;IAe9B,YAAY,MAAM,EAAE,kBAAkB,EAAE,UAA+B;QAbtD,mBAAc,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAG5D,eAAU,GAAe,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAClF,mBAAc,GAAG;YACvB,GAAG,EAAE,MAAM;YACX,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;S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vJ;iBACF;aACF;iBAAM,IAAI,cAAc,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBACnD,MAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;aACnE;YAED,iDAAiD;YACjD,OAAO,OAAO,CAAC;QACjB,CAAC;KAAA;IAEK,cAAc,CAAC,UAAiB;;YACpC,kDAAkD;YAClD,iGAAiG;YACjG,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;YAC1D,OAAO,UAAU,CAAC,kBAAkB,CAAC;YAErC,sCAAsC;YACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAEjE,IAAI,cAAc,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBAC5C,uEAAuE;gBACvE,MAAM,IAAI,CAAC,uBAAuB,CAAC,EAAC,EAAE,EAAE,OAAO,CAAC,EAAE,EAAC,EAAE,cAAc,CAAC,CAAC;aACtE;YAED,iDAAiD;YACjD,OAAO,OAAO,CAAC;QACjB,CAAC;KAAA;CACF;AA1OD,8BA0OC"}
|
package/lib/tools/constants.d.ts
CHANGED
package/lib/tools/constants.js
CHANGED
|
@@ -167,6 +167,7 @@ const constants = {
|
|
|
167
167
|
SUPPORTED_BRANDING_TEMPLATES: [UNIVERSAL_LOGIN_TEMPLATE],
|
|
168
168
|
LOG_STREAMS_DIRECTORY: 'log-streams',
|
|
169
169
|
PROMPTS_DIRECTORY: 'prompts',
|
|
170
|
+
PARTIALS_DIRECTORY: 'partials',
|
|
170
171
|
CUSTOM_DOMAINS_DIRECTORY: 'custom-domains',
|
|
171
172
|
THEMES_DIRECTORY: 'themes',
|
|
172
173
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/tools/constants.ts"],"names":[],"mappings":";;AAAA,MAAM,yBAAyB,GAAG,sB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AAG,aAAa,OAAO;QACvB,GAAG,aAAa,OAAO;QACvB,GAAG,aAAa,OAAO;QACvB,GAAG,aAAa,OAAO;QACvB,GAAG,wBAAwB,OAAO;QAClC,GAAG,wBAAwB,OAAO;QAClC,GAAG,gBAAgB,OAAO;QAC1B,GAAG,gBAAgB,OAAO;QAC1B,GAAG,qBAAqB,OAAO;QAC/B,GAAG,qBAAqB,OAAO;QAC/B,GAAG,oBAAoB,OAAO;QAC9B,GAAG,oBAAoB,OAAO;QAC9B,GAAG,kBAAkB,OAAO;QAC5B,GAAG,kBAAkB,OAAO;QAC5B,GAAG,qBAAqB,OAAO;QAC/B,GAAG,qBAAqB,OAAO;KAChC;IACD,4BAA4B,EAAE,CAAC,wBAAwB,CAAC;IACxD,qBAAqB,EAAE,aAAa;IACpC,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,UAAU;IAC9B,wBAAwB,EAAE,gBAAgB;IAC1C,gBAAgB,EAAE,QAAQ;CAC3B,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/lib/tools/index.d.ts
CHANGED
package/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PromisePoolExecutor } from 'promise-pool-executor';
|
|
1
2
|
import { Action } from './tools/auth0/handlers/actions';
|
|
2
3
|
import { PromptTypes, ScreenTypes, Prompts, PromptsCustomText, PromptSettings } from './tools/auth0/handlers/prompts';
|
|
3
4
|
import { Tenant } from './tools/auth0/handlers/tenant';
|
|
@@ -7,7 +8,6 @@ import { LogStream } from './tools/auth0/handlers/logStreams';
|
|
|
7
8
|
import { Client } from './tools/auth0/handlers/clients';
|
|
8
9
|
import { ClientGrant } from './tools/auth0/handlers/clientGrants';
|
|
9
10
|
import { ResourceServer } from './tools/auth0/handlers/resourceServers';
|
|
10
|
-
import { PromisePoolExecutor } from 'promise-pool-executor';
|
|
11
11
|
type SharedPaginationParams = {
|
|
12
12
|
checkpoint?: boolean;
|
|
13
13
|
paginate?: boolean;
|
|
@@ -108,6 +108,7 @@ export type BaseAuth0APIClient = {
|
|
|
108
108
|
connections: APIClientBaseFunctions & {
|
|
109
109
|
get: (arg0: Asset) => Promise<Asset>;
|
|
110
110
|
getAll: (arg0: PagePaginationParams | CheckpointPaginationParams) => Promise<Asset[]>;
|
|
111
|
+
create: (arg0: Asset) => Promise<Asset>;
|
|
111
112
|
};
|
|
112
113
|
customDomains: APIClientBaseFunctions & {
|
|
113
114
|
getAll: () => Promise<Asset[]>;
|
|
@@ -172,6 +173,10 @@ export type BaseAuth0APIClient = {
|
|
|
172
173
|
};
|
|
173
174
|
};
|
|
174
175
|
prompts: {
|
|
176
|
+
_getRestClient: (arg0: string) => {
|
|
177
|
+
get: (arg0: string) => Promise<Asset>;
|
|
178
|
+
invoke: (arg0: string, arg1: any) => Promise<Asset>;
|
|
179
|
+
};
|
|
175
180
|
updateCustomTextByLanguage: (arg0: {
|
|
176
181
|
prompt: PromptTypes;
|
|
177
182
|
language: Language;
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAoUa,QAAA,SAAS,GAAG;IACvB,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;CACC,CAAC"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -95,6 +95,18 @@ export declare function stripIdentifiers(auth0: Auth0, assets: Assets): {
|
|
|
95
95
|
"zh-CN": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
|
|
96
96
|
"zh-TW": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
|
|
97
97
|
}>;
|
|
98
|
+
partials: Partial<{
|
|
99
|
+
[x: string]: Partial<{
|
|
100
|
+
[x: string]: Partial<{
|
|
101
|
+
"form-content-start": string;
|
|
102
|
+
"form-content-end": string;
|
|
103
|
+
"form-footer-start": string;
|
|
104
|
+
"form-footer-end": string;
|
|
105
|
+
"secondary-actions-start": string;
|
|
106
|
+
"secondary-actions-end": string;
|
|
107
|
+
}>;
|
|
108
|
+
}>;
|
|
109
|
+
}>;
|
|
98
110
|
}> | null | undefined;
|
|
99
111
|
resourceServers?: import("./tools/auth0/handlers/resourceServers").ResourceServer[] | null | undefined;
|
|
100
112
|
roles?: Asset[] | null | undefined;
|