Skip to content

0.47.0

Choose a tag to compare

@timmo001 timmo001 released this 15 Nov 17:55
f9fe9cc

A new package for client keys, so every client of a service gets a key of its own.

  • auth: @timmo001/groundwork-auth is new. generateKey makes a key shaped <service>_<kind>_<random><checksum>, with 256 random bits and a CRC32 checksum, and parseKey reads one back, turning away a mistyped or cut-short key before any lookup. hashKey gives the SHA-256 a service keeps, findByKey finds a client by its key in constant time, and bearer and readBearer write and read the Authorization header. ./client has the ClientRecord, NewKey, KeyExchangeRequest and SocketAuth Schemas and generateClientKey, and ./test-vectors.json has sample keys for services in other languages to check against. The Behavior page's Client keys section covers it.
  • tokens: released at the same version, with no changes.
  • ui: released at the same version, with no changes.
  • tui: released at the same version, with no changes.
  • report: released at the same version, with no changes.
  • pwa: released at the same version, with no changes.
  • mobile: released at the same version, with no changes.
  • desktop: released at the same version, with no changes.
  • docs-kit: released at the same version, with no changes.