
    ([f                        d Z ddlmZ ddlmZ  G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          ZdS )a  
    authlib.oauth1.rfc5849.errors
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    RFC5849 has no definition on errors. This module is designed by
    Authlib based on OAuth 1.0a `Section 10`_ with some changes.

    .. _`Section 10`: https://oauth.net/core/1.0a/#rfc.section.10
    )AuthlibHTTPErroris_secure_transportc                   &     e Zd Zd fd	Zd Z xZS )OAuth1ErrorNc                 P    t                                          d |||           d S Nsuper__init__)selfdescriptionuristatus_code	__class__s       Q/var/www/piapp/venv/lib/python3.11/site-packages/authlib/oauth1/rfc5849/errors.pyr   zOAuth1Error.__init__   s'    {C=====    c                 
    g dS )zGet a list of headers.))zContent-Typez!application/x-www-form-urlencoded)zCache-Controlzno-store)Pragmazno-cache )r   s    r   get_headerszOAuth1Error.get_headers   s    
 
 
 	
r   )NNN)__name__
__module____qualname__r   r   __classcell__r   s   @r   r   r      sL        > > > > > >
 
 
 
 
 
 
r   r   c                   ,    e Zd ZdZdZed             ZdS )InsecureTransportErrorinsecure_transportzOAuth 2 MUST utilize https.c                 8    t          |          s
 |             d S r	   r   )clsr   s     r   checkzInsecureTransportError.check   s'    "3'' 	#%%K	 	r   N)r   r   r   errorr   classmethodr"   r   r   r   r   r      s7         E/K  [  r   r   c                       e Zd ZdZdS )InvalidRequestErrorinvalid_requestNr   r   r   r#   r   r   r   r&   r&   %   s        EEEr   r&   c                       e Zd ZdZdS )UnsupportedParameterErrorunsupported_parameterNr(   r   r   r   r*   r*   )   s        #EEEr   r*   c                       e Zd ZdZdS )UnsupportedSignatureMethodErrorunsupported_signature_methodNr(   r   r   r   r-   r-   -   s        *EEEr   r-   c                   "     e Zd ZdZ fdZ xZS )MissingRequiredParameterErrormissing_required_parameterc                 X    d| d}t                                          |           d S )Nz	missing "z" in parameters)r   r
   )r   keyr   r   s      r   r   z&MissingRequiredParameterError.__init__4   s4    6#666[11111r   )r   r   r   r#   r   r   r   s   @r   r0   r0   1   s=        (E2 2 2 2 2 2 2 2 2r   r0   c                       e Zd ZdZdS )%DuplicatedOAuthProtocolParameterError#duplicated_oauth_protocol_parameterNr(   r   r   r   r5   r5   9   s        1EEEr   r5   c                       e Zd ZdZdZdS )InvalidClientErrorinvalid_client  Nr   r   r   r#   r   r   r   r   r8   r8   =   s        EKKKr   r8   c                       e Zd ZdZdZdZdS )InvalidTokenErrorinvalid_tokenz.Invalid or expired "oauth_token" in parametersr:   N)r   r   r   r#   r   r   r   r   r   r=   r=   B   s        EBKKKKr   r=   c                       e Zd ZdZdZdS )InvalidSignatureErrorinvalid_signaturer:   Nr;   r   r   r   r@   r@   H   s        EKKKr   r@   c                       e Zd ZdZdZdS )InvalidNonceErrorinvalid_noncer:   Nr;   r   r   r   rC   rC   M   s        EKKKr   rC   c                       e Zd ZdZdZdS )AccessDeniedErroraccess_deniedz=The resource owner or authorization server denied the requestN)r   r   r   r#   r   r   r   r   rF   rF   R   s        EQKKKr   rF   c                       e Zd ZdZdZdS )MethodNotAllowedErrormethod_not_allowedi  Nr;   r   r   r   rI   rI   W   s         EKKKr   rI   N)__doc__authlib.common.errorsr   authlib.common.securityr   r   r   r&   r*   r-   r0   r5   r8   r=   r@   rC   rF   rI   r   r   r   <module>rN      sj    3 2 2 2 2 2 7 7 7 7 7 7

 

 

 

 

" 

 

 

    [       +   $ $ $ $ $ $ $ $+ + + + +k + + +2 2 2 2 2K 2 2 22 2 2 2 2K 2 2 2       
           K   
       
R R R R R R R R
    K     r   