Current File : //usr/lib/python3/dist-packages/oauthlib/openid/connect/core/__pycache__/exceptions.cpython-312.pyc
�

&�`���>�dZddlmZmZGd�de�ZGd�de�ZGd�de�ZGd	�d
e�ZGd�de�ZGd
�de�Z	Gd�de�Z
Gd�de�ZGd�de�ZGd�de�Z
Gd�de�ZGd�de�ZGd�de�Zdd�Zy) z�
oauthlib.oauth2.rfc6749.errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error used both by OAuth 2 clients and providers to represent the spec
defined error responses for all four core grant types.
�)�FatalClientError�OAuth2Errorc��eZdZy)�FatalOpenIDClientErrorN��__name__�
__module__�__qualname__���I/usr/lib/python3/dist-packages/oauthlib/openid/connect/core/exceptions.pyrr���rrc��eZdZy)�OpenIDClientErrorNrrrr
rrrrrc��eZdZdZdZdZy)�InteractionRequireda,
    The Authorization Server requires End-User interaction to proceed.

    This error MAY be returned when the prompt parameter value in the
    Authentication Request is none, but the Authentication Request cannot be
    completed without displaying a user interface for End-User interaction.
    �interaction_required�N�rr	r
�__doc__�error�status_coderrr
rrs���
#�E��Krrc��eZdZdZdZdZy)�
LoginRequireda'
    The Authorization Server requires End-User authentication.

    This error MAY be returned when the prompt parameter value in the
    Authentication Request is none, but the Authentication Request cannot be
    completed without displaying a user interface for End-User authentication.
    �login_requiredrNrrrr
rrs���
�E��Krrc��eZdZdZdZy)�AccountSelectionRequireda�
    The End-User is REQUIRED to select a session at the Authorization Server.

    The End-User MAY be authenticated at the Authorization Server with
    different associated accounts, but the End-User did not select a session.
    This error MAY be returned when the prompt parameter value in the
    Authentication Request is none, but the Authentication Request cannot be
    completed without displaying a user interface to prompt for a session to
    use.
    �account_selection_requiredN)rr	r
rrrrr
rr+s��	�
)�Errc��eZdZdZdZdZy)�ConsentRequireda
    The Authorization Server requires End-User consent.

    This error MAY be returned when the prompt parameter value in the
    Authentication Request is none, but the Authentication Request cannot be
    completed without displaying a user interface for End-User consent.
    �consent_requiredrNrrrr
r r 9s���
�E��Krr c��eZdZdZdZdZy)�InvalidRequestURIze
    The request_uri in the Authorization Request returns an error or
    contains invalid data.
    �invalid_request_urizWThe request_uri in the Authorization Request returns an error or contains invalid data.N�rr	r
rr�descriptionrrr
r#r#Es���
"�E�4�Krr#c��eZdZdZdZdZy)�InvalidRequestObjectzC
    The request parameter contains an invalid Request Object.
    �invalid_request_objectz9The request parameter contains an invalid Request Object.Nr%rrr
r(r(Os���
%�E�M�Krr(c��eZdZdZdZdZy)�RequestNotSupportedz?
    The OP does not support use of the request parameter.
    �request_not_supportedz'The request parameter is not supported.Nr%rrr
r+r+Ws���
$�E�;�Krr+c��eZdZdZdZdZy)�RequestURINotSupportedzC
    The OP does not support use of the request_uri parameter.
    �request_uri_not_supportedz+The request_uri parameter is not supported.Nr%rrr
r.r._s���
(�E�?�Krr.c��eZdZdZdZdZy)�RegistrationNotSupportedzD
    The OP does not support use of the registration parameter.
    �registration_not_supportedz,The registration parameter is not supported.Nr%rrr
r1r1gs���
)�E�@�Krr1c��eZdZdZdZdZdZy)�InvalidTokenErrora
    The access token provided is expired, revoked, malformed, or
    invalid for other reasons.  The resource SHOULD respond with
    the HTTP 401 (Unauthorized) status code.  The client MAY
    request a new access token and retry the protected resource
    request.
    �
invalid_tokenrzWThe access token provided is expired, revoked, malformed, or invalid for other reasons.N�rr	r
rrrr&rrr
r4r4os���
�E��K�3�Krr4c��eZdZdZdZdZdZy)�InsufficientScopeErrora
    The request requires higher privileges than provided by the
    access token.  The resource server SHOULD respond with the HTTP
    403 (Forbidden) status code and MAY include the "scope"
    attribute with the scope necessary to access the protected
    resource.
    �insufficient_scopei�zIThe request requires higher privileges than provided by the access token.Nr6rrr
r8r8}s���
!�E��K�'�Krr8Nc��ddl}ddl}|jd�|jd�|jd�d�}|j|jt
|j�D]\}}|j|k(s�|di|���y)Nr�error_description�	error_uri�state)r&�urir=r)�inspect�sys�get�
getmembers�modulesr�isclassr)r�paramsr?r@�kwargs�_�clss       r
�raise_from_errorrI�s{�����z�z�"5�6��z�z�+�&����G�$��F�
�$�$�S�[�[��%:�G�O�O�L� ���3��9�9����-��-�� r)N)r�oauthlib.oauth2.rfc6749.errorsrrrrrrrr r#r(r+r.r1r4r8rIrrr
�<module>rKs����I�	�-�	�	��	�	�+�	�	�%�	�)�0�)�	�'�	�4�)�4�N�,�N�<�+�<�@�.�@�A�0�A�4��4�(�[�(�
 r