From 169b4c248a84c34e006c323a85319cabe5fe5689 Mon Sep 17 00:00:00 2001 From: Thomas Hunter Date: Tue, 19 Jan 2021 17:58:45 +0100 Subject: [PATCH] [ACA-4252] Update authentication to SSO (#6546) * [ACA-4252] Update authentication to SSO * Empty commit to retrigger push --- lib/cli/scripts/scan-env.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/cli/scripts/scan-env.ts b/lib/cli/scripts/scan-env.ts index 17387202a5..0dd3727ce0 100644 --- a/lib/cli/scripts/scan-env.ts +++ b/lib/cli/scripts/scan-env.ts @@ -65,8 +65,17 @@ ${grey}╞${horizontalLine}╡${reset}`; async function attemptLogin() { try { jsApiConnection = new AlfrescoApi({ - provider: 'ECM', - hostEcm: program.host + provider: 'ALL', + hostBpm: program.host, + hostEcm: program.host, + authType: 'OAUTH', + oauth2: { + host: `${program.host}/auth/realms/alfresco`, + clientId: 'alfresco', + scope: 'openid', + redirectUri: '/', + implicitFlow: false + } }); await jsApiConnection.login(program.username, program.password); } catch (err) {