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
Removed AnonymousToken from the authenticator system
* Anonymous users are actual to unauthenticated users, both are now represented by no token
* Added a PUBLIC_ACCESS Security attribute to be used in access_control
* Deprecated "anonymous: lazy" in favor of "lazy: true"
if (null === ($token = $this->tokenStorage->getToken())) {
49
-
thrownewAuthenticationCredentialsNotFoundException('The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.');
51
+
if ($this->exceptionOnNoToken) {
52
+
thrownewAuthenticationCredentialsNotFoundException('The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.');
53
+
}
54
+
55
+
returnfalse;
50
56
}
51
57
52
58
if ($this->alwaysAuthenticate || !$token->isAuthenticated()) {
0 commit comments