Skip to content
Snippets Groups Projects
Commit 04bed462 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Improved error message if could not find SAMLResponse field in browser/POST

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@31 44740490-163a-0410-bde0-09ae8108e29a
parent 2ff67249
Branches
Tags
No related merge requests found
...@@ -188,9 +188,13 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { ...@@ -188,9 +188,13 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
} }
public function decodeResponse($post) { public function decodeResponse($post) {
if (!isset($post["SAMLResponse"])) throw new Exception('Could not get SAMLResponse from Browser/POST. May be there is some redirection related problem on your server? In example apache redirecting the POST to http to a GET on https.');
$rawResponse = $post["SAMLResponse"]; $rawResponse = $post["SAMLResponse"];
$relaystate = $post["RelayState"]; $relaystate = $post["RelayState"];
$samlResponseXML = base64_decode( $rawResponse ); $samlResponseXML = base64_decode( $rawResponse );
//error_log("Response is: " . $samlResponseXML); //error_log("Response is: " . $samlResponseXML);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment