Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

example_service.php

<?php // // phpCAS proxied client (service) // // import phpCAS lib include_once('CAS/CAS.php'); // set debug mode phpCAS::setDebug(); // initialize phpCAS phpCAS::client(CAS_VERSION_2_0,'sso-cas.univ-rennes1.fr',443,''); // force CAS authentication phpCAS::forceAuthentication(); // at this step, the user has been authenticated by the CAS server // and the user's login name can be read with phpCAS::getUser(). // for this test, simply print that the authentication was successfull echo '<p>The user\'s login is <b>'.phpCAS::getUser().'</b>.</p>'; ?>
00001 <?php 00002 00003 // 00004 // phpCAS proxied client (service) 00005 // 00006 00007 // import phpCAS lib 00008 include_once('CAS/CAS.php'); 00009 00010 // set debug mode 00011 phpCAS::setDebug(); 00012 00013 // initialize phpCAS 00014 phpCAS::client(CAS_VERSION_2_0,'sso-cas.univ-rennes1.fr',443,''); 00015 00016 // force CAS authentication 00017 phpCAS::forceAuthentication(); 00018 00019 // at this step, the user has been authenticated by the CAS server 00020 // and the user's login name can be read with phpCAS::getUser(). 00021 00022 // for this test, simply print that the authentication was successfull 00023 echo '<p>The user\'s login is <b>'.phpCAS::getUser().'</b>.</p>'; 00024 00025 ?>

Generated on Thu Aug 17 02:03:20 2006 for phpCAS by doxygen 1.3.7