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

SAML2_Binding: Only look at the relevant data when detecting the current binding.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2845 44740490-163a-0410-bde0-09ae8108e29a
parent 5a67c504
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,9 @@ abstract class SAML2_Binding {
public static function getCurrentBinding() {
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET':
if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) {
if (array_key_exists('SAMLRequest', $_GET) || array_key_exists('SAMLResponse', $_GET)) {
return new SAML2_HTTPRedirect();
} elseif (array_key_exists('SAMLart', $_REQUEST) ){
} elseif (array_key_exists('SAMLart', $_GET) ){
return new SAML2_HTTPArtifact();
}
break;
......@@ -68,9 +68,9 @@ abstract class SAML2_Binding {
} else {
$contentType = NULL;
}
if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) {
if (array_key_exists('SAMLRequest', $_POST) || array_key_exists('SAMLResponse', $_POST)) {
return new SAML2_HTTPPost();
} elseif (array_key_exists('SAMLart', $_REQUEST) ){
} elseif (array_key_exists('SAMLart', $_POST) ){
return new SAML2_HTTPArtifact();
} elseif ($contentType === 'text/xml') {
return new SAML2_SOAP();
......
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