Skip to content

Commit

Permalink
openidc config template to support complex configs (#212)
Browse files Browse the repository at this point in the history
* openidc config template to support complex configs

* should also template key here

Co-authored-by: Leopold Talirz <leopold.talirz@gmail.com>

---------

Co-authored-by: Leopold Talirz <leopold.talirz@gmail.com>
  • Loading branch information
johrstrom and ltalirz committed Oct 2, 2023
1 parent beb8571 commit f12a807
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/auth_openidc.conf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{% set _auth_openidc = default_auth_openidc | combine(ood_auth_openidc) %}
{% for key, value in _auth_openidc.items() %}
{% if value is iterable and (value is not string and value is not mapping) %}
{{ key }} {{ value | map('quote') | join(' ') }}
{% else %}
{{ key }} {{ value | quote }}
{% endif %}
{% endfor %}

0 comments on commit f12a807

Please sign in to comment.