%PDF- %PDF-
| Direktori : /lib/python3.9/site-packages/oauthlib/openid/connect/core/__pycache__/ |
| Current File : //lib/python3.9/site-packages/oauthlib/openid/connect/core/__pycache__/exceptions.cpython-39.pyc |
a
\��`� � @ s� d Z ddlmZmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Z G dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Zd dd�ZdS )!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 @ s e Zd ZdS )�FatalOpenIDClientErrorN��__name__�
__module__�__qualname__� r r �K/usr/lib/python3.9/site-packages/oauthlib/openid/connect/core/exceptions.pyr s r c @ s e Zd ZdS )�OpenIDClientErrorNr r r r r
r s r c @ s e Zd ZdZdZdZdS )�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.
Zinteraction_required� N�r r r �__doc__�error�status_coder r r r
r s r c @ s e Zd ZdZdZdZdS )�
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.
Zlogin_requiredr
Nr r r r r
r s r c @ s e Zd ZdZdZdS )�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.
Zaccount_selection_requiredN)r r r r r r r r r
r + s
r c @ s e Zd ZdZdZdZdS )�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.
Zconsent_requiredr
Nr r r r r
r 9 s r c @ s e Zd ZdZdZdZdS )�InvalidRequestURIze
The request_uri in the Authorization Request returns an error or
contains invalid data.
Zinvalid_request_urizWThe request_uri in the Authorization Request returns an error or contains invalid data.N�r r r r r �descriptionr r r r
r E s r c @ s e Zd ZdZdZdZdS )�InvalidRequestObjectzC
The request parameter contains an invalid Request Object.
Zinvalid_request_objectz9The request parameter contains an invalid Request Object.Nr r r r r
r O s r c @ s e Zd ZdZdZdZdS )�RequestNotSupportedz?
The OP does not support use of the request parameter.
Zrequest_not_supportedz'The request parameter is not supported.Nr r r r r
r W s r c @ s e Zd ZdZdZdZdS )�RequestURINotSupportedzC
The OP does not support use of the request_uri parameter.
Zrequest_uri_not_supportedz+The request_uri parameter is not supported.Nr r r r r
r _ s r c @ s e Zd ZdZdZdZdS )�RegistrationNotSupportedzD
The OP does not support use of the registration parameter.
Zregistration_not_supportedz,The registration parameter is not supported.Nr r r r r
r g s r c @ s e Zd ZdZdZdZdZdS )�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.
Z
invalid_tokenr
zWThe access token provided is expired, revoked, malformed, or invalid for other reasons.N�r r r r r r r r r r r
r o s r c @ s e Zd ZdZdZdZdZdS )�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.
Zinsufficient_scopei� zIThe request requires higher privileges than provided by the access token.Nr r r r r
r } s r Nc C sh dd l }dd l}|�d�|�d�|�d�d�}|�|jt |j�D ] \}}|j| krB|f i |���qBd S )Nr Zerror_descriptionZ error_uri�state)r Zurir )�inspect�sys�getZ
getmembers�modulesr Zisclassr )r �paramsr r! �kwargs�_�clsr r r
�raise_from_error� s �
r( )N)r Zoauthlib.oauth2.rfc6749.errorsr r r r r r r r r r r r r r r r( r r r r
�<module> s