Expand description
Agent, person and auth tokens: minting, and verification as AAuth
§Request-Context Binding prescribes. A port of @aauth/resource’s
verifyToken, in its order: structure first, then the key binding, then
the issuer’s signature, and only then anything the claims say.
Structs§
- Verified
Token - A token whose issuer’s signature verified, bound to the key that signed the request.
- Verify
Token Options - What
verify_tokenchecks a token against. Build one withVerifyTokenOptions::new.
Enums§
- Token
Kind - The four AAuth token types, by their JWT
typ.
Functions§
- mint
- Mint a token of
kind, signed bykeyand naming it inkidby its thumbprint.claimsare written as given: the issuer decides them. - verify_
token - Verify an agent, person or auth token presented in
Signature-Key.