aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-23 14:52:32 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-23 14:53:02 -0400
commit77c32645437c77e99f36f6595e1a42cd0f7b7235 (patch)
treeee840f3a180f2649034b4d29e70f6f754ac5a8d4 /phpBB/phpbb/auth
parent0857d14030177271bd346f188ced38e9d6da47ff (diff)
downloadforums-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.php17
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(