Added None and Config auth plugins

This commit is contained in:
2012-01-04 13:45:43 +00:00
parent cef9d803cb
commit 14ea955fa3
3 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
class SihnonFramework_Auth_Plugin_None
extends Sihnon_PluginBase
implements Sihnon_Auth_IPlugin {
protected function __construct() {
}
/*
* IPlugin methods
*/
public static function create(SihnonFramework_Config $config) {
return new self();
}
public function userExists($username) {
throw new SihnonFramework_Exception_NotImplemented();
}
public function listUsers() {
throw new SihnonFramework_Exception_NotImplemented();
}
public function authenticate($username, $password) {
throw new SihnonFramework_Exception_NotImplemented();
}
public function authenticateSession($username) {
throw new SihnonFramework_Exception_NotImplemented();
}
}
?>