o
    "i                     @   sX   d dl mZ d dlmZ d dlmZ G dd deZG dd deZG dd	 d	eZd
S )    )settings)OpenApiAuthenticationExtension)#build_bearer_security_scheme_objectc                   @       e Zd ZdZdZdZdd ZdS )SessionSchemez3rest_framework.authentication.SessionAuthentication
cookieAuthc                 C   s   ddt jdS )NapiKeycookie)typeinname)r   SESSION_COOKIE_NAMEselfauto_schema r   c/var/www/html/crm_dreinet/venv_linux/lib/python3.10/site-packages/drf_spectacular/authentication.pyget_security_definition   s   z%SessionScheme.get_security_definitionN__name__
__module____qualname__target_classr   priorityr   r   r   r   r   r      
    r   c                   @   r   )BasicSchemez1rest_framework.authentication.BasicAuthentication	basicAuthr   c                 C   s
   dddS )Nhttpbasic)r   schemer   r   r   r   r   r      s   z#BasicScheme.get_security_definitionNr   r   r   r   r   r      r   r   c                   @   s$   e Zd ZdZdZdZdZdd ZdS )TokenSchemez1rest_framework.authentication.TokenAuthentication	tokenAuthTr   c                 C   s   t d| jjdS )NAuthorization)header_nametoken_prefix)r   targetkeywordr   r   r   r   r   &   s   z#TokenScheme.get_security_definitionN)r   r   r   r   r   match_subclassesr   r   r   r   r   r   r!       s    r!   N)	django.confr   drf_spectacular.extensionsr   drf_spectacular.plumbingr   r   r   r!   r   r   r   r   <module>   s    