Central Authentication System
Central Authentication System

CAS Sample Client Code: PHP

To integrate CAS into your PHP application the following code will be required:

To integrate the TAMU CAS code into your PHP application, the following code should be integrated into your code at the top of your page:

    
<?php
  require_once 'cas.php';
  getCAS();
?>
    
  

Note: In order for PHP to create the necessary HTTPS connection you MUST have configured and compiled SSL into both Apache and PHP.