Offline verification of Dinkster access tokens and policy snapshots
Maintained. Last release 2 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install dinkster-token-verifierREADME as published on PyPI with version 0.1.2.
dinkster-token-verifier
dinkster-token-verifier verifies Dinkster access tokens and signed policy
snapshots without calling the identity service for each request. It contains
verification and policy code only. It does not sign or mint tokens, store
accounts, access a database, or run a service.
Install
Consumers pin dinkster-token-verifier==0.1.2 in package metadata and record
the resolved PyPI wheel hashes in their lockfile. Before its first PyPI
publication, build a local wheel with python -m build.
Releases
Update project.version before changing a published distribution. From a
validated, landed commit, an authorized maintainer pushes the matching
vX.Y.Z tag. .github/workflows/release.yml builds the wheel and sdist,
checks their metadata, and publishes those same artifacts to PyPI using
trusted publishing. Branches and pull requests build without publishing.
Consumers update their exact requirement and lock together after publication.
The repository owner must register the PyPI project dinkster-token-verifier
with a trusted publisher for owner Kosinkadink, repository
dinkster-token-verifier, workflow release.yml, environment pypi.
Before publishing, protect that GitHub environment with required owner approval
and restrict deployment to version tags. Publication requires the owner's
authorization; no stored PyPI API token is used.
Access token contract
TokenVerifier accepts a compact JWS with three base64url segments and an
Ed25519 protected header. typ may be omitted; when present it must be JWT:
{"alg":"Ed25519","kid":"<key id>","typ":"JWT"}
The signed payload must contain these claims:
issandaud: exactly the configured issuer and audience.sub:u_<uuid>for a human ork_<uuid>for an API-key agent.kind:humanoragent, consistent withsub.org: a canonical organization UUID ornull.