
    f                     Z    d dl mZ d dlmZ d dlmZ  G d de      Z G d de      ZegZy)	    )ProviderAccount)FeedlyOAuth2Adapter)OAuth2Providerc                       e Zd Zd Zy)FeedlyAccountc                 L    | j                   j                  j                  d      S )Npicture)account
extra_datagetselfs    j/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/feedly/provider.pyget_avatar_urlzFeedlyAccount.get_avatar_url   s    ||&&**955    N)__name__
__module____qualname__r    r   r   r   r      s    6r   r   c                   .    e Zd ZdZdZeZeZd Z	d Z
d Zy)FeedlyProviderfeedlyFeedlyc                     dgS )Nz&https://cloud.feedly.com/subscriptionsr   r   s    r   get_default_scopez FeedlyProvider.get_default_scope   s    899r   c                     t        |d         S )Nid)strr   datas     r   extract_uidzFeedlyProvider.extract_uid   s    4:r   c                 x    t        |j                  d      |j                  d      |j                  d            S )Nemail
familyName	givenName)r#   	last_name
first_name)dictr   r   s     r   extract_common_fieldsz$FeedlyProvider.extract_common_fields   s3    ((7#hh|,xx,
 	
r   N)r   r   r   r   namer   account_classr   oauth2_adapter_classr   r!   r)   r   r   r   r   r      s&    	BD!M.:
r   r   N)	$allauth.socialaccount.providers.baser   ,allauth.socialaccount.providers.feedly.viewsr   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   <module>r1      s1    @ L J6O 6

^ 
( ## r   