web5-js icon indicating copy to clipboard operation
web5-js copied to clipboard

Add protocolRole to the Authorization Payload in Message

Open moisesja opened this issue 6 months ago • 5 comments

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.

moisesja avatar Jan 08 '24 22:01 moisesja