o
    úLf  ã                   @   sT   d dl mZmZmZ ddlmZ ddlmZ G dd„ deƒZe 	e¡Z
e 	e¡ZdS )é    )ÚOAuth2AdapterÚOAuth2CallbackViewÚOAuth2LoginViewé   )ÚNotionOAuth2Client)ÚNotionProviderc                   @   s*   e Zd ZejZdZeZdZ	dZ
dd„ ZdS )ÚNotionOAuth2AdapterTz)https://api.notion.com/v1/oauth/authorizez%https://api.notion.com/v1/oauth/tokenc                 K   s   |   ¡  ||d ¡S )NÚresponse)Úget_providerÚsociallogin_from_response)ÚselfÚrequestÚappÚtokenÚkwargs© r   úm/var/www/html/humari/django-venv/lib/python3.10/site-packages/allauth/socialaccount/providers/notion/views.pyÚcomplete_login   s   ÿz"NotionOAuth2Adapter.complete_loginN)Ú__name__Ú
__module__Ú__qualname__r   ÚidÚprovider_idÚ
basic_authr   Úclient_classÚauthorize_urlÚaccess_token_urlr   r   r   r   r   r      s    r   N)Ú,allauth.socialaccount.providers.oauth2.viewsr   r   r   Úclientr   Úproviderr   r   Úadapter_viewÚoauth2_loginÚoauth2_callbackr   r   r   r   Ú<module>   s    
