blob: 7eecf6c6e290ff74b6fb13472a0f8664b44ba159 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
.. _aclauthorizationpolicy_directive:
``aclauthorizationpolicy``
--------------------------
When this directive is used, authorization information is obtained
from :term:`ACL` objects attached to model instances.
Attributes
~~~~~~~~~~
None.
Example
~~~~~~~
.. code-block:: xml
:linenos:
<aclauthorizationpolicy/>
Alternatives
~~~~~~~~~~~~
You may create an instance of the
:class:`pyramid.authorization.ACLAuthorizationPolicy` and pass it
to the :class:`pyramid.configuration.Configurator` constructor as
the ``authorization_policy`` argument during initial application
configuration.
See Also
~~~~~~~~
See also :ref:`authorization_policies_directives_section` and
:ref:`security_chapter`.
|