File: index.rst

package info (click to toggle)
python-jose 3.3.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 528 kB
  • sloc: python: 4,020; makefile: 162; sh: 6
file content (22 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
JSON Web Token
==============

JSON Web Tokens (JWT) are a JWS with a set of reserved claims to be used
in a standardized manner.

JWT Reserved Claims
^^^^^^^^^^^^^^^^^^^

+---------+--------------+--------------------+-----------------------------------------------+
| Claim   | Name         | Format             | Usage                                         |
+=========+==============+====================+===============================================+
| 'exp'   | Expiration   | int                | The time after which the token is invalid.    |
+---------+--------------+--------------------+-----------------------------------------------+
| 'nbf'   | Not Before   | int                | The time before which the token is invalid.   |
+---------+--------------+--------------------+-----------------------------------------------+
| 'iss'   | Issuer       | str                | The principal that issued the JWT.            |
+---------+--------------+--------------------+-----------------------------------------------+
| 'aud'   | Audience     | str or list(str)   | The recipient that the JWT is intended for.   |
+---------+--------------+--------------------+-----------------------------------------------+
| 'iat'   | Issued At    | int                | The time at which the JWT was issued.         |
+---------+--------------+--------------------+-----------------------------------------------+