Does somebody knows how could I issue new identities using the composer-rest-server explorer? I've done the multi-user authentication and I cannot find a way to issue new identities.
Rest api logs:
Unhandled error for request POST /api/system/identities/issue: Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authorization failure"}]]
CA peer logs:
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"
Thanks! :)
Gerard
There is an optional parameter on the composer identity issue
command to enable the ID (in this case jdoe) to have the privilege to issue other Identities.
The optional parameter is -x
and the whole command is documented here: https://hyperledger.github.io/composer/latest//reference/composer.identity.issue
I assume you followed the Google OAuth2 tutorial, where joe doesn't get the privilege