o
    ßñh¹  ã                   @  sd   d dl mZ d dlmZmZ d dlmZ d dlmZ er(d dl	m
Z
 d dlmZ G dd„ deƒZd	S )
é    )Úannotations)ÚTYPE_CHECKINGÚAny)ÚFrameworkIntegration)ÚAttrDict)ÚSequence)ÚTornadoOAuthc                   @  s$   e Zd Zddd„Zeddd„ƒZdS )ÚTornadoIntegrationNc                 C  s   dS )zÉWe do not support access token refresh, since we obtain and operate only on
        identity tokens. We override this method explicitly to implement all abstract
        methods of base class.
        N© )ÚselfÚtokenÚrefresh_tokenÚaccess_tokenr
   r
   úd/var/www/vscode/kcb/lib/python3.10/site-packages/streamlit/web/server/authlib_tornado_integration.pyÚupdate_token    s    zTornadoIntegration.update_tokenÚoauthr   ÚnameÚstrÚparamsúSequence[str]Úreturnúdict[str, Any]c                 C  sT   | j si S i }|D ]}| j  |i ¡ |d¡}t|tƒr| ¡ }|dur'|||< q	|S )zbConfigure Authlib integration with provider parameters
        specified in secrets.toml.
        N)ÚconfigÚgetÚ
isinstancer   Úto_dict)r   r   r   Úprepared_configÚkeyÚvaluer
   r
   r   Úload_config&   s   
€zTornadoIntegration.load_config)NN)r   r   r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__r   Ústaticmethodr   r
   r
   r
   r   r	      s    
r	   N)Ú
__future__r   Útypingr   r   Ú authlib.integrations.base_clientr   Ústreamlit.runtime.secretsr   Úcollections.abcr   Ústreamlit.web.server.oidc_mixinr   r	   r
   r
   r
   r   Ú<module>   s   