o
    ©D®fd  ã                   @   s"   d dl mZ G dd„ deeƒZdS )é   )Ú
TokenMixinc                   @   s4   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ ZdS )ÚIntrospectionTokenc                 C   ó
   |   d¡S )NÚ	client_id©Úget©Úself© r
   úV/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/oauth2/rfc7662/models.pyÚget_client_id   ó   
z IntrospectionToken.get_client_idc                 C   r   )NÚscoper   r   r
   r
   r   Ú	get_scope   r   zIntrospectionToken.get_scopec                 C   s   dS )Né    r
   r   r
   r
   r   Úget_expires_in   s   z!IntrospectionToken.get_expires_inc                 C   s   |   dd¡S )NÚexpr   r   r   r
   r
   r   Úget_expires_at   s   z!IntrospectionToken.get_expires_atc              
   C   sR   h d£}zt  | |¡W S  ty( } z||v r"|  |¡W  Y d }~S |‚d }~ww )N>   Úaudr   ÚiatÚissÚjtiÚnbfÚsubr   ÚactiveÚusernamer   Ú
token_type)ÚobjectÚ__getattribute__ÚAttributeErrorr   )r	   ÚkeyÚavailable_keysÚerrorr
   r
   r   Ú__getattr__   s   €ýzIntrospectionToken.__getattr__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r#   r
   r
   r
   r   r      s    r   N)Úrfc6749r   Údictr   r
   r
   r
   r   Ú<module>   s    