Upload 5 files
Browse filesInitial upload v<version>
- README.md +84 -0
- jwt-claims-reference.json +550 -0
- jwt-claims-reference.schema.json +132 -0
- records-registered_claims.jsonl +7 -0
- records-token_fixtures.jsonl +8 -0
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc0-1.0
|
| 3 |
+
pretty_name: "JWT Claims Reference and Signed Test Tokens"
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
size_categories:
|
| 7 |
+
- n<1K
|
| 8 |
+
tags:
|
| 9 |
+
- jwt
|
| 10 |
+
- oidc
|
| 11 |
+
- oauth2
|
| 12 |
+
- authentication
|
| 13 |
+
- test-vectors
|
| 14 |
+
- json
|
| 15 |
+
- json-schema
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: registered_claims
|
| 18 |
+
data_files: records-registered_claims.jsonl
|
| 19 |
+
default: true
|
| 20 |
+
- config_name: token_fixtures
|
| 21 |
+
data_files: records-token_fixtures.jsonl
|
| 22 |
+
---
|
| 23 |
+
# JWT Claims Reference and Signed Test Tokens
|
| 24 |
+
|
| 25 |
+
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.
|
| 26 |
+
|
| 27 |
+
Unit tests for JWT verification code: check that valid tokens pass and each broken token fails for the right reason.
|
| 28 |
+
|
| 29 |
+
**Full guide and live preview: [www.aptdot.com/datasets/jwt-claims-reference/](https://www.aptdot.com/datasets/jwt-claims-reference/)**
|
| 30 |
+
|
| 31 |
+
| | |
|
| 32 |
+
| :--- | :--- |
|
| 33 |
+
| Version | 1.0.0 (2026-10-20) |
|
| 34 |
+
| License | CC0 1.0 (public domain) |
|
| 35 |
+
| JSON Schema | [`jwt-claims-reference.schema.json`](https://www.aptdot.com/data/v1/jwt-claims-reference.schema.json) (Draft 2020-12) |
|
| 36 |
+
| Source repository | [github.com/mkchd25/aptdot-datasets](https://github.com/mkchd25/aptdot-datasets) |
|
| 37 |
+
| Publisher | [Aptdot](https://www.aptdot.com) |
|
| 38 |
+
|
| 39 |
+
## Files
|
| 40 |
+
|
| 41 |
+
| File | What it is |
|
| 42 |
+
| :--- | :--- |
|
| 43 |
+
| `jwt-claims-reference.json` | The complete dataset, identical to the file on aptdot.com and GitHub |
|
| 44 |
+
| `jwt-claims-reference.schema.json` | Its JSON Schema (Draft 2020-12) |
|
| 45 |
+
| `records-*.jsonl` | The main lists, one record per line, for the viewer and the `datasets` library |
|
| 46 |
+
|
| 47 |
+
## Tables
|
| 48 |
+
|
| 49 |
+
| Table | Rows | File | Fields |
|
| 50 |
+
| :--- | ---: | :--- | :--- |
|
| 51 |
+
| `registered_claims` | 7 | `records-registered_claims.jsonl` | `claim`, `name`, `type`, `rfc_spec`, `required_in`, `description`, `security_considerations` |
|
| 52 |
+
| `token_fixtures` | 8 | `records-token_fixtures.jsonl` | `name`, `fixture_id`, `description`, `intended_outcome`, `expected_error`, `verification`, `header`, `payload`, ... |
|
| 53 |
+
|
| 54 |
+
## Load it
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from datasets import load_dataset
|
| 58 |
+
|
| 59 |
+
rows = load_dataset("aptdot/jwt-claims-reference", "registered_claims", split="train")
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Or use the complete JSON file as it is:
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
import json
|
| 66 |
+
from huggingface_hub import hf_hub_download
|
| 67 |
+
|
| 68 |
+
path = hf_hub_download("aptdot/jwt-claims-reference", "jwt-claims-reference.json", repo_type="dataset")
|
| 69 |
+
data = json.load(open(path, encoding="utf-8"))
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Check your own data against the schema
|
| 73 |
+
|
| 74 |
+
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
|
| 75 |
+
browser, uploads nothing and explains every problem in plain English with its line number.
|
| 76 |
+
|
| 77 |
+
## Notes
|
| 78 |
+
|
| 79 |
+
- The `records-*.jsonl` files are generated from `jwt-claims-reference.json`. If they ever disagree, `jwt-claims-reference.json` is the reference.
|
| 80 |
+
- Versions match aptdot.com and GitHub. Changes are listed in the repository's [CHANGELOG](https://github.com/mkchd25/aptdot-datasets/blob/main/CHANGELOG.md).
|
| 81 |
+
|
| 82 |
+
## License
|
| 83 |
+
|
| 84 |
+
CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking.
|
jwt-claims-reference.json
ADDED
|
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://www.aptdot.com/data/v1/jwt-claims-reference.schema.json",
|
| 3 |
+
"metadata": {
|
| 4 |
+
"name": "JWT Claims Reference & Signed Test Token Fixtures",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"date_modified": "2026-10-20",
|
| 7 |
+
"license": "CC0-1.0",
|
| 8 |
+
"license_url": "https://creativecommons.org/publicdomain/zero/1.0/",
|
| 9 |
+
"schema": "https://www.aptdot.com/data/v1/jwt-claims-reference.schema.json",
|
| 10 |
+
"source": "https://www.aptdot.com/datasets/jwt-claims-reference/",
|
| 11 |
+
"reference_time": "2026-10-20T10:00:00Z",
|
| 12 |
+
"reference_time_epoch": 1792490400,
|
| 13 |
+
"specifications": {
|
| 14 |
+
"jwt": "https://www.rfc-editor.org/rfc/rfc7519",
|
| 15 |
+
"jwt_access_token_profile": "https://www.rfc-editor.org/rfc/rfc9068",
|
| 16 |
+
"oidc_core": "https://openid.net/specs/openid-connect-core-1_0.html",
|
| 17 |
+
"amr_values": "https://www.rfc-editor.org/rfc/rfc8176"
|
| 18 |
+
},
|
| 19 |
+
"test_signing_key": {
|
| 20 |
+
"kid": "aptdot-test-hs256-01",
|
| 21 |
+
"alg": "HS256",
|
| 22 |
+
"secret": "aptdot-public-test-key-NEVER-use-in-production-2026",
|
| 23 |
+
"warning": "Public test-only key. Every token in this file is signed with it (except the bad-signature and alg-none vectors). Never use it, or tokens signed with it, outside tests."
|
| 24 |
+
},
|
| 25 |
+
"related_datasets": [
|
| 26 |
+
"https://www.aptdot.com/datasets/synthetic-rbac-users/"
|
| 27 |
+
],
|
| 28 |
+
"persona_note": "sub, email, org_id, workspace_roles and scope match user usr_002 (sarah.lead@example.com) in the Synthetic RBAC dataset.",
|
| 29 |
+
"total_registered_claims": 7,
|
| 30 |
+
"total_token_fixtures": 8,
|
| 31 |
+
"description": "RFC 7519 registered claims with per-profile requirement levels (base JWT, OIDC ID token, RFC 9068 access token), plus signed, ready-to-verify valid tokens and 6 negative test vectors with the exact error each major JWT library raises."
|
| 32 |
+
},
|
| 33 |
+
"registered_claims_dictionary": [
|
| 34 |
+
{
|
| 35 |
+
"claim": "iss",
|
| 36 |
+
"name": "Issuer",
|
| 37 |
+
"type": "StringOrURI",
|
| 38 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1",
|
| 39 |
+
"required_in": {
|
| 40 |
+
"rfc7519": "optional",
|
| 41 |
+
"oidc_id_token": "required",
|
| 42 |
+
"rfc9068_access_token": "required"
|
| 43 |
+
},
|
| 44 |
+
"description": "Identifies the principal that issued the JWT, usually the authorization server's HTTPS issuer URL.",
|
| 45 |
+
"security_considerations": "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."
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"claim": "sub",
|
| 49 |
+
"name": "Subject",
|
| 50 |
+
"type": "StringOrURI",
|
| 51 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2",
|
| 52 |
+
"required_in": {
|
| 53 |
+
"rfc7519": "optional",
|
| 54 |
+
"oidc_id_token": "required",
|
| 55 |
+
"rfc9068_access_token": "required"
|
| 56 |
+
},
|
| 57 |
+
"description": "Identifies the principal the JWT is about, such as a user ID or service account ID.",
|
| 58 |
+
"security_considerations": "Must be unique within the issuer. Key user records on iss + sub, never on email, because emails can change or be reassigned."
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"claim": "aud",
|
| 62 |
+
"name": "Audience",
|
| 63 |
+
"type": "StringOrURI or array of StringOrURI",
|
| 64 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3",
|
| 65 |
+
"required_in": {
|
| 66 |
+
"rfc7519": "optional",
|
| 67 |
+
"oidc_id_token": "required",
|
| 68 |
+
"rfc9068_access_token": "required"
|
| 69 |
+
},
|
| 70 |
+
"description": "Identifies the recipients the JWT is intended for: an API identifier for access tokens, the client_id for ID tokens.",
|
| 71 |
+
"security_considerations": "A resource server must reject tokens that do not list its own identifier in aud, to prevent token pass-through between APIs."
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"claim": "exp",
|
| 75 |
+
"name": "Expiration Time",
|
| 76 |
+
"type": "NumericDate (seconds since Unix epoch)",
|
| 77 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4",
|
| 78 |
+
"required_in": {
|
| 79 |
+
"rfc7519": "optional",
|
| 80 |
+
"oidc_id_token": "required",
|
| 81 |
+
"rfc9068_access_token": "required"
|
| 82 |
+
},
|
| 83 |
+
"description": "The time on or after which the JWT must not be accepted for processing.",
|
| 84 |
+
"security_considerations": "Keep access tokens short-lived (commonly 5 to 60 minutes). Allow only a small clock-skew leeway, typically 60 seconds or less."
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"claim": "nbf",
|
| 88 |
+
"name": "Not Before",
|
| 89 |
+
"type": "NumericDate (seconds since Unix epoch)",
|
| 90 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5",
|
| 91 |
+
"required_in": {
|
| 92 |
+
"rfc7519": "optional",
|
| 93 |
+
"oidc_id_token": "not_defined",
|
| 94 |
+
"rfc9068_access_token": "optional"
|
| 95 |
+
},
|
| 96 |
+
"description": "The time before which the JWT must not be accepted for processing.",
|
| 97 |
+
"security_considerations": "Reject when current_time + leeway < nbf. Useful for scheduled or deferred activation."
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"claim": "iat",
|
| 101 |
+
"name": "Issued At",
|
| 102 |
+
"type": "NumericDate (seconds since Unix epoch)",
|
| 103 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6",
|
| 104 |
+
"required_in": {
|
| 105 |
+
"rfc7519": "optional",
|
| 106 |
+
"oidc_id_token": "required",
|
| 107 |
+
"rfc9068_access_token": "required"
|
| 108 |
+
},
|
| 109 |
+
"description": "The time at which the JWT was issued.",
|
| 110 |
+
"security_considerations": "Lets a verifier compute token age and reject tokens issued before a password reset or session-revocation event."
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"claim": "jti",
|
| 114 |
+
"name": "JWT ID",
|
| 115 |
+
"type": "string (case-sensitive, unique per token)",
|
| 116 |
+
"rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7",
|
| 117 |
+
"required_in": {
|
| 118 |
+
"rfc7519": "optional",
|
| 119 |
+
"oidc_id_token": "not_defined",
|
| 120 |
+
"rfc9068_access_token": "required"
|
| 121 |
+
},
|
| 122 |
+
"description": "A unique identifier for the token.",
|
| 123 |
+
"security_considerations": "Enables replay detection and revocation: store seen or revoked jti values until the token's exp passes."
|
| 124 |
+
}
|
| 125 |
+
],
|
| 126 |
+
"token_fixtures": {
|
| 127 |
+
"enterprise_access_token": {
|
| 128 |
+
"fixture_id": "tok_access_valid_01",
|
| 129 |
+
"description": "RFC 9068 OAuth 2.0 access token for a multi-tenant API: space-delimited scope, client_id, workspace roles and MFA evidence (amr). Valid at reference_time.",
|
| 130 |
+
"intended_outcome": "valid",
|
| 131 |
+
"expected_error": null,
|
| 132 |
+
"verification": {
|
| 133 |
+
"algorithms": [
|
| 134 |
+
"HS256"
|
| 135 |
+
],
|
| 136 |
+
"issuer": "https://auth.example.com/",
|
| 137 |
+
"audience": "https://api.example.com/v1",
|
| 138 |
+
"required_claims": [
|
| 139 |
+
"iss",
|
| 140 |
+
"sub",
|
| 141 |
+
"aud",
|
| 142 |
+
"exp",
|
| 143 |
+
"iat",
|
| 144 |
+
"jti",
|
| 145 |
+
"client_id"
|
| 146 |
+
],
|
| 147 |
+
"required_typ": "at+jwt"
|
| 148 |
+
},
|
| 149 |
+
"header": {
|
| 150 |
+
"alg": "HS256",
|
| 151 |
+
"typ": "at+jwt",
|
| 152 |
+
"kid": "aptdot-test-hs256-01"
|
| 153 |
+
},
|
| 154 |
+
"payload": {
|
| 155 |
+
"iss": "https://auth.example.com/",
|
| 156 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 157 |
+
"aud": "https://api.example.com/v1",
|
| 158 |
+
"client_id": "client_web_app_991823",
|
| 159 |
+
"iat": 1792490100,
|
| 160 |
+
"nbf": 1792490100,
|
| 161 |
+
"exp": 1792493700,
|
| 162 |
+
"jti": "6f1c2a9e-3b7d-4e0f-9a8c-1d2e3f4a5b60",
|
| 163 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 164 |
+
"auth_time": 1792490080,
|
| 165 |
+
"amr": [
|
| 166 |
+
"pwd",
|
| 167 |
+
"otp",
|
| 168 |
+
"mfa"
|
| 169 |
+
],
|
| 170 |
+
"org_id": "org_enterprise_01",
|
| 171 |
+
"workspace_roles": {
|
| 172 |
+
"ws_prod_eu": "workspace_editor",
|
| 173 |
+
"ws_staging": "workspace_editor"
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI2ZjFjMmE5ZS0zYjdkLTRlMGYtOWE4Yy0xZDJlM2Y0YTViNjAiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.9vfl5EINUfLQvs3kO3LJv6ByGFOSPIpeWNmoAuXMGuA"
|
| 177 |
+
},
|
| 178 |
+
"oidc_id_token": {
|
| 179 |
+
"fixture_id": "tok_id_valid_02",
|
| 180 |
+
"description": "OpenID Connect ID token for the same user, issued to the web client (aud = client_id), with nonce and auth_time. Valid at reference_time.",
|
| 181 |
+
"intended_outcome": "valid",
|
| 182 |
+
"expected_error": null,
|
| 183 |
+
"verification": {
|
| 184 |
+
"algorithms": [
|
| 185 |
+
"HS256"
|
| 186 |
+
],
|
| 187 |
+
"issuer": "https://auth.example.com/",
|
| 188 |
+
"audience": "client_web_app_991823",
|
| 189 |
+
"required_claims": [
|
| 190 |
+
"iss",
|
| 191 |
+
"sub",
|
| 192 |
+
"aud",
|
| 193 |
+
"exp",
|
| 194 |
+
"iat"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
"header": {
|
| 198 |
+
"alg": "HS256",
|
| 199 |
+
"typ": "JWT",
|
| 200 |
+
"kid": "aptdot-test-hs256-01"
|
| 201 |
+
},
|
| 202 |
+
"payload": {
|
| 203 |
+
"iss": "https://auth.example.com/",
|
| 204 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 205 |
+
"aud": "client_web_app_991823",
|
| 206 |
+
"iat": 1792490100,
|
| 207 |
+
"exp": 1792493700,
|
| 208 |
+
"auth_time": 1792490080,
|
| 209 |
+
"nonce": "n-0S6_WzA2Mj",
|
| 210 |
+
"email": "sarah.lead@example.com",
|
| 211 |
+
"email_verified": true,
|
| 212 |
+
"name": "Sarah Lead",
|
| 213 |
+
"amr": [
|
| 214 |
+
"pwd",
|
| 215 |
+
"otp",
|
| 216 |
+
"mfa"
|
| 217 |
+
]
|
| 218 |
+
},
|
| 219 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiSldUIn0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiY2xpZW50X3dlYl9hcHBfOTkxODIzIiwiaWF0IjoxNzkyNDkwMTAwLCJleHAiOjE3OTI0OTM3MDAsImF1dGhfdGltZSI6MTc5MjQ5MDA4MCwibm9uY2UiOiJuLTBTNl9XekEyTWoiLCJlbWFpbCI6InNhcmFoLmxlYWRAZXhhbXBsZS5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6IlNhcmFoIExlYWQiLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl19.NS02x3zPhI338zN-m6L-DKP9p3rbZpo3xh767OXaw9I"
|
| 220 |
+
},
|
| 221 |
+
"test_vector_expired": {
|
| 222 |
+
"fixture_id": "tok_test_expired_03",
|
| 223 |
+
"description": "Access token whose exp is 2 hours before reference_time. Must be rejected as expired.",
|
| 224 |
+
"intended_outcome": "invalid_expired",
|
| 225 |
+
"expected_error": {
|
| 226 |
+
"pyjwt": "ExpiredSignatureError",
|
| 227 |
+
"jsonwebtoken": "TokenExpiredError",
|
| 228 |
+
"jsonwebtoken_message": "jwt expired"
|
| 229 |
+
},
|
| 230 |
+
"verification": {
|
| 231 |
+
"algorithms": [
|
| 232 |
+
"HS256"
|
| 233 |
+
],
|
| 234 |
+
"issuer": "https://auth.example.com/",
|
| 235 |
+
"audience": "https://api.example.com/v1",
|
| 236 |
+
"required_claims": [
|
| 237 |
+
"iss",
|
| 238 |
+
"sub",
|
| 239 |
+
"aud",
|
| 240 |
+
"exp",
|
| 241 |
+
"iat",
|
| 242 |
+
"jti",
|
| 243 |
+
"client_id"
|
| 244 |
+
],
|
| 245 |
+
"required_typ": "at+jwt"
|
| 246 |
+
},
|
| 247 |
+
"header": {
|
| 248 |
+
"alg": "HS256",
|
| 249 |
+
"typ": "at+jwt",
|
| 250 |
+
"kid": "aptdot-test-hs256-01"
|
| 251 |
+
},
|
| 252 |
+
"payload": {
|
| 253 |
+
"iss": "https://auth.example.com/",
|
| 254 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 255 |
+
"aud": "https://api.example.com/v1",
|
| 256 |
+
"client_id": "client_web_app_991823",
|
| 257 |
+
"iat": 1792479600,
|
| 258 |
+
"nbf": 1792479600,
|
| 259 |
+
"exp": 1792483200,
|
| 260 |
+
"jti": "0a7e4c1b-5d2f-4a9e-8b3c-7f6e5d4c3b21",
|
| 261 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 262 |
+
"auth_time": 1792479580,
|
| 263 |
+
"amr": [
|
| 264 |
+
"pwd",
|
| 265 |
+
"otp",
|
| 266 |
+
"mfa"
|
| 267 |
+
],
|
| 268 |
+
"org_id": "org_enterprise_01",
|
| 269 |
+
"workspace_roles": {
|
| 270 |
+
"ws_prod_eu": "workspace_editor",
|
| 271 |
+
"ws_staging": "workspace_editor"
|
| 272 |
+
}
|
| 273 |
+
},
|
| 274 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0Nzk2MDAsIm5iZiI6MTc5MjQ3OTYwMCwiZXhwIjoxNzkyNDgzMjAwLCJqdGkiOiIwYTdlNGMxYi01ZDJmLTRhOWUtOGIzYy03ZjZlNWQ0YzNiMjEiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDc5NTgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.4r0RPI39n0glHgJyrbsqqMskGNSQtzX8Y0tJK35w0wA"
|
| 275 |
+
},
|
| 276 |
+
"test_vector_nbf_future": {
|
| 277 |
+
"fixture_id": "tok_test_premature_04",
|
| 278 |
+
"description": "Access token with nbf 2 hours after reference_time (scheduled activation). Must be rejected as not yet valid.",
|
| 279 |
+
"intended_outcome": "invalid_premature",
|
| 280 |
+
"expected_error": {
|
| 281 |
+
"pyjwt": "ImmatureSignatureError",
|
| 282 |
+
"jsonwebtoken": "NotBeforeError",
|
| 283 |
+
"jsonwebtoken_message": "jwt not active"
|
| 284 |
+
},
|
| 285 |
+
"verification": {
|
| 286 |
+
"algorithms": [
|
| 287 |
+
"HS256"
|
| 288 |
+
],
|
| 289 |
+
"issuer": "https://auth.example.com/",
|
| 290 |
+
"audience": "https://api.example.com/v1",
|
| 291 |
+
"required_claims": [
|
| 292 |
+
"iss",
|
| 293 |
+
"sub",
|
| 294 |
+
"aud",
|
| 295 |
+
"exp",
|
| 296 |
+
"iat",
|
| 297 |
+
"jti",
|
| 298 |
+
"client_id"
|
| 299 |
+
],
|
| 300 |
+
"required_typ": "at+jwt"
|
| 301 |
+
},
|
| 302 |
+
"header": {
|
| 303 |
+
"alg": "HS256",
|
| 304 |
+
"typ": "at+jwt",
|
| 305 |
+
"kid": "aptdot-test-hs256-01"
|
| 306 |
+
},
|
| 307 |
+
"payload": {
|
| 308 |
+
"iss": "https://auth.example.com/",
|
| 309 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 310 |
+
"aud": "https://api.example.com/v1",
|
| 311 |
+
"client_id": "client_web_app_991823",
|
| 312 |
+
"iat": 1792490100,
|
| 313 |
+
"nbf": 1792497600,
|
| 314 |
+
"exp": 1792501200,
|
| 315 |
+
"jti": "1b8f5d2c-6e3a-4b0f-9c4d-8a7f6e5d4c32",
|
| 316 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 317 |
+
"auth_time": 1792490080,
|
| 318 |
+
"amr": [
|
| 319 |
+
"pwd",
|
| 320 |
+
"otp",
|
| 321 |
+
"mfa"
|
| 322 |
+
],
|
| 323 |
+
"org_id": "org_enterprise_01",
|
| 324 |
+
"workspace_roles": {
|
| 325 |
+
"ws_prod_eu": "workspace_editor",
|
| 326 |
+
"ws_staging": "workspace_editor"
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5NzYwMCwiZXhwIjoxNzkyNTAxMjAwLCJqdGkiOiIxYjhmNWQyYy02ZTNhLTRiMGYtOWM0ZC04YTdmNmU1ZDRjMzIiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.dAddr7k4423BVnUrsTns5aZD3hFVY_tD4C042hAOZ7I"
|
| 330 |
+
},
|
| 331 |
+
"test_vector_missing_iss": {
|
| 332 |
+
"fixture_id": "tok_test_missing_iss_05",
|
| 333 |
+
"description": "Access token with no iss claim. Must be rejected when the verifier requires a trusted issuer.",
|
| 334 |
+
"intended_outcome": "invalid_missing_claim",
|
| 335 |
+
"expected_error": {
|
| 336 |
+
"pyjwt": "MissingRequiredClaimError",
|
| 337 |
+
"jsonwebtoken": "JsonWebTokenError",
|
| 338 |
+
"jsonwebtoken_message": "jwt issuer invalid. expected: https://auth.example.com/"
|
| 339 |
+
},
|
| 340 |
+
"verification": {
|
| 341 |
+
"algorithms": [
|
| 342 |
+
"HS256"
|
| 343 |
+
],
|
| 344 |
+
"issuer": "https://auth.example.com/",
|
| 345 |
+
"audience": "https://api.example.com/v1",
|
| 346 |
+
"required_claims": [
|
| 347 |
+
"iss",
|
| 348 |
+
"sub",
|
| 349 |
+
"aud",
|
| 350 |
+
"exp",
|
| 351 |
+
"iat",
|
| 352 |
+
"jti",
|
| 353 |
+
"client_id"
|
| 354 |
+
],
|
| 355 |
+
"required_typ": "at+jwt"
|
| 356 |
+
},
|
| 357 |
+
"header": {
|
| 358 |
+
"alg": "HS256",
|
| 359 |
+
"typ": "at+jwt",
|
| 360 |
+
"kid": "aptdot-test-hs256-01"
|
| 361 |
+
},
|
| 362 |
+
"payload": {
|
| 363 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 364 |
+
"aud": "https://api.example.com/v1",
|
| 365 |
+
"client_id": "client_web_app_991823",
|
| 366 |
+
"iat": 1792490100,
|
| 367 |
+
"nbf": 1792490100,
|
| 368 |
+
"exp": 1792493700,
|
| 369 |
+
"jti": "2c9a6e3d-7f4b-4c1a-8d5e-9b8a7f6e5d43",
|
| 370 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 371 |
+
"auth_time": 1792490080,
|
| 372 |
+
"amr": [
|
| 373 |
+
"pwd",
|
| 374 |
+
"otp",
|
| 375 |
+
"mfa"
|
| 376 |
+
],
|
| 377 |
+
"org_id": "org_enterprise_01",
|
| 378 |
+
"workspace_roles": {
|
| 379 |
+
"ws_prod_eu": "workspace_editor",
|
| 380 |
+
"ws_staging": "workspace_editor"
|
| 381 |
+
}
|
| 382 |
+
},
|
| 383 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJzdWIiOiI4YjRhNWYzYy05ZDJlLTRiMGEtOGY3Yy02ZDFlM2E4ZjBiMDIiLCJhdWQiOiJodHRwczovL2FwaS5leGFtcGxlLmNvbS92MSIsImNsaWVudF9pZCI6ImNsaWVudF93ZWJfYXBwXzk5MTgyMyIsImlhdCI6MTc5MjQ5MDEwMCwibmJmIjoxNzkyNDkwMTAwLCJleHAiOjE3OTI0OTM3MDAsImp0aSI6IjJjOWE2ZTNkLTdmNGItNGMxYS04ZDVlLTliOGE3ZjZlNWQ0MyIsInNjb3BlIjoiZGF0YTpyZWNvcmRzOnJlYWQgZGF0YTpyZWNvcmRzOndyaXRlIGRhdGE6cmVjb3JkczpleHBvcnQgd29ya3NwYWNlOnNldHRpbmdzOnJlYWQgdGVhbTptZW1iZXJzOnJlYWQiLCJhdXRoX3RpbWUiOjE3OTI0OTAwODAsImFtciI6WyJwd2QiLCJvdHAiLCJtZmEiXSwib3JnX2lkIjoib3JnX2VudGVycHJpc2VfMDEiLCJ3b3Jrc3BhY2Vfcm9sZXMiOnsid3NfcHJvZF9ldSI6IndvcmtzcGFjZV9lZGl0b3IiLCJ3c19zdGFnaW5nIjoid29ya3NwYWNlX2VkaXRvciJ9fQ.K1kI-xc8ihSEkiyTOnsKDkzB7TIi24vv_lCIFuwPUNk"
|
| 384 |
+
},
|
| 385 |
+
"test_vector_wrong_audience": {
|
| 386 |
+
"fixture_id": "tok_test_wrong_aud_06",
|
| 387 |
+
"description": "Access token issued for a different API (billing). A resource server for api.example.com must reject it (token pass-through / confused deputy).",
|
| 388 |
+
"intended_outcome": "invalid_audience",
|
| 389 |
+
"expected_error": {
|
| 390 |
+
"pyjwt": "InvalidAudienceError",
|
| 391 |
+
"jsonwebtoken": "JsonWebTokenError",
|
| 392 |
+
"jsonwebtoken_message": "jwt audience invalid. expected: https://api.example.com/v1"
|
| 393 |
+
},
|
| 394 |
+
"verification": {
|
| 395 |
+
"algorithms": [
|
| 396 |
+
"HS256"
|
| 397 |
+
],
|
| 398 |
+
"issuer": "https://auth.example.com/",
|
| 399 |
+
"audience": "https://api.example.com/v1",
|
| 400 |
+
"required_claims": [
|
| 401 |
+
"iss",
|
| 402 |
+
"sub",
|
| 403 |
+
"aud",
|
| 404 |
+
"exp",
|
| 405 |
+
"iat",
|
| 406 |
+
"jti",
|
| 407 |
+
"client_id"
|
| 408 |
+
],
|
| 409 |
+
"required_typ": "at+jwt"
|
| 410 |
+
},
|
| 411 |
+
"header": {
|
| 412 |
+
"alg": "HS256",
|
| 413 |
+
"typ": "at+jwt",
|
| 414 |
+
"kid": "aptdot-test-hs256-01"
|
| 415 |
+
},
|
| 416 |
+
"payload": {
|
| 417 |
+
"iss": "https://auth.example.com/",
|
| 418 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 419 |
+
"aud": "https://billing.example.com/v1",
|
| 420 |
+
"client_id": "client_web_app_991823",
|
| 421 |
+
"iat": 1792490100,
|
| 422 |
+
"nbf": 1792490100,
|
| 423 |
+
"exp": 1792493700,
|
| 424 |
+
"jti": "3d0b7f4e-8a5c-4d2b-9e6f-0c9b8a7f6e54",
|
| 425 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 426 |
+
"auth_time": 1792490080,
|
| 427 |
+
"amr": [
|
| 428 |
+
"pwd",
|
| 429 |
+
"otp",
|
| 430 |
+
"mfa"
|
| 431 |
+
],
|
| 432 |
+
"org_id": "org_enterprise_01",
|
| 433 |
+
"workspace_roles": {
|
| 434 |
+
"ws_prod_eu": "workspace_editor",
|
| 435 |
+
"ws_staging": "workspace_editor"
|
| 436 |
+
}
|
| 437 |
+
},
|
| 438 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9iaWxsaW5nLmV4YW1wbGUuY29tL3YxIiwiY2xpZW50X2lkIjoiY2xpZW50X3dlYl9hcHBfOTkxODIzIiwiaWF0IjoxNzkyNDkwMTAwLCJuYmYiOjE3OTI0OTAxMDAsImV4cCI6MTc5MjQ5MzcwMCwianRpIjoiM2QwYjdmNGUtOGE1Yy00ZDJiLTllNmYtMGM5YjhhN2Y2ZTU0Iiwic2NvcGUiOiJkYXRhOnJlY29yZHM6cmVhZCBkYXRhOnJlY29yZHM6d3JpdGUgZGF0YTpyZWNvcmRzOmV4cG9ydCB3b3Jrc3BhY2U6c2V0dGluZ3M6cmVhZCB0ZWFtOm1lbWJlcnM6cmVhZCIsImF1dGhfdGltZSI6MTc5MjQ5MDA4MCwiYW1yIjpbInB3ZCIsIm90cCIsIm1mYSJdLCJvcmdfaWQiOiJvcmdfZW50ZXJwcmlzZV8wMSIsIndvcmtzcGFjZV9yb2xlcyI6eyJ3c19wcm9kX2V1Ijoid29ya3NwYWNlX2VkaXRvciIsIndzX3N0YWdpbmciOiJ3b3Jrc3BhY2VfZWRpdG9yIn19.SOCFZH04GcAYJhRIGLlagGF7dsm55r6G_6qXBCTmKmA"
|
| 439 |
+
},
|
| 440 |
+
"test_vector_bad_signature": {
|
| 441 |
+
"fixture_id": "tok_test_bad_signature_07",
|
| 442 |
+
"description": "Valid-looking access token signed with a different key. Signature verification must fail.",
|
| 443 |
+
"intended_outcome": "invalid_signature",
|
| 444 |
+
"expected_error": {
|
| 445 |
+
"pyjwt": "InvalidSignatureError",
|
| 446 |
+
"jsonwebtoken": "JsonWebTokenError",
|
| 447 |
+
"jsonwebtoken_message": "invalid signature"
|
| 448 |
+
},
|
| 449 |
+
"verification": {
|
| 450 |
+
"algorithms": [
|
| 451 |
+
"HS256"
|
| 452 |
+
],
|
| 453 |
+
"issuer": "https://auth.example.com/",
|
| 454 |
+
"audience": "https://api.example.com/v1",
|
| 455 |
+
"required_claims": [
|
| 456 |
+
"iss",
|
| 457 |
+
"sub",
|
| 458 |
+
"aud",
|
| 459 |
+
"exp",
|
| 460 |
+
"iat",
|
| 461 |
+
"jti",
|
| 462 |
+
"client_id"
|
| 463 |
+
],
|
| 464 |
+
"required_typ": "at+jwt"
|
| 465 |
+
},
|
| 466 |
+
"header": {
|
| 467 |
+
"alg": "HS256",
|
| 468 |
+
"typ": "at+jwt",
|
| 469 |
+
"kid": "aptdot-test-hs256-01"
|
| 470 |
+
},
|
| 471 |
+
"payload": {
|
| 472 |
+
"iss": "https://auth.example.com/",
|
| 473 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 474 |
+
"aud": "https://api.example.com/v1",
|
| 475 |
+
"client_id": "client_web_app_991823",
|
| 476 |
+
"iat": 1792490100,
|
| 477 |
+
"nbf": 1792490100,
|
| 478 |
+
"exp": 1792493700,
|
| 479 |
+
"jti": "4e1c8a5f-9b6d-4e3c-8f7a-1d0c9b8a7f65",
|
| 480 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 481 |
+
"auth_time": 1792490080,
|
| 482 |
+
"amr": [
|
| 483 |
+
"pwd",
|
| 484 |
+
"otp",
|
| 485 |
+
"mfa"
|
| 486 |
+
],
|
| 487 |
+
"org_id": "org_enterprise_01",
|
| 488 |
+
"workspace_roles": {
|
| 489 |
+
"ws_prod_eu": "workspace_editor",
|
| 490 |
+
"ws_staging": "workspace_editor"
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
"token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI0ZTFjOGE1Zi05YjZkLTRlM2MtOGY3YS0xZDBjOWI4YTdmNjUiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.bM5CeUDWyYjqR7DdhPHgHT0EBc5cTbEmGyHENSMgucE"
|
| 494 |
+
},
|
| 495 |
+
"test_vector_alg_none": {
|
| 496 |
+
"fixture_id": "tok_test_alg_none_08",
|
| 497 |
+
"description": "Unsigned token with alg none (CVE-2015-9235 class). Verifiers must only accept the algorithms they expect.",
|
| 498 |
+
"intended_outcome": "invalid_algorithm",
|
| 499 |
+
"expected_error": {
|
| 500 |
+
"pyjwt": "InvalidAlgorithmError",
|
| 501 |
+
"jsonwebtoken": "JsonWebTokenError",
|
| 502 |
+
"jsonwebtoken_message": "jwt signature is required"
|
| 503 |
+
},
|
| 504 |
+
"verification": {
|
| 505 |
+
"algorithms": [
|
| 506 |
+
"HS256"
|
| 507 |
+
],
|
| 508 |
+
"issuer": "https://auth.example.com/",
|
| 509 |
+
"audience": "https://api.example.com/v1",
|
| 510 |
+
"required_claims": [
|
| 511 |
+
"iss",
|
| 512 |
+
"sub",
|
| 513 |
+
"aud",
|
| 514 |
+
"exp",
|
| 515 |
+
"iat",
|
| 516 |
+
"jti",
|
| 517 |
+
"client_id"
|
| 518 |
+
],
|
| 519 |
+
"required_typ": "at+jwt"
|
| 520 |
+
},
|
| 521 |
+
"header": {
|
| 522 |
+
"alg": "none",
|
| 523 |
+
"typ": "at+jwt"
|
| 524 |
+
},
|
| 525 |
+
"payload": {
|
| 526 |
+
"iss": "https://auth.example.com/",
|
| 527 |
+
"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
|
| 528 |
+
"aud": "https://api.example.com/v1",
|
| 529 |
+
"client_id": "client_web_app_991823",
|
| 530 |
+
"iat": 1792490100,
|
| 531 |
+
"nbf": 1792490100,
|
| 532 |
+
"exp": 1792493700,
|
| 533 |
+
"jti": "5f2d9b6a-0c7e-4f4d-9a8b-2e1d0c9b8a76",
|
| 534 |
+
"scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read",
|
| 535 |
+
"auth_time": 1792490080,
|
| 536 |
+
"amr": [
|
| 537 |
+
"pwd",
|
| 538 |
+
"otp",
|
| 539 |
+
"mfa"
|
| 540 |
+
],
|
| 541 |
+
"org_id": "org_enterprise_01",
|
| 542 |
+
"workspace_roles": {
|
| 543 |
+
"ws_prod_eu": "workspace_editor",
|
| 544 |
+
"ws_staging": "workspace_editor"
|
| 545 |
+
}
|
| 546 |
+
},
|
| 547 |
+
"token": "eyJhbGciOiJub25lIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI1ZjJkOWI2YS0wYzdlLTRmNGQtOWE4Yi0yZTFkMGM5YjhhNzYiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0."
|
| 548 |
+
}
|
| 549 |
+
}
|
| 550 |
+
}
|
jwt-claims-reference.schema.json
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 |
+
"$id": "https://www.aptdot.com/data/v1/jwt-claims-reference.schema.json",
|
| 4 |
+
"title": "Aptdot JWT Claims Reference & Signed Test Token Fixtures",
|
| 5 |
+
"type": "object",
|
| 6 |
+
"required": ["metadata", "registered_claims_dictionary", "token_fixtures"],
|
| 7 |
+
"$defs": {
|
| 8 |
+
"requirement": { "type": "string", "enum": ["required", "optional", "not_defined"] },
|
| 9 |
+
"numericDate": { "type": "integer", "minimum": 0 }
|
| 10 |
+
},
|
| 11 |
+
"properties": {
|
| 12 |
+
"metadata": {
|
| 13 |
+
"type": "object",
|
| 14 |
+
"required": ["name", "version", "date_modified", "license", "license_url", "schema", "source", "reference_time", "reference_time_epoch", "test_signing_key", "total_registered_claims", "total_token_fixtures", "description"],
|
| 15 |
+
"properties": {
|
| 16 |
+
"name": { "type": "string" },
|
| 17 |
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
|
| 18 |
+
"date_modified": { "type": "string", "format": "date" },
|
| 19 |
+
"license": { "const": "CC0-1.0" },
|
| 20 |
+
"license_url": { "type": "string", "format": "uri" },
|
| 21 |
+
"schema": { "type": "string", "format": "uri" },
|
| 22 |
+
"source": { "type": "string", "format": "uri" },
|
| 23 |
+
"reference_time": { "type": "string", "format": "date-time" },
|
| 24 |
+
"reference_time_epoch": { "$ref": "#/$defs/numericDate" },
|
| 25 |
+
"specifications": { "type": "object", "additionalProperties": { "type": "string", "format": "uri" } },
|
| 26 |
+
"test_signing_key": {
|
| 27 |
+
"type": "object",
|
| 28 |
+
"required": ["kid", "alg", "secret", "warning"],
|
| 29 |
+
"properties": {
|
| 30 |
+
"kid": { "type": "string" },
|
| 31 |
+
"alg": { "const": "HS256" },
|
| 32 |
+
"secret": { "type": "string", "minLength": 32 },
|
| 33 |
+
"warning": { "type": "string" }
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"related_datasets": { "type": "array", "items": { "type": "string", "format": "uri" } },
|
| 37 |
+
"persona_note": { "type": "string" },
|
| 38 |
+
"total_registered_claims": { "type": "integer", "minimum": 1 },
|
| 39 |
+
"total_token_fixtures": { "type": "integer", "minimum": 1 },
|
| 40 |
+
"description": { "type": "string" }
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"registered_claims_dictionary": {
|
| 44 |
+
"type": "array",
|
| 45 |
+
"items": {
|
| 46 |
+
"type": "object",
|
| 47 |
+
"required": ["claim", "name", "type", "rfc_spec", "required_in", "description", "security_considerations"],
|
| 48 |
+
"properties": {
|
| 49 |
+
"claim": { "type": "string", "enum": ["iss", "sub", "aud", "exp", "nbf", "iat", "jti"] },
|
| 50 |
+
"name": { "type": "string" },
|
| 51 |
+
"type": { "type": "string" },
|
| 52 |
+
"rfc_spec": { "type": "string", "format": "uri" },
|
| 53 |
+
"required_in": {
|
| 54 |
+
"type": "object",
|
| 55 |
+
"required": ["rfc7519", "oidc_id_token", "rfc9068_access_token"],
|
| 56 |
+
"properties": {
|
| 57 |
+
"rfc7519": { "$ref": "#/$defs/requirement" },
|
| 58 |
+
"oidc_id_token": { "$ref": "#/$defs/requirement" },
|
| 59 |
+
"rfc9068_access_token": { "$ref": "#/$defs/requirement" }
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"description": { "type": "string" },
|
| 63 |
+
"security_considerations": { "type": "string" }
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"token_fixtures": {
|
| 68 |
+
"type": "object",
|
| 69 |
+
"additionalProperties": {
|
| 70 |
+
"type": "object",
|
| 71 |
+
"required": ["fixture_id", "description", "intended_outcome", "expected_error", "verification", "header", "payload", "token"],
|
| 72 |
+
"properties": {
|
| 73 |
+
"fixture_id": { "type": "string" },
|
| 74 |
+
"description": { "type": "string" },
|
| 75 |
+
"intended_outcome": {
|
| 76 |
+
"type": "string",
|
| 77 |
+
"enum": ["valid", "invalid_expired", "invalid_premature", "invalid_missing_claim", "invalid_audience", "invalid_signature", "invalid_algorithm"]
|
| 78 |
+
},
|
| 79 |
+
"expected_error": {
|
| 80 |
+
"oneOf": [
|
| 81 |
+
{ "type": "null" },
|
| 82 |
+
{
|
| 83 |
+
"type": "object",
|
| 84 |
+
"required": ["pyjwt", "jsonwebtoken"],
|
| 85 |
+
"properties": { "pyjwt": { "type": "string" }, "jsonwebtoken": { "type": "string" }, "jsonwebtoken_message": { "type": "string" } }
|
| 86 |
+
}
|
| 87 |
+
]
|
| 88 |
+
},
|
| 89 |
+
"verification": {
|
| 90 |
+
"type": "object",
|
| 91 |
+
"required": ["algorithms", "issuer", "audience", "required_claims"],
|
| 92 |
+
"properties": {
|
| 93 |
+
"algorithms": { "type": "array", "items": { "type": "string" } },
|
| 94 |
+
"issuer": { "type": "string" },
|
| 95 |
+
"audience": { "type": "string" },
|
| 96 |
+
"required_claims": { "type": "array", "items": { "type": "string" } },
|
| 97 |
+
"required_typ": { "type": "string" }
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"header": {
|
| 101 |
+
"type": "object",
|
| 102 |
+
"required": ["alg"],
|
| 103 |
+
"properties": { "alg": { "type": "string" }, "typ": { "type": "string" }, "kid": { "type": "string" } }
|
| 104 |
+
},
|
| 105 |
+
"payload": {
|
| 106 |
+
"type": "object",
|
| 107 |
+
"properties": {
|
| 108 |
+
"iss": { "type": "string" },
|
| 109 |
+
"sub": { "type": "string" },
|
| 110 |
+
"aud": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
| 111 |
+
"exp": { "$ref": "#/$defs/numericDate" },
|
| 112 |
+
"nbf": { "$ref": "#/$defs/numericDate" },
|
| 113 |
+
"iat": { "$ref": "#/$defs/numericDate" },
|
| 114 |
+
"auth_time": { "$ref": "#/$defs/numericDate" },
|
| 115 |
+
"jti": { "type": "string" },
|
| 116 |
+
"scope": { "type": "string" },
|
| 117 |
+
"amr": { "type": "array", "items": { "type": "string" } }
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
"token": { "type": "string", "pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*$" }
|
| 121 |
+
},
|
| 122 |
+
"allOf": [
|
| 123 |
+
{
|
| 124 |
+
"if": { "properties": { "intended_outcome": { "const": "valid" } } },
|
| 125 |
+
"then": { "properties": { "expected_error": { "type": "null" } } },
|
| 126 |
+
"else": { "properties": { "expected_error": { "type": "object" } } }
|
| 127 |
+
}
|
| 128 |
+
]
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
}
|
records-registered_claims.jsonl
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"claim": "iss", "name": "Issuer", "type": "StringOrURI", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1", "required_in": {"rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required"}, "description": "Identifies the principal that issued the JWT, usually the authorization server's HTTPS issuer URL.", "security_considerations": "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."}
|
| 2 |
+
{"claim": "sub", "name": "Subject", "type": "StringOrURI", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2", "required_in": {"rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required"}, "description": "Identifies the principal the JWT is about, such as a user ID or service account ID.", "security_considerations": "Must be unique within the issuer. Key user records on iss + sub, never on email, because emails can change or be reassigned."}
|
| 3 |
+
{"claim": "aud", "name": "Audience", "type": "StringOrURI or array of StringOrURI", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3", "required_in": {"rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required"}, "description": "Identifies the recipients the JWT is intended for: an API identifier for access tokens, the client_id for ID tokens.", "security_considerations": "A resource server must reject tokens that do not list its own identifier in aud, to prevent token pass-through between APIs."}
|
| 4 |
+
{"claim": "exp", "name": "Expiration Time", "type": "NumericDate (seconds since Unix epoch)", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4", "required_in": {"rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required"}, "description": "The time on or after which the JWT must not be accepted for processing.", "security_considerations": "Keep access tokens short-lived (commonly 5 to 60 minutes). Allow only a small clock-skew leeway, typically 60 seconds or less."}
|
| 5 |
+
{"claim": "nbf", "name": "Not Before", "type": "NumericDate (seconds since Unix epoch)", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5", "required_in": {"rfc7519": "optional", "oidc_id_token": "not_defined", "rfc9068_access_token": "optional"}, "description": "The time before which the JWT must not be accepted for processing.", "security_considerations": "Reject when current_time + leeway < nbf. Useful for scheduled or deferred activation."}
|
| 6 |
+
{"claim": "iat", "name": "Issued At", "type": "NumericDate (seconds since Unix epoch)", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6", "required_in": {"rfc7519": "optional", "oidc_id_token": "required", "rfc9068_access_token": "required"}, "description": "The time at which the JWT was issued.", "security_considerations": "Lets a verifier compute token age and reject tokens issued before a password reset or session-revocation event."}
|
| 7 |
+
{"claim": "jti", "name": "JWT ID", "type": "string (case-sensitive, unique per token)", "rfc_spec": "https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7", "required_in": {"rfc7519": "optional", "oidc_id_token": "not_defined", "rfc9068_access_token": "required"}, "description": "A unique identifier for the token.", "security_considerations": "Enables replay detection and revocation: store seen or revoked jti values until the token's exp passes."}
|
records-token_fixtures.jsonl
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"name": "enterprise_access_token", "fixture_id": "tok_access_valid_01", "description": "RFC 9068 OAuth 2.0 access token for a multi-tenant API: space-delimited scope, client_id, workspace roles and MFA evidence (amr). Valid at reference_time.", "intended_outcome": "valid", "expected_error": null, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792490100, "exp": 1792493700, "jti": "6f1c2a9e-3b7d-4e0f-9a8c-1d2e3f4a5b60", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI2ZjFjMmE5ZS0zYjdkLTRlMGYtOWE4Yy0xZDJlM2Y0YTViNjAiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.9vfl5EINUfLQvs3kO3LJv6ByGFOSPIpeWNmoAuXMGuA"}
|
| 2 |
+
{"name": "oidc_id_token", "fixture_id": "tok_id_valid_02", "description": "OpenID Connect ID token for the same user, issued to the web client (aud = client_id), with nonce and auth_time. Valid at reference_time.", "intended_outcome": "valid", "expected_error": null, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "client_web_app_991823", "required_claims": ["iss", "sub", "aud", "exp", "iat"]}, "header": {"alg": "HS256", "typ": "JWT", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "client_web_app_991823", "iat": 1792490100, "exp": 1792493700, "auth_time": 1792490080, "nonce": "n-0S6_WzA2Mj", "email": "sarah.lead@example.com", "email_verified": true, "name": "Sarah Lead", "amr": ["pwd", "otp", "mfa"]}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiSldUIn0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiY2xpZW50X3dlYl9hcHBfOTkxODIzIiwiaWF0IjoxNzkyNDkwMTAwLCJleHAiOjE3OTI0OTM3MDAsImF1dGhfdGltZSI6MTc5MjQ5MDA4MCwibm9uY2UiOiJuLTBTNl9XekEyTWoiLCJlbWFpbCI6InNhcmFoLmxlYWRAZXhhbXBsZS5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6IlNhcmFoIExlYWQiLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl19.NS02x3zPhI338zN-m6L-DKP9p3rbZpo3xh767OXaw9I"}
|
| 3 |
+
{"name": "test_vector_expired", "fixture_id": "tok_test_expired_03", "description": "Access token whose exp is 2 hours before reference_time. Must be rejected as expired.", "intended_outcome": "invalid_expired", "expected_error": {"pyjwt": "ExpiredSignatureError", "jsonwebtoken": "TokenExpiredError", "jsonwebtoken_message": "jwt expired"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792479600, "nbf": 1792479600, "exp": 1792483200, "jti": "0a7e4c1b-5d2f-4a9e-8b3c-7f6e5d4c3b21", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792479580, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0Nzk2MDAsIm5iZiI6MTc5MjQ3OTYwMCwiZXhwIjoxNzkyNDgzMjAwLCJqdGkiOiIwYTdlNGMxYi01ZDJmLTRhOWUtOGIzYy03ZjZlNWQ0YzNiMjEiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDc5NTgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.4r0RPI39n0glHgJyrbsqqMskGNSQtzX8Y0tJK35w0wA"}
|
| 4 |
+
{"name": "test_vector_nbf_future", "fixture_id": "tok_test_premature_04", "description": "Access token with nbf 2 hours after reference_time (scheduled activation). Must be rejected as not yet valid.", "intended_outcome": "invalid_premature", "expected_error": {"pyjwt": "ImmatureSignatureError", "jsonwebtoken": "NotBeforeError", "jsonwebtoken_message": "jwt not active"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792497600, "exp": 1792501200, "jti": "1b8f5d2c-6e3a-4b0f-9c4d-8a7f6e5d4c32", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5NzYwMCwiZXhwIjoxNzkyNTAxMjAwLCJqdGkiOiIxYjhmNWQyYy02ZTNhLTRiMGYtOWM0ZC04YTdmNmU1ZDRjMzIiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.dAddr7k4423BVnUrsTns5aZD3hFVY_tD4C042hAOZ7I"}
|
| 5 |
+
{"name": "test_vector_missing_iss", "fixture_id": "tok_test_missing_iss_05", "description": "Access token with no iss claim. Must be rejected when the verifier requires a trusted issuer.", "intended_outcome": "invalid_missing_claim", "expected_error": {"pyjwt": "MissingRequiredClaimError", "jsonwebtoken": "JsonWebTokenError", "jsonwebtoken_message": "jwt issuer invalid. expected: https://auth.example.com/"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792490100, "exp": 1792493700, "jti": "2c9a6e3d-7f4b-4c1a-8d5e-9b8a7f6e5d43", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJzdWIiOiI4YjRhNWYzYy05ZDJlLTRiMGEtOGY3Yy02ZDFlM2E4ZjBiMDIiLCJhdWQiOiJodHRwczovL2FwaS5leGFtcGxlLmNvbS92MSIsImNsaWVudF9pZCI6ImNsaWVudF93ZWJfYXBwXzk5MTgyMyIsImlhdCI6MTc5MjQ5MDEwMCwibmJmIjoxNzkyNDkwMTAwLCJleHAiOjE3OTI0OTM3MDAsImp0aSI6IjJjOWE2ZTNkLTdmNGItNGMxYS04ZDVlLTliOGE3ZjZlNWQ0MyIsInNjb3BlIjoiZGF0YTpyZWNvcmRzOnJlYWQgZGF0YTpyZWNvcmRzOndyaXRlIGRhdGE6cmVjb3JkczpleHBvcnQgd29ya3NwYWNlOnNldHRpbmdzOnJlYWQgdGVhbTptZW1iZXJzOnJlYWQiLCJhdXRoX3RpbWUiOjE3OTI0OTAwODAsImFtciI6WyJwd2QiLCJvdHAiLCJtZmEiXSwib3JnX2lkIjoib3JnX2VudGVycHJpc2VfMDEiLCJ3b3Jrc3BhY2Vfcm9sZXMiOnsid3NfcHJvZF9ldSI6IndvcmtzcGFjZV9lZGl0b3IiLCJ3c19zdGFnaW5nIjoid29ya3NwYWNlX2VkaXRvciJ9fQ.K1kI-xc8ihSEkiyTOnsKDkzB7TIi24vv_lCIFuwPUNk"}
|
| 6 |
+
{"name": "test_vector_wrong_audience", "fixture_id": "tok_test_wrong_aud_06", "description": "Access token issued for a different API (billing). A resource server for api.example.com must reject it (token pass-through / confused deputy).", "intended_outcome": "invalid_audience", "expected_error": {"pyjwt": "InvalidAudienceError", "jsonwebtoken": "JsonWebTokenError", "jsonwebtoken_message": "jwt audience invalid. expected: https://api.example.com/v1"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://billing.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792490100, "exp": 1792493700, "jti": "3d0b7f4e-8a5c-4d2b-9e6f-0c9b8a7f6e54", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9iaWxsaW5nLmV4YW1wbGUuY29tL3YxIiwiY2xpZW50X2lkIjoiY2xpZW50X3dlYl9hcHBfOTkxODIzIiwiaWF0IjoxNzkyNDkwMTAwLCJuYmYiOjE3OTI0OTAxMDAsImV4cCI6MTc5MjQ5MzcwMCwianRpIjoiM2QwYjdmNGUtOGE1Yy00ZDJiLTllNmYtMGM5YjhhN2Y2ZTU0Iiwic2NvcGUiOiJkYXRhOnJlY29yZHM6cmVhZCBkYXRhOnJlY29yZHM6d3JpdGUgZGF0YTpyZWNvcmRzOmV4cG9ydCB3b3Jrc3BhY2U6c2V0dGluZ3M6cmVhZCB0ZWFtOm1lbWJlcnM6cmVhZCIsImF1dGhfdGltZSI6MTc5MjQ5MDA4MCwiYW1yIjpbInB3ZCIsIm90cCIsIm1mYSJdLCJvcmdfaWQiOiJvcmdfZW50ZXJwcmlzZV8wMSIsIndvcmtzcGFjZV9yb2xlcyI6eyJ3c19wcm9kX2V1Ijoid29ya3NwYWNlX2VkaXRvciIsIndzX3N0YWdpbmciOiJ3b3Jrc3BhY2VfZWRpdG9yIn19.SOCFZH04GcAYJhRIGLlagGF7dsm55r6G_6qXBCTmKmA"}
|
| 7 |
+
{"name": "test_vector_bad_signature", "fixture_id": "tok_test_bad_signature_07", "description": "Valid-looking access token signed with a different key. Signature verification must fail.", "intended_outcome": "invalid_signature", "expected_error": {"pyjwt": "InvalidSignatureError", "jsonwebtoken": "JsonWebTokenError", "jsonwebtoken_message": "invalid signature"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "HS256", "typ": "at+jwt", "kid": "aptdot-test-hs256-01"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792490100, "exp": 1792493700, "jti": "4e1c8a5f-9b6d-4e3c-8f7a-1d0c9b8a7f65", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6ImFwdGRvdC10ZXN0LWhzMjU2LTAxIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI0ZTFjOGE1Zi05YjZkLTRlM2MtOGY3YS0xZDBjOWI4YTdmNjUiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0.bM5CeUDWyYjqR7DdhPHgHT0EBc5cTbEmGyHENSMgucE"}
|
| 8 |
+
{"name": "test_vector_alg_none", "fixture_id": "tok_test_alg_none_08", "description": "Unsigned token with alg none (CVE-2015-9235 class). Verifiers must only accept the algorithms they expect.", "intended_outcome": "invalid_algorithm", "expected_error": {"pyjwt": "InvalidAlgorithmError", "jsonwebtoken": "JsonWebTokenError", "jsonwebtoken_message": "jwt signature is required"}, "verification": {"algorithms": ["HS256"], "issuer": "https://auth.example.com/", "audience": "https://api.example.com/v1", "required_claims": ["iss", "sub", "aud", "exp", "iat", "jti", "client_id"], "required_typ": "at+jwt"}, "header": {"alg": "none", "typ": "at+jwt"}, "payload": {"iss": "https://auth.example.com/", "sub": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "aud": "https://api.example.com/v1", "client_id": "client_web_app_991823", "iat": 1792490100, "nbf": 1792490100, "exp": 1792493700, "jti": "5f2d9b6a-0c7e-4f4d-9a8b-2e1d0c9b8a76", "scope": "data:records:read data:records:write data:records:export workspace:settings:read team:members:read", "auth_time": 1792490080, "amr": ["pwd", "otp", "mfa"], "org_id": "org_enterprise_01", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}}, "token": "eyJhbGciOiJub25lIiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20vIiwic3ViIjoiOGI0YTVmM2MtOWQyZS00YjBhLThmN2MtNmQxZTNhOGYwYjAyIiwiYXVkIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEiLCJjbGllbnRfaWQiOiJjbGllbnRfd2ViX2FwcF85OTE4MjMiLCJpYXQiOjE3OTI0OTAxMDAsIm5iZiI6MTc5MjQ5MDEwMCwiZXhwIjoxNzkyNDkzNzAwLCJqdGkiOiI1ZjJkOWI2YS0wYzdlLTRmNGQtOWE4Yi0yZTFkMGM5YjhhNzYiLCJzY29wZSI6ImRhdGE6cmVjb3JkczpyZWFkIGRhdGE6cmVjb3Jkczp3cml0ZSBkYXRhOnJlY29yZHM6ZXhwb3J0IHdvcmtzcGFjZTpzZXR0aW5nczpyZWFkIHRlYW06bWVtYmVyczpyZWFkIiwiYXV0aF90aW1lIjoxNzkyNDkwMDgwLCJhbXIiOlsicHdkIiwib3RwIiwibWZhIl0sIm9yZ19pZCI6Im9yZ19lbnRlcnByaXNlXzAxIiwid29ya3NwYWNlX3JvbGVzIjp7IndzX3Byb2RfZXUiOiJ3b3Jrc3BhY2VfZWRpdG9yIiwid3Nfc3RhZ2luZyI6IndvcmtzcGFjZV9lZGl0b3IifX0."}
|