o
    h                     @   sN   d dl mZ 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)OAuthProvider)TrelloOAuthAdapterc                   @   s   e Zd Zdd Zdd ZdS )TrelloAccountc                 C      d S N selfr   r   f/var/www/html/pos/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/trello/provider.pyget_profile_url      zTrelloAccount.get_profile_urlc                 C   r   r   r   r	   r   r   r   get_avatar_url
   r   zTrelloAccount.get_avatar_urlN)__name__
__module____qualname__r   r   r   r   r   r   r      s    r   c                       sD   e Zd ZdZdZeZeZdd Z	dd Z
dd Z fd	d
Z  ZS )TrelloProvidertrello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                    s.   t  ||}d|d< | jj|d< d|d< |S )N
web_servertyper   never
expiration)superget_auth_params_from_requestappr   )r
   requestactionr   	__class__r   r   r&   !   s
   z+TrelloProvider.get_auth_params_from_request)r   r   r   r   r   r   account_classr   oauth_adapter_classr   r   r    r&   __classcell__r   r   r*   r   r      s    r   N)	$allauth.socialaccount.providers.baser   .allauth.socialaccount.providers.oauth.providerr   ,allauth.socialaccount.providers.trello.viewsr   r   r   provider_classesr   r   r   r   <module>   s    
