aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/provider/oauth.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/auth/provider/oauth.php')
-rw-r--r--phpBB/includes/auth/provider/oauth.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/phpBB/includes/auth/provider/oauth.php b/phpBB/includes/auth/provider/oauth.php
index ee18c0f60d..c7f60c5ae4 100644
--- a/phpBB/includes/auth/provider/oauth.php
+++ b/phpBB/includes/auth/provider/oauth.php
@@ -54,6 +54,13 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
protected $user;
/**
+ * OAuth token table
+ *
+ * @var string
+ */
+ protected $auth_provider_oauth_table;
+
+ /**
* Cached service once it has been created
*
* @var \OAuth\Common\Service\ServiceInterface|null
@@ -70,17 +77,19 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
/**
* OAuth Authentication Constructor
*
- * @param phpbb_db_driver $db
- * @param phpbb_config $config
- * @param phpbb_request $request
- * @param phpbb_user $user
+ * @param phpbb_db_driver $db
+ * @param phpbb_config $config
+ * @param phpbb_request $request
+ * @param phpbb_user $user
+ * @param string $auth_provider_oauth_table
*/
- public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user)
+ public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user, $auth_provider_oauth_table)
{
$this->db = $db;
$this->config = $config;
$this->request = $request;
$this->user = $user;
+ $this->auth_provider_oauth_table = $auth_provider_oauth_table;
}
/**
@@ -177,7 +186,7 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
return $this->service;
}
- $storage = new phpbb_auth_oauth_token_storage($this->db, $this->user, $service_name);
+ $storage = new phpbb_auth_oauth_token_storage($this->db, $this->user, $service_name, $this->auth_provider_oauth_table);
$current_uri = $this->get_current_uri();