
    Uњh                         S SK Jr  S SKJrJrJr   " S S\5      r " S S\5      r\R                  " \5      r	\R                  " \5      r
g)    )OAuth)OAuthAdapterOAuthCallbackViewOAuthLoginViewc                       \ rS rSrSrS rSrg)OpenStreetMapAPI	   z7https://api.openstreetmap.org/api/0.6/user/details.jsonc                 ^    U R                  U R                  5      R                  5       nUS   $ )Nuser)queryurljson)selfdatas     nD:\Anime\Ugyen\janka_web_project\venv\Lib\site-packages\allauth/socialaccount/providers/openstreetmap/views.pyget_user_infoOpenStreetMapAPI.get_user_info   s'    zz$((#((*F|     N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r   r   	   s    
CCr   r   c                   *    \ rS rSrSrSrSrSrS rSr	g)	OpenStreetMapOAuthAdapter   openstreetmapz1https://www.openstreetmap.org/oauth/request_tokenz0https://www.openstreetmap.org/oauth/access_tokenz-https://www.openstreetmap.org/oauth/authorizec                     [        XR                  UR                  U R                  5      nUR	                  5       nU R                  5       R                  X5      $ )N)r   	client_idsecretrequest_token_urlr   get_providersociallogin_from_response)r   requestapptokenresponseclient
extra_datas          r   complete_login(OpenStreetMapOAuthAdapter.complete_login   sK    !]]CJJ0F0F
 ))+
  "<<WQQr   r   N)
r   r   r   r   provider_idr"   access_token_urlauthorize_urlr+   r   r   r   r   r   r      s    !KKICMRr   r   N),allauth.socialaccount.providers.oauth.clientr   +allauth.socialaccount.providers.oauth.viewsr   r   r   r   r   adapter_viewoauth_loginoauth_callbackr   r   r   <module>r5      sP    > u R R ))*CD"//0IJr   