Browse Source
Expired PK tokens should not fall back to legacy tokens
Fixes #11919
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/11964/head
Roeland Jago Douma
7 years ago
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
2 additions and
0 deletions
-
lib/private/Authentication/Token/Manager.php
|
|
|
@ -138,6 +138,8 @@ class Manager implements IProvider { |
|
|
|
public function getTokenById(int $tokenId): IToken { |
|
|
|
try { |
|
|
|
return $this->publicKeyTokenProvider->getTokenById($tokenId); |
|
|
|
} catch (ExpiredTokenException $e) { |
|
|
|
throw $e; |
|
|
|
} catch (InvalidTokenException $e) { |
|
|
|
return $this->defaultTokenProvider->getTokenById($tokenId); |
|
|
|
} |
|
|
|
|