Skip to content

Commit

Permalink
add configuration for line breaks with saml key
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Sep 25, 2023
1 parent 827c47d commit f1cfd33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/redmine/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ redmine_saml_idp_sso_service_url: 'https://sso.desarrollo.unlp.edu.ar/saml2/idp/
# see https://www.samltool.com/fingerprint.php
# redmine_saml_idp_cert_fingerprint: 'certificate fingerprint'
# redmine_saml_idp_cert: ''
# if true, \n can be used in string
redmine_saml_idp_cert_line_break_format: false
# Used during SP-initiated SSO.
# Describes the format of the username required by this application.
# If you need the email address, use "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ require Rails.root.join('plugins/redmine_saml/lib/redmine_saml/base')
{% endif %}
{% endif %}
{% if saml_idp_cert != '' %}
{% redmine_saml_idp_cert_line_break_format %}
idp_cert: "{{ saml_idp_cert | replace('\n', '\\n') }}",
{% else %}
idp_cert: '{{ saml_idp_cert }}',
{% endif %}
{% if saml_idp_slo_service_url != '' %}
idp_slo_service_url: '{{ saml_idp_slo_service_url }}',
Expand Down

0 comments on commit f1cfd33

Please sign in to comment.