mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[feature/oauth] Set required scopes on more providers
PHPBB3-11673
This commit is contained in:
@@ -22,5 +22,13 @@ if (!defined('IN_PHPBB'))
|
|||||||
*/
|
*/
|
||||||
class phpbb_auth_provider_oauth_service_amazon extends phpbb_auth_provider_oauth_service_base
|
class phpbb_auth_provider_oauth_service_amazon extends phpbb_auth_provider_oauth_service_base
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function get_auth_scope()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'profile',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,5 +22,15 @@ if (!defined('IN_PHPBB'))
|
|||||||
*/
|
*/
|
||||||
class phpbb_auth_provider_oauth_service_paypal extends phpbb_auth_provider_oauth_service_base
|
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',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user