Moss · Catalog

Catalog token

The catalog token (hash) is a hash of the list of granted action ids and of nothing else, so two principals with the same list have the same token. A new action changes the token only for the principals it is granted to. Example: the member grant me.* matches me.card and not door.scan, so shipping me.card changes Grace’s token and shipping door.scan does not.

Member action grants
['programme', 'seats', 'me.*']
Tokens of two members
{ grace: 'c46b782d', ada: 'c46b782d' }
Grace’s token per added action
[
  { adds: 'door.scan', actions: 4, token: 'c46b782d' },
  { adds: 'me.card', actions: 5, token: '03203f1d' },
]
Output matches the expected value

Computed when this site was built, by the installed package, which does not run in a browser. The site’s checks recompute it on every change.