Skip to content

Commit 6a8ad8f

Browse files
committed
Remove $_POST dependency
1 parent 76b784e commit 6a8ad8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Saml2/Auth.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ public function setSchemasPath($path)
201201
* @throws OneLogin_Saml2_Error
202202
* @throws OneLogin_Saml2_ValidationError
203203
*/
204-
public function processResponse($requestId = null)
204+
public function processResponse($requestId = null, $payload =[])
205205
{
206206
$this->_errors = array();
207207
$this->_errorReason = null;
208-
if (isset($_POST['SAMLResponse'])) {
208+
if (isset($payload['SAMLResponse'])) {
209209
// AuthnResponse -- HTTP_POST Binding
210-
$response = new OneLogin_Saml2_Response($this->_settings, $_POST['SAMLResponse']);
210+
$response = new OneLogin_Saml2_Response($this->_settings, $payload['SAMLResponse']);
211211
$this->_lastResponse = $response->getXMLDocument();
212212

213213
if ($response->isValid($requestId)) {

0 commit comments

Comments
 (0)