mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/oauth] Remove OAuth providers to make PR smaller
PHPBB3-11673
This commit is contained in:
parent
fe9428b725
commit
662b8fdcec
15 changed files with 0 additions and 842 deletions
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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'],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue