aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/oauth.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-15 15:21:20 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-15 15:24:48 -0400
commit47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3 (patch)
tree137298ce3964ec0160c23950daaa3f5f3323d914 /phpBB/phpbb/auth/provider/oauth/oauth.php
parent8641127da5dd71d4f8fc7acc6ca0b2a34a4ede56 (diff)
downloadforums-47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3.tar
forums-47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3.tar.gz
forums-47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3.tar.bz2
forums-47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3.tar.xz
forums-47b998ae486ebe9c0f9df5be4e3d836b31f2c7a3.zip
[feature/oauth] Define method to perform login actions for a provider
PHPB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 9ee689172c..fc6fce3db0 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -128,15 +128,8 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
if ($this->request->is_set('code', phpbb_request_interface::GET))
{
- // This was a callback request from the service provider
- $service->requestAccessToken( $_GET['code'] );
-
- // Send a request with it
- $path = $this->get_path($service_name);
- if ($path)
- {
- $result = json_decode( $service->request($path), true );
- }
+ $this->services[$service_name]->set_external_service_provider($service);
+ $result = $this->services[$service_name]->perform_auth_login();
// Perform authentication
} else {