feat: Add tsw-timetable-frontend client and update CSP

This commit is contained in:
2025-03-20 12:45:15 +01:00
parent cdfbc1393d
commit 1a9dc2ff81
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -27,6 +27,10 @@ resource "keycloak_realm" "twomartens_realm" {
brute_force_detection {
max_login_failures = 5
}
headers {
content_security_policy = "frame-src 'self'; frame-ancestors 'self' http://localhost:4200; object-src 'none';"
}
}
default_signature_algorithm = "ES256"
@@ -111,3 +115,13 @@ resource "keycloak_openid_client" "twomartens_nextcloud" {
"https://cloud.2martens.de/*"
]
}
resource "keycloak_openid_client" "twomartens_timetable_frontend" {
realm_id = keycloak_realm.twomartens_realm.id
name = "Timetable Frontend"
enabled = true
access_type = "PUBLIC"
client_id = "tsw-timetable-frontend"
standard_flow_enabled = true
use_refresh_tokens = false
}
+1 -1
View File
@@ -120,4 +120,4 @@ variable "nextcloud_client_secret" {
description = "Client Secret of the Nextcloud OpenID client"
type = string
sensitive = true
}
}