Inspect structure
Canonical base64url and JSON-object checks make malformed inputs visible without treating decoding as verification.
Day 076 / Security / Untrusted Claims
Inspect synthetic JWT headers, payloads and time claims locally with a dependency-free Python CLI.
Canonical base64url and JSON-object checks make malformed inputs visible without treating decoding as verification.
Expiration is reached at the exact exp boundary. Not-before becomes reached at its boundary; future issued-at is an observation. Missing or wrongly typed time claims receive separate labels, with zero leeway.
Exit zero means inspection completed. It never means the token should authorize a request. Use synthetic tokens because the report prints decoded claims.
Sixteen passing tests
Repeatable clock input
Explicit unverified status
Bounded local file input
No external dependencies
Argparse, base64 and JSON support local parsing and readable escaped output.
Tests exercise time boundaries, malformed segments, claim types, duplicate keys, nonfinite constants, unverified signatures and CLI behavior.