From 5f787178770cd54e7f27119cd276c1eedb69cd23 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 27 Apr 2011 07:42:31 +0000 Subject: [PATCH] SAML2_Binding: Allow the use of a POST request for transmitting artifacts. The specification allows the SAMLart parameter to be sent as POST data. Update the code to allow this. Thanks to Ofer Gigi for locating this bug. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2819 44740490-163a-0410-bde0-09ae8108e29a --- lib/SAML2/Binding.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SAML2/Binding.php b/lib/SAML2/Binding.php index 1e05ee46b..3cb987f05 100644 --- a/lib/SAML2/Binding.php +++ b/lib/SAML2/Binding.php @@ -70,6 +70,8 @@ abstract class SAML2_Binding { } if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) { return new SAML2_HTTPPost(); + } elseif (array_key_exists('SAMLart', $_REQUEST) ){ + return new SAML2_HTTPArtifact(); } elseif ($contentType === 'text/xml') { return new SAML2_SOAP(); } -- GitLab