private function CasValidator::parseServerProxyChain in CAS 2.x
Same name and namespace in other branches
- 8 src/Service/CasValidator.php \Drupal\cas\Service\CasValidator::parseServerProxyChain()
Parse the XML proxy list from the CAS Server.
Parameters
\DOMNodeList $xml_list: An XML element containing proxy values, from most recent to first.
Return value
array An array of proxy values, from most recent to first.
1 call to CasValidator::parseServerProxyChain()
- CasValidator::verifyProxyChain in src/
Service/ CasValidator.php - Verify a proxy chain from the CAS Server.
File
- src/
Service/ CasValidator.php, line 401
Class
- CasValidator
- The CAS ticket validator service.
Namespace
Drupal\cas\ServiceCode
private function parseServerProxyChain(\DOMNodeList $xml_list) {
$proxies = [];
// Loop through the DOMNodeList, adding each proxy to the list.
foreach ($xml_list as $node) {
$proxies[] = $node->nodeValue;
}
return $proxies;
}