-
Notifications
You must be signed in to change notification settings - Fork 5
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
The receive
method does not return anything
#1
Comments
Hello @cjhaas, Thanks you for your issue, I will investigate ASAP. Bye |
Same thing for me, receive dose not return any thing, also the documentation dose not describe how to receive an encrypted message. @william-suppo thanks for the awesome simple package |
i have resolved the issue by using the $request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$bindingFactory = new \LightSaml\Binding\BindingFactory();
$binding = $bindingFactory->getBindingByRequest($request);
$messageContext = new \LightSaml\Context\Profile\MessageContext();
$binding->receive($request, $messageContext);
$messageContext->getMessage()->getId(); |
If you want to get response as expected from receive function: $response = $messageContext->asResponse(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation says that
receive
will return various things, however it appears that this is not true, and you should instead callgetMessage()
on theMessageContext
that was previously created.The text was updated successfully, but these errors were encountered: