1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[feature/oauth] Define method to perform login actions for a provider

PHPB3-11673
This commit is contained in:
Joseph Warner
2013-07-15 15:21:20 -04:00
parent 8641127da5
commit 47b998ae48
3 changed files with 39 additions and 9 deletions

View File

@@ -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 {