digitalbazaar / ezcap

An opinionated Authorization Capabilities client
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Delegate is using `allowedActions` rather than `allowedAction`. #4

Closed tolson4 closed 3 years ago

tolson4 commented 3 years ago

The delegate method on ZcapClient appears to be using an incorrect term when constructing and signing the zcap. https://github.com/digitalbazaar/ezcap/blob/d26656660d903d1409b4851dccb647264a6c49f1/lib/ZcapClient.js#L135-L137 This throws an error when the zcap is signed by jsonld signatures.

https://github.com/w3c-ccg/security-vocab/blob/e2302802b5cce3d853e3e909e2d5cc0f1b46e62f/contexts/security-v2.jsonld#L28