Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI Bugfix to respect OR_KEYCLOAK_PUBLIC_URI in frontend apps (#1930)

Rich Turner2ade3c3e9d9c
diff --git a/ui/component/core/src/index.ts b/ui/component/core/src/index.ts
index 5106eb3d0..69a52f99b 100644
--- a/ui/component/core/src/index.ts
+++ b/ui/component/core/src/index.ts
@@ -100,10 +100,6 @@ export function normaliseConfig(config: ManagerConfig): ManagerConfig {
normalisedConfig.managerUrl = normalisedConfig.managerUrl.replace(/\/+$/, "");
}
- if (!normalisedConfig.keycloakUrl || normalisedConfig.keycloakUrl === "") {
- normalisedConfig.keycloakUrl = normalisedConfig.managerUrl + "/auth";
- }
-
if (!normalisedConfig.realm || normalisedConfig.realm === "") {
// Assume master realm
normalisedConfig.realm = "master";