o
    ˷ec                     @   sP   d dl Z d dlmZmZmZ ddlmZ G dd deZeeZ	eeZ
dS )    N)OAuth2AdapterOAuth2CallbackViewOAuth2LoginView   )AngelListProviderc                   @   s*   e Zd ZejZdZdZdZdZ	dd Z
dS )AngelListOAuth2Adapterz!https://angel.co/api/oauth/token/z%https://angel.co/api/oauth/authorize/zhttps://api.angel.co/1/me/Fc                 K   s.   t j| jd|jid}| }|  ||S )Naccess_token)params)requestsgetprofile_urltokenjsonget_providersociallogin_from_response)selfrequestappr   kwargsresp
extra_data r   f/var/www/ideatree/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/angellist/views.pycomplete_login   s   z%AngelListOAuth2Adapter.complete_loginN)__name__
__module____qualname__r   idprovider_idaccess_token_urlauthorize_urlr   supports_stater   r   r   r   r   r      s    r   )r
   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   providerr   r   adapter_viewoauth2_loginoauth2_callbackr   r   r   r   <module>   s    
