aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-18 12:12:14 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-18 12:12:57 -0400
commitfe9428b7250fce4cee0d601591e3fac117911d2e (patch)
treebcec72593ec233a698d633381ffda6e7fb719a03 /phpBB/phpbb/auth/provider/oauth
parent469879716d86757c2e583bc746bebaa39cd630ef (diff)
downloadforums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.gz
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.bz2
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.xz
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.zip
[feature/oauth] Create means to associate phpBB account with external
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/service/bitly.php3
-rw-r--r--phpBB/phpbb/auth/provider/oauth/service/interface.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/service/bitly.php b/phpBB/phpbb/auth/provider/oauth/service/bitly.php
index cbfad3d852..b6b99c0850 100644
--- a/phpBB/phpbb/auth/provider/oauth/service/bitly.php
+++ b/phpBB/phpbb/auth/provider/oauth/service/bitly.php
@@ -76,6 +76,7 @@ class phpbb_auth_provider_oauth_service_bitly extends phpbb_auth_provider_oauth_
// Send a request with it
$result = json_decode( $this->service_provider->request('user/info'), true );
- // Get the user id
+ // Return the unique identifier returned from bitly
+ return $result['data']['login'];
}
}
diff --git a/phpBB/phpbb/auth/provider/oauth/service/interface.php b/phpBB/phpbb/auth/provider/oauth/service/interface.php
index 4d06606f49..a69148695d 100644
--- a/phpBB/phpbb/auth/provider/oauth/service/interface.php
+++ b/phpBB/phpbb/auth/provider/oauth/service/interface.php
@@ -52,7 +52,8 @@ interface phpbb_auth_provider_oauth_service_interface
/**
* Returns the results of the authentication in json format
*
- * @return type The results of the authentication action in json format.
+ * @return string The unique identifier returned by the service provider
+ * that is used to authenticate the user with phpBB.
*/
public function perform_auth_login();