~fkooman/php-saml-idp

11b0ee8516753aedce405747f89d6a13d6fe2281 — François Kooman 5 months ago 2ce3abe main
make sure SLO URL is registered
1 files changed, 3 insertions(+), 1 deletions(-)

M src/SAML/SamlModule.php
M src/SAML/SamlModule.php => src/SAML/SamlModule.php +3 -1
@@ 365,7 365,9 @@ class SamlModule implements ServiceModuleInterface
        // XXX all seems to be fine at this point, log the user out, and send a
        // LogoutResponse

        $sloUrl = $spInfo->sloUrl();
        if (null === $sloUrl = $spInfo->sloUrl()) {
            throw new RuntimeException('no SLO URL registered for this SP');
        }

        $responseXml = $this->xmlTpl->render(
            __DIR__ . '/tpl/logoutResponse.tpl.php',