I have created a Hyperledger Composer Business network and have started the Rest server in multi user mode with Github based authentication enabled.
My COMPOSER_PROVIDERS variable looked like this :
COMPOSER_PROVIDERS='{
"github": {
"provider": "github",
"module": "passport-github",
"clientID": "my-client-id",
"clientSecret": "my-client-secret",
"authPath": "/auth/github",
"callbackURL": "/auth/github/callback",
"successRedirect": "/",
"failureRedirect": "/"
}
}'
Now I have created multiple business network cards but I can use only one of this card at a time i.e. One which has been set as default using the "POST /wallet/{name}/setDefault" API. I have tried logging in with different browsers and different machines. As per Question "Create Card through composer-rest-server" it requires 2 different clients if i want to run 2 different users with separate Network card, But I am not sure how to configure 2 Users in my composer providers. Also configuring the client id and secret statically defeats the purpose of adding users on the fly. Suppose 5 different Users want to connect with Rest server by doing signup , Is there some way I can add client id and client secret configuration in Composer_providers at run time, instead of adding that in Environment variable.