Dataset Viewer
Auto-converted to Parquet Duplicate
claim
stringclasses
7 values
name
stringclasses
7 values
type
stringclasses
4 values
rfc_spec
stringclasses
7 values
required_in
dict
description
stringclasses
7 values
security_considerations
stringclasses
7 values
iss
Issuer
StringOrURI
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1
{ "rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required" }
Identifies the principal that issued the JWT, usually the authorization server's HTTPS issuer URL.
Compare with exact string equality against an allow-list of trusted issuers, and select verification keys per issuer, to block tokens from other identity providers.
sub
Subject
StringOrURI
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2
{ "rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required" }
Identifies the principal the JWT is about, such as a user ID or service account ID.
Must be unique within the issuer. Key user records on iss + sub, never on email, because emails can change or be reassigned.
aud
Audience
StringOrURI or array of StringOrURI
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3
{ "rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required" }
Identifies the recipients the JWT is intended for: an API identifier for access tokens, the client_id for ID tokens.
A resource server must reject tokens that do not list its own identifier in aud, to prevent token pass-through between APIs.
exp
Expiration Time
NumericDate (seconds since Unix epoch)
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4
{ "rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required" }
The time on or after which the JWT must not be accepted for processing.
Keep access tokens short-lived (commonly 5 to 60 minutes). Allow only a small clock-skew leeway, typically 60 seconds or less.
nbf
Not Before
NumericDate (seconds since Unix epoch)
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5
{ "rfc7519": "optional", "oidc_id_token": "not_defined", "rfc9068_access_token": "optional" }
The time before which the JWT must not be accepted for processing.
Reject when current_time + leeway < nbf. Useful for scheduled or deferred activation.
iat
Issued At
NumericDate (seconds since Unix epoch)
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6
{ "rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required" }
The time at which the JWT was issued.
Lets a verifier compute token age and reject tokens issued before a password reset or session-revocation event.
jti
JWT ID
string (case-sensitive, unique per token)
https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7
{ "rfc7519": "optional", "oidc_id_token": "not_defined", "rfc9068_access_token": "required" }
A unique identifier for the token.
Enables replay detection and revocation: store seen or revoked jti values until the token's exp passes.

JWT Claims Reference and Signed Test Tokens

The 7 RFC 7519 registered claims with requirement levels for plain JWTs, OIDC ID tokens and RFC 9068 access tokens, plus 8 signed test tokens: 2 valid and 6 that verification code must reject, each with the error to expect.

Unit tests for JWT verification code: check that valid tokens pass and each broken token fails for the right reason.

Full guide and live preview: www.aptdot.com/datasets/jwt-claims-reference/

Version 1.0.0 (2026-10-20)
License CC0 1.0 (public domain)
JSON Schema jwt-claims-reference.schema.json (Draft 2020-12)
Source repository github.com/mkchd25/aptdot-datasets
Publisher Aptdot

Files

File What it is
jwt-claims-reference.json The complete dataset, identical to the file on aptdot.com and GitHub
jwt-claims-reference.schema.json Its JSON Schema (Draft 2020-12)
records-*.jsonl The main lists, one record per line, for the viewer and the datasets library

Tables

Table Rows File Fields
registered_claims 7 records-registered_claims.jsonl claim, name, type, rfc_spec, required_in, description, security_considerations
token_fixtures 8 records-token_fixtures.jsonl name, fixture_id, description, intended_outcome, expected_error, verification, header, payload, ...

Load it

from datasets import load_dataset

rows = load_dataset("aptdot/jwt-claims-reference", "registered_claims", split="train")

Or use the complete JSON file as it is:

import json
from huggingface_hub import hf_hub_download

path = hf_hub_download("aptdot/jwt-claims-reference", "jwt-claims-reference.json", repo_type="dataset")
data = json.load(open(path, encoding="utf-8"))

Check your own data against the schema

Paste your records and jwt-claims-reference.schema.json into the free JSON Schema Validator. It runs in your browser, uploads nothing and explains every problem in plain English with its line number.

Notes

  • The records-*.jsonl files are generated from jwt-claims-reference.json. If they ever disagree, jwt-claims-reference.json is the reference.
  • Versions match aptdot.com and GitHub. Changes are listed in the repository's CHANGELOG.

License

CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking.

Downloads last month
-