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: str) -> None: self.claim = claim def __str__(self) -> str: return f'Token is missing the "{self.claim}" claim' class PyJWKError(PyJWTError): pass class PyJWKSetError(PyJWTError): pass class PyJWKClientError(PyJWTError): pass class PyJWKClientConnectionError(PyJWKClientError): pass
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.63 KB | 0644 |
|
algorithms.py | File | 29.1 KB | 0644 |
|
api_jwk.py | File | 4.1 KB | 0644 |
|
api_jws.py | File | 10.84 KB | 0644 |
|
api_jwt.py | File | 12.34 KB | 0644 |
|
exceptions.py | File | 1.02 KB | 0644 |
|
help.py | File | 1.71 KB | 0644 |
|
jwk_set_cache.py | File | 959 B | 0644 |
|
jwks_client.py | File | 4.12 KB | 0644 |
|
py.typed | File | 0 B | 0644 |
|
types.py | File | 99 B | 0644 |
|
utils.py | File | 3.81 KB | 0644 |
|
warnings.py | File | 59 B | 0644 |
|