mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-01 13:34:31 +08:00
Generalize refresh failure handling
This commit is contained in:
parent
5df7db5105
commit
97cde9c56a
|
@ -88,9 +88,10 @@ class OpenIdService extends ExternalAuthService
|
||||||
// Refreshing failed, logout
|
// Refreshing failed, logout
|
||||||
$this->actionLogout();
|
$this->actionLogout();
|
||||||
return false;
|
return false;
|
||||||
} catch (InvalidTokenException $e) {
|
} catch (\Exception $e) {
|
||||||
// A refresh token doesn't necessarily contain
|
// Unknown error, logout and throw
|
||||||
// an ID token, ignore this exception
|
$this->actionLogout();
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A valid token was obtained, we update the access token
|
// A valid token was obtained, we update the access token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user