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() {
|
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) {
|
||||||
|
Reference in New Issue
Block a user