private function SamlSPController::validAuthenticationResponse in SAML Service Provider 8.3
Same name and namespace in other branches
- 4.x src/Controller/SamlSPController.php \Drupal\saml_sp\Controller\SamlSPController::validAuthenticationResponse()
- 3.x src/Controller/SamlSPController.php \Drupal\saml_sp\Controller\SamlSPController::validAuthenticationResponse()
Check that a request is a valid SAML authentication response.
Return value
bool TRUE if the response is valid.
1 call to SamlSPController::validAuthenticationResponse()
- SamlSPController::consume in src/
Controller/ SamlSPController.php - Receive data back from the IdP.
File
- src/
Controller/ SamlSPController.php, line 144
Class
- SamlSPController
- Provides route responses for the SAML SP module.
Namespace
Drupal\saml_sp\ControllerCode
private function validAuthenticationResponse() {
return $_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST['SAMLResponse']);
}