From e935f7b0b1f56d3bb124d566b248420de7bd0359 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Thu, 20 Oct 2022 09:38:29 +0200 Subject: [PATCH] [AAE-7991] send onLogin to initialize acs version to fix [C362242] --- lib/core/src/lib/auth/oidc-authentication.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core/src/lib/auth/oidc-authentication.service.ts b/lib/core/src/lib/auth/oidc-authentication.service.ts index 1ae92aa8d5..919bc831da 100644 --- a/lib/core/src/lib/auth/oidc-authentication.service.ts +++ b/lib/core/src/lib/auth/oidc-authentication.service.ts @@ -46,6 +46,11 @@ export class OIDCAuthenticationService extends BaseAuthenticationService { private readonly auth: AuthService ) { super(alfrescoApi, appConfig, cookie, logService); + this.alfrescoApi.alfrescoApiInitialized.subscribe(() => { + this.alfrescoApi.getInstance().reply('logged-in', () => { + this.onLogin.next(); + }); + }); } isEcmLoggedIn(): boolean {