@@ 984-988 (lines=5) @@ | ||
981 | phpCAS::trace('ST `' . $this->getST() . '\' is present'); |
|
982 | $this->validateST($validate_url, $text_response, $tree_response); // if it fails, it halts |
|
983 | phpCAS::trace('ST `' . $this->getST() . '\' was validated'); |
|
984 | if ($this->isProxy()) { |
|
985 | $this->validatePGT($validate_url, $text_response, $tree_response); // idem |
|
986 | phpCAS::trace('PGT `' . $this->getPGT() . '\' was validated'); |
|
987 | $_SESSION['phpCAS']['pgt'] = $this->getPGT(); |
|
988 | } |
|
989 | $_SESSION['phpCAS']['user'] = $this->getUser(); |
|
990 | $res = true; |
|
991 | } elseif ($this->hasPT()) { |
|
@@ 996-1000 (lines=5) @@ | ||
993 | phpCAS::trace('PT `' . $this->getPT() . '\' is present'); |
|
994 | $this->validatePT($validate_url, $text_response, $tree_response); // note: if it fails, it halts |
|
995 | phpCAS::trace('PT `' . $this->getPT() . '\' was validated'); |
|
996 | if ($this->isProxy()) { |
|
997 | $this->validatePGT($validate_url, $text_response, $tree_response); // idem |
|
998 | phpCAS::trace('PGT `' . $this->getPGT() . '\' was validated'); |
|
999 | $_SESSION['phpCAS']['pgt'] = $this->getPGT(); |
|
1000 | } |
|
1001 | $_SESSION['phpCAS']['user'] = $this->getUser(); |
|
1002 | $res = true; |
|
1003 | } elseif ($this->hasSA()) { |