Skip to content
Snippets Groups Projects
Commit 5a67c504 authored by Olav Morken's avatar Olav Morken
Browse files

SAML2_Binding: Log more information when unable to determine the current binding.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2844 44740490-163a-0410-bde0-09ae8108e29a
parent a2499fca
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,18 @@ abstract class SAML2_Binding { ...@@ -78,6 +78,18 @@ abstract class SAML2_Binding {
break; break;
} }
SimpleSAML_Logger::warning('Unable to find the SAML 2 binding used for this request.');
SimpleSAML_Logger::warning('Request method: ' . var_export($_SERVER['REQUEST_METHOD'], TRUE));
if (!empty($_GET)) {
SimpleSAML_Logger::warning("GET parameters: '" . implode("', '", array_map('addslashes', array_keys($_GET))) . "'");
}
if (!empty($_POST)) {
SimpleSAML_Logger::warning("POST parameters: '" . implode("', '", array_map('addslashes', array_keys($_POST))) . "'");
}
if (isset($_SERVER['CONTENT_TYPE'])) {
SimpleSAML_Logger::warning('Content-Type: ' . var_export($_SERVER['CONTENT_TYPE'], TRUE));
}
throw new Exception('Unable to find the current binding.'); throw new Exception('Unable to find the current binding.');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment