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
if (!$this->authenticationTrustResolver->isFullFledged($token)) {
108
-
if (null !== $this->logger) {
109
-
$this->logger->debug(sprintf('Access is denied (user is not fully authenticated) by "%s" at line %s; redirecting to authentication entry point', $exception->getFile(), $exception->getLine()));
110
-
}
111
-
112
-
try {
113
-
$insufficientAuthenticationException = newInsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
$this->logger->debug(sprintf('Access is denied (and user is neither anonymous, nor remember-me) by "%s" at line %s', $exception->getFile(), $exception->getLine()));
if (!$this->authenticationTrustResolver->isFullFledged($token)) {
114
+
if (null !== $this->logger) {
115
+
$this->logger->debug(sprintf('Access is denied (user is not fully authenticated) by "%s" at line %s; redirecting to authentication entry point', $exception->getFile(), $exception->getLine()));
116
+
}
144
117
145
-
break;
146
-
}
118
+
try {
119
+
$insufficientAuthenticationException = newInsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
$this->logger->error(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
153
-
}
127
+
return;
128
+
}
154
129
155
-
$event->setException(new \RuntimeException('Exception thrown when handling an exception.', 0, $e));
130
+
if (null !== $this->logger) {
131
+
$this->logger->debug(sprintf('Access is denied (and user is neither anonymous, nor remember-me) by "%s" at line %s', $exception->getFile(), $exception->getLine()));
0 commit comments