U
    ÔÉ>ié  ã                   @   sH   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 )é    )ÚOAuth2AdapterÚOAuth2CallbackViewÚOAuth2LoginViewé   )ÚNotionOAuth2Clientc                   @   s(   e Zd ZdZdZeZdZdZdd„ Z	dS )ÚNotionOAuth2AdapterZnotionTz)https://api.notion.com/v1/oauth/authorizez%https://api.notion.com/v1/oauth/tokenc                 K   s   |   ¡  ||d ¡S )NÚresponse)Úget_providerZsociallogin_from_response)ÚselfÚrequestZappÚtokenÚkwargs© r   úP/tmp/pip-unpacked-wheel-upujnpc2/allauth/socialaccount/providers/notion/views.pyÚcomplete_login   s     ÿz"NotionOAuth2Adapter.complete_loginN)
Ú__name__Ú
__module__Ú__qualname__Zprovider_idÚ
basic_authr   Zclient_classZauthorize_urlZaccess_token_urlr   r   r   r   r   r   
   s   r   N)
Z,allauth.socialaccount.providers.oauth2.viewsr   r   r   Úclientr   r   Zadapter_viewZoauth2_loginZoauth2_callbackr   r   r   r   Ú<module>   s   
