-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
SecurityactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)
Description
Issue with page: https://symfony.com/doc/current/security/expressions.html
In https://symfony.com/doc/current/security.html#checking-to-see-if-a-user-is-logged-in-is-authenticated-fully docs are provide information, that IS_AUTHENTICATED_ANONYMOUSLY
attribute are granted for anon. tokens and fully authenticated.
IS_AUTHENTICATED_ANONYMOUSLY: All users (even anonymous ones)
On https://symfony.com/doc/current/security/expressions.html we see, that is_anonymous()
expression are the same as IS_AUTHENTICATED_ANONYMOUSLY
.
is_anonymous
Equal to using IS_AUTHENTICATED_ANONYMOUSLY with the isGranted() function.
But in code we can see, that is_anonymous()
returns true
only for anon. tokens.
return $variables['trust_resolver']->isAnonymous($variables['token']);
Metadata
Metadata
Assignees
Labels
SecurityactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)