
    fh                     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)FiveHundredPxOAuthAdapter)OAuthProviderc                       e Zd Zd Zd Zy)FiveHundredPxAccountc                 R    d| j                   j                  j                  d      z  S )Nzhttps://500px.com/%susernameaccount
extra_datagetselfs    q/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/fivehundredpx/provider.pyget_profile_urlz$FiveHundredPxAccount.get_profile_url	   s"    %(?(?(C(CJ(OOO    c                 L    | j                   j                  j                  d      S )Nuserpic_urlr
   r   s    r   get_avatar_urlz#FiveHundredPxAccount.get_avatar_url   s    ||&&**=99r   N)__name__
__module____qualname__r   r    r   r   r   r      s    P:r   r   c                   2    e Zd ZdZdZdZeZeZ	d Z
d Zd Zy)FiveHundredPxProvider500pxz-allauth.socialaccount.providers.fivehundredpxc                     g S )Nr   r   s    r   get_default_scopez'FiveHundredPxProvider.get_default_scope   s    	r   c                     t        |d         S )Nid)strr   datas     r   extract_uidz!FiveHundredPxProvider.extract_uid   s    4:r   c                     t        |j                  d      |j                  d      |j                  d      |j                  d            S )Nr	   email	firstnamelastname)r	   r&   
first_name	last_name)dictr   r"   s     r   extract_common_fieldsz+FiveHundredPxProvider.extract_common_fields   s?    XXj)((7#xx,hhz*	
 	
r   N)r   r   r   r    namepackager   account_classr   oauth_adapter_classr   r$   r,   r   r   r   r   r      s+    	BD=G(M3
r   r   N)	$allauth.socialaccount.providers.baser   3allauth.socialaccount.providers.fivehundredpx.viewsr   .allauth.socialaccount.providers.oauth.providerr   r   r   provider_classesr   r   r   <module>r5      s6    @ I:? :
M 
, ** r   