| Crates.io | compact_jwt |
| lib.rs | compact_jwt |
| version | 0.5.3-dev |
| created_at | 2021-10-23 01:33:30.027067+00 |
| updated_at | 2025-07-10 04:14:11.705586+00 |
| description | Minimal implementation of JWT for OIDC and other applications |
| homepage | |
| repository | https://github.com/kanidm/compact-jwt |
| max_upload_size | |
| id | 469710 |
| size | 263,860 |
Json Web Tokens (JWT) are a popular method for creating signed transparent tokens that can be verified by clients and servers. They are enshrined in standards like OpenID Connect which causes them to be a widespread and required component of many modern web authentication system.
Json Web Encryption (JWE) is an occasionally used method for sending secrets to a recipient or to create opaque tokens for services.
JWE, JWT, and Json Web Signature (JWS) however have a long track record of handling issues, which have led to security issues. This library will not be a complete implementation of JWE/JWT/JWS, instead focusing on a minimal subset that can be secured and audited for correctness more closely within a limited set of use cases.
If you are:
Then this library is for you
If you need non-compact JWS, or other complex use cases, this library is not for you.
There are already many other libraries for JWT on crates.io however they each have a limitation or design that conflicts with the project goals in Kanidm. Examples are:
As a result, nothing "fit" what we wanted, so we are making another library.