Security expression doc about check anonymous user is misleading #11950
Labels
actionable
Clear and specific issues ready for anyone to take them.
bug
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Security
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.On https://symfony.com/doc/current/security/expressions.html we see, that
is_anonymous()
expression are the same asIS_AUTHENTICATED_ANONYMOUSLY
.But in code we can see, that
is_anonymous()
returnstrue
only for anon. tokens.https://github.com/symfony/symfony/blob/ea92f38c52eaf5951911df6fa39eb258716ecd21/src/Symfony/Component/Security/Core/Authorization/ExpressionLanguageProvider.php#L30
The text was updated successfully, but these errors were encountered: