mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/oauth] Remove unused method
PHPBB3-11673
This commit is contained in:
parent
36f7913cc0
commit
2eb47d00e0
1 changed files with 0 additions and 51 deletions
|
@ -236,55 +236,4 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
|
|
||||||
return $this->service[$service_name];
|
return $this->service[$service_name];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the path desired of the service
|
|
||||||
*
|
|
||||||
* @param string $service_name
|
|
||||||
* @return string|UriInterface|null A null return means do not
|
|
||||||
* request additional information.
|
|
||||||
*/
|
|
||||||
protected function get_path($service_name)
|
|
||||||
{
|
|
||||||
switch ($service_name)
|
|
||||||
{
|
|
||||||
case 'bitly':
|
|
||||||
case 'tumblr':
|
|
||||||
$path = 'user/info';
|
|
||||||
break;
|
|
||||||
case 'box':
|
|
||||||
$path = '/users/me';
|
|
||||||
break;
|
|
||||||
case 'facebook':
|
|
||||||
$path = '/me';
|
|
||||||
break;
|
|
||||||
case 'FitBit':
|
|
||||||
$path = 'user/-/profile.json';
|
|
||||||
break;
|
|
||||||
case 'foursquare':
|
|
||||||
case 'instagram':
|
|
||||||
$path = 'users/self';
|
|
||||||
break;
|
|
||||||
case 'GitHub':
|
|
||||||
$path = 'user/emails';
|
|
||||||
break;
|
|
||||||
case 'google':
|
|
||||||
$path = 'https://www.googleapis.com/oauth2/v1/userinfo';
|
|
||||||
break;
|
|
||||||
case 'linkedin':
|
|
||||||
$path = '/people/~?format=json';
|
|
||||||
break;
|
|
||||||
case 'soundCloud':
|
|
||||||
$path = 'me.json';
|
|
||||||
break;
|
|
||||||
case 'twitter':
|
|
||||||
$path = 'account/verify_credentials.json';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$path = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $path;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue