Skip to content

Commit 2d6b33b

Browse files
author
Mannes Brak
committed
string
1 parent 28a288f commit 2d6b33b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Saml2/Auth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,16 @@ public function setStrict($value)
171171
/**
172172
* Process the SAML Response sent by the IdP.
173173
*
174+
* @param string $samlResponse
174175
* @param string|null $requestId The ID of the AuthNRequest sent by this SP to the IdP
175176
*
176177
* @throws OneLogin_Saml2_Error
177178
*/
178-
public function processResponse(Request $request, $requestId = null)
179+
public function processResponse($samlResponse, $requestId = null)
179180
{
180181
$this->_errors = array();
181182
$this->_errorReason = null;
182-
if (null !== ($samlResponse = $request->get('SAMLResponse', null))) {
183+
if (null !== $samlResponse) {
183184
// AuthnResponse -- HTTP_POST Binding
184185
$response = new OneLogin_Saml2_Response($this->_settings, $samlResponse);
185186
$this->_lastResponse = $response->getXMLDocument();
@@ -211,6 +212,7 @@ public function processResponse(Request $request, $requestId = null)
211212
/**
212213
* Process the SAML Logout Response / Logout Request sent by the IdP.
213214
*
215+
* @param Request $request
214216
* @param bool $keepLocalSession When false will destroy the local session, otherwise will keep it
215217
* @param string|null $requestId The ID of the LogoutRequest sent by this SP to the IdP
216218
* @param bool $retrieveParametersFromServer

0 commit comments

Comments
 (0)