Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

saml-php error code explanation

I am very new to the SAML arena, and I am trying to implement this into my app as an SP only, using saml-php from OneLogIn. As it now stands, I am able to get it working using a OneLogIn test app, however, whenever an outside source attempts to log in through it, I get the following error:

 Fatal error: Uncaught exception 'OneLogin_Saml2_Error' with message 'SAML Response not found, Only supported HTTP_POST Binding' in 

followed by a stack trace through my various files. Since I do not have much experience with all of this, could someone explain what this means? Where do I need to start looking in order to debug it.

Please, if any additional information would be helpful, let me know, and I will provide it.

Thank you in advance!

like image 410
jldavis76 Avatar asked Jul 25 '26 16:07

jldavis76


1 Answers

The SP Assertion Consumer Service URL expects a "SAMLResponse" POST parameter containing a SAMLResponse message.

That error means that the ACS endpoint was not able to find that parameter (maybe the Identity Provider using HTTP-Redirect binding?).

You can use SAMLTracer in order to record the SAML flow and analyze what is happening. Compare the trace between the working environment with Onelogin app and the otherone.

Also visit samltool.com where you will found several info related to SAML, including the "online tools" where you will be able to manipulate SAML messages and learn how SAML works.

like image 160
smartin Avatar answered Jul 28 '26 06:07

smartin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!