aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/provider/base.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-11 10:54:55 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-11 10:56:04 -0400
commit3c11052fb3896b43685f596dc6e52f9cc07d6807 (patch)
treee602f45a026c47250a132051c2afbd230073f820 /phpBB/includes/auth/provider/base.php
parent2fcae1ca16d096d2839b487e8c1bcbe0f313d91f (diff)
downloadforums-3c11052fb3896b43685f596dc6e52f9cc07d6807.tar
forums-3c11052fb3896b43685f596dc6e52f9cc07d6807.tar.gz
forums-3c11052fb3896b43685f596dc6e52f9cc07d6807.tar.bz2
forums-3c11052fb3896b43685f596dc6e52f9cc07d6807.tar.xz
forums-3c11052fb3896b43685f596dc6e52f9cc07d6807.zip
[feature/auth-refactor] Have a base auth class
PHPBB3-9734
Diffstat (limited to 'phpBB/includes/auth/provider/base.php')
-rw-r--r--phpBB/includes/auth/provider/base.php69
1 files changed, 69 insertions, 0 deletions
diff --git a/phpBB/includes/auth/provider/base.php b/phpBB/includes/auth/provider/base.php
new file mode 100644
index 0000000000..e053a1829b
--- /dev/null
+++ b/phpBB/includes/auth/provider/base.php
@@ -0,0 +1,69 @@
+<?php
+/**
+*
+* @package auth
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+ * Base authentication provider class that all other providers must implement.
+ *
+ * @package auth
+ */
+abstract class phpbb_auth_provider_base implements phpbb_auth_provider_interface
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function init()
+ {
+ return;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ abstract public function login($username, $password);
+
+ /**
+ * {@inheritdoc}
+ */
+ public function autologin()
+ {
+ return;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function acp($new)
+ {
+ return;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function logout($data, $new_session)
+ {
+ return;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate_session($user)
+ {
+ return;
+ }
+}