diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-13 16:51:38 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-14 14:22:42 -0400 |
commit | 24bf333e161332ddd589831228e35ad9eb1e8f18 (patch) | |
tree | 1f75cd05e829dd8e59c93c5dca914fea3b97a95a /phpBB/includes/auth/oauth/token_storage.php | |
parent | 37f099b014ea34378096c50cf898c060bd3f0d42 (diff) | |
download | forums-24bf333e161332ddd589831228e35ad9eb1e8f18.tar forums-24bf333e161332ddd589831228e35ad9eb1e8f18.tar.gz forums-24bf333e161332ddd589831228e35ad9eb1e8f18.tar.bz2 forums-24bf333e161332ddd589831228e35ad9eb1e8f18.tar.xz forums-24bf333e161332ddd589831228e35ad9eb1e8f18.zip |
[feature/oauth] Use DB for OAuth token storage
PHPBB3-11673
Diffstat (limited to 'phpBB/includes/auth/oauth/token_storage.php')
-rw-r--r-- | phpBB/includes/auth/oauth/token_storage.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/phpBB/includes/auth/oauth/token_storage.php b/phpBB/includes/auth/oauth/token_storage.php index 2d3c58d25a..b658333900 100644 --- a/phpBB/includes/auth/oauth/token_storage.php +++ b/phpBB/includes/auth/oauth/token_storage.php @@ -28,9 +28,16 @@ class phpbb_auth_oauth_token_storage implements TokenStorageInterface /** * Cache driver. * - * @var phpbb_cache_driver_interface + * @var phpbb_db_driver */ - protected $driver; + protected $db; + + /** + * Name of the OAuth provider + * + * @var string + */ + protected $service_name; /** * @var object|TokenInterface @@ -40,11 +47,12 @@ class phpbb_auth_oauth_token_storage implements TokenStorageInterface /** * Creates token storage for phpBB. * - * @param phpbb_cache_driver_interface $driver The cache driver + * @param phpbb_db_driver $db */ - public function __construct(phpbb_cache_driver_interface $driver) + public function __construct(phpbb_db_driver $db, $service_name) { - $this->driver = $driver; + $this->db = $db; + $this->service_name = $service_name; } /** |