You are here

private function CasValidator::parseServerProxyChain in CAS 8

Same name and namespace in other branches
  1. 2.x 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
Class CasValidator.

Namespace

Drupal\cas\Service

Code

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;
}