Skip to content

Commit 642639c

Browse files
committed
Don't use refresh token for client credentials grant
1 parent 9d69b8e commit 642639c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Classes/OAuthClient.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,6 @@ public function getAuthenticatedRequest(string $relativeUri, string $method = 'G
310310
throw new OAuthClientException('No OAuthToken found.', 1505321014388);
311311
}
312312

313-
if ($oAuthToken->expires < new \DateTimeImmutable()) {
314-
$this->refreshAuthorization($oAuthToken->clientId, '');
315-
$oAuthToken = $this->getOAuthToken();
316-
}
317313
$oAuthProvider = $this->createOAuthProvider($oAuthToken->clientId, $oAuthToken->clientSecret);
318314

319315
if ($oAuthToken->expires < new \DateTimeImmutable()) {

0 commit comments

Comments
 (0)