HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/stripe/__pycache__/oauth.cpython-310.pyc
o

&we��@s4ddlmZmZmZddlmZGdd�de�ZdS)�)�
api_requestor�connect_api_base�error)�	urlencodec@sBeZdZedd��Zeddd��Zeddd��Zedd	d
��ZdS)
�OAuthcCs2d|vrdSddlm}|r||d<dSt�d��)N�	client_idr)raxNo client_id provided. (HINT: set your client_id using "stripe.client_id = <CLIENT-ID>"). You can find your client_ids in your Stripe dashboard at https://dashboard.stripe.com/account/applications/settings, after registering your account as a platform. See https://stripe.com/docs/connect/standalone-accounts for details, or email support@stripe.com if you have any questions.)�striperr�AuthenticationError)�paramsr�r�E/home/arjun/projects/env/lib/python3.10/site-packages/stripe/oauth.py�_set_client_ids�zOAuth._set_client_idFcKsR|durd}nd}t�|�d|vrd|d<ttt�|���}t|d|}|S)NFz/oauth/authorizez/express/oauth/authorize�
response_type�code�?)rr
r�listr�_api_encoder)�expressr
�path�query�urlrrr�
authorize_urls
zOAuth.authorize_urlNcKs(tj|td�}|�dd|d�\}}|jS)N��api_base�postz/oauth/token)r�APIRequestorr�request�data��api_keyr
�	requestor�response�_rrr�token)s
�zOAuth.tokencKs2tj|td�}t�|�|�dd|d�\}}|jS)Nrrz/oauth/deauthorize)rrrrr
rrrrrr�deauthorize1s�
�zOAuth.deauthorize)F)N)�__name__�
__module__�__qualname__�staticmethodr
rr#r$rrrrrs

rN)rrrr�urllib.parser�objectrrrrr�<module>s