Ë
    ”Âi.  ã                   ó2   — d dl mZ  G d„ de«      Zd„ Zd„ Zy)é    )ÚRevocationEndpointc                   ó   — e Zd ZdZd„ Zd„ Zy)r   a¨  The revocation endpoint for OAuth authorization servers allows clients
    to notify the authorization server that a previously obtained refresh or
    access token is no longer needed.

    Register it into authorization server, and create token endpoint response
    for token revocation::

        from django.views.decorators.http import require_http_methods

        # see register into authorization server instance
        server.register_endpoint(RevocationEndpoint)


        @require_http_methods(["POST"])
        def revoke_token(request):
            return server.create_endpoint_response(
                RevocationEndpoint.ENDPOINT_NAME, request
            )
    c                 ó²   — | j                   j                  }|dk(  rt        ||«      }|S |dk(  rt        ||«      }|S t        ||«      }|st        ||«      }|S )z$Query requested token from database.Úaccess_tokenÚrefresh_token)ÚserverÚtoken_modelÚ_query_access_tokenÚ_query_refresh_token)ÚselfÚtokenÚtoken_type_hintr	   Úrvs        úd/var/www/timesheet/venv/lib/python3.12/site-packages/authlib/integrations/django_oauth2/endpoints.pyÚquery_tokenzRevocationEndpoint.query_token   sk   € à—k‘k×-Ñ-ˆØ˜nÒ,Ü$ [°%Ó8ˆBð ˆ	ð  Ò/Ü% k°5Ó9ˆBð ˆ	ô	 % [°%Ó8ˆBÙÜ)¨+°uÓ=�àˆ	ó    c                 ó2   — d|_         |j                  «        y)zMark the give token as revoked.TN)ÚrevokedÚsave)r   r   Úrequests      r   Úrevoke_tokenzRevocationEndpoint.revoke_token'   s   € àˆŒØ�
‰
�r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r   r      s   „ ñò(ór   r   c                 óf   — 	 | j                   j                  |¬«      S # | j                  $ r Y y w xY w)N)r   ©ÚobjectsÚgetÚDoesNotExist©r	   r   s     r   r
   r
   -   s9   € ðØ×"Ñ"×&Ñ&°EÐ&Ó:Ð:øØ×#Ñ#ò Ùðúó   ‚ ž0¯0c                 óf   — 	 | j                   j                  |¬«      S # | j                  $ r Y y w xY w)N)r   r   r"   s     r   r   r   4   s9   € ðØ×"Ñ"×&Ñ&°UÐ&Ó;Ð;øØ×#Ñ#ò Ùðúr#   N)Úauthlib.oauth2.rfc7009r   Ú_RevocationEndpointr
   r   r   r   r   ú<module>r'      s    ðÝ Lô&Ð,ô &òRór   