1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

[feature/oauth] Set required scopes on more providers

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-07-14 15:52:57 -04:00
parent 0ebff82ad3
commit 55cdc874e6
2 changed files with 20 additions and 2 deletions

View File

@ -22,5 +22,13 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_auth_provider_oauth_service_amazon extends phpbb_auth_provider_oauth_service_base
{
/**
* {@inheritdoc}
*/
public function get_auth_scope()
{
return array(
'profile',
);
}
}

View File

@ -22,5 +22,15 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_auth_provider_oauth_service_paypal extends phpbb_auth_provider_oauth_service_base
{
/**
* {@inheritdoc}
*/
public function get_auth_scope()
{
return array(
'openid',
'profile',
'email',
);
}
}