[feature/oauth] OAuth acp() method to return config field names

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-07-23 14:52:32 -04:00
parent 0857d14030
commit 77c3264543

View file

@ -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}
*/