Using two business cards in the same composer rest server configuration

人盡茶涼 提交于 2019-12-02 03:44:17

cool that you've been playing around with possibilities firstly.

The simple answer is to start a single REST server in multi-user mode, which enables wallets. See more here -> https://hyperledger.github.io/composer/latest/integrating/enabling-multiuser with an example of using Wallets (into which business network cards are stored). You can persist the wallet store to disk as described here -> https://hyperledger.github.io/composer/latest/integrating/deploying-the-rest-server.html

Then jdoe, dlow, alice and bob - as participants of the business network (each with their own business network card governed by whatever ACL rules are in place) - can interact using a browser client (REST API client) as the different participants (and therefore see different results as per your ACL rules).

There is an example of this in the Google OAUTH2 tutorial which shows how you switch identities, import a user's business network card / set it as default in the REST API, so that its using a specific blockchain identity / participant to perform activities on the business network (see specifically 'Step Eleven' onwards).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!