Ë
    ûûàg"  ã                   óT   — d dl Z d dlmZ d dlmZ d dlmZ  G d„ de«      Z e«       Zy)é    N)ÚHttpRequest)ÚAuthBase)Úauthenticate_by_x_session_tokenc                   óV   — e Zd ZU dZdZeed<   defd„Zdede	j                  e   fd„Zy)	ÚXSessionTokenAuthzt
    This security class uses the X-Session-Token that django-allauth
    is using for authentication purposes.
    ÚapiKeyÚopenapi_typeÚrequestc                 óN   — | j                  |«      }|rt        |«      }|r|d   S y )Nr   )Úget_session_tokenr   )Úselfr
   ÚtokenÚuser_sessions       úe/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/allauth/headless/contrib/ninja/security.pyÚ__call__zXSessionTokenAuth.__call__   s/   € Ø×&Ñ& wÓ/ˆÙÜ:¸5ÓAˆLÙØ# A‘Ð&Øó    Úreturnc                 ó8   — |j                   j                  d«      S )z×
        Returns the session token for the given request, by looking up the
        ``X-Session-Token`` header. Override this if you want to extract the token
        from e.g. the ``Authorization`` header.
        zX-Session-Token)ÚheadersÚget)r   r
   s     r   r   z#XSessionTokenAuth.get_session_token   s   € ð �‰×"Ñ"Ð#4Ó5Ð5r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   ÚstrÚ__annotations__r   r   ÚtypingÚOptionalr   © r   r   r   r      s;   … ñð
 !€L�#Ó ð ó ð6¨ð 6¸¿¹ÈÑ9Mô 6r   r   )	r   Údjango.httpr   Úninja.security.baser   Ú$allauth.headless.internal.sessionkitr   r   Úx_session_token_authr   r   r   ú<module>r$      s*   ðÛ å #å (õô
6˜ô 6ñ2 )Ó*Ñ r   