#jwt #token #auth-token #permissions #expiration #database

bin+lib orizentic

A library for inerfacing with a JWT auth token database and a command line tool for managing it

1 stable release

Uses old Rust 2015

1.0.0 Jul 17, 2019

#21 in #expiration

23 downloads per month

BSD-3-Clause

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
~286K SLoC