From edcabafa4c85c8c5dc9330cc5287e62cfb6c0274 Mon Sep 17 00:00:00 2001 From: Shahar Glazner Date: Sun, 29 Dec 2024 10:52:25 +0200 Subject: [PATCH] fix(ui): keycloak (#2921) --- keep-ui/auth.config.ts | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/keep-ui/auth.config.ts b/keep-ui/auth.config.ts index 5ec968059..52d632237 100644 --- a/keep-ui/auth.config.ts +++ b/keep-ui/auth.config.ts @@ -225,6 +225,10 @@ export const config = { if ((profile as any)?.keep_role) { role = (profile as any).keep_role; } + } else if (authType === AuthType.KEYCLOAK) { + // TODO: remove this once we have a proper way to get the tenant id + tenantId = (profile as any).keep_tenant_id || "keep"; + role = (profile as any).keep_role; } else { accessToken = user.accessToken || account.access_token || account.id_token; diff --git a/pyproject.toml b/pyproject.toml index c69b12a7e..387b6bb84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "keep" -version = "0.33.1" +version = "0.33.2" description = "Alerting. for developers, by developers." authors = ["Keep Alerting LTD"] packages = [{include = "keep"}]