[geeklog-cvs] Auth_Enterprise/Client AELocalhost.class.php,NONE,1.1

tony at geeklog.net tony at geeklog.net
Fri Oct 31 20:07:01 EST 2003


Update of /usr/cvs/geeklog/Auth_Enterprise/Client
In directory geeklog_prod:/tmp/cvs-serv19802

Added Files:
	AELocalhost.class.php 
Log Message:
First draft of non-working localhost client provider

--- NEW FILE: AELocalhost.class.php ---
<?php
/**
* Auth_Enterprise
*
* This source file is subject to version 2.02 of the PHP license,
* that is bundled with this package in the file LICENSE, and is
* available at through the world-wide-web at
* http://www.php.net/license/2_02.txt.
* If you did not receive a copy of the PHP license and are unable to
* obtain it through the world-wide-web, please send a note to
* license at php.net so we can mail you a copy immediately.
*
* @author Tony Bibbs <tony at geeklog.net>
* @copyright 2003
* @version $Id: AELocalhost.class.php,v 1.1 2003/11/01 01:06:59 tony Exp $
*
*/
/**
* Abstract client provider
*/
//print 'here';exit;
require_once 'Auth_Enterprise/Client/AEBaseClientProvider.class.php';
print 'here2';exit;
/**
* Bring in the Server's configuration file
*/
require_once 'Auth_Enterprise/Server/AEServerConfig.php';

/**
* The servers provider factory
*/
require_once 'Auth_Enteprise/Server/AEProviderFactory.class.php';

/**
* Auth_Enteprise Localhost Implementation
*
* If your application is running on the same server as the
* Auth_Enterprise server then your application should be configured
* to use this client provider as it will call methods on the server
* directly.  Most other client providers will communicate to the
* server via sockets which is an expensive and unnecessary.
*
* @author Tony Bibbs <tony at geeklog.net>
* @package net.geeklog.auth_enterprise.client
* 
*/
class AELocalhost extends AEBaseClientProvider {
    /**
    * Handle to provider for our application
    * @access private
    * @var object
    */
    var $_provider = null;
    
    /**
    * Constructor
    *
    * Get handle to an instance of XML RPC Client
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function AELocalhost($appId, $server='', $path='', $port='', $proxy='', $proxyPort='', $proxyUser='', $proxyPassword='')
    {
        print 'here'; exit;
        $this->_provider = &AEProviderFactory::getProvider($appId);
    }
    /**
    * Authenticates a user to an application
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function &authenticate($userId, $password)
    {
        $user = &$this->_provider->authenticate($appId, $userId, $password);
    }
    /**
    * Registers a new account with the service
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function createAccount()
    {
    }
    /**
    * Changes a user's password
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function changePassword()
    {
    }
    /**
    * Allows an application level admin to change a
    * user's password
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function changePasswordByAdmin()
    {
    }
    
    /**
    * Resets a user's password
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function resetPassword()
    {
    }
    
    /**
    * Gets the application privileges for a given user
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function getUserPrivileges()
    {
    }
    
    /**
    * Sets the application privileges for a given user
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function setUserPrivileges()
    {
    }
    
    /**
    * Lists all available privileges for a given application
    *
    * @author Tony Bibbs <tony at geeklog.net>
    * @access public
    *
    */
    function listAppPrivileges()
    {
    }
}

?>




More information about the geeklog-cvs mailing list