
    )Jf                     \    d dl mZ d dlmZ  G d de          Z G d de          ZegZdS )    )ProviderAccount)OAuth2Providerc                   $     e Zd Zd Z fdZ xZS )LemonLDAPAccountc                 @    | j         j                            d          S )Npicture)account
extra_datagetselfs    u/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/lemonldap/provider.pyget_avatar_urlzLemonLDAPAccount.get_avatar_url   s    |&**9555    c                     t          t          |                                           }| j        j                            d|          S )Nname)superr   to_strr	   r
   r   )r   dflt	__class__s     r   r   zLemonLDAPAccount.to_str
   s:    %t,,3355|&**64888r   )__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      sG        6 6 69 9 9 9 9 9 9 9 9r   r   c                   ,    e Zd ZdZdZeZd Zd Zd Z	dS )LemonLDAPProvider	lemonldapzLemonLDAP::NGc                 
    g dS )N)openidprofileemail r   s    r   get_default_scopez#LemonLDAPProvider.get_default_scope   s    ----r   c                 ,    t          |d                   S )Nid)strr   datas     r   extract_uidzLemonLDAPProvider.extract_uid   s    4:r   c                     t          |                    d          |                    d          |                    d          |                    d                    S )Nr!   preferred_usernamer   r   )r!   usernamer   r   )dictr   r'   s     r   extract_common_fieldsz'LemonLDAPProvider.extract_common_fields   sV    ((7##XX233&!!HHY''	
 
 
 	
r   N)
r   r   r   r%   r   r   account_classr#   r)   r.   r"   r   r   r   r      sP        	BD$M. . .  
 
 
 
 
r   r   N)$allauth.socialaccount.providers.baser   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr"   r   r   <module>r3      s    @ @ @ @ @ @ J J J J J J9 9 9 9 9 9 9 9
 
 
 
 
 
 
 
( &&   r   