diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-18 12:21:28 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-18 12:21:45 -0400 |
commit | 662b8fdcec2ce6127bd97fbaf3e15db8d4de2170 (patch) | |
tree | 387bfb16a790ee0117ddf9db20a4b754d2046d8e /phpBB/phpbb/auth/provider | |
parent | fe9428b7250fce4cee0d601591e3fac117911d2e (diff) | |
download | forums-662b8fdcec2ce6127bd97fbaf3e15db8d4de2170.tar forums-662b8fdcec2ce6127bd97fbaf3e15db8d4de2170.tar.gz forums-662b8fdcec2ce6127bd97fbaf3e15db8d4de2170.tar.bz2 forums-662b8fdcec2ce6127bd97fbaf3e15db8d4de2170.tar.xz forums-662b8fdcec2ce6127bd97fbaf3e15db8d4de2170.zip |
[feature/oauth] Remove OAuth providers to make PR smaller
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/amazon.php | 62 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/box.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/dropbox.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/fitbit.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/foursqare.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/github.php | 62 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/instagram.php | 62 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/linkedin.php | 62 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/microsoft.php | 62 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/paypal.php | 64 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/soundcloud.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/tumblr.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/twitter.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/vkontakte.php | 52 | ||||
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/service/yammer.php | 52 |
15 files changed, 0 insertions, 842 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/service/amazon.php b/phpBB/phpbb/auth/provider/oauth/service/amazon.php deleted file mode 100644 index fe27a6110f..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/amazon.php +++ /dev/null @@ -1,62 +0,0 @@ -<?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; -} - -/** -* Amazon OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_amazon extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'profile', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_amazon_key'], - 'secret' => $this->config['auth_oauth_amazon_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/box.php b/phpBB/phpbb/auth/provider/oauth/service/box.php deleted file mode 100644 index 083212ec2a..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/box.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* Box OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_box extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_box_key'], - 'secret' => $this->config['auth_oauth_box_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/dropbox.php b/phpBB/phpbb/auth/provider/oauth/service/dropbox.php deleted file mode 100644 index 4fadcbca11..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/dropbox.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* Dropbox OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_dropbox extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_dropbox_key'], - 'secret' => $this->config['auth_oauth_dropbox_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/fitbit.php b/phpBB/phpbb/auth/provider/oauth/service/fitbit.php deleted file mode 100644 index bf1aeac98e..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/fitbit.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* FitBit OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_fitbit extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_fitbit_key'], - 'secret' => $this->config['auth_oauth_fitbit_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/foursqare.php b/phpBB/phpbb/auth/provider/oauth/service/foursqare.php deleted file mode 100644 index 00ebd9889e..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/foursqare.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* FourSquare OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_foursquare extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_foursquare_key'], - 'secret' => $this->config['auth_oauth_foursquare_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/github.php b/phpBB/phpbb/auth/provider/oauth/service/github.php deleted file mode 100644 index 91ae0c1287..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/github.php +++ /dev/null @@ -1,62 +0,0 @@ -<?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; -} - -/** -* GitHub OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_github extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'user', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_github_key'], - 'secret' => $this->config['auth_oauth_github_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/instagram.php b/phpBB/phpbb/auth/provider/oauth/service/instagram.php deleted file mode 100644 index 0570f79138..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/instagram.php +++ /dev/null @@ -1,62 +0,0 @@ -<?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; -} - -/** -* instragram OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_instagram extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'basic', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_instagram_key'], - 'secret' => $this->config['auth_oauth_instagram_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/linkedin.php b/phpBB/phpbb/auth/provider/oauth/service/linkedin.php deleted file mode 100644 index faf26132b0..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/linkedin.php +++ /dev/null @@ -1,62 +0,0 @@ -<?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; -} - -/** -* LinkedIn OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_linkedin extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'r_basicprofile', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_linkedin_key'], - 'secret' => $this->config['auth_oauth_linkedin_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/microsoft.php b/phpBB/phpbb/auth/provider/oauth/service/microsoft.php deleted file mode 100644 index d607f3392d..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/microsoft.php +++ /dev/null @@ -1,62 +0,0 @@ -<?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; -} - -/** -* Microsoft OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_microsoft extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'basic', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_microsoft_key'], - 'secret' => $this->config['auth_oauth_microsoft_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/paypal.php b/phpBB/phpbb/auth/provider/oauth/service/paypal.php deleted file mode 100644 index 8a81c460ce..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/paypal.php +++ /dev/null @@ -1,64 +0,0 @@ -<?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; -} - -/** -* Paypal OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_paypal extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_auth_scope() - { - return array( - 'openid', - 'profile', - 'email', - ); - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_paypal_key'], - 'secret' => $this->config['auth_oauth_paypal_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php b/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php deleted file mode 100644 index ac43ea5e48..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/soundcloud.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* SoundCloud OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_soundcloud extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_soundcloud_key'], - 'secret' => $this->config['auth_oauth_soundcloud_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/tumblr.php b/phpBB/phpbb/auth/provider/oauth/service/tumblr.php deleted file mode 100644 index 9b6d2e2f5e..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/tumblr.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* Tumblr OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_tumblr extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_tumblr_key'], - 'secret' => $this->config['auth_oauth_tumblr_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/twitter.php b/phpBB/phpbb/auth/provider/oauth/service/twitter.php deleted file mode 100644 index 23dbdbb6c2..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/twitter.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* Twitter OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_twitter extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_twitter_key'], - 'secret' => $this->config['auth_oauth_twitter_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php b/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php deleted file mode 100644 index 8a328b234f..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/vkontakte.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* VKontakte OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_vkontakte extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_vkontakte_key'], - 'secret' => $this->config['auth_oauth_vkontakte_secret'], - ); - } -} diff --git a/phpBB/phpbb/auth/provider/oauth/service/yammer.php b/phpBB/phpbb/auth/provider/oauth/service/yammer.php deleted file mode 100644 index fe14f13077..0000000000 --- a/phpBB/phpbb/auth/provider/oauth/service/yammer.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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; -} - -/** -* Yammer OAuth service -* -* @package auth -*/ -class phpbb_auth_provider_oauth_service_yammer extends phpbb_auth_provider_oauth_service_base -{ - /** - * phpBB config - * - * @var phpbb_config - */ - protected $config; - - /** - * Constructor - * - * @param phpbb_config $config - */ - public function __construct(phpbb_config $config) - { - $this->config = $config; - } - - /** - * {@inheritdoc} - */ - public function get_service_credentials() - { - return array( - 'key' => $this->config['auth_oauth_yammer_key'], - 'secret' => $this->config['auth_oauth_yammer_secret'], - ); - } -} |