diff --git a/lib/core/src/lib/services/authentication.service.ts b/lib/core/src/lib/services/authentication.service.ts index a33cdb24e9..00598ac0ef 100644 --- a/lib/core/src/lib/services/authentication.service.ts +++ b/lib/core/src/lib/services/authentication.service.ts @@ -80,14 +80,18 @@ export class AuthenticationService extends Authentication { } private loadUserDetails() { - const ecmUser$ = from(this.peopleApi.getPerson('-me-')); - const bpmUser$ = this.getBpmLoggedUser(); - if (this.isALLProvider()) { + const ecmUser$ = from(this.peopleApi.getPerson('-me-')); + const bpmUser$ = this.getBpmLoggedUser(); + forkJoin([ecmUser$, bpmUser$]).subscribe(() => this.onLogin.next()); } else if (this.isECMProvider()) { + const ecmUser$ = from(this.peopleApi.getPerson('-me-')); + ecmUser$.subscribe(() => this.onLogin.next()); } else { + const bpmUser$ = this.getBpmLoggedUser(); + bpmUser$.subscribe(() => this.onLogin.next()); } }