diff --git a/modules/saml/docs/sp.md b/modules/saml/docs/sp.md index f03a7478ffc86598d98d8795cafeecf1591a91a8..6e1607e1c2f99a1f3922e2d61b1a09caad208f42 100644 --- a/modules/saml/docs/sp.md +++ b/modules/saml/docs/sp.md @@ -120,6 +120,11 @@ Options : *Note*: SAML 2 specific. +`AssertionConsumerService` +: List of Assertion Consumer Services in the generated metadata. Specified in the array of + arrays format as seen in the [Metadata endpoints](./simplesamlphp-metadata-endpoints) + documentation. + `attributes` : List of attributes this SP requests from the IdP. This list will be added to the generated metadata. @@ -410,6 +415,9 @@ Options * `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST` * `urn:oasis:names:tc:SAML:2.0:bindings:SOAP` +`SingleLogoutServiceLocation` +: The Single Logout Service URL published in the generated metadata. + `url` : A URL to your service provider. Will be added as an OrganizationURL-element in the metadata. diff --git a/modules/saml/www/sp/metadata.php b/modules/saml/www/sp/metadata.php index f82f3105c81bc5c26cda92620b7ed846a58c44f0..a9557379db31c456c208605c4365607bed056601 100644 --- a/modules/saml/www/sp/metadata.php +++ b/modules/saml/www/sp/metadata.php @@ -42,7 +42,7 @@ foreach ($slob as $binding) { } $metaArray20['SingleLogoutService'][] = [ 'Binding' => $binding, - 'Location' => $slol, + 'Location' => $spconfig->getString('SingleLogoutServiceLocation', $slol), ]; } @@ -106,7 +106,7 @@ foreach ($assertionsconsumerservices as $services) { $index++; } -$metaArray20['AssertionConsumerService'] = $eps; +$metaArray20['AssertionConsumerService'] = $spconfig->getArray('AssertionConsumerService', $eps); $keys = []; $certInfo = \SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_');