src/MetadataProvider.php
public function getSPEntityConfiguration($entityID)
    {
        $url = $this->buildUrl(self::API_IDP . '?entityID=' . $entityID);

        $request = (new RequestDescriptor())
            ->setMethod('GET')
            ->setUrl($url);

        $response = $this->send($request);

        $extractor = (new MessageExtractor())->setHydrator(new MessageHydrator());

        /** @var SignedMessageDecorator $message */
        $message = $extractor->extract(\json_decode($response->getBody(), true));

        return $message->getMessage();
    }
public function getSPEntityConfiguration($entityID)
    {
        $url = $this->buildUrl(self::API_IDP . '?entityID=' . $entityID);

        $request = (new RequestDescriptor())
            ->setMethod('GET')
            ->setUrl($url);

        $response = $this->send($request);

        $extractor = (new MessageExtractor())->setHydrator(new MessageHydrator());

        /** @var SignedMessageDecorator $message */
        $message = $extractor->extract(\json_decode($response->getBody(), true));

        return $message->getMessage();
    }
public function getSPEntityConfiguration ( $ entityID ) { $ url = $ this -> buildUrl ( self :: API_IDP . '?entityID=' . $ entityID ) ; $ request = ( new RequestDescriptor ( ) ) -> setMethod ( 'GET' ) -> setUrl ( $ url ) ; $ response = $ this -> send ( $ request ) ; $ extractor = ( new MessageExtractor ( ) ) -> setHydrator ( new MessageHydrator ( ) ) ; /** @var SignedMessageDecorator $message */ $ message = $ extractor -> extract ( \ json_decode ( $ response -> getBody ( ) , true ) ) ; return $ message -> getMessage ( ) ; }
Get the SP entity configuration from Connect IdP

@param string $entityID

@return SpEntityConfigurationMessage
Get the SP entity configuration from Connect IdP