§
    iÝ[f=  ã                   ó:   — d dl mZ  G d„ de¦  «        Zd„ Zd„ ZdS )é    )ÚRevocationEndpointc                   ó   — e Zd ZdZd„ Zd„ ZdS )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          ||¦  «        }n9|dk    rt          ||¦  «        }n"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        ú`/var/www/piapp/venv/lib/python3.11/site-packages/authlib/integrations/django_oauth2/endpoints.pyÚquery_tokenzRevocationEndpoint.query_token   so   € à”kÔ-ˆØ˜nÒ,Ð,Ý$ [°%Ñ8Ô8ˆBˆBØ Ò/Ð/Ý% k°5Ñ9Ô9ˆBˆBå$ [°%Ñ8Ô8ˆBØð >Ý)¨+°uÑ=Ô=�àˆ	ó    c                 ó<   — d|_         |                     ¦   «          dS )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                 ó\   — 	 | j                              |¬¦  «        S # | j        $ r Y d S w xY w)N)r   ©ÚobjectsÚgetÚDoesNotExist©r	   r   s     r   r
   r
   -   sF   € ðØÔ"×&Ò&°EÐ&Ñ:Ô:Ð:øØÔ#ð ð ð Øˆtˆtðøøøó   ‚ �
+ª+c                 ó\   — 	 | j                              |¬¦  «        S # | j        $ r Y d S w xY w)N)r   r   r"   s     r   r   r   4   sF   € ðØÔ"×&Ò&°UÐ&Ñ;Ô;Ð;øØÔ#ð ð ð Øˆtˆtðøøør#   N)Úauthlib.oauth2.rfc7009r   Ú_RevocationEndpointr
   r   r   r   r   ú<module>r'      sk   ðØ LÐ LÐ LÐ LÐ LÐ Lð&ð &ð &ð &ð &Ð,ñ &ô &ð &ðRð ð ðð ð ð ð r   