mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/oauth] OAuth acp() method to return config field names
PHPBB3-11673
This commit is contained in:
parent
0857d14030
commit
77c3264543
1 changed files with 17 additions and 0 deletions
|
@ -257,6 +257,23 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
return $login_data;
|
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}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue