Skip to main content

Module token

Module token 

Source
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§

VerifiedToken
A token whose issuer’s signature verified, bound to the key that signed the request.
VerifyTokenOptions
What verify_token checks a token against. Build one with VerifyTokenOptions::new.

Enums§

TokenKind
The four AAuth token types, by their JWT typ.

Functions§

mint
Mint a token of kind, signed by key and naming it in kid by its thumbprint. claims are written as given: the issuer decides them.
verify_token
Verify an agent, person or auth token presented in Signature-Key.