Skip to content

Commit f2bc0f2

Browse files
committed
Update saml20-idp-remote from using string format to array format
1 parent 47b2e54 commit f2bc0f2

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

src/roles/saml/templates/saml20-idp-remote.php.j2

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,38 @@ $metadata['{{ saml_public.idp_entity_id }}'] = array(
2121
// merged automatically rather than on a case-by-case basis like this.
2222

2323
{% if saml_secret.single_sign_on_service is defined %}
24-
'SingleSignOnService' => '{{ saml_secret.single_sign_on_service }}',
24+
'SingleSignOnService' => array(
25+
array(
26+
'Binding' => 'urn:oasis:names:tc:SAML2:bindings:HTTP-Redirect',
27+
'Location' => '{{ saml_secret.single_sign_on_service }}',
28+
),
29+
),
2530
{% elif saml_public.single_sign_on_service is defined %}
26-
'SingleSignOnService' => '{{ saml_public.single_sign_on_service }}',
31+
'SingleSignOnService' => array(
32+
array(
33+
'Binding' => 'urn:oasis:names:tc:SAML2:bindings:HTTP-Redirect',
34+
'Location' => '{{ saml_public.single_sign_on_service }}',
35+
),
36+
),
2737
{% else %}
2838
// neither {{ saml_secret.single_sign_on_service }} nor {{ saml_public.single_sign_on_service }} is defined
2939
{% endif %}
3040

3141

3242
{% if saml_secret.single_logout_service is defined %}
33-
'SingleLogoutService' => '{{ saml_secret.single_logout_service }}',
43+
'SingleLogoutService' => array(
44+
array(
45+
'Binding' => 'urn:oasis:names:tc:SAML2:bindings:HTTP-Redirect',
46+
'Location' => '{{ saml_secret.single_logout_service }}',
47+
),
48+
),
3449
{% elif saml_public.single_logout_service is defined %}
35-
'SingleLogoutService' => '{{ saml_public.single_logout_service }}',
50+
'SingleLogoutService' => array(
51+
array(
52+
'Binding' => 'urn:oasis:names:tc:SAML2:bindings:HTTP-Redirect',
53+
'Location' => '{{ saml_public.single_logout_service }}',
54+
),
55+
),
3656
{% else %}
3757
// neither {{ saml_secret.single_logout_service }} nor {{ saml_public.single_logout_service }} is defined
3858
{% endif %}

0 commit comments

Comments
 (0)