Extend realm configuration
Change-Id: Ia495db6506bbb49f71694d1110819204882f4b84
Related: PROD-27658
diff --git a/keycloak/files/server/realms.json b/keycloak/files/server/realms.json
index 704a4ee..35ef4b4 100644
--- a/keycloak/files/server/realms.json
+++ b/keycloak/files/server/realms.json
@@ -6,6 +6,9 @@
"enabled": {{ realm.get('enabled', true)|json }},
"sslRequired": "external",
"requiredCredentials": [ "password" ],
+ {%- for parameter_name, parameter_value in realm.get('additional_params', {}).items() %}
+ "{{ parameter_name }}": {{ parameter_value }},
+ {%- endfor %}
"clients": [
{%- for client_name, client in realm.get('client', {}).iteritems() %}
{
diff --git a/tests/pillar/server_ldap.sls b/tests/pillar/server_ldap.sls
index c1e3549..2601089 100644
--- a/tests/pillar/server_ldap.sls
+++ b/tests/pillar/server_ldap.sls
@@ -5,6 +5,12 @@
ldap-realm:
enabled: true
id: ldap-realm
+ additional_params:
+ registrationAllowed: false
+ registrationEmailAsUsername: false
+ resetPasswordAllowed: false
+ accessTokenLifespan: 60
+ ssoSessionIdleTimeout: 600
client:
ldap-app:
enabled: true