mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user