--- license: cc0-1.0 pretty_name: "JWT Claims Reference and Signed Test Tokens" language: - en size_categories: - n<1K tags: - jwt - oidc - oauth2 - authentication - test-vectors - json - json-schema configs: - config_name: registered_claims data_files: records-registered_claims.jsonl default: true - config_name: token_fixtures data_files: records-token_fixtures.jsonl --- # 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/](https://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`](https://www.aptdot.com/data/v1/jwt-claims-reference.schema.json) (Draft 2020-12) | | Source repository | [github.com/mkchd25/aptdot-datasets](https://github.com/mkchd25/aptdot-datasets) | | Publisher | [Aptdot](https://www.aptdot.com) | ## 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 ```python 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: ```python 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](https://www.aptdot.com/tools/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](https://github.com/mkchd25/aptdot-datasets/blob/main/CHANGELOG.md). ## License CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking.