Skip to content
Novus Examples

JWT and JWKS SAMPLE fixtures

Unsigned and SAMPLE-signed JWT variants plus JWKS documents, published sample material only, for auth parser tests.

47 of 47 files
Preview of JWT (none) — SAMPLE
jwt
237 B
Actual file preview for JWT (none) — SAMPLE

JWT (none) — SAMPLE

SAMPLE JWT with alg=none for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (HS256) — SAMPLE
jwt
281 B
Actual file preview for JWT (HS256) — SAMPLE

JWT (HS256) — SAMPLE

SAMPLE JWT with alg=HS256 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (HS384) — SAMPLE
jwt
302 B
Actual file preview for JWT (HS384) — SAMPLE

JWT (HS384) — SAMPLE

SAMPLE JWT with alg=HS384 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (HS512) — SAMPLE
jwt
324 B
Actual file preview for JWT (HS512) — SAMPLE

JWT (HS512) — SAMPLE

SAMPLE JWT with alg=HS512 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (RS256) — SAMPLE
jwt
614 B
Actual file preview for JWT (RS256) — SAMPLE

JWT (RS256) — SAMPLE

SAMPLE JWT with alg=RS256 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (RS384) — SAMPLE
jwt
614 B
Actual file preview for JWT (RS384) — SAMPLE

JWT (RS384) — SAMPLE

SAMPLE JWT with alg=RS384 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWT (RS512) — SAMPLE
jwt
614 B
Actual file preview for JWT (RS512) — SAMPLE

JWT (RS512) — SAMPLE

SAMPLE JWT with alg=RS512 for auth parsers and algorithm-handling tests. Published sample material only.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of JWKS (RSA) — SAMPLE
json
514 B
Actual file preview for JWKS (RSA) — SAMPLE

JWKS (RSA) — SAMPLE

SAMPLE JWKS document exposing the Wave G RSA public key for JWT signature verification tests.

File
JSON · Jwks
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWKS — RSA, EC, and Ed25519 Keys
json
946 B
Actual file preview for SAMPLE JWKS — RSA, EC, and Ed25519 Keys

SAMPLE JWKS — RSA, EC, and Ed25519 Keys

A three-key JWK Set publishing the public halves of this wave's RSA, P-256, and Ed25519 keys, each with a distinct kid. It is the resolver input for every p7 JWT, so kid selection can be tested against a set that really has more than one candidate.

File
JSON · Jwks
Preview of SAMPLE JWKS — With x5c Certificate Chain
json
5.9 KB
Actual file preview for SAMPLE JWKS — With x5c Certificate Chain

SAMPLE JWKS — With x5c Certificate Chain

A JWK carrying the full x5c certificate chain and an x5t#S256 thumbprint alongside the raw n/e values. The x5c array is standard Base64 while every other JWK field is base64url — a real and frequently mis-implemented detail.

File
JSON · Jwks
Preview of SAMPLE JWKS — Duplicate kid
json
748 B
Actual file preview for SAMPLE JWKS — Duplicate kid

SAMPLE JWKS — Duplicate kid

Two keys of different types published under the same kid — what a botched key rotation leaves behind. A resolver that returns the first match silently verifies against the wrong key type instead of reporting the ambiguity.

File
JSON · Jwks
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWKS — Keys Without kid
json
680 B
Actual file preview for SAMPLE JWKS — Keys Without kid

SAMPLE JWKS — Keys Without kid

A JWK Set whose keys carry no kid at all, which RFC 7517 permits. Verifiers must then fall back to trying candidates by algorithm, and the ones that index the set by kid alone find nothing.

File
JSON · Jwks
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWK — RSA Private Key
json
1.7 KB
Actual file preview for SAMPLE JWK — RSA Private Key

SAMPLE JWK — RSA Private Key

The full RSA private key as a JWK, including the CRT parameters p, q, dp, dq and qi. It is the input for testing JWK-to-PEM conversion, where dropping the CRT values quietly costs a large amount of signing performance.

File
JSON · Jwks
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWK — EC P-256 Public Key
json
212 B
Actual file preview for SAMPLE JWK — EC P-256 Public Key

SAMPLE JWK — EC P-256 Public Key

A single P-256 public JWK. Its x and y are fixed 32-byte base64url values, left-padded when a coordinate happens to be short — the padding rule that libraries stripping leading zeroes get wrong.

File
JSON · Jwks
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWK — Ed25519 Private Key
json
215 B
Actual file preview for SAMPLE JWK — Ed25519 Private Key

SAMPLE JWK — Ed25519 Private Key

An OKP-type JWK holding the Ed25519 key pair as raw 32-byte x and d values. OKP is the newest JWK key type and the one older JOSE libraries reject outright.

File
JSON · Jwks
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWK — Symmetric oct Key
json
151 B
Actual file preview for SAMPLE JWK — Symmetric oct Key

SAMPLE JWK — Symmetric oct Key

