[ACA-4252] Update authentication to SSO (#6546)

* [ACA-4252] Update authentication to SSO

* Empty commit to retrigger push
This commit is contained in:
Thomas Hunter
2021-01-19 17:58:45 +01:00
committed by GitHub
parent 65f4bf8a80
commit 169b4c248a

View File

@@ -65,8 +65,17 @@ ${grey}╞${horizontalLine}╡${reset}`;
async function attemptLogin() { async function attemptLogin() {
try { try {
jsApiConnection = new AlfrescoApi({ jsApiConnection = new AlfrescoApi({
provider: 'ECM', provider: 'ALL',
hostEcm: program.host 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); await jsApiConnection.login(program.username, program.password);
} catch (err) { } catch (err) {