mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Remove undefined variable in GooglePlus Authentication Provider
This commit is contained in:
@@ -178,7 +178,7 @@ class GooglePlus extends AbstractProvider
|
|||||||
$token = @json_decode($this->client->getAccessToken(), true);
|
$token = @json_decode($this->client->getAccessToken(), true);
|
||||||
|
|
||||||
if (JSON_ERROR_NONE !== json_last_error()) {
|
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']);
|
$ticket = $this->client->verifyIdToken($token['id_token']);
|
||||||
|
|||||||
@@ -195,14 +195,29 @@ abstract class ProviderTestCase extends \PhraseanetTestCase
|
|||||||
|
|
||||||
abstract protected function authenticateProvider(ProviderInterface $provider);
|
abstract protected function authenticateProvider(ProviderInterface $provider);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ProviderInterface
|
||||||
|
*/
|
||||||
abstract protected function getProviderForAuthentication();
|
abstract protected function getProviderForAuthentication();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ProviderInterface
|
||||||
|
*/
|
||||||
abstract protected function getProviderForLogout();
|
abstract protected function getProviderForLogout();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ProviderInterface
|
||||||
|
*/
|
||||||
abstract protected function getProviderForSuccessIdentity();
|
abstract protected function getProviderForSuccessIdentity();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ProviderInterface
|
||||||
|
*/
|
||||||
abstract protected function getProviderForFailingIdentity();
|
abstract protected function getProviderForFailingIdentity();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ProviderInterface
|
||||||
|
*/
|
||||||
abstract protected function getAvailableFieldsForIdentity();
|
abstract protected function getAvailableFieldsForIdentity();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user