1 stable release
Uses old Rust 2015
1.0.0 | Jul 17, 2019 |
---|
#23 in #expiration
25KB
443 lines
The Orizentic token management library
This library provides a high level interface for authentication token management. It wraps
around the JWT standard using the
jsonwebtoken
library for serialization and
validation.
Functionality revolves around the relationship between a ClaimSet, a VerifiedToken, and an UnverifiedToken. A ClaimSet is considered informative and stores all of the information about the permissions and resources that the token bearer should have access to. VerifiedToken and UnverifiedToken are the result of the process of decoding a string JWT, and inherently specify whether the decoding process verified the signature, expiration time, and presence in the database.
This library does not currently contain database save and load features, but those are a likely upcoming feature.
No setup is necessary when using this library to decode JWT strings. Refer to the standalone decode_text function.
Dependencies
~11MB
~290K SLoC