Skip to content
Snippets Groups Projects
Commit 14884846 authored by Sean Hannan's avatar Sean Hannan Committed by Tim van Dijen
Browse files

SAML: Configurable SLO and ACS metadata (#988)

This commit adds the ability to override the defaults in the generated SP metadata for SLO Location and ACS endpoints. This is necessary for my use case as I have additional ACS endpoints to publish in my metadata beyond the generated ones as well as a custom SLO handler that I need to direct my users to. If unset in the config, it uses the defaults as before.
parent 4ef25789
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,11 @@ Options ...@@ -120,6 +120,11 @@ Options
: *Note*: SAML 2 specific. : *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` `attributes`
: List of attributes this SP requests from the IdP. : List of attributes this SP requests from the IdP.
This list will be added to the generated metadata. This list will be added to the generated metadata.
...@@ -410,6 +415,9 @@ Options ...@@ -410,6 +415,9 @@ Options
* `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST` * `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST`
* `urn:oasis:names:tc:SAML:2.0:bindings:SOAP` * `urn:oasis:names:tc:SAML:2.0:bindings:SOAP`
`SingleLogoutServiceLocation`
: The Single Logout Service URL published in the generated metadata.
`url` `url`
: A URL to your service provider. Will be added as an OrganizationURL-element in the metadata. : A URL to your service provider. Will be added as an OrganizationURL-element in the metadata.
......
...@@ -42,7 +42,7 @@ foreach ($slob as $binding) { ...@@ -42,7 +42,7 @@ foreach ($slob as $binding) {
} }
$metaArray20['SingleLogoutService'][] = [ $metaArray20['SingleLogoutService'][] = [
'Binding' => $binding, 'Binding' => $binding,
'Location' => $slol, 'Location' => $spconfig->getString('SingleLogoutServiceLocation', $slol),
]; ];
} }
...@@ -106,7 +106,7 @@ foreach ($assertionsconsumerservices as $services) { ...@@ -106,7 +106,7 @@ foreach ($assertionsconsumerservices as $services) {
$index++; $index++;
} }
$metaArray20['AssertionConsumerService'] = $eps; $metaArray20['AssertionConsumerService'] = $spconfig->getArray('AssertionConsumerService', $eps);
$keys = []; $keys = [];
$certInfo = \SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_'); $certInfo = \SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment