Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/"ActAs" claim party must be unique?Forum ↗

"ActAs" claim party must be unique?

App Development2 posts537 views5 likesLast activity Aug 2020
MA
MatheusOP
Aug 2020

Hi,

Using a JWT token with the actAs claim such as: actAs:[ “party1”, “party2”, “party3”," party4"] rendered the following error:

Can someone please confirm that this uniqueness requirement is in the actAs claim?

Thanks!

CO
cocreature
Aug 2020

It depends on what you are accessing. The gRPC Ledger API will happily accept multi-party tokens. This is possible since when you are submitting a command, you specify the party that submits the command separately.

The HTTP JSON API on the other hand, infers the party from the token and does not require (or allow) you to specify the token separately. To be able to do this it imposes a requirement that the set of parties listed in actAs and readAs contains exactly one party.

← Back to Discussions