
    Uњht                         S SK Jr  S SKJrJrJr   " S S\5      r\R                  " \5      r\R                  " \5      r	g)    )get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginViewc                   *    \ rS rSrSrSrSrSrS rSr	g)	StackExchangeOAuth2Adapter	   stackexchangez,https://stackexchange.com/oauth/access_tokenzhttps://stackexchange.com/oauthz$https://api.stackexchange.com/2.1/mec                 \   U R                  5       nUR                  5       n[        5       R                  5       R	                  U R
                  UR                  UR                  US.S9nUR                  5         UR                  5       S   S   nU R                  5       R                  X5      $ )N)access_tokenkeysite)paramsitemsr   )get_providerget_siter   get_requests_sessiongetprofile_urltokenr   raise_for_statusjsonsociallogin_from_response)	selfrequestappr   kwargsproviderr   resp
extra_datas	            nD:\Anime\Ugyen\janka_web_project\venv\Lib\site-packages\allauth/socialaccount/providers/stackexchange/views.pycomplete_login)StackExchangeOAuth2Adapter.complete_login   s    $$&  "M!!#S  (-CGGTR   	 	YY[)!,
  "<<WQQ     N)
__name__
__module____qualname____firstlineno__provider_idaccess_token_urlauthorize_urlr   r"   __static_attributes__r%   r$   r!   r   r   	   s    !KE5M8KRr$   r   N)
allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   r   adapter_viewoauth2_loginoauth2_callbackr%   r$   r!   <module>r3      sD    5 R R, ++,FG$112LMr$   