o
    h                     @   sT   d dl mZ d dlmZ d dlmZmZmZ G dd deZe	eZ
e	eZdS )    )app_settings)get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginViewc                   @   sF   e Zd ZdZejei ddZde Zde Z	de Z
dd Zd	S )
FeedlyOAuth2AdapterfeedlyHOSTzcloud.feedly.comzhttps://%s/v3/auth/tokenzhttps://%s/v3/auth/authzhttps://%s/v3/profilec                 K   s>   dd |ji}t  j| j|d}| }|  ||S )NAuthorizationz	OAuth {0})headers)	formattokenr   get_requests_sessiongetprofile_urljsonget_providersociallogin_from_response)selfrequestappr   kwargsr   resp
extra_data r   c/var/www/html/pos/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/feedly/views.pycomplete_login   s
   z"FeedlyOAuth2Adapter.complete_loginN)__name__
__module____qualname__provider_idr   	PROVIDERSr   hostaccess_token_urlauthorize_urlr   r   r   r   r   r   r   
   s    r   N)allauth.socialaccountr   allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   r   adapter_viewoauth2_loginoauth2_callbackr   r   r   r   <module>   s    
