mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/oauth] OAuth acp() method to return config field names
PHPBB3-11673
This commit is contained in:
@@ -257,6 +257,23 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||
return $login_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function acp()
|
||||
{
|
||||
$ret = array();
|
||||
|
||||
foreach ($this->service_providers as $service_name => $service_provider)
|
||||
{
|
||||
$actual_name = str_replace('auth.provider.oauth.service.', '', $service_name);
|
||||
$ret[] = 'auth_oauth_' . $actual_name . '_key';
|
||||
$ret[] = 'auth_oauth_' . $actual_name . '_secret';
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user