[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Auth/ -> application.php (sommaire)

(pas de description)

Poids: 198 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Auth_application:: (9 méthodes):
  Auth_application()
  hasCapability()
  _setParams()
  _authenticate()
  _getLoginScreen()
  listUsers()
  addUser()
  updateUser()
  removeUser()


Classe: Auth_application  - X-Ref

The Auth_application class provides a wrapper around
application-provided Horde authentication which fits inside the
Horde Auth:: API.

Required parameters:<pre>
'app'  The application which is providing authentication.</pre>


$Horde: framework/Auth/Auth/application.php,v 1.27.10.12 2006/08/14 02:48:48 chuck Exp $

Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Auth_application($params = array()   X-Ref
Constructs a new Application authentication object.

param: array $params  A hash containing connection parameters.

hasCapability($capability)   X-Ref
Queries the current Auth object to find out if it supports the given
capability.

param: string $capability  The capability to test for.
return: boolean  Whether or not the capability is supported.

_setParams($params)   X-Ref
Set connection parameters.

param: array $params  A hash containing connection parameters.

_authenticate($userId, $credentials)   X-Ref
Find out if a set of login credentials are valid.

param: string $userId      The userId to check.
param: array $credentials  The credentials to use.
return: boolean  Whether or not the credentials are valid.

_getLoginScreen($app = 'horde', $url = '')   X-Ref
Return the URI of the login screen for this authentication method.

param: string $app  The application to use.
param: string $url  The URL to redirect to after login.
return: string  The login screen URI.

listUsers()   X-Ref
List all users in the system.

return: mixed  The array of userIds, or a PEAR_Error object on failure.

addUser($userId, $credentials)   X-Ref
Add a set of authentication credentials.

param: string $userId      The userId to add.
param: array $credentials  The credentials to use.
return: mixed  True on success or a PEAR_Error object on failure.

updateUser($oldID, $newID, $credentials)   X-Ref
Update a set of authentication credentials.

param: string $oldID       The old userId.
param: string $newID       The new userId.
param: array $credentials  The new credentials
return: mixed  True on success or a PEAR_Error object on failure.

removeUser($userId)   X-Ref
Delete a set of authentication credentials.

param: string $userId  The userId to delete.
return: mixed  True on success or a PEAR_Error object on failure.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7