We have three view middleware classes that define a method "exempt" that can be used as a decorator. However, the decorator capability should be removed since it can lead to circular imports and the side-effects of the decorator can be hard to reason about. There are actually no uses of "exempt" as a decorator in the code because of this: plain method calls are used instead.
The decorator capability should be removed and the docstrings updated in these classes:
IdentityPolicyManagerCsrfHeaderExtCsrfTokenExt
We have three view middleware classes that define a method "exempt" that can be used as a decorator. However, the decorator capability should be removed since it can lead to circular imports and the side-effects of the decorator can be hard to reason about. There are actually no uses of "exempt" as a decorator in the code because of this: plain method calls are used instead.
The decorator capability should be removed and the docstrings updated in these classes:
IdentityPolicyManager
CsrfHeaderExt
CsrfTokenExt