
    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)HubicOAuth2Adapter)OAuth2Providerc                       e Zd Zy)HubicAccountN)__name__
__module____qualname__     i/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/hubic/provider.pyr   r      s    r   r   c                   (    e Zd ZdZdZeZeZd Z	d Z
y)HubicProviderhubicHubicc                     t        |d         S )Nemail)strselfdatas     r   extract_uidzHubicProvider.extract_uid   s    4=!!r   c                     t        |j                  d      |j                  d      j                         |j                  d      j                         z   |j                  d      |j                  d            S )Nr   	firstnamelastname)r   username
first_name	last_name)dictgetlowerr   s     r   extract_common_fieldsz#HubicProvider.extract_common_fields   s_    ((7#XXk*002TXXj5I5O5O5QQxx,hhz*	
 	
r   N)r   r	   r
   idnamer   account_classr   oauth2_adapter_classr   r"   r   r   r   r   r   
   s!    	BD M-"
r   r   N)	$allauth.socialaccount.providers.baser   +allauth.socialaccount.providers.hubic.viewsr   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   <module>r+      s0    @ J J	? 	
N 
$ "? r   