00001 <?php
00002
00003
00004
00005
00006
00007
00008 include_once('CAS.php');
00009
00010 phpCAS::setDebug();
00011
00012
00013 phpCAS::client(CAS_VERSION_2_0,'sso.hrz.tu-darmstadt.de',443,'');
00014 phpCAS::setServerServiceValidateURL('https://sso.hrz.tu-darmstadt.de:1443/serviceValidate');
00015
00016
00017
00018
00019 phpCAS::setNoCasServerValidation();
00020
00021
00022 phpCAS::forceAuthentication();
00023
00024
00025
00026
00027
00028 if (isset($_REQUEST['logout'])) {
00029 phpCAS::logout();
00030 }
00031
00032
00033 ?>
00034 <html>
00035 <head>
00036 <title>phpCAS simple client</title>
00037 </head>
00038 <body>
00039 <h1>Successfull Authentication!</h1>
00040 <p>the user's login is <b><?php echo phpCAS::getUser(); ?></b>.</p>
00041 <p>phpCAS version is <b><?php echo phpCAS::getVersion(); ?></b>.</p>
00042 <p><a href="?logout=">Logout</a></p>
00043 </body>
00044 </html>