@@ 1387-1392 (lines=6) @@ | ||
1384 | } |
|
1385 | ||
1386 | // open and read the URL |
|
1387 | if (!$this->readURL($validate_url, ''/*cookies*/, $headers, $text_response, $err_msg)) { |
|
1388 | phpCAS::trace('could not open URL \'' . $validate_url . '\' to validate (' . $err_msg . ')'); |
|
1389 | $this->authError('ST not validated', |
|
1390 | $validate_url, |
|
1391 | true/*$no_response*/); |
|
1392 | } |
|
1393 | ||
1394 | // analyze the result depending on the version |
|
1395 | switch ($this->getServerVersion()) { |
|
@@ 1516-1519 (lines=4) @@ | ||
1513 | $validate_url = $this->getServerSamlValidateURL(); |
|
1514 | ||
1515 | // open and read the URL |
|
1516 | if (!$this->readURL($validate_url, ''/*cookies*/, $headers, $text_response, $err_msg)) { |
|
1517 | phpCAS::trace('could not open URL \'' . $validate_url . '\' to validate (' . $err_msg . ')'); |
|
1518 | $this->authError('SA not validated', $validate_url, true/*$no_response*/); |
|
1519 | } |
|
1520 | ||
1521 | phpCAS::trace('server version: ' . $this->getServerVersion()); |
|
1522 | ||
@@ 2526-2531 (lines=6) @@ | ||
2523 | } |
|
2524 | ||
2525 | // open and read the URL |
|
2526 | if (!$this->readURL($validate_url, ''/*cookies*/, $headers, $text_response, $err_msg)) { |
|
2527 | phpCAS::trace('could not open URL \'' . $validate_url . '\' to validate (' . $err_msg . ')'); |
|
2528 | $this->authError('PT not validated', |
|
2529 | $validate_url, |
|
2530 | true/*$no_response*/); |
|
2531 | } |
|
2532 | ||
2533 | // read the response of the CAS server into a DOM object |
|
2534 | if (!($dom = domxml_open_mem($text_response))) { |