ó
    q™h{  ã                   ó6   • S r SSKJr  SSKJr   " S S\5      rg)aD  
OpenStreetMap OAuth support.

This adds support for OpenStreetMap OAuth service. An application must be
registered first on OpenStreetMap and the settings
SOCIAL_AUTH_OPENSTREETMAP_KEY and SOCIAL_AUTH_OPENSTREETMAP_SECRET
must be defined with the corresponding values.

More info: https://wiki.openstreetmap.org/wiki/OAuth
é    )Úminidomé   )Ú
BaseOAuth1c                   ó<   • \ rS rSrSrSrSrSrSr/ SQr	S r
S	 rS
rg)ÚOpenStreetMapOAuthé   z*OpenStreetMap OAuth authentication backendÚopenstreetmapz-https://www.openstreetmap.org/oauth/authorizez1https://www.openstreetmap.org/oauth/request_tokenz0https://www.openstreetmap.org/oauth/access_token))Úidr
   )Úavatarr   )Úaccount_createdr   c                 ó   • US   SSSSS.$ )z.Return user details from OpenStreetMap accountÚusernameÚ )r   ÚemailÚfullnameÚ
first_nameÚ	last_name© )ÚselfÚresponses     ÚT/var/www/html/env/lib/python3.13/site-packages/social_core/backends/openstreetmap.pyÚget_user_detailsÚ#OpenStreetMapOAuth.get_user_details   s"   € ð ! Ñ,ØØØØñ
ð 	
ó    c                 ó„  • U R                  US5      n [        R                  " UR                  5      nUR                  S5      S   n UR                  S5      S   R                  S5      nUR                  S5      UR                  S5      UR                  S	5      US
.$ ! [         a     gf = f! [         a    Sn NRf = f)zReturn user data providedz2https://api.openstreetmap.org/api/0.6/user/detailsNÚuserr   ÚimgÚhrefr
   Údisplay_namer   )r
   r   r   r   )Úoauth_requestr   ÚparseStringÚcontentÚ
ValueErrorÚgetElementsByTagNameÚgetAttributeÚ
IndexError)r   Úaccess_tokenÚargsÚkwargsr   Údomr   r   s           r   Ú	user_dataÚOpenStreetMapOAuth.user_data(   sÒ   € à×%Ñ%ØÐNó
ˆð	Ü×%Ò% h×&6Ñ&6Ó7ˆCð ×'Ñ'¨Ó/°Ñ2ˆð	Ø×-Ñ-¨eÓ4°QÑ7×DÑDÀVÓLˆFð ×#Ñ# DÓ)Ø×)Ñ)¨.Ó9Ø#×0Ñ0Ð1BÓCØñ	
ð 	
øô ó 	Ùð	ûô
 ó 	ØŠFð	ús#   ” B  Á	#B0 Â 
B-Â,B-Â0B?Â>B?r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚnameÚAUTHORIZATION_URLÚREQUEST_TOKEN_URLÚACCESS_TOKEN_URLÚ
EXTRA_DATAr   r+   Ú__static_attributes__r   r   r   r   r      s-   † Ù4à€DØGÐØKÐØIÐò€Jò
õ
r   r   N)r1   Úxml.domr   Úoauthr   r   r   r   r   Ú<module>r:      s   ðñ	õ å ô*
˜õ *
r   