17 if (!defined(
"PSF_ENTRY_POINT"))
18 die(
"Not a valid psf entry point");
20 require_once (dirname(__FILE__) .
"/authbase.php");
28 public $Tokens = array();
29 public $callback_IsAuthenticated = NULL;
30 public $callback_IsPrivileged = NULL;
32 public function GetID()
34 return "CallbackAuth";
37 public function IsPrivileged($privilege)
39 return call_user_func($this->callback_IsPrivileged, $this, $privilege);
42 public function IsAuthenticated()
44 return call_user_func($this->callback_IsAuthenticated, $this);
This class allow for very simple implementation of authentication mechanism via callback methods...