mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 19:46:52 +02:00
feat: Add tsw-timetable-frontend client and update CSP
This commit is contained in:
@@ -27,6 +27,10 @@ resource "keycloak_realm" "twomartens_realm" {
|
|||||||
brute_force_detection {
|
brute_force_detection {
|
||||||
max_login_failures = 5
|
max_login_failures = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
headers {
|
||||||
|
content_security_policy = "frame-src 'self'; frame-ancestors 'self' http://localhost:4200; object-src 'none';"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
default_signature_algorithm = "ES256"
|
default_signature_algorithm = "ES256"
|
||||||
@@ -111,3 +115,13 @@ resource "keycloak_openid_client" "twomartens_nextcloud" {
|
|||||||
"https://cloud.2martens.de/*"
|
"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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user