! A crate for working with JSON WebTokens
that use OpenSSL for RSA signing and encryption and
! serde
and serde_json
for JSON encoding and decoding.
!
! Tries to support the standard uses for JWTs while providing reasonable ways to extend,
! primarily by adding custom headers and claims to tokens.
An extensible Header that provides only algorithm field and allows for additional fields to be
passed in via a struct that can be serialized and deserialized. Unlike the Claims struct, there
is no convenience type alias because headers seem to vary much more greatly in practice
depending on the application whereas claims seem to be shared as a function of registerest and
public claims.
A default claim set, including the standard, or registered, claims and the ability to specify
your own as custom claims.
Main struct representing a JSON Web Token, composed of a header and a set of claims.