|
|
@@ -177,6 +177,11 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
{
|
|
|
$this->fillCookieJar();
|
|
|
try {
|
|
|
+ if (!$this->jar->getCookieByName('BEARER')) {
|
|
|
+ // Missing cookie : No need to ask API
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
$response = $this->apiService->get(self::ISAUTH_URI, [], ['cookies' => $this->jar]);
|
|
|
|
|
|
if ($response->getStatusCode() != 200) {
|