Файловый менеджер - Редактировать - /opt/cloudlinux/venv/lib/python3.11/site-packages/aiohttp_security/__pycache__/abc.cpython-311.pyc
Назад
� ��bg� � �^ � d dl Z G d� de j �� � Z G d� de j �� � ZdS )� Nc �n � e Zd Zej d� � � Zej d� � � Zej d� � � ZdS )�AbstractIdentityPolicyc � � K � dS )z�Return the claimed identity of the user associated request or ``None`` if no identity can be found associated with the request.N� )�self�requests �e/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/aiohttp_security/abc.py�identifyzAbstractIdentityPolicy.identify � � � � � �� c � � K � dS )z�Remember identity. Modify response object by filling it's headers with remembered user. An individual identity policy and its consumers can decide on the composition and meaning of **kwargs. Nr )r r �response�identity�kwargss r �rememberzAbstractIdentityPolicy.remember s � � � � �r c � � K � dS )zc Modify response which can be used to 'forget' the current identity on subsequent requests.Nr )r r r s r �forgetzAbstractIdentityPolicy.forget r r N)�__name__� __module__�__qualname__�abc�abstractmethodr r r r r r r r so � � � � � ��� � � �� � �� � � �� � �� � � �� � � r r )� metaclassc �P � e Zd Zej dd�� � Zej d� � � ZdS )�AbstractAuthorizationPolicyNc � � K � dS )z�Check user permissions. Return True if the identity is allowed the permission in the current context, else return False. Nr )r r � permission�contexts r �permitsz#AbstractAuthorizationPolicy.permits"