From 780ab3881c62c589e2a250a383f956aadd8ad5c4 Mon Sep 17 00:00:00 2001 From: Nommyde Date: Wed, 2 Sep 2020 11:04:40 +0300 Subject: [PATCH] fix: $binding->receive() does not return anything how_to_receive_saml_message.php should be fixed as well --- LightSAML-Core/Cookbook/How-to-receive-SAML-message/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LightSAML-Core/Cookbook/How-to-receive-SAML-message/index.md b/LightSAML-Core/Cookbook/How-to-receive-SAML-message/index.md index 8a861ee..a40c8e9 100644 --- a/LightSAML-Core/Cookbook/How-to-receive-SAML-message/index.md +++ b/LightSAML-Core/Cookbook/How-to-receive-SAML-message/index.md @@ -20,8 +20,9 @@ $bindingFactory = new \LightSaml\Binding\BindingFactory(); $binding = $bindingFactory->getBindingByRequest($request); $messageContext = new \LightSaml\Context\Profile\MessageContext(); +$binding->receive($request, $messageContext); /** @var \LightSaml\Model\Protocol\Response $response */ -$response = $binding->receive($request, $messageContext); +$response = $messageContext->getMessage(); print $response->getID(); ```