mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4252] Update authentication to SSO (#6546)
* [ACA-4252] Update authentication to SSO * Empty commit to retrigger push
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user