Ë
    ûûàgµ  ã                   óZ   — d dl Z d dlmZ d dlmZ d dlmZ  G d„ dej                  «      Zy)é    N)ÚHttpRequest)Úauthentication)Úauthenticate_by_x_session_tokenc                   óF   — e Zd ZdZdefd„Zdedej                  e   fd„Z	y)ÚXSessionTokenAuthenticationzz
    This authentication class uses the X-Session-Token that django-allauth
    is using for authentication purposes.
    Úrequestc                 ó@   — | j                  |«      }|rt        |«      S y )N)Úget_session_tokenr   )Úselfr   Útokens      út/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/allauth/headless/contrib/rest_framework/authentication.pyÚauthenticatez(XSessionTokenAuthentication.authenticate   s#   € Ø×&Ñ& wÓ/ˆÙÜ2°5Ó9Ð9Øó    Ú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-XSessionTokenAuthentication.get_session_token   s   € ð �‰×"Ñ"Ð#4Ó5Ð5r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚtypingÚOptionalÚstrr
   © r   r   r   r      s/   „ ñð
 Kó ð6¨ð 6¸¿¹ÈÑ9Mô 6r   r   )	r   Údjango.httpr   Úrest_frameworkr   Ú$allauth.headless.internal.sessionkitr   ÚBaseAuthenticationr   r   r   r   ú<module>r       s%   ðÛ å #å )õô
6 .×"CÑ"Cõ 6r   