mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/oauth] Remove temporary google testing code
PHPBB3-11673
This commit is contained in:
parent
b1938576f1
commit
c166801fe3
1 changed files with 4 additions and 3 deletions
|
@ -206,9 +206,10 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
* Returns the cached current_uri object or creates and caches it if it is
|
* Returns the cached current_uri object or creates and caches it if it is
|
||||||
* not already created
|
* not already created
|
||||||
*
|
*
|
||||||
|
* @param string $service_name The name of the service
|
||||||
* @return \OAuth\Common\Http\Uri\UriInterface
|
* @return \OAuth\Common\Http\Uri\UriInterface
|
||||||
*/
|
*/
|
||||||
protected function get_current_uri()
|
protected function get_current_uri($service_name)
|
||||||
{
|
{
|
||||||
if ($this->current_uri)
|
if ($this->current_uri)
|
||||||
{
|
{
|
||||||
|
@ -217,7 +218,7 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
|
|
||||||
$uri_factory = new \OAuth\Common\Http\Uri\UriFactory();
|
$uri_factory = new \OAuth\Common\Http\Uri\UriFactory();
|
||||||
$current_uri = $uri_factory->createFromSuperGlobalArray($this->request->get_super_global(phpbb_request_interface::SERVER));
|
$current_uri = $uri_factory->createFromSuperGlobalArray($this->request->get_super_global(phpbb_request_interface::SERVER));
|
||||||
$current_uri->setQuery('?mode=login&login=external&oauth_service=google');
|
$current_uri->setQuery('mode=login&login=external&oauth_service=' . $service_name);
|
||||||
|
|
||||||
$this->current_uri = $current_uri;
|
$this->current_uri = $current_uri;
|
||||||
return $current_uri;
|
return $current_uri;
|
||||||
|
@ -235,7 +236,7 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
*/
|
*/
|
||||||
protected function get_service($service_name, phpbb_auth_provider_oauth_token_storage $storage, array $service_credentials, array $scopes = array())
|
protected function get_service($service_name, phpbb_auth_provider_oauth_token_storage $storage, array $service_credentials, array $scopes = array())
|
||||||
{
|
{
|
||||||
$current_uri = $this->get_current_uri();
|
$current_uri = $this->get_current_uri($service_name);
|
||||||
|
|
||||||
// Setup the credentials for the requests
|
// Setup the credentials for the requests
|
||||||
$credentials = new Credentials(
|
$credentials = new Credentials(
|
||||||
|
|
Loading…
Add table
Reference in a new issue