Solved application id bug in keycloak

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-13 23:12:13 +02:00
parent fb0ca533ae
commit 632ad14bd8
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
# Helper Variables: # Helper Variables:
# Keep in mind to mapp this variables if there is ever the possibility for the user to define them in the inventory # Keep in mind to mapp this variables if there is ever the possibility for the user to define them in the inventory
_ldap_dn_base: "dc={{primary_domain_sld}},dc={{primary_domain_tld}}" _ldap_dn_base: "dc={{primary_domain_sld}},dc={{primary_domain_tld}}"
_ldap_server_port: "{% if applications['svc-db-openldap'].network.docker | bool %}{{ ports.localhost.ldap[application_id] }}{% else %}{{ ports.localhost.ldaps[application_id] }}{% endif %}" _ldap_server_port: "{% if applications['svc-db-openldap'].network.docker | bool %}{{ ports.localhost.ldap['svc-db-openldap'] }}{% else %}{{ ports.localhost.ldaps['svc-db-openldap'] }}{% endif %}"
_ldap_user_id: "uid" _ldap_user_id: "uid"
_ldap_filters_users_all: "(|(objectclass=inetOrgPerson))" _ldap_filters_users_all: "(|(objectclass=inetOrgPerson))"

View File

@ -834,8 +834,8 @@
"clientAuthenticatorType": "desktop-secret", "clientAuthenticatorType": "desktop-secret",
"secret": "{{oidc.client.secret}}", "secret": "{{oidc.client.secret}}",
{%- set redirect_uris = [] %} {%- set redirect_uris = [] %}
{%- for application_id, domain in domains.items() %} {%- for domain_application_id, domain in domains.items() %}
{%- if applications | get_app_conf(application_id, 'features.oauth2', False) or applications | get_app_conf(application_id, 'features.oidc', False) %} {%- if applications | get_app_conf(domain_application_id, 'features.oauth2', False) or applications | get_app_conf(domain_application_id, 'features.oidc', False) %}
{%- if domain is string %} {%- if domain is string %}
{%- set _ = redirect_uris.append(web_protocol ~ '://' ~ domain ~ '/*') %} {%- set _ = redirect_uris.append(web_protocol ~ '://' ~ domain ~ '/*') %}
{%- else %} {%- else %}