Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inResponseTo Error #20

Open
Tazoeur opened this issue Jan 30, 2019 · 0 comments
Open

inResponseTo Error #20

Tazoeur opened this issue Jan 30, 2019 · 0 comments

Comments

@Tazoeur
Copy link

Tazoeur commented Jan 30, 2019

Hi

I think the response created in Http/Traits/SamlAuth.php:138 should also contain a "set in response to"

 // Generate the response object
        $response = new \LightSaml\Model\Protocol\Response();
        $response
           ->addAssertion($assertion = new \LightSaml\Model\Assertion\Assertion())
            ->setID(\LightSaml\Helper::generateID())
            ->setIssueInstant(new \DateTime())
            ->setInResponseTo($authnRequest->getId())
            ->setDestination($destination)
            ->setIssuer(new \LightSaml\Model\Assertion\Issuer($issuer))
            ->setStatus(new \LightSaml\Model\Protocol\Status(new \LightSaml\Model\Protocol\StatusCode(\LightSaml\SamlConstants::STATUS_SUCCESS)))
            ->setSignature(new \LightSaml\Model\XmlDSig\SignatureWriter($certificate, $privateKey))
            
        ;

so the sp that checks where the response come from could not assume that the request is unsolicited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant