Remove undefined variable in GooglePlus Authentication Provider

This commit is contained in:
Benoît Burnichon
2016-03-01 13:59:41 +01:00
parent 8a577beb37
commit c4daafc5e6
2 changed files with 16 additions and 1 deletions

View File

@@ -178,7 +178,7 @@ class GooglePlus extends AbstractProvider
$token = @json_decode($this->client->getAccessToken(), true);
if (JSON_ERROR_NONE !== json_last_error()) {
throw new NotAuthenticatedException('Unable to parse Google+ JSON', $e->getCode(), $e);
throw new NotAuthenticatedException('Unable to parse Google+ JSON');
}
$ticket = $this->client->verifyIdToken($token['id_token']);

View File

@@ -195,14 +195,29 @@ abstract class ProviderTestCase extends \PhraseanetTestCase
abstract protected function authenticateProvider(ProviderInterface $provider);
/**
* @return ProviderInterface
*/
abstract protected function getProviderForAuthentication();
/**
* @return ProviderInterface
*/
abstract protected function getProviderForLogout();
/**
* @return ProviderInterface
*/
abstract protected function getProviderForSuccessIdentity();
/**
* @return ProviderInterface
*/
abstract protected function getProviderForFailingIdentity();
/**
* @return ProviderInterface
*/
abstract protected function getAvailableFieldsForIdentity();
/**