Format: application/x-python-code
⬇ Download File (3.2 KB)
   1  o
   2  
   3  G'h`	�@s�Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
   4  d�de�ZGdd
   5  �d
   6  e�ZGdd�de�ZGdd�de�Z	Gdd�de�Z
   7  Gdd�de�ZdS)c@�eZdZdZdS)�JWTExtendedExceptionz@
   8      Base except which all flask_jwt_extended errors extend
   9      N��__name__�
  10  __module__�__qualname__�__doc__�rr�SC:\Users\shubh\Videos\agent\nova\Lib\site-packages\flask_jwt_extended/exceptions.pyr�rc@r)�JWTDecodeErrorz!
  11      An error decoding a JWT
  12      Nrrrrr	r	r
  13  rc@r)�InvalidHeaderErrorz<
  14      An error getting header information from a request
  15      Nrrrrr	rr
  16  rc@r)�InvalidQueryParamErrorzI
  17      An error when a query string param is not in the correct format
  18      Nrrrrr	r
  19  r
  20  r
  21  c@r)�NoAuthorizationErrorzW
  22      An error raised when no authorization token was found in a protected endpoint
  23      Nrrrrr	r!r
  24  rc@r)�	CSRFErrorz'
  25      An error with CSRF protection
  26      Nrrrrr	r)r
  27  rc@r)�WrongTokenErrorze
  28      Error raised when attempting to use a refresh token to access an endpoint
  29      or vice versa
  30      Nrrrrr	r1src�.eZdZdZdededdf�fdd�Z�ZS)�RevokedTokenErrorzR
  31      Error raised when a revoked token attempt to access a protected endpoint
  32      �
  33  jwt_header�jwt_data�returnNcst��d�||_||_dS)NzToken has been revoked��super�__init__rr)�selfrr��	__class__rr	r?�
  34  zRevokedTokenError.__init__�rrrr�dictr�
  35  __classcell__rrrr	r:s"rcr)�FreshTokenRequiredzt
  36      Error raised when a valid, non-fresh JWT attempt to access an endpoint
  37      protected by fresh_jwt_required
  38      rrrNc�t��|�||_||_dS�Nr�r�messagerrrrr	rKrzFreshTokenRequired.__init__rrrrr	r E�"r cr)�UserLookupErrorz�
  39      Error raised when a user_lookup callback function returns None, indicating
  40      that it cannot or will not load a user for the given identity.
  41      rrrNcr!r"rr#rrr	rWrzUserLookupError.__init__rrrrr	r&Qr%r&cr)�UserClaimsVerificationErrorz�
  42      Error raised when the claims_verification_callback function returns False,
  43      indicating that the expected user claims are invalid
  44      rrrNcr!r"rr#rrr	rcrz$UserClaimsVerificationError.__init__rrrrr	r']r%r'N)�	Exceptionrrrr
  45  rrrrr r&r'rrrr	�<module>s