o
    &zh)                     @   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)BitlyOAuth2Adapter)OAuth2Providerc                   @   s   e Zd Zdd Zdd ZdS )BitlyAccountc                 C      | j jdS )Nprofile_urlaccount
extra_datagetself r   i/var/www/html/kangema/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/bitly/provider.pyget_profile_url      zBitlyAccount.get_profile_urlc                 C   r   )Nprofile_imager   r   r   r   r   get_avatar_url
   r   zBitlyAccount.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eZdd Z	dd Z
dS )BitlyProviderbitlyBitlyc                 C   s   t |d S )Nlogin)strr   datar   r   r   extract_uid   s   zBitlyProvider.extract_uidc                 C   s   t |d |ddS )Nr   	full_name)usernamename)dictr   r   r   r   r   extract_common_fields   s   z#BitlyProvider.extract_common_fieldsN)r   r   r   idr!   r   account_classr   oauth2_adapter_classr   r#   r   r   r   r   r      s    r   N)	$allauth.socialaccount.providers.baser   +allauth.socialaccount.providers.bitly.viewsr   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   r   <module>   s    
