
    qh                     *    S r SSKJr   " S S\5      rg)z
ArcGIS OAuth2 backend
   )
BaseOAuth2c                   8    \ rS rSrSrSrSrSrSS/rS r	S	 r
S
rg)ArcGISOAuth2   arcgisusernamez4https://www.arcgis.com/sharing/rest/oauth2/authorizez0https://www.arcgis.com/sharing/rest/oauth2/token)
expires_inr	   )refresh_tokenr
   c                     UR                  S5      UR                  S5      UR                  S5      UR                  S5      UR                  S5      S.$ )z'Return user details from ArcGIS accountr   emailfullName	firstNamelastName)r   r   fullname
first_name	last_name)get)selfresponses     M/var/www/html/env/lib/python3.13/site-packages/social_core/backends/arcgis.pyget_user_detailsArcGISOAuth2.get_user_details   sJ     !Z0\\'* Z0",,{3!j1
 	
    c                 (    U R                  SUSS.S9$ )zLoads user data from servicez2https://www.arcgis.com/sharing/rest/community/selfjson)tokenf)params)get_json)r   access_tokenargskwargss       r   	user_dataArcGISOAuth2.user_data   s#    }}@)7  
 	
r    N)__name__
__module____qualname____firstlineno__nameID_KEYAUTHORIZATION_URLACCESS_TOKEN_URL
EXTRA_DATAr   r#   __static_attributes__r%   r   r   r   r      s-    DFNI.0RSJ

r   r   N)__doc__oauthr   r   r%   r   r   <module>r2      s    
: 
r   