sspmod_adfs_IdP_ADFS::getLogoutURL PHP Method

getLogoutURL() public static method

accepts an association array, and returns a URL that can be accessed to terminate the association
public static getLogoutURL ( SimpleSAML_IdP $idp, array $association, $relayState )
$idp SimpleSAML_IdP
$association array
    public static function getLogoutURL(SimpleSAML_IdP $idp, array $association, $relayState)
    {
        $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
        $idpMetadata = $idp->getConfig();
        $spMetadata = $metadata->getMetaDataConfig($association['adfs:entityID'], 'adfs-sp-remote');
        $returnTo = SimpleSAML\Module::getModuleURL('adfs/idp/prp.php?assocId=' . urlencode($association["id"]) . '&relayState=' . urlencode($relayState));
        return $spMetadata->getValue('prp') . '?' . 'wa=wsignoutcleanup1.0&wreply=' . urlencode($returnTo);
    }