diff --git a/api/routes/ldap.ts b/api/routes/ldap.ts index 014af37fc..a602d42c4 100644 --- a/api/routes/ldap.ts +++ b/api/routes/ldap.ts @@ -48,6 +48,7 @@ export default async function router(schema: Schema, config: Config) { name: Type.String(), description: Type.String(), agency_id: Type.Union([Type.Integer(), Type.Null()]), + connection_id: Type.Integer(), channels: Type.Array(Type.Integer(), { minItems: 1 }) @@ -74,7 +75,7 @@ export default async function router(schema: Schema, config: Config) { integration: { name: req.body.name, description: req.body.description, - management_url: config.API_URL + management_url: config.API_URL + `/connection/${req.body.connection_id}` } }); diff --git a/api/web/src/components/Connection/CertificateMachineUser.vue b/api/web/src/components/Connection/CertificateMachineUser.vue index e7f56c7e0..847982eee 100644 --- a/api/web/src/components/Connection/CertificateMachineUser.vue +++ b/api/web/src/components/Connection/CertificateMachineUser.vue @@ -168,6 +168,7 @@ export default { name: this.connection.name, description: this.connection.description, agency_id: this.connection.agency, + connection_id: this.connection.id, channels: this.selected.map((s) => { return s.id }) } })