you might well consider using a Cloud store location for your business network cards, that contain the blockchain identities (but your chosen strategy overrides that, eg cards persisted to a REST server instance) - a business network card (for the designated user) is then accessible to that application user (once authenticated, see item 4 below) to be able to connect to, then interact with, the protected business network, and ledger - as the specified identity. An example of one cloud strategy is shown here - more info on cloud wallets here
You would create participants in Composer (the class(es) for which are defined in your model file) in the business network, and issue identities through Composer (mapped to the participant above) - or indeed from your CA server, as an administrator (eg the user goes through some application user registration process then activates the account, their blockchain identity, via a link to their email id etc etc or as suits) . Your Composer identity (in the business network) could possibly map to the web portal user id in some way (meaning: whether you want that to be direct or indirect, you'll know your security architecture better).
Some of what you are asking about is answered in this Stack -> Hyperledger Composer Web application user authentication
您显然会使用身份验证策略来验证您的 Web 应用程序用户 - 例如,如果您的应用程序使用 Composer REST API 与区块链上的业务网络进行交互。有关示例,请参阅此 Google OAUTH2(基于客户端身份验证)教程 -> https://hyperledger.github.io/composer/latest/tutorials/google_oauth2_rest。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句