Dev alepore 12511 fix bc wrong auth url (#8352)

* [AAE-12511] Wait for the app configuration to be set with the right idp configuration

* [AAE-12511] Wait for the api service to be loaded to fix AlfrescoApi instance undefined
This commit is contained in:
Amedeo Lepore
2023-03-10 17:48:29 +01:00
committed by GitHub
parent 8907a7ffa2
commit d1fa1a3cd7
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ export class AlfrescoApiService {
this.currentAppConfig = config;
if (config.authType === 'OAUTH') {
this.mapAlfrescoApiOpenIdConfig();
await this.mapAlfrescoApiOpenIdConfig();
}
this.initAlfrescoApiWithConfig();
@@ -59,7 +59,7 @@ export class AlfrescoApiService {
async reset() {
this.getCurrentAppConfig();
if (this.currentAppConfig.authType === 'OAUTH') {
this.mapAlfrescoApiOpenIdConfig();
await this.mapAlfrescoApiOpenIdConfig();
}
this.initAlfrescoApiWithConfig();
}