Skip to content

Commit 8aabda4

Browse files
g2flyerbvavala
authored andcommitted
make getRegisteredUsers running again in demo ..
Signed-off-by: michael steiner <[email protected]>
1 parent 1cd5ab1 commit 8aabda4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo/client/backend/fabric-gateway/registerUsers.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ docker exec ca.example.com fabric-ca-client enroll \
1919
docker exec ca.example.com fabric-ca-client register \
2020
--id.name org1admin --id.secret adminpw \
2121
--id.type admin --id.affiliation org1 \
22-
--id.attrs 'hf.Registrar.Roles=user, hf.Revoker=true' \
22+
--id.attrs 'hf.Registrar.Roles=client, hf.Revoker=true' \
2323
--id.attrs 'hf.GenCRL=true, admin=true:ecert, hf.Registrar.Attributes=approle=auction.*:ecert' \
2424
--id.attrs 'approle=auction.*' \
2525
--url http://admin:adminpw@localhost:7054
26+
# Note: for /api/getRegisteredUsers API call to work it is crucial that hf.Registrar.Roles
27+
# attribute above covers the id.type from below or that function will just return an
28+
# empty list (but no error)!
2629

2730
#verify org1admin has been registered
2831
#........................................................

0 commit comments

Comments
 (0)