You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,7 +51,6 @@ public function authenticate(Connection $connection): TokenInterface
46
51
try {
47
52
$token = $this->getToken($connection);
48
53
} catch (WebSocketException$exception) {
49
-
// Out-of-the-box, we'll get a WebSocketException from our read-only session handler if there was an issue grabbing the session data, so focus only on the component's exceptions
50
54
$this->logger?->error('Could not authenticate user.', ['exception' => $exception]);
51
55
52
56
thrownewAuthenticationException('Could not authenticate user.', previous: $exception);
@@ -75,18 +79,78 @@ private function getToken(Connection $connection): TokenInterface
$this->logger?->warning('Failed to unserialize the security token from the session.', ['key' => $sessionKey, 'received' => $serializedToken, 'exception' => $e]);
// After https://github.com/symfony/symfony/pull/59558 (introduced in Symfony 7.3), the roleNames property is lazily initialized so we need to trigger that
128
-
if (interface_exists(OfflineTokenInterface::class)) {
0 commit comments