Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added note about anonymous users and access denied handlers #13615

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions security/access_denied_handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ configure it under your firewall:

That's it! Any ``AccessDeniedException`` thrown by code under the ``main`` firewall
will now be handled by your service.

.. note::

The ``AccessDeniedHandler`` will not be invoked if an anonymous user is trying to
access a protected resource. That will be an ``InsufficientAuthenticationException``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the second sentence is very relevant (that's an implementation detail, required to run entry points). What about something like "In that case, the authentication entry point will be called" (I realize that we do not explain "entry point" anywhere in the docs 😞, but that'll need to change for #13605 anyways).