mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 23:08:53 +00:00
[feature/oauth] Set required scopes on more providers
PHPBB3-11673
This commit is contained in:
parent
0ebff82ad3
commit
55cdc874e6
2 changed files with 20 additions and 2 deletions
|
@ -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',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue