Skip to content

The Receive Message Example on the WebSite is Insufficient to Build an ACS Interface #89

@TheWitness

Description

@TheWitness

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions