o
    ÿÑÐb  ã                   @   s   G d d„ de ƒZdS )c                   @   sJ   e Zd ZdZdZdd„ Zdd„ Zdd„ Zddd	„Zd
d„ Z	e
dd„ ƒZdS )ÚFrameworkIntegrationNc                 C   s
   || _ d S ©N)Úname)Úselfr   © r   úu/var/www/secure340b-portal/env/lib/python3.10/site-packages/authlib/integrations/base_client/framework_integration.pyÚ__init__   s   
zFrameworkIntegration.__init__c                 C   s   d  | j|¡}||j|< d S ©Nz_{}_authlib_{}_)Úformatr   Úsession)r   ÚrequestÚkeyÚvalueÚsess_keyr   r   r   Úset_session_data	   ó   z%FrameworkIntegration.set_session_datac                 C   s   d  | j|¡}|j |d ¡S r   )r	   r   r
   Úpop)r   r   r   r   r   r   r   Úget_session_data   r   z%FrameworkIntegration.get_session_datac                 C   ó   t ƒ ‚r   ©ÚNotImplementedError)r   ÚtokenZrefresh_tokenZaccess_tokenr   r   r   Úupdate_token   ó   z!FrameworkIntegration.update_tokenc                 C   r   r   r   )r   Zrequest_token_urlr   r   r   r   Úgenerate_access_token_params   r   z1FrameworkIntegration.generate_access_token_paramsc                 C   r   r   r   )Zoauthr   Úparamsr   r   r   Úload_config   s   z FrameworkIntegration.load_config)NN)Ú__name__Ú
__module__Ú__qualname__Zoauth1_client_clsZoauth2_client_clsr   r   r   r   r   Ústaticmethodr   r   r   r   r   r      s    
r   N)Úobjectr   r   r   r   r   Ú<module>   s   