o
    ˷e                     @   sB   d dl mZ d dlmZ G dd deZG dd deZegZdS )    )ProviderAccount)OAuth2Providerc                       s   e Zd Z fddZ  ZS )JupyterHubAccountc                    s   t t|  }| jjd|S Nname)superr   to_straccount
extra_dataget)selfdflt	__class__ j/var/www/ideatree/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/jupyterhub/provider.pyr      s   zJupyterHubAccount.to_str)__name__
__module____qualname__r   __classcell__r   r   r   r   r      s    r   c                   @   s(   e Zd ZdZdZeZdd Zdd ZdS )JupyterHubProvider
jupyterhub
JupyterHubc                 C   s   t |dS r   )strr   r   datar   r   r   extract_uid   s   zJupyterHubProvider.extract_uidc                 C   s   t |dddS )Nr    )r   )dictr   r   r   r   r   extract_common_fields   s   z(JupyterHubProvider.extract_common_fieldsN)	r   r   r   idr   r   account_classr   r   r   r   r   r   r      s    r   N)$allauth.socialaccount.providers.baser   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   r   <module>   s
    
