Skip to content

add missing crosslinks between authorization and voters #3120

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/security/authorization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ An authorization decision will always be based on a few things:
Any object on which for which access control needs to be checked, like
an article or a comment object.

.. components-security-access-decision-manager:

Access Decision Manager
-----------------------

Expand Down Expand Up @@ -69,6 +71,11 @@ recognizes several strategies:
$allowIfAllAbstainDecisions,
$allowIfEqualGrantedDeniedDecisions
);

.. seealso::

You can change the default strategy in the
:ref:`configuration <security-voters-change-strategy>`.

Voters
------
Expand Down
7 changes: 7 additions & 0 deletions cookbook/security/voters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ and tag it as a "security.voter":
see :ref:`service-container-imports-directive`. To read more about defining
services in general, see the :doc:`/book/service_container` chapter.

.. security-voters-change-strategy:

Changing the Access Decision Strategy
-------------------------------------

Expand Down Expand Up @@ -212,3 +214,8 @@ application configuration file with the following code.

That's it! Now, when deciding whether or not a user should have access,
the new voter will deny access to any user in the list of blacklisted IPs.

.. seealso::

For a more advanced usage see
:ref:`components-security-access-decision-manager`.