"ActAs" claim party must be unique?

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!

2 Likes

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.

3 Likes