This document specifies conventions for creating JSON Web Token (JWT) documents that support selective disclosure of claim values.
Written in markdown for the mmark processor.
All examples in the document are created from actual running code. To run this code, install jwcrypto library, e.g., like so:
pip3 install jwcrypto
On Debian/Ubuntu systems, you can instead use the packaged version:
sudo apt install python3-jwcrypto
You can then run the code (from the root of this repository):
python3 -m demo.simple
To update the examples in main.md, use the provided script:
./update-all-example.sh
It calls the demos with the switch --replace
to replace the example code in
main.md and --no-randomness
to ensure that the examples are always
generated in the same way (this minimizes the changes that need to be tracked).
The code creates a backup before modifying main.md in main.md.bak.
From the root of this repository, run
docker run -v `pwd`:/data danielfett/markdown2rfc main.md
(see https://github.com/oauthstuff/markdown2rfc)
compile using mmark and xml2rfc: mmark main.md > draft.xml; xml2rfc --html draft.xml