
    qh'                     *    S r SSKJr   " S S\5      rg)zj
Uber OAuth2 backend, docs at:
    https://python-social-auth.readthedocs.io/en/latest/backends/uber.html
   )
BaseOAuth2c                   :    \ rS rSrSrSrSrSrSrS r	S r
S	 rS
rg)
UberOAuth2	   uberuuid z&https://login.uber.com/oauth/authorizez"https://login.uber.com/oauth/tokenc                 "    U R                  5       $ )N)get_key_and_secret)selfs    K/var/www/html/env/lib/python3.13/site-packages/social_core/backends/uber.pyauth_complete_credentials$UberOAuth2.auth_complete_credentials   s    &&((    c                     UR                  SS5      nU R                  SUR                  SS5      UR                  SS5      5      u  p4nUUUUUS.$ )z%Return user details from Uber accountemail 
first_name	last_name)usernamer   fullnamer   r   )getget_user_names)r   responser   r   r   r   s         r   get_user_detailsUberOAuth2.get_user_details   s_    Wb)*.*=*=\2.["0M+
'i  $"
 	
r   c           	          UR                  S5      nU R                  SSSR                  UR                  S5      U5      0S9$ )zLoads user data from servicer   zhttps://api.uber.com/v1/meAuthorizationz{} {}
token_type)headers)popget_jsonformatr   )r   access_tokenargskwargsr   s        r   	user_dataUberOAuth2.user_data!   sJ    ::j)}}(LL."  
 	
r    N)__name__
__module____qualname____firstlineno__nameID_KEYSCOPE_SEPARATORAUTHORIZATION_URLACCESS_TOKEN_URLr   r   r'   __static_attributes__r)   r   r   r   r   	   s,    DFO@;)


r   r   N)__doc__oauthr   r   r)   r   r   <module>r6      s   
 "
 "
r   