
    Tњh                         S SK Jr  S SKJrJrJr  SSKJr   " S S\5      r\R                  " \5      r
\R                  " \5      rg)    )get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginView   )DingTalkOAuth2Clientc                   B   ^  \ rS rSrSrSrSrSr\r	U 4S jr
S rSrU =r$ )	DingTalkOAuth2Adapter   dingtalkz4https://api.dingtalk.com/v1.0/oauth2/userAccessTokenz&https://login.dingtalk.com/oauth2/authz.https://api.dingtalk.com/v1.0/contact/users/mec                    > SUR                   ;   a>  SUR                   l        UR                   S   UR                   S'   SUR                   l        [        [        U ]  U5        g )NauthCodeTcodeF)GET_mutablesuperr
   __init__)selfrequest	__class__s     iD:\Anime\Ugyen\janka_web_project\venv\Lib\site-packages\allauth/socialaccount/providers/dingtalk/views.pyr   DingTalkOAuth2Adapter.__init__   sN    $#'GKK ")++j"9GKK#(GKK #T3G<    c                     SUR                   0n[        5       R                  5       R                  U R                  US9nUR                  5         UR                  5       nU R                  5       R                  X5      $ )Nzx-acs-dingtalk-access-token)headers)	tokenr   get_requests_sessiongetprofile_urlraise_for_statusjsonget_providersociallogin_from_response)r   r   appr   kwargsr   resp
extra_datas           r   complete_login$DingTalkOAuth2Adapter.complete_login   sl    0%++>M..044T5E5Ew4W 	 	YY[
  "<<WQQr    )__name__
__module____qualname____firstlineno__provider_idaccess_token_urlauthorize_urlr   r   client_classr   r(   __static_attributes____classcell__)r   s   @r   r
   r
      s.    KM<MBK'L=R Rr   r
   N)allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   clientr   r
   adapter_viewoauth2_loginoauth2_callbackr*   r   r   <module>r;      sI    5  )RM R4 ++,AB$112GHr   