diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-23 14:52:32 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-23 14:53:02 -0400 |
commit | 77c32645437c77e99f36f6595e1a42cd0f7b7235 (patch) | |
tree | ee840f3a180f2649034b4d29e70f6f754ac5a8d4 /phpBB/phpbb/auth | |
parent | 0857d14030177271bd346f188ced38e9d6da47ff (diff) | |
download | forums-77c32645437c77e99f36f6595e1a42cd0f7b7235.tar forums-77c32645437c77e99f36f6595e1a42cd0f7b7235.tar.gz forums-77c32645437c77e99f36f6595e1a42cd0f7b7235.tar.bz2 forums-77c32645437c77e99f36f6595e1a42cd0f7b7235.tar.xz forums-77c32645437c77e99f36f6595e1a42cd0f7b7235.zip |
[feature/oauth] OAuth acp() method to return config field names
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 133d9f11ef..978c84cd6d 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -260,6 +260,23 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base /** * {@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} + */ public function get_acp_template($new_config) { $ret = array( |