#jwt #token #web #claim

h256only

Web token library based on rust-jwt with support only for HMACSHA256

2 releases

Uses old Rust 2015

0.4.1 Aug 8, 2017
0.4.0 Aug 8, 2017

#31 in #claim

MIT license

14KB
336 lines

H256Only

A Web Token library forked from rust-jwt

Inspired by the h256only go library.

For more information on this rationale, please read Kevin Burke's article on JWT

For usage documentation, please see the original JWT Documentation.

Usage

The library provides a Token type that wraps a header and claims. The header and claims can be any types that implement the Component trait, which is automatically implemented for types that implement the Sized, Encodable, and Decodable traits. See the examples.

Dependencies

~4MB
~50K SLoC