mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
generateTokenFromCache is only valid for V3
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
7318882357
commit
a0e038f912
1 changed files with 2 additions and 2 deletions
|
|
@ -131,9 +131,9 @@ class SwiftFactory {
|
|||
|
||||
$cachedToken = $this->params['cachedToken'];
|
||||
$hasValidCachedToken = false;
|
||||
if (is_array($cachedToken)) {
|
||||
if (\is_array($cachedToken) && ($authService instanceof IdentityV3Service)) {
|
||||
$token = $authService->generateTokenFromCache($cachedToken);
|
||||
if (is_null($token->catalog)) {
|
||||
if (\is_null($token->catalog)) {
|
||||
$this->logger->warning('Invalid cached token for swift, no catalog set: ' . json_encode($cachedToken));
|
||||
} else if ($token->hasExpired()) {
|
||||
$this->logger->debug('Cached token for swift expired');
|
||||
|
|
|
|||
Loading…
Reference in a new issue