
    f[                        d dl mZ d dlmZ d dlmZmZmZ ddddddd	Z e	ed
i       j                  di       j                  dd      Zee   d   Zee   d   Z G d de      Z ej                  e      Z ej                  e      Zy)    )settings)get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginViewz,https://www.dwolla.com/oauth/v2/authenticatez%https://www.dwolla.com/oauth/v2/token)auth_url	token_urlz,https://uat.dwolla.com/oauth/v2/authenticatez%https://uat.dwolla.com/oauth/v2/token)
productionsandboxSOCIALACCOUNT_PROVIDERSdwollaENVIRONMENTr
   r   r	   c                   &    e Zd ZdZdZdZeZeZ	d Z
y)DwollaOAuth2AdapterzDwolla Views Adapter|r   c                     t               j                         j                  |d   d   d   d|j                  z  dd      }|j	                         }| j                         j                  ||      S )N_linksaccounthrefz	Bearer %sz"application/vnd.dwolla.v1.hal+json)authorizationaccept)headers)r   get_requests_sessiongettokenjsonget_providersociallogin_from_response)selfrequestappr   responsekwargsresp
extra_datas           g/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/dwolla/views.pycomplete_loginz"DwollaOAuth2Adapter.complete_login)   ss    M!!#S"9-f5%05;;%>B   	 YY[
  "<<WjQQ    N)__name__
__module____qualname____doc__scope_delimiterprovider_id	TOKEN_URLaccess_token_urlAUTH_URLauthorize_urlr'    r(   r&   r   r       s     OK MRr(   r   N)django.confr   allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   ENVIRONMENTSgetattrr   ENVr1   r/   r   adapter_viewoauth2_loginoauth2_callbackr3   r(   r&   <module>r=      s      5  C<
 C<	 H/4S2S%  Z(k*	R- R6 ,++,?@1$112EFr(   