From 9f3ca730756599a8c0ac69661f0b2df5f39c06da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 15 Apr 2021 11:29:53 +0200 Subject: [PATCH] fix: expose auth-type in ui-config --- src/lib/routes/admin-api/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/routes/admin-api/config.js b/src/lib/routes/admin-api/config.js index e7b37c0561..f236075758 100644 --- a/src/lib/routes/admin-api/config.js +++ b/src/lib/routes/admin-api/config.js @@ -6,8 +6,12 @@ class ConfigController extends Controller { constructor(config, { versionService }) { super(config); this.versionService = versionService; + const authenticationType = config.authentication.type; this.uiConfig = { ...config.ui, + authenticationType, + unleashUrl: config.unleashUrl, + baseUriPath: config.baseUriPath, version: config.version, }; this.get('/', this.getUIConfig);