From 6255bc58ecf166148bc8d8b36b1dc23237e7854b Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 30 Jun 2025 19:54:05 +0200 Subject: [PATCH] feat: Add wahlrecht client --- terraform/keycloak.tf | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/terraform/keycloak.tf b/terraform/keycloak.tf index 8f1c9c4..6180749 100644 --- a/terraform/keycloak.tf +++ b/terraform/keycloak.tf @@ -29,7 +29,7 @@ resource "keycloak_realm" "twomartens_realm" { } headers { - content_security_policy = "frame-src 'self'; frame-ancestors 'self' http://localhost:8100; object-src 'none';" + content_security_policy = "frame-src 'self'; frame-ancestors 'self' http://localhost:8100 https://wahlrecht.2martens.de; object-src 'none';" } } @@ -131,4 +131,22 @@ resource "keycloak_openid_client" "twomartens_timetable_frontend" { web_origins = [ "+" ] -} \ No newline at end of file +} + +resource "keycloak_openid_client" "twomartens_wahlrecht_frontend" { + realm_id = keycloak_realm.twomartens_realm.id + name = "Wahlrecht Frontend" + enabled = true + access_type = "PUBLIC" + client_id = "wahlrecht-frontend" + standard_flow_enabled = true + use_refresh_tokens = false + + valid_redirect_uris = [ + "http://localhost:8100/*", + "https://wahlrecht.2martens.de/*" + ] + web_origins = [ + "+" + ] +}