]> gitweb.factorcode.org Git - factor.git/commit
crypto.jwt: Add a library to encode/decode jwt web tokens.
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 9 Apr 2021 14:57:16 +0000 (09:57 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 9 Apr 2021 14:59:04 +0000 (09:59 -0500)
commit59e924e19d8fce8beb9fa35a43bde026046fe776
tree26e0677ffec3c720bf539d2a19911f76a77f5616
parent87e03631f591cd13fbf0585dafca23c0d87e7687
crypto.jwt: Add a library to encode/decode jwt web tokens.

https://tools.ietf.org/html/rfc7519

online tester at https://jwt.io/#debugger

- we don't have a way to minify json (remove spaces from the final payload)
- had to add a word in base64 that urlencodes and removes trailing = signs
- only sha-256 is supported
extra/crypto/jwt/authors.txt [new file with mode: 0644]
extra/crypto/jwt/jwt-tests.factor [new file with mode: 0644]
extra/crypto/jwt/jwt.factor [new file with mode: 0644]