Ë
    †Kàib  ã                   ó>   — d dl mZ d dlmZ d dlmZ  G d„ de«      Zy)é   )ÚTokenValidator)ÚInsufficientScopeError)ÚInvalidTokenErrorc                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚIntrospectTokenValidatorÚbearerc                 ó   — t        «       ‚)a‹  Request introspection token endpoint with the given token string,
        authorization server will return token information in JSON format.
        Developers MUST implement this method before using it::

            def introspect_token(self, token_string):
                # for example, introspection token endpoint has limited
                # internal IPs to access, so there is no need to add
                # authentication.
                url = "https://example.com/oauth/introspect"
                resp = requests.post(url, data={"token": token_string})
                resp.raise_for_status()
                return resp.json()
        )ÚNotImplementedError©ÚselfÚtoken_strings     úr/home/jay/workspace/scripts/.codegraph-venv/lib/python3.12/site-packages/authlib/oauth2/rfc7662/token_validator.pyÚintrospect_tokenz)IntrospectTokenValidator.introspect_token	   s   € ô "Ó#Ð#ó    c                 ó$   — | j                  |«      S )N)r   r   s     r   Úauthenticate_tokenz+IntrospectTokenValidator.authenticate_token   s   € Ø×$Ñ$ \Ó2Ð2r   c                 óª   — |r|d   s!t        | j                  | j                  ¬«      ‚| j                  |j	                  d«      |«      r
t        «       ‚y )NÚactive)ÚrealmÚextra_attributesÚscope)r   r   r   Úscope_insufficientÚgetr   )r   ÚtokenÚscopesÚrequests       r   Úvalidate_tokenz'IntrospectTokenValidator.validate_token   sP   € Ù˜E (šOÜ#Ø—j‘j°4×3HÑ3Hôð ð ×"Ñ" 5§9¡9¨WÓ#5°vÔ>Ü(Ó*Ð*ð ?r   N)Ú__name__Ú
__module__Ú__qualname__Ú
TOKEN_TYPEr   r   r   © r   r   r   r      s   „ Ø€Jò$ò 3ó+r   r   N)Úrfc6749r   Úrfc6750r   r   r   r"   r   r   ú<module>r%      s   ðÝ $Ý ,Ý 'ô+˜~õ +r   