I was attempting to use the example below from the website, but the response object always returns null. I have looked into the code and I can see that the request object is properly being parsed into an object, but the $response is always null, so I can not iterate on it.
Here is the example from the website
<?php
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$bindingFactory = new \LightSaml\Binding\BindingFactory();
$binding = $bindingFactory->getBindingByRequest($request);
$messageContext = new \LightSaml\Context\Profile\MessageContext();
/** @var \LightSaml\Model\Protocol\Response $response */
$response = $binding->receive($request, $messageContext);
print $response->getID();
Every time I call this, the $response is null and I receive a fatal error that the getID() function does not exist in null $response variable.
I would like to iterate on the response, and also validate the signature, unless this is automatic. I did not see any signature validation in the response processing though.
It seems that the website is still work in progress. Any help you can provide including a sample app like what used to be present one the lightSAML page would be awesome! Right now, I'm kind of wrapped around the sea of class abstraction.
I was attempting to use the example below from the website, but the response object always returns null. I have looked into the code and I can see that the request object is properly being parsed into an object, but the
$responseis always null, so I can not iterate on it.Here is the example from the website
Every time I call this, the
$responseis null and I receive a fatal error that thegetID()function does not exist in null$responsevariable.I would like to iterate on the response, and also validate the signature, unless this is automatic. I did not see any signature validation in the response processing though.
It seems that the website is still work in progress. Any help you can provide including a sample app like what used to be present one the lightSAML page would be awesome! Right now, I'm kind of wrapped around the sea of class abstraction.