
    qh                     *    S r SSKJr   " S S\5      rg)z
Moves OAuth2 backend, docs at:
    https://dev.moves-app.com/docs/authentication

Written by Avi Alkalay <avi at unix dot sh>
Certified to work with Django 1.6
   )
BaseOAuth2c                   <    \ rS rSrSrSrSrSrSrSS/r	S	 r
S
 rSrg)MovesOAuth2   z"Moves OAuth authentication backendmovesuser_idz,https://api.moves-app.com/oauth/v1/authorizez/https://api.moves-app.com/oauth/v1/access_token)refresh_tokenr	   T)
expires_inexpiresc                 :    S[        UR                  S5      5      0$ )z!Return user details Moves accountusernamer   )strget)selfresponses     L/var/www/html/env/lib/python3.13/site-packages/social_core/backends/moves.pyget_user_detailsMovesOAuth2.get_user_details   s    CY 7899    c                 &    U R                  SSU0S9$ )zLoads user data from servicez.https://api.moves-app.com/api/1.1/user/profileaccess_token)params)get_json)r   r   argskwargss       r   	user_dataMovesOAuth2.user_data   s#    }}<"L1  
 	
r    N)__name__
__module____qualname____firstlineno____doc__nameID_KEYAUTHORIZATION_URLACCESS_TOKEN_URL
EXTRA_DATAr   r   __static_attributes__r   r   r   r   r      s2    ,DFFH0!J
:
r   r   N)r#   oauthr   r   r   r   r   <module>r+      s    
* 
r   