class PyJWTError(Exception): """ Base class for all exceptions """ pass class InvalidTokenError(PyJWTError): pass class DecodeError(InvalidTokenError): pass class InvalidSignatureError(DecodeError): pass class ExpiredSignatureError(InvalidTokenError): pass class InvalidAudienceError(InvalidTokenError): pass class InvalidIssuerError(InvalidTokenError): pass class InvalidIssuedAtError(InvalidTokenError): pass class ImmatureSignatureError(InvalidTokenError): pass class InvalidKeyError(PyJWTError): pass class InvalidAlgorithmError(InvalidTokenError): pass class MissingRequiredClaimError(InvalidTokenError): def __init__(self, claim): self.claim = claim def __str__(self): return 'Token is missing the "%s" claim' % self.claim class PyJWKError(PyJWTError): pass class PyJWKSetError(PyJWTError): pass class PyJWKClientError(PyJWTError): pass
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.52 KB | 0644 |
|
algorithms.py | File | 20.97 KB | 0644 |
|
api_jwk.py | File | 2.87 KB | 0644 |
|
api_jws.py | File | 7.65 KB | 0644 |
|
api_jwt.py | File | 7.13 KB | 0644 |
|
exceptions.py | File | 965 B | 0644 |
|
help.py | File | 1.57 KB | 0644 |
|
jwks_client.py | File | 1.88 KB | 0644 |
|
py.typed | File | 0 B | 0644 |
|
utils.py | File | 2.45 KB | 0644 |
|