mirror of https://github.com/jacekkow/uphpCAS-tests

Jacek Kowalski
2020-03-16 aec94b681c69eb429fcfa5050602608d8cfcdb86
commit | author | age
5686c9 1 <?php
JK 2 require_once('uphpCAS.php');
3 session_start();
4
5 $cas = new uphpCAS($_SESSION['cas']);
6
7 if($cas->isAuthenticated()) {
8     $user = $cas->authenticate();
9     echo 'Authenticated as '.$user->user;
10 } else {
11     echo 'Not authenticated. <a href="login.php">Log in</a>';
12 }