HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/oauthlib/oauth1/rfc5849/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/oauthlib/oauth1/rfc5849/__pycache__/errors.cpython-311.pyc
�

&�`�	���dZddlmZmZGd�de��ZGd�de��ZGd�de��ZGd	�d
e��ZGd�de��Z	d
S)z�
oauthlib.oauth1.rfc5849.errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error used both by OAuth 1 clients and provicers to represent the spec
defined error responses for all four core grant types.
�)�add_params_to_uri�	urlencodec�^��eZdZdZdZ		d�fd�	Zd�Zed���Zed���Z	�xZ
S)	�OAuth1ErrorN��c����|p|j|_d�|j|j��}|r|dt|��zz
}t	���|��||_||_dS)a�
        description:    A human-readable ASCII [USASCII] text providing
                        additional information, used to assist the client
                        developer in understanding the error that occurred.
                        Values for the "error_description" parameter MUST NOT
                        include characters outside the set
                        x20-21 / x23-5B / x5D-7E.

        uri:    A URI identifying a human-readable web page with information
                about the error, used to provide the client developer with
                additional information about the error.  Values for the
                "error_uri" parameter MUST conform to the URI- Reference
                syntax, and thus MUST NOT include characters outside the set
                x21 / x23-5B / x5D-7E.

        state:  A CSRF protection value received from the client.

        request:  Oauthlib Request object
        z({}) {}� N)�description�format�error�repr�super�__init__�uri�status_code)�selfrrr�request�message�	__class__s      ��@/usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/errors.pyrzOAuth1Error.__init__sy���*'�:�$�*:����"�"�4�:�t�/?�@�@���	+��s�T�'�]�]�*�*�G�
������!�!�!����&�����c�,�t||j��S�N)r�	twotuples)rrs  r�in_urizOAuth1Error.in_uri-s�� ��d�n�5�5�5rc��d|jfg}|jr|�d|jf��|jr|�d|jf��|S)Nr
�error_description�	error_uri)r
r�appendr)rr
s  rrzOAuth1Error.twotuples0s`���4�:�&�'����	B��L�L�-�t�/?�@�A�A�A��8�	2��L�L�+�t�x�0�1�1�1��rc�*�t|j��Sr)rr)rs r�
urlencodedzOAuth1Error.urlencoded9s�����(�(�(r)NNrN)�__name__�
__module__�__qualname__r
rrr�propertyrr"�
__classcell__)rs@rrrs���������E��K�?B��'�'�'�'�'�'�<6�6�6�����X���)�)��X�)�)�)�)�)rrc��eZdZdZdZdS)�InsecureTransportError�insecure_transport_protocolz%Only HTTPS connections are permitted.N)r#r$r%r
r�rrr)r)>s������)�E�9�K�K�Krr)c��eZdZdZdS)�InvalidSignatureMethodError�invalid_signature_methodN�r#r$r%r
r+rrr-r-Cs������&�E�E�Err-c��eZdZdZdS)�InvalidRequestError�invalid_requestNr/r+rrr1r1Gs�������E�E�Err1c��eZdZdZdS)�InvalidClientError�invalid_clientNr/r+rrr4r4Ks�������E�E�Err4N)
�__doc__�oauthlib.commonrr�	Exceptionrr)r-r1r4r+rr�<module>r9s����9�8�8�8�8�8�8�8�0)�0)�0)�0)�0)�)�0)�0)�0)�f:�:�:�:�:�[�:�:�:�
'�'�'�'�'�+�'�'�'������+��������������r