Adapted realm and global styling

This commit is contained in:
2025-02-20 17:07:39 +01:00
parent 0782dc404d
commit a4c3bcd6af
4 changed files with 174 additions and 109 deletions

View File

@@ -835,18 +835,17 @@
"secret": "{{oidc.client.secret}}",
"redirectUris": [
{%- for application, domain in domains.items() -%}
{%- if applications[application_id] is defined and applications | get_oauth2_enabled(application_id) -%}
{%- if applications[application] is defined and ( applications | get_oauth2_enabled(application) or applications | get_oidc_enabled(application)) -%}
{%- if domain is string -%}
"https://" {{ domain }} "/*",
"https://{{ domain }}/*"{% if not loop.last %},{% endif %}
{%- else -%}
{%- for d in domain -%}
"https://" {{ domain }} "/*",
"https://{{ d }}/*"{% if not (loop.last and loop.parent.last) %},{% endif %}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
],
"webOrigins": [
"https://*.{{primary_domain}}"
],