I read the answer suggesting to check the docker.yaml for ca.
The file path is below where I confirm that the username is admin and password is adminpw. Unfortunately I still get authorizatin failure error.
command I use to issue identity
composer identity issue -n 'trade-network' -p hlfv1 -i admin -s adminpw -u trader1 -a "org.acme.trading.Trader#TRADER1"
Error: fabric-ca request register failed with errors [[{"code":400,"message":"Authorization failure"}]] Command failed.
/home/composer/fabric-tools/fabric-scripts/hlfv1/composer/docker-compose.yml line from docker.yaml
command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/org1.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/a22daf356b2aab5792ea53e35f66fccef1d7f1aa2b3a2b92dbfbf96a448ea26a_sk -b admin:adminpw -d'
this problem cause can be your username & pwd for CA container
double check your docker container config, find someplace that looks like
make sure that your configured username&pwd same with username&pwd in your command
I faced similar error where I was able to add participants using playground however while issuing identity I face this error of Authorisation.
Workaround:
Delete the admin card :
Import the card :
again install and start the network using below command.
install :
start :
then Import the card and try issuing identity you will not see the error.
Remove the old admin credentails under ($HOME/.composer-credential), and go back to the existing business network and run either bash for adding identity or through composer-rest-server -p xxxx -n xxxx -i admin -s adminspw to call the endpoint for issuing new identity