使用具有多用户身份验证的 comoposer-rest-server explorer 发布新身份

Issue new identities using comoposer-rest-server explorer with multi-user authentitacion

有人知道如何使用 composer-rest-server 资源管理器发布新身份吗?我已经完成了多用户身份验证,但我找不到颁发新身份的方法。

休息 api 日志:

Unhandled error for request POST /api/system/identities/issue: Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authorization failure"}]]

CA 对等日志:

Checking to see if caller 'jdoe' is a registrar
2018/04/19 15:33:03 [DEBUG] Registration of 'test' failed: : scode: 401, local code: 42, local msg: 'jdoe' is not a registrar, remote code: 20, remote msg: Authorization failure
2018/04/19 15:33:03 [INFO] 172.19.0.8:51394 POST /api/v1/register 401 42 "'jdoe' is not a registrar"

谢谢! :)

杰拉德

composer identity issue命令中有一个可选参数,可以让ID(本例中为jdoe)有权限颁发其他Identities。

可选参数是-x,整个命令记录在这里:https://hyperledger.github.io/composer/latest//reference/composer.identity.issue

我假设您遵循了 Google OAuth2 教程,其中乔没有获得权限