
    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)GitLabOAuth2Adapter)OAuth2Providerc                       e Zd Zd Zd Zy)GitLabAccountc                 L    | j                   j                  j                  d      S )Nweb_urlaccount
extra_datagetselfs    j/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/gitlab/provider.pyget_profile_urlzGitLabAccount.get_profile_url   s    ||&&**955    c                 L    | j                   j                  j                  d      S )N
avatar_urlr
   r   s    r   get_avatar_urlzGitLabAccount.get_avatar_url
   s    ||&&**<88r   N)__name__
__module____qualname__r   r    r   r   r   r      s    69r   r   c                   .    e Zd ZdZdZeZeZd Z	d Z
d Zy)GitLabProvidergitlabGitLabc                     dgS )N	read_userr   r   s    r   get_default_scopez GitLabProvider.get_default_scope   s
    }r   c                     t        |d         S )Nid)strr   datas     r   extract_uidzGitLabProvider.extract_uid   s    4:r   c                 x    t        |j                  d      |j                  d      |j                  d            S )Nemailusernamename)r(   r)   r*   )dictr   r$   s     r   extract_common_fieldsz$GitLabProvider.extract_common_fields   s3    ((7#XXj)&!
 	
r   N)r   r   r   r"   r*   r   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.gitlab.viewsr   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   <module>r3      s1    @ L J9O 9
^ 
( ## r   