The symmetric HMAC secret used by this wave's HS256 tokens, expressed as an oct JWK. The secret is printed in the specs on purpose so a verifier can be wired up without guessing.

File
JSON · Jwks
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWT — RS256, Valid
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Valid

SAMPLE JWT — RS256, Valid

The reference token for this wave: RS256, signed by the SAMPLE leaf key, with iss, aud, iat, nbf, exp and jti all present and an expiry in 2036. Every other JWT here is a deliberate deviation from it.

File
JWT · Jwt
Use case
JWT / JWKS testing· Paired fixture
Preview of SAMPLE JWT — RS256, Expired
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Expired

SAMPLE JWT — RS256, Expired

A correctly signed RS256 token whose exp passed on 2020-01-01. The signature still verifies, so it isolates expiry handling from every other check — including the libraries that validate the signature and then forget to look at exp.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — RS256, Bad Signature
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Bad Signature

SAMPLE JWT — RS256, Bad Signature

The valid RS256 token with the last bit of its signature flipped. Header and payload are byte-identical to the valid twin, so any difference in outcome is entirely down to signature verification.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Paired fixture
Preview of SAMPLE JWT — RS256, Signed by the Wrong Key
jwt
1 KB
Actual file preview for SAMPLE JWT — RS256, Signed by the Wrong Key

SAMPLE JWT — RS256, Signed by the Wrong Key

A perfectly well-formed RS256 signature made with the SAMPLE root key while the kid header still names the leaf key. Verifiers that trust the kid without checking the signature against that exact key accept it.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — Unknown kid
jwt
731 B
Actual file preview for SAMPLE JWT — Unknown kid

SAMPLE JWT — Unknown kid

A genuinely valid RS256 signature whose kid names a key that has been rotated out of the JWK set. The right behaviour is a clean key-not-found error, not a silent fallback to whichever key happens to be first.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — alg none, Unsigned
jwt
342 B
Actual file preview for SAMPLE JWT — alg none, Unsigned

SAMPLE JWT — alg none, Unsigned

An unsecured JWS: alg is none and the signature segment is empty, leaving only the trailing dot. Any verifier that accepts it will accept a claim set an attacker wrote, which is why this is the first negative test to run.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — EdDSA, Valid
jwt
469 B
Actual file preview for SAMPLE JWT — EdDSA, Valid

SAMPLE JWT — EdDSA, Valid

An EdDSA (Ed25519) token with a fixed 64-byte signature and the same claim set as the RS256 reference. EdDSA signing is deterministic, so this token is reproducible in a way an ES256 one could never be.

File
JWT · Jwt
Use case
JWT / JWKS testing· Paired fixture
Preview of SAMPLE JWT — EdDSA, Bad Signature
jwt
469 B
Actual file preview for SAMPLE JWT — EdDSA, Bad Signature

SAMPLE JWT — EdDSA, Bad Signature

The EdDSA token with one bit of its signature flipped. Ed25519 verification either succeeds or fails with no partial credit, which makes this the cleanest possible negative case.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Paired fixture
Preview of SAMPLE JWT — HS256 with a Published Secret
jwt
422 B
Actual file preview for SAMPLE JWT — HS256 with a Published Secret

SAMPLE JWT — HS256 with a Published Secret

A symmetric HS256 token whose secret is printed in the specs and shipped as an oct JWK, so a verifier can be stood up without any key exchange. It shares its claim set with the RS256 reference token.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWS — General JSON Serialization
json
1.1 KB
Actual file preview for SAMPLE JWS — General JSON Serialization

SAMPLE JWS — General JSON Serialization

One payload carrying two independent signatures — RS256 and EdDSA — in the General JSON serialization that the compact form cannot express. Multi-signature handling is the part of RFC 7515 most libraries never implemented.

File
JSON · Jwt
Use case
JWT / JWKS testingAPI testing· Conversion set
Preview of SAMPLE JWS — Flattened JSON Serialization
json
825 B
Actual file preview for SAMPLE JWS — Flattened JSON Serialization

SAMPLE JWS — Flattened JSON Serialization

The single-signature flattened JSON form of the exact same RS256 token shipped in compact serialization. Both encodings must verify to the identical payload, which is the round-trip this pair is for.

File
JSON · Jwt
Use case
JWT / JWKS testingAPI testing· Conversion set
Preview of DSSE Envelope Wrapping a Provenance Statement
json
2.5 KB
Actual file preview for DSSE Envelope Wrapping a Provenance Statement

DSSE Envelope Wrapping a Provenance Statement

A DSSE envelope whose base64 payload decodes to the SLSA v1 statement in this family — the wrapper attestation tooling actually transports. Signatures, key ids and certificates here are SAMPLE placeholders — the base64 decodes to the words 'SAMPLE SIGNATURE', so verification must fail. Nothing here is cryptographically valid and no key material is real.

File
JSON · Provenance
Use case
JSON parsingJWT / JWKS testing+1· Conversion set