commit | author | age | ||
5686c9 | 1 | <?php |
JK | 2 | require_once('uphpCAS.php'); |
3 | session_start(); | |
4 | ||
5 | try { | |
6 | $cas = new uphpCAS($_SESSION['cas']); | |
7 | if(isset($_SESSION['cafile'])) { | |
8 | $cas->setCaFile($_SESSION['cafile']); | |
9 | } | |
10 | $user = $cas->authenticate(); | |
11 | ||
12 | header('Location: index.php'); | |
13 | } catch(Exception $e) { | |
14 | echo 'Jasig authentication failed: '.$e->getMessage(); | |
15 | die(); | |
16 | } |