Tutorials Home Scripts Home

What is simplecas 0.5.0?

This is a PHP 5 client library for JA-SIG Central Authentication Service (CAS).
Compatible with servers using version 1 or 2 of the CAS protocol.

Quick Example:

<?php

require_once 'SimpleCAS/Autoload.php';
require_once 'HTTP/Request2.php';

$options = array('hostname' => 'login.unl.edu',
                 'port'     => 443,
                 'uri'      => 'cas');
$protocol = new SimpleCAS_Protocol_Version2($options);

$client = SimpleCAS::client($protocol);
$client->forceAuthentication();

if (isset($_GET['logout'])) {
    $client->logout();
}

if ($client->isAuthenticated()) {
    echo '<h1>Authentication Successful!</h1>
          <p>The user\'s login is '.$client->getUsername().'</p>
          <a href="?logout">Logout</a>';
}
?>

Manually install by downloading the latest release and extracting the files, along with HTTP_Request2 from PEAR.

“Subscribe and get Latest entries”

Enter your email address:

Listing Details

Listing Details

Version: 0.5.0
Default Language: English
Filed in: scripts home » Components » PHP Class Scripts » User Management
Date Added: February 08, 2010
Views: 74
demonstration: sorry no available demo at this time
External Download: sorry no External Download links at this time please look to our internal download below

Featured Plugins Add Plugin

No Plugins with the specified criteria were found.

Bug List Report Bug

Bug List

No bugs with the specified criteria were found.

Who uses simplecas? (Widgets for simplecas)

Who uses simplecas?

Comments

Comment form

No Comments!

Be the first to review this page !

Leave a Comment

Comment form