From 20fa331d6ff3fb9e10a1b671ed0bcb8e2321e91e Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Mon, 30 Sep 2019 15:36:27 +0100 Subject: [PATCH] sso settigs fix (#5114) * fix test * update-js-api * update-js-api * invert test order for some reason * split before save publicUrls * split before save publicUrls * [ADF-4810] split if publicUrls is not Array * [ADF-4810]better check for string --- lib/core/settings/host-settings.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/settings/host-settings.component.ts b/lib/core/settings/host-settings.component.ts index fa9d3bc81d..ffcbe2b629 100644 --- a/lib/core/settings/host-settings.component.ts +++ b/lib/core/settings/host-settings.component.ts @@ -198,6 +198,10 @@ export class HostSettingsComponent implements OnInit { } private saveOAuthValues(values: any) { + if (values.oauthConfig.publicUrls && (typeof values.oauthConfig.publicUrls === 'string')) { + values.oauthConfig.publicUrls = values.oauthConfig.publicUrls.split(','); + } + this.storageService.setItem(AppConfigValues.OAUTHCONFIG, JSON.stringify(values.oauthConfig)); this.storageService.setItem(AppConfigValues.IDENTITY_HOST, values.identityHost); }