| 1 |
API Reference |
| 2 |
============= |
| 3 |
|
| 4 |
.. module:: jwt |
| 5 |
|
| 6 |
.. autofunction:: encode(payload, key, algorithm="HS256", headers=None, json_encoder=None) -> str |
| 7 |
|
| 8 |
.. autofunction:: decode(jwt, key="", algorithms=None, options=None, audience=None, issuer=None, leeway=0) -> dict[str, typing.Any] |
| 9 |
|
| 10 |
.. autofunction:: decode_complete(jwt, key="", algorithms=None, options=None, verify=None, detached_payload=None, audience=None, issuer=None, subject=None, leeway=0) -> dict[str, typing.Any] |
| 11 |
|
| 12 |
.. autoclass:: PyJWT |
| 13 |
:class-doc-from: init |
| 14 |
:members: |
| 15 |
|
| 16 |
.. autoclass:: PyJWK |
| 17 |
:class-doc-from: init |
| 18 |
:members: |
| 19 |
|
| 20 |
.. property:: algorithm_name |
| 21 |
|
| 22 |
:type: str |
| 23 |
|
| 24 |
The name of the algorithm used by the key. |
| 25 |
|
| 26 |
.. property:: Algorithm |
| 27 |
|
| 28 |
The :py:class:`Algorithm` class associated with the key. |
| 29 |
|
| 30 |
.. autoclass:: PyJWKSet |
| 31 |
:members: |
| 32 |
|
| 33 |
.. autoclass:: PyJWKClient |
| 34 |
:class-doc-from: init |
| 35 |
:members: |
| 36 |
|
| 37 |
.. note:: TODO: Finish documenting PyJWS class |
| 38 |
.. module:: jwt.api_jws |
| 39 |
|
| 40 |
.. autoclass:: jwt.api_jws.PyJWS |
| 41 |
:members: |
| 42 |
|
| 43 |
Algorithms |
| 44 |
---------- |
| 45 |
|
| 46 |
.. automodule:: jwt.algorithms |
| 47 |
:members: Algorithm, AllowedPrivateKeys, AllowedPublicKeys |
| 48 |
|
| 49 |
|
| 50 |
Types |
| 51 |
---------- |
| 52 |
|
| 53 |
.. module:: jwt.types |
| 54 |
:synopsis: Type validation used in the JWT API |
| 55 |
.. autoclass:: jwt.types.SigOptions |
| 56 |
:members: |
| 57 |
:undoc-members: |
| 58 |
.. autoclass:: jwt.types.Options |
| 59 |
:members: |
| 60 |
:undoc-members: |
| 61 |
|
| 62 |
Warnings |
| 63 |
---------- |
| 64 |
|
| 65 |
.. automodule:: jwt.warnings |
| 66 |
:members: |
| 67 |
:show-inheritance: |
| 68 |
|
| 69 |
Exceptions |
| 70 |
---------- |
| 71 |
|
| 72 |
.. automodule:: jwt.exceptions |
| 73 |
:members: |
| 74 |
:inherited-members: |
| 75 |
:show-inheritance: |