https://github.com/indicio-tech/token-status-list-py
An implemenation of Token Status Lists in Python
https://github.com/indicio-tech/token-status-list-py
Last synced: 9 months ago
JSON representation
An implemenation of Token Status Lists in Python
- Host: GitHub
- URL: https://github.com/indicio-tech/token-status-list-py
- Owner: Indicio-tech
- License: apache-2.0
- Created: 2024-06-30T19:13:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T02:31:44.000Z (11 months ago)
- Last Synced: 2025-04-01T15:06:23.520Z (9 months ago)
- Language: Python
- Size: 154 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# token-status-list
This is an implementation of [Token Status List Draft 2][spec].
[spec]: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-status-list-02
## Features
- Support for 1, 2, 4, and 8 bits.
- Compression as required by the Specification (ZLIB at level 9)
- Formatting and signing Status Lists as either JWT or CWT
- A `TokenSigner` protocol is defined so the user can Bring Their Own Crypto implementation
- Alternatively, methods for preparing payloads and assembling payload and signature bytes into the final token is also supported.
- Two Index Allocation strategies, Linear and Random
- Linear strategy will allocate indices serially
- Random strategy will allocate indices pseudo-randomly (as the list fills, speed is favored over randomness)
- Allocators contain state that must be persisted along side the status list itself
- IssuerStatusList and Allocators are serializeable so the user can persist them to the backend of their choice
## Planned Features
These are features that I intend to include soon.
- VerifierStatusList providing helpers to verify and validate a Status List Token obtained for verification.
- Examples