a
    Qx_                     @   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)OAuthProviderc                   @   s   e Zd Zdd Zdd ZdS )TrelloAccountc                 C   s   d S N selfr   r   g/var/www/html/Ranjet/env/lib/python3.9/site-packages/allauth/socialaccount/providers/trello/provider.pyget_profile_url   s    zTrelloAccount.get_profile_urlc                 C   s   d S r   r   r   r   r   r	   get_avatar_url	   s    zTrelloAccount.get_avatar_urlN)__name__
__module____qualname__r
   r   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d Z	 fd	d
Z
  ZS )TrelloProviderZtrelloZTrelloc                 C   s   dgS )Nreadr   r   r   r   r	   get_default_scope   s    z TrelloProvider.get_default_scopec                 C   s   |d S )Nidr   r   datar   r   r	   extract_uid   s    zTrelloProvider.extract_uidc                 C   s    t |d|d|ddS )Nemailusernamename)r   r   r   )dictgetr   r   r   r	   extract_common_fields   s
    z$TrelloProvider.extract_common_fieldsc                    sH   t t| ||}| |}d|d< |j|d< | ||d< d|d< |S )NZ
web_servertyper   ZscopeneverZ
expiration)superr   get_auth_paramsZget_appr   Z	get_scope)r   requestactionr   Zapp	__class__r   r	   r      s    

zTrelloProvider.get_auth_params)r   r   r   r   r   r   Zaccount_classr   r   r   r   __classcell__r   r   r"   r	   r      s   r   N)Z$allauth.socialaccount.providers.baser   Z.allauth.socialaccount.providers.oauth.providerr   r   r   Zprovider_classesr   r   r   r	   <module>   s   