name
that asserts that the name of the user authenticating is “John Doe”. In a JWT, a claim appears as a name/value pair where the name is always a string and the value can be any JSON value. Generally, when we talk about a claim in the context of a JWT, we are referring to the name (or key). For example, the following JSON object contains three claims (sub
, name
, admin
):
iss
(issuer): Issuer of the JWTsub
(subject): Subject of the JWT (the user)aud
(): Recipient for which the JWT is intendedexp
(expiration time): Time after which the JWT expiresnbf
(not before time): Time before which the JWT must not be accepted for processingiat
(issued at time): Time at which the JWT was issued; can be used to determine age of the JWTjti
(JWT ID): Unique identifier; can be used to prevent the JWT from being replayed (allows a token to be used only once)auth_time
acr
nonce
/userinfo
endpoint, cannot have private, non-namespaced custom claims