[ACS-5279] enhanced oath2 configuration handling (#8575)

* [ACS-5279] enhanced oath2 configuration handling

* fix tests

* fix schema
This commit is contained in:
Denys Vuika
2023-06-02 12:02:50 +01:00
committed by GitHub
parent ea5c3466ef
commit 654acd553f
13 changed files with 83 additions and 105 deletions

View File

@@ -65,7 +65,8 @@ export class AlfrescoApiService {
}
private getAuthWithFixedOriginLocation(): OauthConfigModel {
const oauth: OauthConfigModel = Object.assign({}, this.appConfig.get<OauthConfigModel>(AppConfigValues.OAUTHCONFIG, null));
const oauth = this.appConfig.oauth2;
if (oauth) {
oauth.redirectUri = window.location.origin + window.location.pathname;
oauth.redirectUriLogout = window.location.origin + window.location.pathname;