Crate medallion

Source

Structs§

  • ! 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.

Enums§

  • ! 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. Supported algorithms, each representing a valid signature and digest combination.

Type Aliases§

  • A convenient type alias that assumes the standard claims are sufficient, the empty tuple type satisfies Claims’ generic parameter as simply and clearly as possible.
  • A convenient type that binds the same type parameter for the custom claims, an empty tuple, as DefaultPayload so that the two aliases may be used together to reduce boilerplate when no custom claims are needed.
  • Result<T, Error>