web5-js
web5-js copied to clipboard
Add protocolRole to the Authorization Payload in Message
When using Context Roles within a protocol, the Web5 Agent DwnManager needs to include the protocolRole attribute otherwise the DWN SDK code will through a 'ProtocolAuthorizationActionNotAllowed: inbound message action not allowed for author' error.
This only happens if Access Control is enforced via Protocol and Context Roles.