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)) {
86
+
while (null !== $exception) {
87
+
if ($exceptioninstanceof AuthenticationException) {
108
88
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()));
89
+
$this->logger->info(sprintf('Authentication exception occurred; redirecting to authentication entry point (%s)', $exception->getMessage()));
110
90
}
111
91
112
92
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)) {
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->error(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
125
+
$this->logger->debug(sprintf('Access is denied (and user is neither anonymous, nor remember-me) by "%s" at line %s', $exception->getFile(), $exception->getLine()));
144
126
}
145
127
146
-
$event->setException(new \RuntimeException('Exception thrown when handling an exception.', 0, $e));
0 commit comments