src/Saml.php
public function validateDestination(Response $response)
    {
        if ($this->getMetadata()->getFirstSpSsoDescriptor()->getFirstAssertionConsumerService()->getLocation()
            != $response->getDestination()
        ) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateDestination(Response $response)
    {
        if ($this->getMetadata()->getFirstSpSsoDescriptor()->getFirstAssertionConsumerService()->getLocation()
            != $response->getDestination()
        ) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateDestination ( Response $ response ) { if ( $ this -> getMetadata ( ) -> getFirstSpSsoDescriptor ( ) -> getFirstAssertionConsumerService ( ) -> getLocation ( ) != $ response -> getDestination ( ) ) { throw new SamlException ( 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied' ) ; } }
Validate IdP Response destination

@param Response $response

@throws SamlException
Validate IdP Response destination