summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schumann <js@schumann-it.com>2012-01-03 02:45:43 +0100
committerJan Schumann <js@schumann-it.com>2012-01-03 02:45:43 +0100
commit4ae475af3d062ad634677a93371703eadbfdf256 (patch)
tree0fafbef0316bde6f7449832ae46fa8ac2b359bd1
parenteb274bf3eeb34f70031e220941ee1340c75ac098 (diff)
downloadrpg-4ae475af3d062ad634677a93371703eadbfdf256.tar.gz
rpg-4ae475af3d062ad634677a93371703eadbfdf256.tar.bz2
Added prototype for Auth-Plugins
-rw-r--r--lib/plugins/auth.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/plugins/auth.php b/lib/plugins/auth.php
new file mode 100644
index 000000000..3ec64018c
--- /dev/null
+++ b/lib/plugins/auth.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Auth Plugin Prototype
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Jan Schumann <js@jschumann-it.com>
+ */
+// must be run within Dokuwiki
+if(!defined('DOKU_INC')) die();
+
+/**
+ * All plugins that provide Authentication should inherit from this class and implement
+ * the getAuth() method to make its Auth-System available.
+ *
+ * @author Jan Schumann <js@jschumann-it.com>
+ */
+class DokuWiki_Auth_Plugin extends DokuWiki_Plugin {
+
+ /**
+ * Retrieves the authentication system
+ */
+ function getAuth() {
+ trigger_error('getAuth() not implemented in '.get_class($this), E_USER_WARNING);
+ }
+}