auth0-deploy-cli 8.20.3 → 8.21.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/CHANGELOG.md +18 -1
- package/lib/context/directory/handlers/clients.js +31 -0
- package/lib/context/directory/handlers/clients.js.map +1 -1
- package/lib/context/directory/handlers/connectionProfiles.d.ts +11 -0
- package/lib/context/directory/handlers/connectionProfiles.js +59 -0
- package/lib/context/directory/handlers/connectionProfiles.js.map +1 -0
- package/lib/context/directory/handlers/index.js +2 -0
- package/lib/context/directory/handlers/index.js.map +1 -1
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/yaml/handlers/clients.js +31 -1
- package/lib/context/yaml/handlers/clients.js.map +1 -1
- package/lib/context/yaml/handlers/connectionProfiles.d.ts +11 -0
- package/lib/context/yaml/handlers/connectionProfiles.js +44 -0
- package/lib/context/yaml/handlers/connectionProfiles.js.map +1 -0
- package/lib/context/yaml/handlers/index.js +2 -0
- package/lib/context/yaml/handlers/index.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/tools/auth0/client.js +10 -4
- package/lib/tools/auth0/client.js.map +1 -1
- package/lib/tools/auth0/handlers/clientGrants.d.ts +1 -0
- package/lib/tools/auth0/handlers/clientGrants.js +4 -2
- package/lib/tools/auth0/handlers/clientGrants.js.map +1 -1
- package/lib/tools/auth0/handlers/clients.d.ts +76 -4
- package/lib/tools/auth0/handlers/clients.js +124 -7
- package/lib/tools/auth0/handlers/clients.js.map +1 -1
- package/lib/tools/auth0/handlers/connectionProfiles.d.ts +182 -0
- package/lib/tools/auth0/handlers/connectionProfiles.js +239 -0
- package/lib/tools/auth0/handlers/connectionProfiles.js.map +1 -0
- package/lib/tools/auth0/handlers/index.js +2 -0
- package/lib/tools/auth0/handlers/index.js.map +1 -1
- package/lib/tools/auth0/handlers/prompts.js +7 -19
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/auth0/handlers/resourceServers.js +1 -1
- package/lib/tools/auth0/handlers/resourceServers.js.map +1 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +2 -2
- package/lib/tools/auth0/handlers/selfServiceProfiles.js +4 -8
- package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +3 -2
- package/lib/tools/auth0/handlers/userAttributeProfiles.js +25 -20
- package/lib/tools/auth0/handlers/userAttributeProfiles.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 +2 -1
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientClientAuthenticationMethods, ClientExpressConfiguration, ClientOrganizationRequireBehaviorEnum } from 'auth0';
|
|
2
|
+
import { Assets, Auth0APIClient } from '../../../types';
|
|
2
3
|
import DefaultAPIHandler from './default';
|
|
3
4
|
export declare const schema: {
|
|
4
5
|
type: string;
|
|
@@ -125,23 +126,37 @@ export declare const schema: {
|
|
|
125
126
|
properties: {
|
|
126
127
|
can_create_session_transfer_token: {
|
|
127
128
|
type: string;
|
|
129
|
+
description: string;
|
|
128
130
|
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
enforce_cascade_revocation: {
|
|
133
|
+
type: string;
|
|
129
134
|
description: string;
|
|
135
|
+
default: boolean;
|
|
130
136
|
};
|
|
131
137
|
allowed_authentication_methods: {
|
|
132
|
-
type: string;
|
|
138
|
+
type: string[];
|
|
139
|
+
description: string;
|
|
133
140
|
items: {
|
|
134
141
|
type: string;
|
|
135
142
|
enum: string[];
|
|
136
143
|
};
|
|
137
|
-
default: never[];
|
|
138
|
-
description: string;
|
|
139
144
|
};
|
|
140
145
|
enforce_device_binding: {
|
|
141
146
|
type: string;
|
|
147
|
+
description: string;
|
|
142
148
|
enum: string[];
|
|
143
149
|
default: string;
|
|
150
|
+
};
|
|
151
|
+
allow_refresh_token: {
|
|
152
|
+
type: string;
|
|
144
153
|
description: string;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
enforce_online_refresh_tokens: {
|
|
157
|
+
type: string;
|
|
158
|
+
description: string;
|
|
159
|
+
default: boolean;
|
|
145
160
|
};
|
|
146
161
|
};
|
|
147
162
|
additionalProperties: boolean;
|
|
@@ -181,6 +196,59 @@ export declare const schema: {
|
|
|
181
196
|
type: string[];
|
|
182
197
|
description: string;
|
|
183
198
|
};
|
|
199
|
+
express_configuration: {
|
|
200
|
+
type: string[];
|
|
201
|
+
description: string;
|
|
202
|
+
properties: {
|
|
203
|
+
initiate_login_uri_template: {
|
|
204
|
+
type: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
user_attribute_profile_id: {
|
|
208
|
+
type: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
connection_profile_id: {
|
|
212
|
+
type: string;
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
enable_client: {
|
|
216
|
+
type: string;
|
|
217
|
+
description: string;
|
|
218
|
+
};
|
|
219
|
+
enable_organization: {
|
|
220
|
+
type: string;
|
|
221
|
+
description: string;
|
|
222
|
+
};
|
|
223
|
+
linked_clients: {
|
|
224
|
+
type: string;
|
|
225
|
+
description: string;
|
|
226
|
+
items: {
|
|
227
|
+
type: string;
|
|
228
|
+
properties: {
|
|
229
|
+
client_id: {
|
|
230
|
+
type: string;
|
|
231
|
+
description: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
required: string[];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
okta_oin_client_id: {
|
|
238
|
+
type: string;
|
|
239
|
+
description: string;
|
|
240
|
+
};
|
|
241
|
+
admin_login_domain: {
|
|
242
|
+
type: string;
|
|
243
|
+
description: string;
|
|
244
|
+
};
|
|
245
|
+
oin_submission_id: {
|
|
246
|
+
type: string;
|
|
247
|
+
description: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
required: string[];
|
|
251
|
+
};
|
|
184
252
|
};
|
|
185
253
|
required: string[];
|
|
186
254
|
};
|
|
@@ -192,6 +260,9 @@ export type Client = {
|
|
|
192
260
|
resource_server_identifier?: string;
|
|
193
261
|
custom_login_page?: string;
|
|
194
262
|
custom_login_page_on?: boolean;
|
|
263
|
+
express_configuration?: ClientExpressConfiguration;
|
|
264
|
+
client_authentication_methods?: ClientClientAuthenticationMethods | null;
|
|
265
|
+
organization_require_behavior?: ClientOrganizationRequireBehaviorEnum;
|
|
195
266
|
};
|
|
196
267
|
export default class ClientHandler extends DefaultAPIHandler {
|
|
197
268
|
existing: Client[];
|
|
@@ -199,4 +270,5 @@ export default class ClientHandler extends DefaultAPIHandler {
|
|
|
199
270
|
objString(item: any): string;
|
|
200
271
|
processChanges(assets: Assets): Promise<void>;
|
|
201
272
|
getType(): Promise<Client[]>;
|
|
273
|
+
sanitizeMapExpressConfiguration(auth0Client: Auth0APIClient, clientList: Client[]): Promise<Client[]>;
|
|
202
274
|
}
|
|
@@ -15,6 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.schema = void 0;
|
|
16
16
|
const client_1 = require("../client");
|
|
17
17
|
const default_1 = __importDefault(require("./default"));
|
|
18
|
+
const connectionProfiles_1 = require("./connectionProfiles");
|
|
19
|
+
const userAttributeProfiles_1 = require("./userAttributeProfiles");
|
|
18
20
|
const multiResourceRefreshTokenPoliciesSchema = {
|
|
19
21
|
type: ['array', 'null'],
|
|
20
22
|
description: 'A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers',
|
|
@@ -123,26 +125,40 @@ exports.schema = {
|
|
|
123
125
|
properties: {
|
|
124
126
|
can_create_session_transfer_token: {
|
|
125
127
|
type: 'boolean',
|
|
128
|
+
description: "Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application.",
|
|
126
129
|
default: false,
|
|
127
|
-
|
|
130
|
+
},
|
|
131
|
+
enforce_cascade_revocation: {
|
|
132
|
+
type: 'boolean',
|
|
133
|
+
description: 'Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application.',
|
|
134
|
+
default: true,
|
|
128
135
|
},
|
|
129
136
|
allowed_authentication_methods: {
|
|
130
|
-
type: 'array',
|
|
137
|
+
type: ['array', 'null'],
|
|
138
|
+
description: 'Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include `cookie` and/or `query`. Usually configured in the web application.',
|
|
131
139
|
items: {
|
|
132
140
|
type: 'string',
|
|
133
141
|
enum: ['cookie', 'query'],
|
|
134
142
|
},
|
|
135
|
-
default: [],
|
|
136
|
-
description: 'Determines the methods allowed for a web application to create a session using a session_transfer_token.',
|
|
137
143
|
},
|
|
138
144
|
enforce_device_binding: {
|
|
139
145
|
type: 'string',
|
|
140
|
-
|
|
146
|
+
description: "Indicates whether device binding security should be enforced for the app. If set to 'ip', the app will enforce device binding by IP, meaning that consumption of Session Transfer Token must be done from the same IP of the issuer. Likewise, if set to 'asn', device binding is enforced by ASN, meaning consumption of Session Transfer Token must be done from the same ASN as the issuer. If set to 'null', device binding is not enforced. Usually configured in the web application.",
|
|
147
|
+
enum: ['ip', 'asn', 'none'],
|
|
141
148
|
default: 'ip',
|
|
142
|
-
|
|
149
|
+
},
|
|
150
|
+
allow_refresh_token: {
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
description: 'Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application.',
|
|
153
|
+
default: false,
|
|
154
|
+
},
|
|
155
|
+
enforce_online_refresh_tokens: {
|
|
156
|
+
type: 'boolean',
|
|
157
|
+
description: "Indicates whether Refresh Tokens created during a native-to-web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application.",
|
|
158
|
+
default: true,
|
|
143
159
|
},
|
|
144
160
|
},
|
|
145
|
-
additionalProperties:
|
|
161
|
+
additionalProperties: true,
|
|
146
162
|
},
|
|
147
163
|
app_type: {
|
|
148
164
|
type: 'string',
|
|
@@ -179,6 +195,67 @@ exports.schema = {
|
|
|
179
195
|
type: ['boolean', 'null'],
|
|
180
196
|
description: 'Whether to skip the confirmation prompt for non-verifiable callback URIs',
|
|
181
197
|
},
|
|
198
|
+
express_configuration: {
|
|
199
|
+
type: ['object', 'null'],
|
|
200
|
+
description: 'Application specific configuration for use with the OIN Express Configuration feature',
|
|
201
|
+
properties: {
|
|
202
|
+
initiate_login_uri_template: {
|
|
203
|
+
type: 'string',
|
|
204
|
+
description: 'The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.',
|
|
205
|
+
},
|
|
206
|
+
user_attribute_profile_id: {
|
|
207
|
+
type: 'string',
|
|
208
|
+
description: 'The ID of the user attribute profile to use for this application',
|
|
209
|
+
},
|
|
210
|
+
connection_profile_id: {
|
|
211
|
+
type: 'string',
|
|
212
|
+
description: 'The ID of the connection profile to use for this application',
|
|
213
|
+
},
|
|
214
|
+
enable_client: {
|
|
215
|
+
type: 'boolean',
|
|
216
|
+
description: 'When true, all connections made via express configuration will be enabled for this application',
|
|
217
|
+
},
|
|
218
|
+
enable_organization: {
|
|
219
|
+
type: 'boolean',
|
|
220
|
+
description: 'When true, all connections made via express configuration will have the associated organization enabled',
|
|
221
|
+
},
|
|
222
|
+
linked_clients: {
|
|
223
|
+
type: 'array',
|
|
224
|
+
description: 'List of client IDs that are linked to this express configuration (e.g. web or mobile clients)',
|
|
225
|
+
items: {
|
|
226
|
+
type: 'object',
|
|
227
|
+
properties: {
|
|
228
|
+
client_id: {
|
|
229
|
+
type: 'string',
|
|
230
|
+
description: 'The ID of the linked client',
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
required: ['client_id'],
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
okta_oin_client_id: {
|
|
237
|
+
type: 'string',
|
|
238
|
+
description: 'This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application',
|
|
239
|
+
},
|
|
240
|
+
admin_login_domain: {
|
|
241
|
+
type: 'string',
|
|
242
|
+
description: 'This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain',
|
|
243
|
+
},
|
|
244
|
+
oin_submission_id: {
|
|
245
|
+
type: 'string',
|
|
246
|
+
description: 'The identifier of the published application in the OKTA OIN',
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
required: [
|
|
250
|
+
'initiate_login_uri_template',
|
|
251
|
+
'user_attribute_profile_id',
|
|
252
|
+
'connection_profile_id',
|
|
253
|
+
'enable_client',
|
|
254
|
+
'enable_organization',
|
|
255
|
+
'okta_oin_client_id',
|
|
256
|
+
'admin_login_domain',
|
|
257
|
+
],
|
|
258
|
+
},
|
|
182
259
|
},
|
|
183
260
|
required: ['name'],
|
|
184
261
|
},
|
|
@@ -207,6 +284,7 @@ class ClientHandler extends default_1.default {
|
|
|
207
284
|
// Do nothing if not set
|
|
208
285
|
if (!clients)
|
|
209
286
|
return;
|
|
287
|
+
assets.clients = yield this.sanitizeMapExpressConfiguration(this.client, clients);
|
|
210
288
|
const excludedClients = (assets.exclude && assets.exclude.clients) || [];
|
|
211
289
|
const { del, update, create, conflicts } = yield this.calcChanges(assets);
|
|
212
290
|
// Always filter out the client we are using to access Auth0 Management API
|
|
@@ -256,6 +334,45 @@ class ClientHandler extends default_1.default {
|
|
|
256
334
|
return this.existing;
|
|
257
335
|
});
|
|
258
336
|
}
|
|
337
|
+
// convert names back to IDs for express configuration
|
|
338
|
+
sanitizeMapExpressConfiguration(auth0Client, clientList) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
// if no clients have express configuration, return early
|
|
341
|
+
if (!clientList.some((p) => p.express_configuration)) {
|
|
342
|
+
return clientList;
|
|
343
|
+
}
|
|
344
|
+
const clientData = yield this.getType();
|
|
345
|
+
const connectionProfiles = yield (0, connectionProfiles_1.getConnectionProfile)(auth0Client);
|
|
346
|
+
const userAttributeProfiles = yield (0, userAttributeProfiles_1.getUserAttributeProfiles)(auth0Client);
|
|
347
|
+
return clientList.map((client) => {
|
|
348
|
+
var _a;
|
|
349
|
+
if (!client.express_configuration)
|
|
350
|
+
return client;
|
|
351
|
+
const userAttributeProfileName = (_a = client.express_configuration) === null || _a === void 0 ? void 0 : _a.user_attribute_profile_id;
|
|
352
|
+
if (userAttributeProfileName) {
|
|
353
|
+
const userAttributeProfile = userAttributeProfiles === null || userAttributeProfiles === void 0 ? void 0 : userAttributeProfiles.find((uap) => uap.name === userAttributeProfileName);
|
|
354
|
+
if (userAttributeProfile === null || userAttributeProfile === void 0 ? void 0 : userAttributeProfile.id) {
|
|
355
|
+
client.express_configuration.user_attribute_profile_id = userAttributeProfile.id;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const connectionProfileName = client.express_configuration.connection_profile_id;
|
|
359
|
+
if (connectionProfileName) {
|
|
360
|
+
const connectionProfile = connectionProfiles === null || connectionProfiles === void 0 ? void 0 : connectionProfiles.find((cp) => cp.name === connectionProfileName);
|
|
361
|
+
if (connectionProfile === null || connectionProfile === void 0 ? void 0 : connectionProfile.id) {
|
|
362
|
+
client.express_configuration.connection_profile_id = connectionProfile.id;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
const oktaOinClientName = client.express_configuration.okta_oin_client_id;
|
|
366
|
+
if (oktaOinClientName) {
|
|
367
|
+
const oktaOinClient = clientData === null || clientData === void 0 ? void 0 : clientData.find((c) => c.name === oktaOinClientName);
|
|
368
|
+
if (oktaOinClient) {
|
|
369
|
+
client.express_configuration.okta_oin_client_id = oktaOinClient.client_id;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return client;
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
}
|
|
259
376
|
}
|
|
260
377
|
exports.default = ClientHandler;
|
|
261
378
|
//# sourceMappingURL=clients.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,sCAAqC;AACrC,wDAA0C;AAC1C,6DAA4D;AAC5D,mEAAmE;AAEnE,MAAM,uCAAuC,GAAG;IAC9C,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACvB,WAAW,EACT,4JAA4J;IAC9J,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;gBACD,WAAW,EAAE,IAAI;aAClB;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;KAChC;CACF,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;YACzD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BACpC,wBAAwB,EAAE;gCACxB,IAAI,EA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AC,kBAAkB,CAAC;gBAC1E,IAAI,iBAAiB,EAAE,CAAC;oBACtB,MAAM,aAAa,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC;oBAC5E,IAAI,aAAa,EAAE,CAAC;wBAClB,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,GAAG,aAAa,CAAC,SAAS,CAAC;oBAC5E,CAAC;gBACH,CAAC;gBAED,OAAO,MAAM,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AA/ID,gCA+IC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ConnectionProfile } from 'auth0';
|
|
2
|
+
import { Assets, Auth0APIClient } from '../../../types';
|
|
3
|
+
import DefaultAPIHandler from './default';
|
|
4
|
+
export declare const schema: {
|
|
5
|
+
type: string;
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
properties: {
|
|
9
|
+
name: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
organization: {
|
|
13
|
+
type: string;
|
|
14
|
+
properties: {
|
|
15
|
+
show_as_button: {
|
|
16
|
+
type: string;
|
|
17
|
+
enum: string[];
|
|
18
|
+
};
|
|
19
|
+
assign_membership_on_login: {
|
|
20
|
+
type: string;
|
|
21
|
+
enum: string[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
connection_name_prefix_template: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
enabled_features: {
|
|
29
|
+
type: string;
|
|
30
|
+
items: {
|
|
31
|
+
type: string;
|
|
32
|
+
enum: string[];
|
|
33
|
+
};
|
|
34
|
+
uniqueItems: boolean;
|
|
35
|
+
};
|
|
36
|
+
connection_config: {
|
|
37
|
+
type: string[];
|
|
38
|
+
};
|
|
39
|
+
strategy_overrides: {
|
|
40
|
+
type: string[];
|
|
41
|
+
properties: {
|
|
42
|
+
pingfederate: {
|
|
43
|
+
type: string;
|
|
44
|
+
properties: {
|
|
45
|
+
enabled_features: {
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
uniqueItems: boolean;
|
|
52
|
+
};
|
|
53
|
+
connection_config: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
ad: {
|
|
59
|
+
type: string;
|
|
60
|
+
properties: {
|
|
61
|
+
enabled_features: {
|
|
62
|
+
type: string;
|
|
63
|
+
items: {
|
|
64
|
+
type: string;
|
|
65
|
+
enum: string[];
|
|
66
|
+
};
|
|
67
|
+
uniqueItems: boolean;
|
|
68
|
+
};
|
|
69
|
+
connection_config: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
adfs: {
|
|
75
|
+
type: string;
|
|
76
|
+
properties: {
|
|
77
|
+
enabled_features: {
|
|
78
|
+
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
type: string;
|
|
81
|
+
enum: string[];
|
|
82
|
+
};
|
|
83
|
+
uniqueItems: boolean;
|
|
84
|
+
};
|
|
85
|
+
connection_config: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
waad: {
|
|
91
|
+
type: string;
|
|
92
|
+
properties: {
|
|
93
|
+
enabled_features: {
|
|
94
|
+
type: string;
|
|
95
|
+
items: {
|
|
96
|
+
type: string;
|
|
97
|
+
enum: string[];
|
|
98
|
+
};
|
|
99
|
+
uniqueItems: boolean;
|
|
100
|
+
};
|
|
101
|
+
connection_config: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
'google-apps': {
|
|
107
|
+
type: string;
|
|
108
|
+
properties: {
|
|
109
|
+
enabled_features: {
|
|
110
|
+
type: string;
|
|
111
|
+
items: {
|
|
112
|
+
type: string;
|
|
113
|
+
enum: string[];
|
|
114
|
+
};
|
|
115
|
+
uniqueItems: boolean;
|
|
116
|
+
};
|
|
117
|
+
connection_config: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
okta: {
|
|
123
|
+
type: string;
|
|
124
|
+
properties: {
|
|
125
|
+
enabled_features: {
|
|
126
|
+
type: string;
|
|
127
|
+
items: {
|
|
128
|
+
type: string;
|
|
129
|
+
enum: string[];
|
|
130
|
+
};
|
|
131
|
+
uniqueItems: boolean;
|
|
132
|
+
};
|
|
133
|
+
connection_config: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
oidc: {
|
|
139
|
+
type: string;
|
|
140
|
+
properties: {
|
|
141
|
+
enabled_features: {
|
|
142
|
+
type: string;
|
|
143
|
+
items: {
|
|
144
|
+
type: string;
|
|
145
|
+
enum: string[];
|
|
146
|
+
};
|
|
147
|
+
uniqueItems: boolean;
|
|
148
|
+
};
|
|
149
|
+
connection_config: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
samlp: {
|
|
155
|
+
type: string;
|
|
156
|
+
properties: {
|
|
157
|
+
enabled_features: {
|
|
158
|
+
type: string;
|
|
159
|
+
items: {
|
|
160
|
+
type: string;
|
|
161
|
+
enum: string[];
|
|
162
|
+
};
|
|
163
|
+
uniqueItems: boolean;
|
|
164
|
+
};
|
|
165
|
+
connection_config: {
|
|
166
|
+
type: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
required: string[];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export declare const getConnectionProfile: (auth0Client: Auth0APIClient) => Promise<ConnectionProfile[]>;
|
|
177
|
+
export default class ConnectionProfilesHandler extends DefaultAPIHandler {
|
|
178
|
+
existing: ConnectionProfile[];
|
|
179
|
+
constructor(config: DefaultAPIHandler);
|
|
180
|
+
getType(): Promise<ConnectionProfile[]>;
|
|
181
|
+
processChanges(assets: Assets): Promise<void>;
|
|
182
|
+
}
|