From 3d86b0be81afeb14598f5177ce91dcf623a0bc8d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 11 Aug 2025 08:31:53 +0200 Subject: [PATCH] change: Add two roles for active/personal plan --- terraform/keycloak.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terraform/keycloak.tf b/terraform/keycloak.tf index 1e94d83..75f7d87 100644 --- a/terraform/keycloak.tf +++ b/terraform/keycloak.tf @@ -205,6 +205,18 @@ resource "keycloak_openid_client" "twomartens_wahlrecht_frontend" { ] } +resource "keycloak_role" "timetable_frontend_active_plan" { + realm_id = keycloak_realm.twomartens_realm.id + name = "ACTIVE_PLAN" + client_id = keycloak_openid_client.twomartens_timetable_frontend.id +} + +resource "keycloak_role" "timetable_frontend_personal_plan" { + realm_id = keycloak_realm.twomartens_realm.id + name = "PERSONAL_PLAN" + client_id = keycloak_openid_client.twomartens_timetable_frontend.id +} + resource "keycloak_openid_client" "twomartens_wahlrecht_backend" { realm_id = keycloak_realm.twomartens_realm.id name = "Wahlrecht Backend"