@boxxy/caller-proof-imp
v0.3.6
Published
boxxy's caller proof port on the broker's identity token
Readme
boxxy's CallerProof port on the imp broker's identity token: it proves which machine sent a
session's call to the boxxy server.
Install
Install the package from npm with Bun:
bun add @boxxy/caller-proof-impThe package runs on Bun 1.3 or newer.
Features
impIdentityCallerProof({ issuers, audience, clock })returns aCallerProof. The app passes the trust documents as parsed JSON, the audience that the broker signs for, and the clock.- The proof reads the
imp-identityheader and verifies it with@impz/client/identity. It gives the token's issuer, and the machine ID as the subject. - A missing, expired or forged token, a wrong audience or an unknown issuer proves no caller. With no trust document, the proof proves no request.
- A bad trust document throws when the app builds the proof, so the server does not start.
Documentation
The proven caller describes how the server uses the proof, and why the adapter makes no session check of its own.
