
    qhv                     *    S r SSKJr   " S S\5      rg)zU
Lyft OAuth2 backend. Read more about the
    API at https://developer.lyft.com/docs
   )
BaseOAuth2c                   j    \ rS rSrSrSrSrSrSrSr	Sr
/ SQrS	rS
r/ SQrS rS rSS jrS rS rSrg)
LyftOAuth2	   lyftid z$https://api.lyft.com/oauth/authorizez https://api.lyft.com/oauth/tokenzhttps://api.lyft.com/v1/profile)publicprofilez
rides.readzrides.requestcodeT))r   r   )usernamer   )access_tokenr   )refresh_tokenr   )
token_typer   )
expires_inr   )scoper   c                     US   US   S.$ )z%Return user details from Lyft accountr   )r   r    )selfresponses     K/var/www/html/env/lib/python3.13/site-packages/social_core/backends/lyft.pyget_user_detailsLyftOAuth2.get_user_details   s    tn(4.AA    c                 @    U R                  U R                  SSU 30S9$ )zLoads user data from serviceAuthorizationzBearer )headers)get_jsonUSER_DATA_URL)r   r   argskwargss       r   	user_dataLyftOAuth2.user_data"   s/    }}GL>:R(S  
 	
r   Nc                 J    U R                  5       u  p#SU R                  S   S.$ )Nauthorization_coder   )
grant_typer   )get_key_and_secretdata)r   state	client_idclient_secrets       r   auth_complete_paramsLyftOAuth2.auth_complete_params(   s'    #'#:#:#< 	2DIIf<MNNr   c                 "    U R                  5       $ N)r'   )r   s    r   auth_complete_credentials$LyftOAuth2.auth_complete_credentials,   s    &&((r   c                     USS.$ )Nr   )r   r&   r   )r   r   r    r!   s       r   refresh_token_paramsLyftOAuth2.refresh_token_params/   s    !.oNNr   r   r/   )__name__
__module____qualname____firstlineno__nameID_KEYSCOPE_SEPARATORAUTHORIZATION_URLACCESS_TOKEN_URLREFRESH_TOKEN_URLr   DEFAULT_SCOPERESPONSE_TYPESTATE_PARAMETER
EXTRA_DATAr   r"   r,   r0   r3   __static_attributes__r   r   r   r   r   	   sZ    DFO>9:5MHMMOJB
O)Or   r   N)__doc__oauthr   r   r   r   r   <module>rF      s   
 'O 'Or   